huh? Python says that AttributeError: 'string' object has no attribute 'split'
Anthony J Wilkinson
anthony at dstc.edu.au
Wed Apr 26 05:37:52 EDT 2000
On Wed, 26 Apr 2000 schmitthead at my-deja.com wrote:
[...]
> Traceback (innermost last):
[...]
> File "C:\bin\mac2dos.py", line 9, in mac2dosfile
> lines = myline.split( myline, chr(10) )
> AttributeError: 'string' object has no attribute 'split'
[...]
> lines = myline.split( myline, chr(10) )
The above should be:
lines = string.split(myline, chr(10))
Regards,
Anthony
More information about the Python-list
mailing list