__dict__ attribute for built-in types

candide candide at free.invalid
Thu Oct 27 19:36:41 EDT 2011


Le 28/10/2011 00:57, Hrvoje Niksic a écrit :

> was used at class definition time to suppress it.  Built-in and
> extension types can choose whether to implement __dict__.
>

Is it possible in the CPython implementation to write something like this :

"foo".bar = 42

without raising an attribute error ?



More information about the Python-list mailing list