[Python-Dev] pydoc for named tuples is missing methods
Greg Ewing
greg.ewing at canterbury.ac.nz
Mon Mar 14 07:33:51 CET 2011
More information about the Python-Dev mailing list
Mon Mar 14 07:33:51 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 ]
Tim Lesher wrote: > Because named tuple prefixes a single underscore to its added method > names (_asdict, _replace, and _make), those methods' docstrings are > omitted from pydoc: IMO these should be called __asdict__, __replace__ and __make__. Users are perfectly entitled to make up their own single-underscore names, so using a single underscore is not sufficient to prevent name collisions. -- Greg
- 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