Add methods to int?

Peter Otten __peter__ at
Wed Jun 16 20:25:34 CEST 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


More information about the Python-list mailing list