listing the type of an object

Neil Cerutti horpner at yahoo.com
Thu Jun 28 14:23:35 CEST 2007


On 2007-06-28, Bruno Desthuilliers <bruno.42.desthuilliers at wtf.websiteburo.oops.com> wrote:
> Stef Mientki a écrit :
>> How can I list a type of an object instance ?
>> 
>> I tried:
>> 
>> class tLED (tDevice):
>
><ot>
> Do yourself (and the world) a favour and give up hungarian notation... 
> This should be:
>
> class Led(Device):
>     #...

Using a naming convention for class objects, e.g., camel-case, is
a practice very similar to hungarian notation.

I would've said something like: start learning the Python
community's naming conventions, and use those instead of
inventing your own.

-- 
Neil Cerutti
It will work out, somehow. That's a hell of a duo right there, Marbury,
Crawford and Houston. --Carmelo Anthony



More information about the Python-list mailing list