Leopold Toetsch wrote:

Python classes are not namespaces. Nor are they global. They are dictionaries.

Or, the view is a dictionary-like. The dict is CPython's implementation. I can imagine that Parrot's class namespaces work as well.

Are namespaces subject to garbage collection? Classes may be created on the fly in Python, and disapear just as quickly.


Take a look at the last test in parrot/languages/python/t/basic/oo_class.t to get an idea of what I am talking about.

Well, that just depends on how you implement attribute access, as far as I can see.

In the example, two objects with the same class have different implementations of a given method.


Furthermore, every assignment to any property of any instance has the potential of invalidating whatever caches you may have.

- Sam Ruby

Reply via email to