Re: Python crashed when importing SOAPpy, printing out 'usage:copy source destination'

2006-10-28 Thread [EMAIL PROTECTED]
Fredrik Lundh wrote: > [EMAIL PROTECTED] wrote: > > > I still can't understand it. If i rename the 'copy.py' to 'a.py', > > there will be no problem. > > hint: when it works, try typing the following into the interpreter: > > >>> import copy > >>> copy.__file__ > > I know, the copy modu

Re: Python crashed when importing SOAPpy, printing out 'usage:copy source destination'

2006-10-28 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > I still can't understand it. If i rename the 'copy.py' to 'a.py', > there will be no problem. hint: when it works, try typing the following into the interpreter: >>> import copy >>> copy.__file__ -- http://mail.python.org/mailman/listinfo/python-list

Re: Python crashed when importing SOAPpy, printing out 'usage:copy source destination'

2006-10-28 Thread [EMAIL PROTECTED]
Fredrik Lundh wrote: > > this is how things work: Python doesn't distinguish between script > files and module files; a module is simply a script that defines a > bunch of things. > > if you want to create something that can work both as a script and a > module, see: > > http://effbot.org/pyfa

Re: Python crashed when importing SOAPpy, printing out 'usage:copy source destination'

2006-10-28 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > when i import SOAPpy, the python crashed and print out 'usage:copy > source destination'. > As follows: > > haiyun# python > Python 2.4.1 (#2, Mar 28 2006, 21:00:14) > [GCC 3.4.2 [FreeBSD] 20040728] on freebsd5 > Type "help", "copyright", "cr