[issue16842] Allow to override a function signature for pydoc with a docstring

2021-06-29 Thread Éric Araujo

Éric Araujo  added the comment:

This proposal pre-dates signature objects; I wonder if they can be used to 
handle the use cases here.

--
versions:  -Python 3.4

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16842] Allow to override a function signature for pydoc with a docstring

2013-01-08 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
nosy: +eric.araujo

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16842
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16842] Allow to override a function signature for pydoc with a docstring

2013-01-03 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Sorry, I mixed up the issues. For this issue I have not a patch yet. I wait for 
some suggestions and decisions first.

See also related issue16638.

--
stage: patch review - needs patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16842
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16842] Allow to override a function signature for pydoc with a docstring

2013-01-02 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

Just a quote of Georg Brandl's msg178519:

 A simple, minimal-invasive solution would be to allow a signature for 
 documentation purposes as the first line of the docstrings.

 pydoc could recognize this (if docstring.startswith(func.__name__ + '(') or 
 something like that), and display the given signature instead of the 
 introspected one.

I see only one obstacle. Some functions (like dict.update()) needs several 
signatures. How detect and format them?

--
components: Interpreter Core
messages: 178846
nosy: georg.brandl, serhiy.storchaka
priority: normal
severity: normal
stage: needs patch
status: open
title: Allow to override a function signature for pydoc with a docstring
type: enhancement
versions: Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16842
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16842] Allow to override a function signature for pydoc with a docstring

2013-01-02 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
stage: needs patch - patch review

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16842
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16842] Allow to override a function signature for pydoc with a docstring

2013-01-02 Thread Meador Inge

Meador Inge added the comment:

Serhiy, did you mean to mark this as patch review?  I don't see a patch.

--
nosy: +meador.inge

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16842
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com