class problem, NoneType obj has no attribute

globalrev skanemupp at yahoo.se
Fri May 16 09:04:16 EDT 2008


On 16 Maj, 13:54, Peter Otten <__pete... at web.de> wrote:
> Christian Heimes wrote:
> > globalrev schrieb:
> >> cust1 = customer.__init__('12',['1','435','2332'])
>
> > cust1 = customer('12',['1','435','2332'])
>
> ... and before that
>
> from customer import customer
>
> Peter

why do i have to write that?

if i do import customer im importing everything no?

but youre right it doesnt work unless i do, i just dont get why.



More information about the Python-list mailing list