[Python-3000] gettype (original) (raw)
Andrew Koenig ark-mlist at att.net
Wed Aug 2 06:56:18 CEST 2006
- Previous message: [Python-3000] gettype
- Next message: [Python-3000] Rounding in Py3k
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From a code style perspective, I've always felt that the magical underscore names should not be referred to ouside of the class implementing those names. The double underscores are an indication that this method or property is in most normal use cases referred to implicitly by use rather than explicitly by name; Thus str() invokes str and so on.
Haven't we seen this argument somewhere before? :-)
(needless to say, I'm in agreement with it in this context too)
- Previous message: [Python-3000] gettype
- Next message: [Python-3000] Rounding in Py3k
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]