On Dec 12, 7:34 am, sturlamolden <[EMAIL PROTECTED]> wrote:
> On 12 Des, 04:45, "Terry Reedy" <[EMAIL PROTECTED]> wrote:
>
> > Python 3 will have optional 'type' annotations, where 'type' includes
> > abstract base classes defined by the interface (methods).  So parameters
> > could be annotated as a Number or Sequence, for instance, which is more
> > useful often than any particular concrete type.  I strongly suspect that
> > someone will use the annotations for compilation, which others will use
> > them just for documentation and whatever else.
>
> I am not sure why a new type annotation syntax was needed Python 3:

Because people care about a feature when there is @syntax. Introducing
syntax in Python is also the way of standardization: not everyone
creates his own informal application level annotation syntax when
there is one and only one recommended way of using annotations.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to