-
-
Notifications
You must be signed in to change notification settings - Fork 553
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
don't use the deprecated 'new' module #11819
Comments
comment:1
Attachment: trac_11819-no-new.patch.gz |
comment:2
It appears I added some uses of 'new' in #11716. So your patch doesn't apply anymore. I'm trying to do something about it now. |
Reviewer: Julian Rueth |
comment:3
I made some additional changes. Feel free to set it to positive review if you're ok with these. |
comment:5
Btw. I'll add doctests to the new functions in #12192. |
comment:6
Apply trac_11819_review.patch |
This comment has been minimized.
This comment has been minimized.
comment:7
The doctest
fails for me. It might be imported by IPython; if I do
Or more tersely:
|
Attachment: trac_11819_review.patch.gz combined and rebased patch |
comment:8
You are right. I must have run the wrong patch somehow. Sorry for that. I adapted my patch. I it works now. |
Changed keywords from none to sd35 |
Merged: sage-5.0.beta1 |
The Python module 'new' is deprecated and has been removed in Python 3.0, so since it's not hard to avoid it, we shouldn't use it. The attached patch removes all imports of 'new', tested with
The file new.py (in
SAGE_ROOT/local/lib/python/
) contains code likeso we just have to replace
with
Apply
to the sage repository
Component: pickling
Keywords: sd35
Author: John Palmieri
Reviewer: Julian Rueth
Merged: sage-5.0.beta1
Issue created by migration from https://trac.sagemath.org/ticket/11819
The text was updated successfully, but these errors were encountered: