Steven D'Aprano <steve+pyt...@pearwood.info> added the comment:
One issue per ticket please. Versions 3.9 and older are all in feature freeze, they will not get new features. Combining a global declaration with an assignment has been requested before, and rejected. If you want to discuss that feature again, you should raise it on the Python-Ideas mailing list first, but unless you have a stronger reason than just saving a line of code, it probably won't be accepted. Project-wide globals has not, as far as I can remember, been requested before, but again it needs to be discussed on Python-Ideas first. Your comments about relative imports don't seem to be either a feature request or a bug report, but just a vague complaint that it often causes problems. Please be more precise. Problems with global variables are nearly always problems with global variables, not bugs with Python. Global variables are very easy to misuse and often cause problems. https://weblogs.asp.net/wallen/6750 http://wiki.c2.com/?GlobalVariablesAreBad ---------- nosy: +steven.daprano versions: -Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue41616> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com