Re: [Python-ideas] Trial balloon: adding variable type declarations in support of PEP 484

Aug. 4, 2016
7:07 a.m.
If 'a' is only read, it looks like a sensible way to state that this function should be called only when 'a' is a list. It's not the same as a global type declaration. More like a parameter type hint. If 'a' is written to, it is very similar to the 'if else' example. (which, if I may add, is usually defined as the meet of the assertions. If we talk about abstract interpretation frameworks)
3149
Age (days ago)
3149
Last active (days ago)
0 comments
1 participants
participants (1)
-
אלעזר