On 8/15/06, Greg Ewing <[EMAIL PROTECTED]> wrote:
Paul Prescod wrote:
> What if
> two different groups start fighting over the keyword "type" or "doc" or
> "lock"? Python already has a module system that allows you to use the
> word "type" and me to use the word "type" without conflict

But, in general, performing this disambiguation requires
executing the module that is making the annotations. For
a processor that only wants to deal with the source, this
is undesirable.

This is true for every proposal we've described. Proposal 1 is:

Foo(int)
Bar(module.type1)

Proposal two is:

{"Foo": int,
"Bar": module.type1 }

In either case, "int" and "module.type1" can be rebound. To say otherwise is to change Python's evaluation model drastically.

>>> int = None
>>> float = file
>>>

Once you accept Python's dynamism, it makes sense to accept it both for the annotation "key" as for the "value". If you can convince Guido and the rest of the Python-dev team to reject it, then you can reject it for both equally. So the issue is a red herring.

 Paul Prescod

_______________________________________________
Python-3000 mailing list
Python-3000@python.org
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