[Python-Dev] Python FAQ: Why doesn't Python have a "with" statement?

Cesare Di Mauro cesare at pronto.it
Sat Jun 14 22:19:49 CEST 2008

In data 14 giugno 2008 alle ore 22:09:28, Guilherme Polo <ggpolo at gmail.com> ha scritto:

>>  on Tkinter:
>>    on ScrolledText.ScrolledText(master, width=60, height=37):
>>      insert(END, self.log.getText())
>>      configure(state=DISABLED)
>>      see(END)
>>      pack(fill=BOTH)
> Then you have to start guessing from where these names came from.

The same happens with:

from Tkinter import *

which is a fair common instruction...

P.S. Object hierarchy can be a knightmare with or without the new instruction: it's a matter of programmer's knowledge base.

Cesare Di Mauro

More information about the Python-Dev mailing list