No "side effect" assignment!
Sean Ross
sross at connectmail.carleton.ca
Sun Sep 14 19:48:08 EDT 2003
More information about the Python-list mailing list
Sun Sep 14 19:48:08 EDT 2003
- Previous message (by thread): No "side effect" assignment!
- Next message (by thread): No "side effect" assignment!
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"Tobiah" <toby at rcsreg.com> wrote in message news:0fbc28ebd2ba4810db3efef3a29f990a at news.teranews.com... > Ok, > > I miss the idiom that my other languages use, > something like: > > > while( foo = getmore()){ > process(foo); > } > [snip] If you must use assignments in expressions, you might find the following recipes useful: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/202234 http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/66061
- Previous message (by thread): No "side effect" assignment!
- Next message (by thread): No "side effect" assignment!
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list