-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding Python 3 support and fixed Python 2.6 bug. #4
Conversation
Just noticed this package fails on Python 3.3: https://travis-ci.org/mriehl/fysom/jobs/104516422 |
@sjlongland, the PR should fix the issue you are seeing in Travis. The problem is that |
Adding Python 3 support and fixed Python 2.6 bug.
I'll update pypi a bit later tonight. |
Excellent news, I'll be giving it a try shortly to see how it all goes. Many thanks. :-) |
Awesome! Thanks @twang817! Hope it works for you @sjlongland :) |
For the record, I was waiting for the new package to arrive on pypi. In the meantime I decided to add a .travis.yml file (since I don't have Python 3.2/3.3 handy) and give it a shot there. https://travis-ci.org/vrtsystems/weakrefmethod/jobs/105810978 ← Seems Python 3.2 isn't happy. |
Okay, seems the Still, it's worth knowing about 3.2 support because Debian Wheezy ships with it, and we have a lot of kit out in the field with Debian Wheezy. https://travis-ci.org/vrtsystems/weakrefmethod shows all passing. Once in pypi, I should be able to trigger a re-test of |
Hi, Silly question, what's the status of this package these days on pypi? Seems at this present time, any package tested on Python 3.0-3.3 inclusive fails still due to this issue when the package depends on this module. I haven't been able to get mriehl/fysom#23 resolved as it presently still breaks on Python 3.3 due to incompatibilities in weakrefmethod-1.0.2. I don't mean to sound impatient, but it has been a while now. Regards, |
Hello,
I ran across some issues when using
weakrefmethod
on different versions of Python and took a shot at fixing them.When running
unit2
on Python 2.6, I got the following error:I think this is due to a
weakref.ref
behavior on Python 2.6. It seems the__ne__
method returns aNotImplementedType
object, which evaluates toTrue
when used in a boolean expression.Example:
On Python 3, the
weakrefmethod/__init__.py
imports fail because of the relative import syntax. I updated it to use explicit relative imports which works on Python 2.6+. After altering the imports and running the tests,weakrefmethod
appears to work on Python 3.2 and 3.3.I also added the
tox.ini
file that I used for testing across different Python versions.Thanks for considering this pull request and thank you for providing
weakrefmethod
to the Python community!