Is a "real" C-Python possible?

Kay Schluehr kay.schluehr at gmx.net
Wed Dec 12 02:18:09 EST 2007


On Dec 12, 7:34 am, sturlamolden <sturlamol... at yahoo.no> wrote:
> On 12 Des, 04:45, "Terry Reedy" <tjre... at udel.edu> 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.



More information about the Python-list mailing list