> How does one get a value into locals()["re~"]? You're right, I didn't think about that. I agree with Steven's interpretation that the user is not expected to modify locals herself, still the immutable nature of locals presents a considerable challenge.
So I'm thinking that perhaps we could change that to `globals()["re~"]`, where globals are in fact mutable and can even be modified by the user. This would make it so that affixes can only be declared at a module level, similar to how `from library import *` is not allowed in a function either. This is probably a saner approach anyways -- if affixes could mean different things in different functions, that could be quite confusing... _______________________________________________ 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/XXMC3HQVBTKF5X7ROG4IBZYTH66KZPLB/ Code of Conduct: http://python.org/psf/codeofconduct/