Update of /cvsroot/python/python/dist/src/Objects In directory usw-pr-cvs1:/tmp/cvs-serv21963/Objects Modified Files: abstract.c Log Message: Massive changes as per PEP 208. Read it for details. Index: abstract.c =================================================================== RCS file: /cvsroot/python/python/dist/src/Objects/abstract.c,v retrieving revision 2.55 retrieving revision 2.56 diff -C2 -r2.55 -r2.56 *** abstract.c 2000/10/05 12:43:25 2.55 --- abstract.c 2001/01/04 01:39:06 2.56 *************** *** 1,6 **** --- 1,11 ---- /* Abstract Object Interface (many thanks to Jim Fulton) */ + #include "Python.h" #include <ctype.h> + #include "structmember.h" /* we need the offsetof() macro from there */ + + #define NEW_STYLE_NUMBER(o) PyType_HasFeature((o)->ob_type, \ + Py_TPFLAGS_NEWSTYLENUMBER) [...1222 lines suppressed...] else if (PyUnicode_Check(v)) return PyUnicode_Format(v, w); else ! return binary_iop(v, w, NB_SLOT(nb_inplace_remainder), ! NB_SLOT(nb_remainder), "%="); } + PyObject * PyNumber_InPlacePower(PyObject *v, PyObject *w, PyObject *z) { ! if (HASINPLACE(v) && v->ob_type->tp_as_number && ! v->ob_type->tp_as_number->nb_inplace_power != NULL) { ! return ternary_op(v, w, z, NB_SLOT(nb_inplace_power), "**="); ! } ! else { ! return ternary_op(v, w, z, NB_SLOT(nb_power), "**="); ! } }
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