Type hinting for Python
Type hinting for Python
Posted Dec 26, 2014 6:06 UTC (Fri) by josh (subscriber, #17465)In reply to: Type hinting for Python by mathstuf
Parent article: Type hinting for Python
As in, code written to use types would not work with Python pre-3.5?
That really doesn't seem like a problem. Plenty of code currently requires 2.7 and won't work with 2.6, for instance.
Posted Dec 27, 2014 3:28 UTC (Sat)
by mathstuf (subscriber, #69389)
[Link] (1 responses)
Posted Dec 29, 2014 18:14 UTC (Mon)
by iabervon (subscriber, #722)
[Link]
In fact, they're technically breaking compatibility more with the comment mechanism, in that a file with comments that are close to being type declarations but aren't quite right for this system will presumably generate whatever effects type mismatches end up having (mitigated somewhat by the fact that doing anything with the annotations won't happen without a proactive step).
Type hinting for Python
Type hinting for Python