Python is readable

Thomas Rachel nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa915 at spamschutz.glglgl.de
Thu Mar 15 12:14:28 CET 2012


Am 15.03.2012 11:44 schrieb Kiuhnm:

> Let's try that.
> Show me an example of "list comprehensions" and "with" (whatever they are).

with open("filename", "w") as f:
     f.write(stuff)


with lock:
     do_something_exclusively()


Thomas



More information about the Python-list mailing list