Neal Becker wrote:
> (Or, help me understand, what is the difference between a type that I create
> using python C api and a python class?)

Classes that you create in Python have a __dict__ attribute
holding a dictionary for arbitrary attributes to go in.

Most types defined in C don't bother providing a __dict__,
since one doesn't normally need to add arbitrary
attributes to them, and the overhead would be almost
completely wasted.

-- 
Greg
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to