On 5/19/06, Collin Winter <[EMAIL PROTECTED]> wrote:
> B.__parameterize__ will only be called in the case of B[x] (as opposed
> to B()[x]).

new-style classes (the ones sticking around for python 3) are also instances.

    >>> isinstance(dict, type) and isinstance(dict, object)
    True

How can the interpreter know which interpretation to use?

When proposing a rule, remember to consider classes which are supposed
to have only a single instance (similar to a JSP).  Even if you
normally separate classes from instances, the line between "class" and
"the only instance of the class" can get kind of blurry.

-jJ
_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to