Ticket #12518: trac_12518-enumerated_set_from_iterator-final_fix.patch

File trac_12518-enumerated_set_from_iterator-final_fix.patch, 685 bytes (added by Vincent Delecroix, 10 years ago)
  • sage/sets/set_from_iterator.py

    # HG changeset patch
    # User Vincent Delecroix <20100.delecroix at gmail.com>
    # Date 1354870759 -3600
    # Node ID 94fbd0b48674b721facb125a7901ba42978a802d
    # Parent  d75b78e10e769cf6fb46b5ce36c545e28765f3ae
    trac 12518: fix __init__ method
    
    diff --git a/sage/sets/set_from_iterator.py b/sage/sets/set_from_iterator.py
    a b  
    769769            sage: [x for x in a.f(6)]            # indirect doctest
    770770            [0, 1, 2, 3, 4, 5]
    771771        """
    772         if self.inst:
     772        if self.inst is not None:
    773773            args = (self.inst,) + args
    774774        if self.name:
    775775            if isinstance(self.name,str):