#18378: list(ZZ) --> infinite loop
-------------------------+-------------------------------------------------
Reporter: | Owner:
ncohen | Status: needs_review
Type: | Milestone: sage-6.7
defect | Resolution:
Priority: major | Merged in:
Component: basic | Reviewers:
arithmetic | Work issues:
Keywords: | Commit:
Authors: | 9ba72b347c17cf60cd7d5f0f7cda9185c33f9fa0
Nathann Cohen | Stopgaps:
Report Upstream: N/A |
Branch: |
public/18378 |
Dependencies: |
-------------------------+-------------------------------------------------
Description changed by ncohen:
Old description:
> For some reason, `list(something)` breaks if `__len__` raises a
> `NotImplementedError`, but `__len__` is ignored if a `TypeError` is
> returned.
>
> Python....
>
> As `len(NN)` already raises a `NotImplementedError` I just copied the
> behaviour.
>
> Nathann
New description:
For some reason, `list(something)` breaks if `__len__` raises a
`NotImplementedError`, but a `TypeError` is ignored.
Python....
As `len(NN)` already raises a `NotImplementedError`, I just copied the
behaviour.
Nathann
--
--
Ticket URL: <http://trac.sagemath.org/ticket/18378#comment:3>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.