[issue37304] compiler need support in(de)crement operation or all of it should have syntax error.
Steven D'Aprano
report at bugs.python.org
Fri Jan 31 09:50:15 EST 2020
Steven D'Aprano <steve+python at pearwood.info> added the comment:
Please remember that not all Python programmers come from a C background
where `++n` is a pre-increment operator. Then may have a OOP background
where the unary `+` and `-` operators can do anything they like.
Making `--obj` or `++obj` a syntax error is a backwards-incompatible
change that will break people's code. We take backwards compatibility
seriously. Python is a mature language with millions of users, we don't
break their code lightly.
As you were told (twice) last year, this change will not be considered
until you take it to the Python-Ideas mailing list for feedback. If you
have done this, please post a link to the discussion.
If you get a consensus that the change is a good idea, you need to find
a core developer to sponsor a PEP, then write the PEP, and ask the
Steering Council to approve it. Only then will the PR be approved.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37304>
_______________________________________
More information about the Python-bugs-list
mailing list