extraneous import statements needed

David Bolen db3l at fitlinxx.com
Wed May 8 17:13:35 EDT 2002


Jeff Shannon <jeff at ccvcorp.com> writes:

> Another possible source of this error, considering the 
> implementation of string.split(), is that you're actually passing 
> in a None as the argument.  The code for string.split() is 
> basically this:
> 
> ### in module string.py ###
> def split(s):
>     return s.split()

Good point - assuming that the OP is using Python 2.0 or greater
(well, probably 1.6 or greater).  It's not true for Python 1.5.2, but
I don't think the interpreter version was initially mentioned.

It should be easy enough to distinguish the two by the traceback,
since if this was the problem, the traceback should point to the
library module and not to the user's own code.

--
-- David
-- 
/-----------------------------------------------------------------------\
 \               David Bolen            \   E-mail: db3l at fitlinxx.com  /
  |             FitLinxx, Inc.            \  Phone: (203) 708-5192    |
 /  860 Canal Street, Stamford, CT  06902   \  Fax: (203) 316-5150     \
\-----------------------------------------------------------------------/



More information about the Python-list mailing list