En Tue, 19 Jun 2007 21:57:30 -0300, BJörn Lindqvist <[EMAIL PROTECTED]>  
escribió:

> It's not true that the sort must complete (or that the whole file must
> be read for that matter), Python has cool generators which makes the
> above possible.

That's not possible, the input must be read completely before sorted() can  
output anything. Suppose the minimum element is at the end - until you  
read it, you can't output the very first sorted element.

-- 
Gabriel Genellina

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to