[Tutor] file i.o

"Jörg Wölke" lumbricus at gmx.net
Sun Jan 25 11:45:30 EST 2004


Hola!
 
> On Jan 25, 2004, at 2:51 AM, Kim Branson wrote:
[ snip ]

> > matching module functions. the module.function() syntax could get a=20
> > bit tedious, or is that part of the python way?
> 
> Actually, it is. But if you want to save yourself some typing, you can=20=

Well, there are modules said to be safe for doing "from xyz import *":
Tkinter for example. Just be sure your module contains only methods
garanteed to have unique names.
 
> always do:
> 
> import MyReallyLongModuleName as my
> 
> That way, you can refer to my.function1(), my.function2(), etc.

[ snip ]
 
> HTH,
> Don=

Dito and Greets, J"o!


-- 
Sie dürfen diesen Satz zitieren.

+++ GMX - die erste Adresse für Mail, Message, More +++
Bis 31.1.: TopMail + Digicam für nur 29 EUR http://www.gmx.net/topmail




More information about the Tutor mailing list