[Python-ideas] Proposal for special name and qualname symbols

Robert Collins robertc at robertcollins.net
Wed Jun 8 19:31:21 EDT 2016


On 9 June 2016 at 11:28, Barry Warsaw <barry at python.org> wrote:

> Admittedly this is rather un-Pythonic since it not only modifies the module's
> __all__ but it pokes a variable binding into the module globals.  It's yucky
> and I'd rather be able to do something like:
>
> @public
> SEVEN = 7
>
> @public
> a_bar = Bar()
>
> Thus the relevance to this thread.

I'd like to be able to do that too.

-Rob


More information about the Python-ideas mailing list