Skip to content

basicTest.py doesn't work in Python2 #76

Closed

Description

@BookOwl

The circling sprite in the middle has the wrong costume. I did some testing, and it's been that way since commit db54b1d (or version 0.2.1). I couldn't get 0.2.0 to work in python2.
The test does work in 0.2.1 on python3

Activity

  1. added this to the v0.3.0 milestone on Jun 11, 2016
  2. BookOwl commented on Jun 15, 2016

    @BookOwl
    MemberAuthor
  3. Tymewalk commented on Jul 5, 2016

    @Tymewalk
    Member

    Very, very strange. I'll take a look.

  4. skistaddy commented on Jul 6, 2016

    @skistaddy
    Contributor

    20 days later...

  5. Tymewalk commented on Jul 6, 2016

    @Tymewalk
    Member

    @bjskistad Yeah, it's been inactive for a while. 👅

  6. skistaddy commented on Jul 6, 2016

    @skistaddy
    Contributor

    :P

  7. BookOwl commented on Sep 11, 2016

    @BookOwl
    MemberAuthor

    two months later...

  8. Tymewalk commented on Sep 11, 2016

    @Tymewalk
    Member

    @BookOwl Looking now.

  9. BookOwl commented on Sep 11, 2016

    @BookOwl
    MemberAuthor

    @Tymewalk great

  10. Tymewalk commented on Sep 11, 2016

    @Tymewalk
    Member

    Just confirmed this, it should be "SoExcited" when it's actually "snakey".

  11. Tymewalk commented on Sep 11, 2016

    @Tymewalk
    Member

    Both costumeNumber and costumeName don't work, and it's not a problem with the image. Everything's spelled correctly.

  12. Tymewalk commented on Sep 11, 2016

    @Tymewalk
    Member

    Adding some prints, it looks like the setter isn't getting called at all.

  13. BookOwl commented on Sep 11, 2016

    @BookOwl
    MemberAuthor

    I bet that Python2 treats properties differently then Python3

  14. Tymewalk commented on Sep 11, 2016

    @Tymewalk
    Member

    @BookOwl Yep.

    Inherit from Object - otherwise the setter doesn't work

    source

    So we'll have to try inheriting from Object rather than Stage.

  15. Tymewalk commented on Sep 11, 2016

    @Tymewalk
    Member

    OH - additionally, it may be clashing with the method name.

    So we just preface the variables with underscores.

  16. BookOwl commented on Sep 11, 2016

    @BookOwl
    MemberAuthor

    If we make Stage inherit from object we should be good.

  17. Tymewalk commented on Sep 11, 2016

    @Tymewalk
    Member

    @BookOwl Yep. Testing now.

  18. added a commit that references this issue on Sep 11, 2016
    118063e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions