Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Check return result from Py_InitModule*(). This API can fail. | Neal Norwitz | 2006-01-19 | 1 | -0/+2 |
| | | | | Probably should be backported. | ||||
* | adding in-place operators to the operator module. | Armin Rigo | 2005-12-29 | 1 | -1/+41 |
| | |||||
* | two missing PyDoc_STR(). | Armin Rigo | 2005-12-29 | 1 | -2/+2 |
| | |||||
* | Disallow keyword arguments for type constructors that don't use them. | Georg Brandl | 2005-08-26 | 1 | -0/+6 |
| | | | | (fixes bug #1119418) | ||||
* | operator.itemgetter() and operator.attrgetter() now support extraction | Raymond Hettinger | 2005-03-09 | 1 | -14/+72 |
| | | | | | of multiple fields. This provides direct support for sorting by multiple keys. | ||||
* | Fix typos. | Raymond Hettinger | 2003-12-04 | 1 | -2/+2 |
| | |||||
* | As discussed on python-dev, added two extractor functions to the | Raymond Hettinger | 2003-12-01 | 1 | -2/+225 |
| | | | | operator module. | ||||
* | SF patch #670423: Add missing identity tests to operator.c | Raymond Hettinger | 2003-01-18 | 1 | -0/+24 |
| | |||||
* | SF patch 660559: Use METH_O and METH_NOARGS where possible | Raymond Hettinger | 2003-01-03 | 1 | -17/+19 |
| | | | | | Simplify code and speed access by using PyArg_UnpackTuple, METH_O and METH_NOARGS in three modules that can benefit from it. | ||||
* | SF patch #659536: Use PyArg_UnpackTuple where possible. | Raymond Hettinger | 2002-12-29 | 1 | -9/+9 |
| | | | | | | | Obtain cleaner coding and a system wide performance boost by using the fast, pre-parsed PyArg_Unpack function instead of PyArg_ParseTuple function which is driven by a format string. | ||||
* | Added __pow__(a,b) to the operator module. Completes the pattern of | Raymond Hettinger | 2002-08-19 | 1 | -0/+10 |
| | | | | | | all operators having a counterpart in the operator module. Closes SF bug #577513. | ||||
* | Allow more docstrings to be removed during compilation in some modules | Neal Norwitz | 2002-08-13 | 1 | -2/+2 |
| | |||||
* | Excise DL_EXPORT/DL_IMPORT from Modules/*. Required adding a prototype | Mark Hammond | 2002-08-02 | 1 | -1/+1 |
| | | | | | | for Py_Main(). Thanks to Kalle Svensson and Skip Montanaro for the patches. | ||||
* | Patch #568124: Add doc string macros. | Martin v. Löwis | 2002-06-13 | 1 | -6/+6 |
| | |||||
* | Removed old Digital Creations copyright/license notices (with | Guido van Rossum | 2002-04-04 | 1 | -59/+0 |
| | | | | | permission from Paul Everitt). Also removed a few other references to Digital Creations and changed the remaining ones to Zope Corporation. | ||||
* | Add the 'bool' type and its values 'False' and 'True', as described in | Guido van Rossum | 2002-04-03 | 1 | -7/+13 |
| | | | | | | | | | | | | | PEP 285. Everything described in the PEP is here, and there is even some documentation. I had to fix 12 unit tests; all but one of these were printing Boolean outcomes that changed from 0/1 to False/True. (The exception is test_unicode.py, which did a type(x) == type(y) style comparison. I could've fixed that with a single line using issubtype(x, type(y)), but instead chose to be explicit about those places where a bool is expected. Still to do: perhaps more documentation; change standard library modules to return False/True from predicates. | ||||
* | Add wrappers around the rich-comparison operations. | Fred Drake | 2001-08-09 | 1 | -1/+22 |
| | | | | | | | This closes SF patch #428320. Add wrappers to expose "floor" and "true" division. This closes SF feature request #449093. | ||||
* | Add invert() and __invert__() as aliases for inv()/__inv__(). | Fred Drake | 2000-09-17 | 1 | -11/+16 |
| | | | | | | | | Add contains() as alias for __contains__(). Make PyArg_ParseTuple() formats include the function name. Based on patch by Denis S. Otkidach <ods@users.sourceforge.net>, this closes SourceForge patch #101390. | ||||
* | Bunch of minor ANSIfications: 'void initfunc()' -> 'void initfunc(void)', | Thomas Wouters | 2000-07-21 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | and a couple of functions that were missed in the previous batches. Not terribly tested, but very carefully scrutinized, three times. All these were found by the little findkrc.py that I posted to python-dev, which means there might be more lurking. Cases such as this: long func(a, b) long a; long b; /* flagword */ { and other cases where the last ; in the argument list isn't followed by a newline and an opening curly bracket. Regexps to catch all are welcome, of course ;) | ||||
* | Pretensions of the 20th century... remove old-style preprocessor | Fred Drake | 2000-07-08 | 1 | -6/+0 |
| | | | | hackery (/**/), leaving only new-style preprocessor hackery (##). | ||||
* | ANSI-fy the sources. | Fred Drake | 2000-07-08 | 1 | -19/+16 |
| | |||||
* | Add DL_EXPORT() to all modules that could possibly be used | Guido van Rossum | 1998-12-04 | 1 | -1/+1 |
| | | | | on BeOS or Windows. | ||||
* | Add an alias (and preferred name) "contains" for "sequenceIncludes". | Guido van Rossum | 1998-05-22 | 1 | -47/+34 |
| | | | | | | | | Rationalized the doc strings. Also simplify the module initialization -- we don't need a __version__ which is set to "$Rev" :-) and we don't need a fatal error when the initialization fails. | ||||
* | PySequence_In() -> PySequence_Contains(). | Guido van Rossum | 1998-05-22 | 1 | -1/+1 |
| | |||||
* | Add not_ and __not__. | Guido van Rossum | 1998-04-09 | 1 | -0/+2 |
| | |||||
* | #Plug small memory leaks in constructors. | Guido van Rossum | 1997-09-03 | 1 | -2/+3 |
| | |||||
* | Some long variables should have been int to match the 'i' format specifier. | Guido van Rossum | 1997-08-28 | 1 | -3/+3 |
| | |||||
* | Tabification changes only; the module was already newly named. | Barry Warsaw | 1996-12-18 | 1 | -32/+37 |
| | |||||
* | Correct typo -- repeat implements *, not +. | Guido van Rossum | 1996-12-05 | 1 | -1/+1 |
| | |||||
* | Get rid of unused local variable. | Guido van Rossum | 1996-08-21 | 1 | -1/+1 |
| | |||||
* | Added delslice and delitem. | Guido van Rossum | 1996-08-21 | 1 | -32/+47 |
| | | | | | | Renamed and, or to and_, or_. Renamed all internal identifiers so as not to start with '__' (which is a compiler privilege); remove AIX hack. | ||||
* | Made it palatable for K&R preprocessors. The spam macros don't have | Guido van Rossum | 1996-08-19 | 1 | -46/+53 |
| | | | | | to work as hard (but "stringizing" is still used, so we test the newly introduced HAVE_OLD_CPP config define). | ||||
* | Added hack to get it to compile on AIX. | Guido van Rossum | 1996-08-08 | 1 | -0/+5 |
| | |||||
* | Operators like __add__ | Guido van Rossum | 1996-07-30 | 1 | -0/+242 |