[Python-Dev] Re: [Python-checkins] python/dist/src/Objects typeobject.c,2.254,2.255 (original) (raw)
Michael Hudson mwh at python.net
Sun Dec 14 09:27:13 EST 2003
- Previous message: [Python-Dev] Weekly Python Bug/Patch Summary
- Next message: [Python-Dev] Re: [Python-checkins] python/dist/src/Objects typeobject.c, 2.254, 2.255
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
rhettinger at users.sourceforge.net writes:
Update of /cvsroot/python/python/dist/src/Objects In directory sc8-pr-cvs1:/tmp/cvs-serv13787
Modified Files: typeobject.c Log Message: Improve argument checking speed. Index: typeobject.c =================================================================== RCS file: /cvsroot/python/python/dist/src/Objects/typeobject.c,v retrieving revision 2.254 retrieving revision 2.255 diff -C2 -d -r2.254 -r2.255 *** typeobject.c 13 Dec 2003 11:26:12 -0000 2.254 --- typeobject.c 13 Dec 2003 15:21:55 -0000 2.255 *************** *** 3321,3324 **** --- 3321,3340 ---- } + static int + checknumargs(PyObject *ob, int n) + { + if (!PyTupleCheckExact(ob)) {
Is it actually possible for this check to fail? I spent a while trying to make it fail, but couldn't manage it.
Cheers, mwh
-- "Sturgeon's Law (90% of everything is crap) applies to Usenet." "Nothing guarantees that the 10% isn't crap, too." -- Gene Spafford's Axiom #2 of Usenet, and a corollary
- Previous message: [Python-Dev] Weekly Python Bug/Patch Summary
- Next message: [Python-Dev] Re: [Python-checkins] python/dist/src/Objects typeobject.c, 2.254, 2.255
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]