-
Notifications
You must be signed in to change notification settings - Fork 0
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python3.8 Error when reading a file proposed fix #3
Comments
Hm, that's interesting. I wonder if it's related to the issue posted recently #1. I would definitely accept a patch for this. Add a unit test that fails without the fix and then works with the fix. I would just add a comment for the test that this only means anything on Python 3.8+. As you can probably tell, this library isn't in wide use so I don't see any reason to remove the Python 2 support, but I won't necessarily go out of my way to support Python 2. My general opinion is that it's been long enough to let it die. Glad you found the library helpful, and thanks for contributing! |
I'm honestly not sure 馃 That's great, for the unit tests. Would you be happy for me to test with BinaryLibrary = namedlist('BinaryLibrary', ['_id', 'name', 'objects'], default=None) or would that be a little too high level? As far as python2 goes, I have personally tried to purge every trace of it to no avail as its still in a range of Linux distros. But clearly not everyone wishes to trouble themselves to that extent Just for reference, here is the stack trace
|
馃憤 That's fine with me! |
That's great. That can be my job tomorrow |
Fixes #3 ## Tasks - [x] Fix _make_fn for python 3.8+ (pypdn.namedlist._make_fn()) - [x] Test namedList for python 3.8+ (tests.test_namedlist.test_repr_basic_py3_8) ## Differences to proposed solution - This patch maintains python 2 compatibility - Respected source formatting (spaces and indent levels) Any issues please let me know
Thanks for an absolutely brilliant project. And thanks for dumping it on
pypi.org so I can have a play around with it!
Unfortunately, ast has changed some of its function signatures 馃槧 which has
lead to an incompatibility with python3.8
I thought it may be worth contributing the patch, since I am using this in one
of my projects (note, I have dropped support for python2 as my project isn't
compatible with that)
The question is, can I make a pull request with this? Of course, I will keep the
python2 compatible element as I'm aware that it's still quite widely used.
Thanks very much for your time
The text was updated successfully, but these errors were encountered: