__dict__ attribute for built-in types
Chris Angelico
rosuav at gmail.com
Thu Oct 27 18:39:34 EDT 2011
On Fri, Oct 28, 2011 at 1:36 AM, Duncan Booth
<duncan.booth at invalid.invalid> wrote:
> Try thinking that one through. Imagine you could set up a dictionary the
> way you describe
>
> A dict with itself as its own __dict__ becomes like a javascript object
> where subscripting and attribute access are mostly interchangeable.
Yeah; I never said it was a good thing, just that it's possible.
"Everything is permissible" - but not everything is beneficial.
"Everything is permissible" - but not everything is constructive. (1
Corinthians 10:23, NIV translation.)
ChrisA
More information about the Python-list
mailing list