sorted (WAS: lambda)
Paul Rubin
http
Thu Jan 13 14:18:17 EST 2005
More information about the Python-list mailing list
Thu Jan 13 14:18:17 EST 2005
- Previous message (by thread): Refactoring; arbitrary expression in lists
- Next message (by thread): Dabo Windows Runtime 0.3 Available
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"Fredrik Lundh" <fredrik at pythonware.com> 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.
- Previous message (by thread): Refactoring; arbitrary expression in lists
- Next message (by thread): Dabo Windows Runtime 0.3 Available
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list