[issue12154] PyDoc Partial Functions

2018-11-05 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Adding my analysis here which is also at related issue : issue30129. On the attached program written by @skip.montanaro both c.sum and Child.sum return None for inspect.getdocs thus docstrings in pydoc are empty which can be fixed in both functools

[issue12154] PyDoc Partial Functions

2018-05-28 Thread Aaron Hall
Aaron Hall added the comment: Should pydoc treat a partial object like a function? Should a partial be an instance of a function? Should we be able to add all the nice things that functions have to it? If we want that, should we simply instantiate a function the normal way, with a new funct

[issue12154] PyDoc Partial Functions

2017-09-02 Thread Aaron Hall
Aaron Hall added the comment: It seems that this issue is still properly open. (Another open issue seems be related: http://bugs.python.org/issue30129) In the docs on partial, we have: >>> from functools import partial >>> basetwo = partial(int, base=2) >>> basetwo.__doc__ = 'convert base 2 st

[issue12154] PyDoc Partial Functions

2014-04-23 Thread Phil Connell
Changes by Phil Connell : -- nosy: +pconnell ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue12154] PyDoc Partial Functions

2011-05-26 Thread Éric Araujo
Éric Araujo added the comment: This section should help: http://docs.python.org/dev/library/inspect#classes-and-functions -- ___ Python tracker ___

[issue12154] PyDoc Partial Functions

2011-05-24 Thread JJeffries
JJeffries added the comment: If it is changed to use inspect.getfullargspec is it still ok to use inspect.formatargspec? I cant work which values returned by getfullargspec need to go into which parameters for formatargspec. -- ___ Python tracker

[issue12154] PyDoc Partial Functions

2011-05-23 Thread JJeffries
JJeffries added the comment: Tested this on 2.7.1. currently only covers the HTMLDoc class. The TextDoc class will also need updating with the docpartialfunc method. -- keywords: +patch Added file: http://bugs.python.org/file22086/partial.patch ___

[issue12154] PyDoc Partial Functions

2011-05-23 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue12154] PyDoc Partial Functions

2011-05-23 Thread Éric Araujo
Éric Araujo added the comment: Thanks for your work! Feel free to post the patch so that it won’t get lost. It may be that it ports cleanly or with trivial adaptations to 3.x, I can test and report if you don’t want to set up a full devel environment. -- ___

[issue12154] PyDoc Partial Functions

2011-05-23 Thread JJeffries
JJeffries added the comment: I have written and tested a patch based on 2.7.1 src distribution (only src I have access to at work). I will get the latest code from the repository and test against that later. -- ___ Python tracker

[issue12154] PyDoc Partial Functions

2011-05-23 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the report. pydoc recently gained ad-hoc support for named tuples, so it could be improved to treat partial objects as functions. Would you like to submit a patch? If so, guidelines are on http://docs.python.org/devguide -- nosy: +eric.arau

[issue12154] PyDoc Partial Functions

2011-05-23 Thread JJeffries
New submission from JJeffries : PyDoc currently does not support partial functions. It currently just outputs the following, treating it as a data member instead of a function. my_partial_function = I think that if the __doc__ it should be treated as a function and the __doc__ read. ---