-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
2to3 #625
Merged
Merged
2to3 #625
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Previously those would be ignored, but now they generate a warning: ... deap/cma.py:279 /home/zbyszek/python/deap/deap/cma.py:279: DeprecationWarning: invalid escape sequence '\l' """Generate a population of :math:`\lambda` individuals of type ... Not duplicating backslashes makes writing tex much nicer, so let's use r''.
/home/zbyszek/python/deap/deap/tools/emo.py:629: DeprecationWarning: `np.bool` is a deprecated alias for the builtin `bool`. To silence this warning, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here. Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations available = numpy.ones(len(individuals), dtype=numpy.bool)
it would be nice to have this in a release |
And it seems to work well |
Is DEAP project alive ? |
Just installed this and it solved the problems I was experiencing. Hope this gets merged soon. Kudos for the splendid work! |
Reviving this, 22/29 completed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Python3.11 dropped support for 2to3, so its use in setup.py creates problems during installation.
This patchset rewrites the code (using 2to3 as the base) to python3 and does some minor
cleanups on the way.
All warnings are eliminated.