This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author barry
Recipients barry, eryksun, ethan.furman, martin.panter, rhettinger, serhiy.storchaka
Date 2016-05-06.15:06:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1462547205.76.0.277720221505.issue26632@psf.upfronthosting.co.za>
In-reply-to
Content
Here's a C implementation.  I'm a bit under the weather so please do double check my refcounting logic. ;)

No tests or docs yet, but those would be easy to add.  Here's an example:

@public
class Foo:
    pass

public(qux=3)

print(qux)

@public
def zzz():
    pass

public(jix=1, jox=2, jrx=3)

print(__all__)
print(jix, jox, jrx)

You could also try to add an explicit __all__ in the module and those names will get appended to it.
History
Date User Action Args
2016-05-06 15:06:45barrysetrecipients: + barry, rhettinger, ethan.furman, martin.panter, serhiy.storchaka, eryksun
2016-05-06 15:06:45barrysetmessageid: <1462547205.76.0.277720221505.issue26632@psf.upfronthosting.co.za>
2016-05-06 15:06:45barrylinkissue26632 messages
2016-05-06 15:06:45barrycreate