Add methods to int?

Peter Otten __peter__ at web.de
Wed Jun 16 14:25:34 EDT 2004


Reinhold Birkenfeld wrote:

> So why does "print int.__dict__" produce a value?

Because I was wrong, I suppose. Anyway, there is code in descrobject.c that
wraps a dictionary/sequence type to ensure that it is readonly.
As to why it doesn't show up in dir() and why it is read-only, I have no
idea.

Peter




More information about the Python-list mailing list