PEP 3107 and stronger typing (note: probably a newbie question)
Eduardo "EdCrypt" O. Padoan
eopadoan at altavix.com
Thu Jul 5 02:14:14 CEST 2007
On 7/4/07, BJörn Lindqvist <bjourne at gmail.com> wrote:
> On 6/22/07, Eduardo EdCrypt O. Padoan <eopadoan at altavix.com> wrote:
> > Remember that pure CPython has no different "compile time" and
> > runtiime. But Psyco and ShedSkin could use the annotations the way
> > they want.
> > def compile(source: "something compilable",
> > filename: "where the compilable thing comes from",
> > mode: "is this a single statement or a suite?"):
> I think the above would make an annotation-enhanced Psyco or ShedSkin
> very confused.
This example was to show that annotations are for documentation too,
not only type checking or optimization. It is from the PEP.
More information about the Python-list