Ticket #10470: trac_10470-referee-doc.patch

File trac_10470-referee-doc.patch, 924 bytes (added by jhpalmieri, 10 years ago)

apply on top of other patch

  • sage/structure/parent.pyx

    # HG changeset patch
    # User J. H. Palmieri <palmieri@math.washington.edu>
    # Date 1300910500 25200
    # Node ID 8e4982d972cb5e788833092cea197a5ce849422f
    # Parent  d60c4a0bb2b2bd7f3d18ef252ab1eede21ca31cd
    #10470: document the fact that list(X) doesn't work as well as X.list().
    
    diff -r d60c4a0bb2b2 -r 8e4982d972cb sage/structure/parent.pyx
    a b  
    10741074            Traceback (most recent call last):
    10751075            ...
    10761076            NotImplementedError
     1077
     1078        Note that if an object ``X`` is infinite, then running
     1079        ``X.list()`` will raise an appropriate error, while running
     1080        ``list(X)`` will run indefinitely.  For many Sage objects
     1081        ``X``, using ``X.list()`` is preferable to using ``list(X)``.
    10771082        """
    10781083        try:
    10791084            if self._list is not None: