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 belopolsky
Recipients belopolsky, benjamin.peterson, rhettinger, wrichert
Date 2009-11-05.18:57:33
SpamBayes Score 4.0192528e-05
Marked as misclassified No
Message-id <1257447455.52.0.29105584299.issue7212@psf.upfronthosting.co.za>
In-reply-to
Content
I don't want to pollute python-dev with more hopeless ideas, but I wonder 
if itertools could grow an efficient C-implemented

def first(collection):
   return next(iter(collection))

On the other hand, it probably belongs to recipes more than stdlib.  This 
is not really an iterator tool after all.
History
Date User Action Args
2009-11-05 18:57:35belopolskysetrecipients: + belopolsky, rhettinger, benjamin.peterson, wrichert
2009-11-05 18:57:35belopolskysetmessageid: <1257447455.52.0.29105584299.issue7212@psf.upfronthosting.co.za>
2009-11-05 18:57:34belopolskylinkissue7212 messages
2009-11-05 18:57:33belopolskycreate