[Python-ideas] Simple class initialization

Steven D'Aprano steve at pearwood.info
Sun Apr 17 03:27:32 CEST 2011


Bruce Leban wrote:

> One
> of the strange aspects (to me) of parameter annotations is that they have no
> semantics which opens them up to multiple conflicting uses.

That's not a bug, that's a feature.

It's been stated many times by Guido that it's far too early to 
standardize on a single meaning for annotations. (We may *never* 
standardize on a single meaning.) Instead, it is up to the library or 
decorator to impose whatever meaning makes sense for that particular 
library or decorator.



-- 
Steven




More information about the Python-ideas mailing list