ASPN ActiveState Programmer Network
  ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups | Web Services
SEARCH
advanced | search help

Reference
ActivePython 2.4
Python Documentation
Library Reference
2. Built-In Objects
2.3 Built-in Types
2.3.1 Truth Value Testing
2.3.2 Boolean Operations -- and, or, not
2.3.3 Comparisons
2.3.4 Numeric Types -- int, float, long, complex
2.3.5 Iterator Types
2.3.6 Sequence Types -- str, unicode, list, tuple, buffer, xrange
2.3.7 Set Types -- set, frozenset
2.3.8 Mapping Types -- classdict
2.3.9 File Objects
2.3.10 Other Built-in Types
2.3.11 Special Attributes

MyASPN >> Reference >> ActivePython 2.4 >> Python Documentation >> Library Reference >> 2. Built-In Objects >> 2.3 Built-in Types
ActivePython 2.4 documentation


2.3.11 Special Attributes

The implementation adds a few special read-only attributes to several object types, where they are relevant. Some of these are not reported by the dir() built-in function.

__dict__
A dictionary or other mapping object used to store an object's (writable) attributes.

__methods__
Deprecated since release 2.2. Use the built-in function dir() to get a list of an object's attributes. This attribute is no longer available.

__members__
Deprecated since release 2.2. Use the built-in function dir() to get a list of an object's attributes. This attribute is no longer available.

__class__
The class to which a class instance belongs.

__bases__
The tuple of base classes of a class object. If there are no base classes, this will be an empty tuple.

__name__
The name of the class or type.
See About this document... for information on suggesting changes.

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState 2004 All rights reserved