extraneous import statements needed

Delaney, Timothy tdelaney at avaya.com
Tue May 7 22:34:03 EDT 2002


> From: Jeff Davis [mailto:jdavis at empires.org]
> 
> I created a module that is essentially one big class. At the 
> top I have a 
> group of import statements (outside the class). Within my 
> methods I call 
> functions such as string.split(). However, I get strage error 
> messages 
> about "type None does not have attribute split" or something similar 
> (always thinks that the module name is instead a None object). 

Check if anywhere you are assigning to "string" ...

Tim Delaney





More information about the Python-list mailing list