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
useless __list__ methods #2626
Comments
fixes the issue for crypto.mq |
Attachment: crypto_mq__list__.patch.gz fixes the issue for elliptic curve points over fields |
Attachment: ellpoint__list__.patch.gz Attachment: morphism__list__.patch.gz |
comment:1
The attached patches remove all PS: I refuse to write a doctest for |
comment:2
Nice patches, all the doctests pass [with known exception]. malb is correct in skipping doctests for Cheers, Michael |
comment:3
Merged in Sage 2.11.alpha1 |
Sage 2.10.4 contains 5
__list__
methods, which are never called. Apparently the authors of these methods thought that list(x) would callx.__list__()
, but it does not; the Python source code contains no instance of the string "__list__
".list(x) does call
x.__iter__()
, which is how the doctests on these methods manage to work.The methods should be removed, so as not to mislead future developers into thinking they do something.
Component: misc
Issue created by migration from https://trac.sagemath.org/ticket/2626
The text was updated successfully, but these errors were encountered: