I created a simple class in Python as follows,
from UserDict import UserDict
class Person(UserDict):
def __init__(self,personName=None):
UserDict.__init__(self)
self["name"]=personName
In another module I try to instantiate an object of class Person and print its doc and class attributes:
import Person
p = Person.Person("me")
print p.__doc__
print p.__class__
It bothers me to think that doc and class are not in the list of attributes of an instantiated object when I use content assist in Eclipse:
Why does this happen? In Java, Eclipse shows the complete list of attributes and methods and this helps me a lot in development sometimes when I don't want to look at the Java Docs. I just figure things out using content assist.