-
-
Notifications
You must be signed in to change notification settings - Fork 481
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
Prepare for updating Cython to 3.0.0 #36109
Merged
Merged
Changes from all commits
Commits
Show all changes
54 commits
Select commit
Hold shift + click to select a range
0eda50b
rename __cached_methods -> _cached_methods
infmagic2047 f757334
rename __init_fun -> _init_fun
infmagic2047 65345ca
rename __value -> _value
infmagic2047 6ec8415
rename __hardy_z_function -> _hardy_z_function
infmagic2047 07062aa
rename __compute_rank -> _compute_rank
infmagic2047 7c7eab4
rename __typedN -> _typedN
infmagic2047 1f0654f
rename __find_zeros_v -> _find_zeros_v
infmagic2047 88823c6
rename __find_zeros -> _find_zeros
infmagic2047 bfe4218
rename __is_exchange_pair -> _is_exchange_pair
infmagic2047 c8fded5
rename __exchange -> _exchange
infmagic2047 49a6a8f
rename __exchange_value -> _exchange_value_internal
infmagic2047 8f9f7c0
rename __coclosure -> _coclosure_internal
infmagic2047 a91aac3
rename __pack -> _pack
infmagic2047 573d085
rename __move -> _move
infmagic2047 7c56ec5
rename __modulus -> _modulus
infmagic2047 03e6b0b
rename __normalize -> _normalize
infmagic2047 bb94714
rename __coeffs -> _coeffs
infmagic2047 a59885c
rename __ngens -> _ngens
infmagic2047 5caf2ca
rename __ideal_monoid -> _ideal_monoid
infmagic2047 230ebf8
rename __allocated -> _allocated
infmagic2047 6c39b64
rename __denominator -> _denominator
infmagic2047 10b7918
rename __numerator -> _numerator
infmagic2047 3517dde
rename __temporarily_change_names -> _temporarily_change_names
infmagic2047 826c430
rename __term_order -> _term_order
infmagic2047 251d36b
rename __custom_name -> _custom_name
infmagic2047 252f0bb
rename __crt -> _crt
infmagic2047 75f522d
rename __is_gen -> _is_gen
infmagic2047 2ee4332
rename __subset -> _subset_internal
infmagic2047 8386b4e
rename __relabel -> _relabel
infmagic2047 d799994
rename __fld_denominator -> _fld_denominator
infmagic2047 dedfbf7
rename __fld_numerator -> _fld_numerator
infmagic2047 117880c
rename __prec -> _prec
infmagic2047 fddd81b
rename __poly -> _poly
infmagic2047 66def0d
fix private methods used in doctests
infmagic2047 297a1ec
fix string representations of ClusterComplex and SubwordComplex
infmagic2047 01075fc
fix docs about renamed attributes
infmagic2047 5e7e1ba
avoid naming cython attributes __module__
infmagic2047 eaae799
force __getmetaclass__ to be a METH_NOARGS method
infmagic2047 9660827
fix structmember.h defines in cython 3
infmagic2047 6820d2a
avoid StopIteration in generators
infmagic2047 33eb23e
remove coxeter CoxGraph which fails to compile with cython 3
infmagic2047 bfd17cc
handle StopIteration in lazy_list_from_function
infmagic2047 878c1f7
adapt for Cython 3 module names in inspection
infmagic2047 1f90bce
remove __rtruediv__ definitions which fail to compile with Cython 3
infmagic2047 f8e84be
ensure correct caching for no-args methods not having METH_NOARGS
infmagic2047 23791f1
update docs about __getmetaclass__
infmagic2047 0c4d1de
fix detection of functions for session saving
infmagic2047 0e2164e
fix pickling of class methods
infmagic2047 4641801
fix cython metaclass Sage_PyType_Ready
infmagic2047 1c4a223
remove python 2 compat code in pickleMethod and unpickleMethod
infmagic2047 08ddad9
rephrase comments in cython_metaclass.h
infmagic2047 d819017
small changes to custom names
infmagic2047 fd38365
make custom name attribute private to SageObject
infmagic2047 4b85613
fix test failures
infmagic2047 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this a bugfix or a performance hack? If the former, what happens if
always_allow_keywords(False)
is not used?For the record, this commit (55b088a) is only changing documentation and doctests, the actual change happens in
src/sage/structure/element.pyx
in commit 7e011a7, which is the only place where this metaclass magic is used in sagemath.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code currently requires a
METH_NOARGS
method (insrc/sage/cpython/cython_metaclass.h
), and this is the way make one in Cython 3. Not having this results in the errorPyMethodDescr_CallSelf requires a method without arguments
. I think the code could be changed to handle other types of methods, but I did not look deeper into that.Relevant Cython changelog item: