I just noticed that sunaudio was never broken out as a separate module
to remove in PEP 3108. It is mentioned in the rationale of audiodev to
remove if audiodev itself is taken out.
I assume no one objects to sunaudio's removal, but I just wanted to
double-check as it was not explicitly made its o
Terry Reedy wrote:
To me, it is more important that list(genexp) == corresponding_listcomp
than that the definition of genexp be minimal.
Then listcomps would also have to catch StopIterations
and transmute them correspondingly.
This seems like a lot of trouble to go to in order to
fix a rath
Python 3.0a5 (r30a5:62856, May 10 2008, 10:34:28)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> def f(x):
... if x > 5: raise StopIteration
...
>>> [x for x in range(100) if not f(x)]
Traceback (most recent call last):
F
Stefan Behnel wrote:
Raymond Hettinger wrote:
I know this group doesn't care about Psyco, but it was
nice that psyco could handle listcomps just like it could with
regular for-loops. Turning it into a genexp stops psyco in its tracks.
List/set/dict comprehensions in Py3k now have the same lex