Re: Package vs. module

2006-12-16 Thread Gabriel Genellina
On 16 dic, 12:28, "Stuart D. Gathman" <[EMAIL PROTECTED]> wrote: > NOW, this is all very nice and modular. BUT, the original module was a > single file, which could be run as a script as well as imported as a > module. The script features provided useful command line functionality. > (Using if __n

Package vs. module

2006-12-16 Thread Stuart D. Gathman
On Mon, 11 Dec 2006 20:59:27 -0300, Gabriel Genellina wrote: > The above code *almost* works, but DNSLookup is a local name inside > the function. Use the global statement. > As an example, see how getpass.py (in the standard library) manages > the various getpass implementations. Ok, I have a