On Tue, Mar 15, 2011 at 11:24, Antoine Pitrou <[email protected]> wrote: > Wouldn't a decorator be adequate? > > @pydoc.public_api > def _asdict(self): > """some docstring""" > ...
That was my first attempt. Unfortunately, it didn't work well with classmethods or immutable data members, and forcing the module to import pydoc had some bad side effects (particularly in the eval-ed code for namedtuple). -- Tim Lesher <[email protected]> _______________________________________________ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
