[Python-Dev] pydoc for named tuples is missing methods
Tim Lesher
tlesher at gmail.com
Tue Mar 15 17:20:48 CET 2011
More information about the Python-Dev mailing list
Tue Mar 15 17:20:48 CET 2011
- Previous message: [Python-Dev] pydoc for named tuples is missing methods
- Next message: [Python-Dev] pydoc for named tuples is missing methods
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, Mar 15, 2011 at 11:24, Antoine Pitrou <solipsis at pitrou.net> 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 <tlesher at gmail.com>
- Previous message: [Python-Dev] pydoc for named tuples is missing methods
- Next message: [Python-Dev] pydoc for named tuples is missing methods
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list