Changes between Initial Version and Version 42 of Ticket #14772


Ignore:
Timestamp:
07/19/13 16:48:04 (7 years ago)
Author:
tscrim
Comment:

I hacked around it:

if n > 0:
    return iter(PatternAvoider(self, self._p))
return iter([self.element_class(self, [])])

it's a python issue that putting a yield in the function makes it into a generator, which can't return anything at all, including iterators. This makes sense because python a priori doesn't know that it will be an iterator; plus the can of worms whether it should continue the iteration from that point with that iterator.

All combined and back to you Darij.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #14772

    • Property Status changed from new to needs_review
    • Property Cc zabrocki nthiery added
    • Property Dependencies changed from to #8386 #14519 #14808
  • Ticket #14772 – Description

    initial v42  
    11Part of #12913.
     2
     3----
     4
     5Apply: [attachment:trac_14772-remove_cc_permutations-ts.patch]