Moshe Zadka writes:
> As long as you're breaking things anyway, let me suggest one change:
> have the "Gtk" prefix stripped from the classes' names (GtkText -> Text,
> etc) and recommend that Gtk is imported via
[...]
I think (but am not sure) that James meant there would be *some*
breakage, not *lots* of breakage.
As it stands, my PyGTK code always does:
import gtk
w = gtk.GtkWindow() # or whatever
...
I don't mind the leading Gtk prefix, but wouldn't mind seeing it go,
either. If the expected breakage isn't too bad, I'd keep it as-is.
What I *really* want to see go is code that does
from <module> import *
for any value of <module>. This just makes code hard to read. Short,
lowercase module names are always best, and they can really make the
code more readable. There should be no recommendation that the
"import *" form be used (same for Tkinter, which should be named tk
or, at worst, Tk).
So there. ;)
-Fred
--
Fred L. Drake, Jr. <fdrake at acm.org>
Corporation for National Research Initiatives
-
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]