21.10.20 05:23, Steve Barnes пише: > Of course there is also the problem of detecting any functions assigned > to _ or _T that may be called - otherwise there is a risk of breaking > the typical gettext usage in I18n!
gettext is usually mapped to global _, so it is not affected. Also, even if eliminate globals, gettext is mapped using gettext.install() which does not use assignment to _. It does: import builtins builtins.__dict__['_'] = self.gettext _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/73KKPXJXQE3MQYK6RNPFOCO6472YFOEJ/ Code of Conduct: http://python.org/psf/codeofconduct/