Re: Organizing code - import question

2007-05-03 Thread Carlos Hanson
TECTED] > http://web.bryant.edu/~bblais It looks like you need __init__.py in MyPackage. Then you can import starting with MyPackage. For example, you might use one of the following: import MyPackage from MyPackage.Common import * etc -- Carlos Hanson -- http://mail.python.org/mailman/listinfo/python-list

Re: Organizing code - import question

2007-05-04 Thread Carlos Hanson
On 5/3/07, Brian Blais <[EMAIL PROTECTED]> wrote: > Carlos Hanson wrote: > > It looks like you need __init__.py in MyPackage. Then you can import > > starting with MyPackage. For example, you might use one of the > > following: > > > > import MyPac

Re: ftplib acting weird

2007-05-07 Thread Carlos Hanson
b.py", line 170, in putline > self.sock.sendall(line) > AttributeError: 'NoneType' object has no attribute 'sendall' > [EMAIL PROTECTED] ftpsync]# > > *** > > When I copy the same piece of scripting and run it from the python > command shell, i