[Python-ideas] Code version evolver

francismb francismb at email.de
Fri Mar 15 15:10:58 EDT 2019


On 3/15/19 4:54 AM, Stephen J. Turnbull wrote:
> Not really.  For example, addition of syntax like "async" and "yield"
> fundamentally changes the meaning of "def", in ways that *could not*
> be fully emulated in earlier Pythons.  The semantics simply were
> impossible to produce -- that's why syntax extensions were necessary.
But here, the code for versions before that change (e.g. aync) also
worked on the new versions? there was not need to translate anything to
the new version as it was a backward compatible change. To use the new
feature you have to explicitly use that feature. If that so far correct?

Thanks,
--francis



More information about the Python-ideas mailing list