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 > + check_num_args(PyObject *ob, int n) > + { > + if (!PyTuple_CheckExact(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
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4