Movatterモバイル変換


[0]ホーム

URL:


homepage

Message105652

This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Authorgregory.p.smith
Recipientsgregory.p.smith
Date2010-05-13.19:10:52
SpamBayes Score1.7527517e-06
Marked as misclassifiedNo
Message-id<1273777855.43.0.0259016277933.issue8706@psf.upfronthosting.co.za>
In-reply-to
Content
C Python has a real wart in that standard types and library functions that are implemented in C do not always accept keyword arguments:>>> 'xxxxxx'.find('xx', 4)4>>> 'xxxxxx'.find('xx', start=4)Traceback (most recent call last):  File "<stdin>", line 1, in <module>TypeError: find() takes no keyword arguments>>> While other things do accept keywords:sorted(s, key=bla)We should clean this up.  It is not well documented anywhere and I suspect other python implementations (haven't tested this) may accept keywords on these where C Python doesn't.In string.find()'s case it looks like this is because it is an old style C method declaration that only gets an args tuple, no keyword args dict.
History
DateUserActionArgs
2010-05-13 19:10:55gregory.p.smithsetrecipients: +gregory.p.smith
2010-05-13 19:10:55gregory.p.smithsetmessageid: <1273777855.43.0.0259016277933.issue8706@psf.upfronthosting.co.za>
2010-05-13 19:10:53gregory.p.smithlinkissue8706 messages
2010-05-13 19:10:52gregory.p.smithcreate
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp