cpython/Objects
Raymond Hettinger bf43f8af35 SF Patch #661440: Refactor and streamline PyCFunction_Call
Refactor code in PyCFunction_Call giving a modest (tiny) speed boost,
a slight improvement in semantics (now detects invalid flag combinations),
and (arguably) improved clarity (making it blindingly clear which flag
combinations are allowed).  All this comes at a cost of a few lines of
code duplication.

* Folded test for METH_KEYWORDS into the switch/case.
* Deferred testing for an empty dictionary until when and where needed.
* Make a similar deferral for filling the "size" variable.
* Inverted the dictionary test so that the common case falls though
  instead of making a jump.
2003-01-04 00:37:53 +00:00
..
.cvsignore
abstract.c
boolobject.c
bufferobject.c
cellobject.c
classobject.c
cobject.c
complexobject.c
descrobject.c
dictobject.c
enumobject.c
fileobject.c
floatobject.c
frameobject.c
funcobject.c
intobject.c
iterobject.c
listobject.c
listsort.txt
longobject.c
methodobject.c
moduleobject.c
object.c
obmalloc.c
rangeobject.c
sliceobject.c
stringobject.c
structseq.c
tupleobject.c
typeobject.c
unicodectype.c
unicodeobject.c
unicodetype_db.h
weakrefobject.c
xxobject.c