Message24219
| Author |
georg.brandl |
| Recipients |
| Date |
2005年06月09日.21:04:03 |
| SpamBayes Score |
| Marked as misclassified |
| Message-id |
| In-reply-to |
| Content |
Logged In: YES
user_id=1188172
I delved deeper into this, and it seems that the difference
is caused by range being a method (of bltinmodule, defined
as METH_VARARGS), while xrange is a constructor for a
rangeobject.
Such constructor functions get three arguments (the type
object, the args and the kw args), and when the kw args are
not checked like in str(), they can pass freely and are ignored.
I have attached a patch which changes the range object
constructor (xrange) to accept keyword arguments.
Other builtin types that need such a correction include
buffer, set, slice. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2007年08月23日 14:29:25 | admin | link | issue1119418 messages |
| 2007年08月23日 14:29:25 | admin | create |
|