Itertools wishlists
Ville Vainio
ville at spammers.com
Mon Mar 14 14:30:17 EST 2005
>>>>> "Raymond" == Raymond Hettinger <vze4rx4y at verizon.net> writes:
Steven> complex atomicity test). I also have the feeling that any
Steven> complicated atomictiy test is more than a simple and-ing
Steven> of several tests...
Raymond> "Ville Vainio"
>> I also have the feeling that if the atomicity criterion was any
>> more complex in the API, the proposal would be shot down
>> immediately on the grounds of not being fundamental enough as
>> concept.
Raymond> Would this meet your needs?
Raymond> def flatten(iterable, atomic_iterable_types=(basestring,)):
Yes, completely.
--
Ville Vainio http://tinyurl.com/2prnb
More information about the Python-list
mailing list