homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients serhiy.storchaka, vstinner, yselivanov
Date 2020年06月23日.22:26:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1592951189.28.0.183993243703.issue41095@roundup.psfhosted.org>
In-reply-to
Content
$ ./python
Python 3.10.0a0 (heads/unicode_latin1:40855c7064, Jun 24 2020, 00:20:07) 
>>> import select
>>> select.epoll.register.__text_signature__
'($self, /, fd,\n eventmask=select.EPOLLIN | select.EPOLLPRI | select.EPOLLOUT)'
>>> import inspect
>>> inspect.signature(select.epoll.register)
<Signature (self, /, fd)>
=> eventmask parameter is gone!
Either signature() must raise an exception, or it must handle a __text_signature__ containing a newline character.
Issue spotted on bpo-31938 when fixing "./python -m pydoc select".
By the way, as expected, pydoc shows:
Help on method_descriptor in select.epoll:
---
$ ./python -m pydoc select.epoll.register
select.epoll.register = register(self, /, fd)
 Registers a new fd or raises an OSError if the fd is already registered.
(...)
---
History
Date User Action Args
2020年06月23日 22:26:29vstinnersetrecipients: + vstinner, serhiy.storchaka, yselivanov
2020年06月23日 22:26:29vstinnersetmessageid: <1592951189.28.0.183993243703.issue41095@roundup.psfhosted.org>
2020年06月23日 22:26:29vstinnerlinkissue41095 messages
2020年06月23日 22:26:29vstinnercreate

AltStyle によって変換されたページ (->オリジナル) /