"Fredrik Lundh" <[EMAIL PROTECTED]> writes:
> > Oh, same difference.  I thought it was a method because I'm not using
> > 2.4 yet.  The result is the same
> 
> nope.  sorted works on any kind of sequence, including forward-only
> iterators.  sorted(open(filename)) works just fine, for example.

Oh cool.  However I meant the result is the same in my example, where
assigning the temporary result to a variable stopped memory from
getting reclaimed until after the function exits.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to