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 terry.reedy
Recipients louielu, serhiy.storchaka, terry.reedy
Date 2017年05月04日.20:04:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1493928257.2.0.262319363253.issue19903@psf.upfronthosting.co.za>
In-reply-to
Content
>>> help(list.__new__)
Help on built-in function __new__:
__new__(*args, **kwargs) method of builtins.type instance
 Create and return a new object. See help(type) for accurate signature.
'list.__new__(' currently pops up just the docstring. I think adding (*args, **kwargs) on top of it does not hurt and maybe is a slight improvement, as it explains the second line a bit. In any case, explicitly calling __new__ and __init__ is extremely rare, especially for beginners.
For rexep.sub, adding (repl, string, count=0) on top of "Return the string obtained by replacing the leftmost non-overlapping occurrences o..." is a pure win. Wrapping the too-long docstring line is a separate matter.
History
Date User Action Args
2017年05月04日 20:04:17terry.reedysetrecipients: + terry.reedy, serhiy.storchaka, louielu
2017年05月04日 20:04:17terry.reedysetmessageid: <1493928257.2.0.262319363253.issue19903@psf.upfronthosting.co.za>
2017年05月04日 20:04:17terry.reedylinkissue19903 messages
2017年05月04日 20:04:17terry.reedycreate

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