Faling Dutchman writes:

> I am just starting off in python, but have good knowledge of both Java
> and C#. Now is the problem that I need to have multiple instances of

...

> it prints: <__main__.Item object at 0x02EBF3B0>
>
> So that is not usefull to me. There can be an infinite amount of

...

> and it has to show all the parameters of the class Item and not say
> "ive got an object at this memory address, have a nice day"

Others have now told you that your class has a special method that
defines the string representation of instances. What you are seeing is
the default. You can specify your own.

I just want to add that Java does it the same way. Surely this hasn't
changed? (I've never known C#, so no comment on that.)
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to