[Python-3000] optional argument annotations

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Nov 24 23:47:46 CET 2006


Andrew Koenig wrote:
> 	def foo(a: T1) -> T2:
> 
> I am presumably going to accept an argument of type T1 or a type derived
> from T1,

You're making assumptions about the semantics of the
annotations here, which I thought wasn't going to be
done.

--
Greg


More information about the Python-3000 mailing list