This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eggy
Recipients eggy
Date 2009-12-19.19:26:11
SpamBayes Score 2.3250301e-07
Marked as misclassified No
Message-id <1261250773.36.0.925954913531.issue7548@psf.upfronthosting.co.za>
In-reply-to
Content
>>> list(*('boo' for x in [1]))
['b', 'o', 'o']
>>> list(*(range('error') for x in [1])) # notice the erroneous error 
message
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: type object argument after * must be a sequence, not 
generator
>>> list(*[range('error') for x in [1]])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: range() integer end argument expected, got str.
>>> list(*(int('error') for x in [1])) # does work correctly for 
ValueError
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<stdin>", line 1, in <genexpr>
ValueError: invalid literal for int() with base 10: 'error'
History
Date User Action Args
2009-12-19 19:26:13eggysetrecipients: + eggy
2009-12-19 19:26:13eggysetmessageid: <1261250773.36.0.925954913531.issue7548@psf.upfronthosting.co.za>
2009-12-19 19:26:11eggylinkissue7548 messages
2009-12-19 19:26:11eggycreate