[Python-Dev] introducing dir? (original) (raw)
Fred L. Drake, Jr. fdrake at acm.org
Thu Jul 6 19:41:56 CEST 2006
- Previous message: [Python-Dev] introducing __dir__?
- Next message: [Python-Dev] introducing __dir__?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Thursday 06 July 2006 13:22, tomer filiba wrote:
my suggestion is simple -- replace this mechanism with a dir - a special method that returns the list of attributes of the object.
rationale:
- remove deprecated methods, etc.
- symmetry -- just like hex() calls hex, etc.
- methods and members are lists rather than callable objects, which means they cannot be updated on-demand
+1
-Fred
-- Fred L. Drake, Jr.
- Previous message: [Python-Dev] introducing __dir__?
- Next message: [Python-Dev] introducing __dir__?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]