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 r.david.murray
Recipients TheBiggerGuy, docs@python, pitrou, r.david.murray
Date 2012年04月16日.20:01:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1334606517.36.0.351603813773.issue14586@psf.upfronthosting.co.za>
In-reply-to
Content
I think you misunderstand the way that python arguments work. If you have a function so:
 def func(size=None):
Then func(0) and func(size=0) are equivalent, and func(0, size=0) is a TypeError because you've provided two arguments instead of just one. The C code *can* emulate this, but often doesn't (it just accepts positional arguments instead). An issue was raised about changing most C functions to support the keyword syntax, but I believe it was decided that while in general doing so is good we'd only do it on a case by case basis as they came up. See issue 8706 for more details.
History
Date User Action Args
2012年04月16日 20:01:57r.david.murraysetrecipients: + r.david.murray, pitrou, docs@python, TheBiggerGuy
2012年04月16日 20:01:57r.david.murraysetmessageid: <1334606517.36.0.351603813773.issue14586@psf.upfronthosting.co.za>
2012年04月16日 20:01:56r.david.murraylinkissue14586 messages
2012年04月16日 20:01:56r.david.murraycreate

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