summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_operator.py
Commit message (Collapse)AuthorAgeFilesLines
* #1506171: added operator.methodcaller().Georg Brandl2008-02-231-0/+18
|
* #1826: allow dotted attribute paths in operator.attrgetter.Georg Brandl2008-02-231-0/+20
|
* #1876: fix typos in test_operator.Georg Brandl2008-01-201-4/+4
|
* Patch #1654417: make operator.{get,set,del}slice use the full rangeGeorg Brandl2007-03-061-0/+6
| | | | of Py_ssize_t.
* Bug #1575169: operator.isSequenceType() now returns False for subclasses of ↵Raymond Hettinger2007-02-071-0/+2
| | | | dict.
* adding in-place operators to the operator module.Armin Rigo2005-12-291-0/+47
|
* SF patch #1390657:Armin Rigo2005-12-291-0/+40
| | | | | | | | | | | | | | | | | * set sq_repeat and sq_concat to NULL for user-defined new-style classes, as a way to fix a number of related problems. See test_descr.notimplemented()). One of these problems was fixed in r25556 and r25557 but many more existed; this is a general fix and thus reverts r25556-r25557. * to avoid having PySequence_Repeat()/PySequence_Concat() failing on user-defined classes, they now fall back to nb_add/nb_mul if sq_concat/sq_repeat are not defined and the arguments appear to be sequences. * added tests. Backport candidate.
* operator.itemgetter() and operator.attrgetter() now support extractionRaymond Hettinger2005-03-091-5/+31
| | | | | of multiple fields. This provides direct support for sorting by multiple keys.
* Add error checks for the bz2, cStringIO and operator modules.Walter Dörwald2004-11-011-0/+95
| | | | Add function names to various PyArg_ParseTuple calls in bz2module.c.
* Guido grants a Christmas wish:Raymond Hettinger2003-12-171-1/+1
| | | | sorted() becomes a regular function instead of a classmethod.
* As discussed on python-dev, added two extractor functions to theRaymond Hettinger2003-12-011-0/+39
| | | | operator module.
* SF patch #670423: Add missing identity tests to operator.cRaymond Hettinger2003-01-181-0/+11
|
* Added __pow__(a,b) to the operator module. Completes the pattern ofRaymond Hettinger2002-08-191-0/+6
| | | | | | all operators having a counterpart in the operator module. Closes SF bug #577513.
* Get rid of relative imports in all unittests. Now anything thatBarry Warsaw2002-07-231-1/+1
| | | | | | | | | | | imports e.g. test_support must do so using an absolute package name such as "import test.test_support" or "from test import test_support". This also updates the README in Lib/test, and gets rid of the duplicate data dirctory in Lib/test/data (replaced by Lib/email/test/data). Now Tim and Jack can have at it. :)
* Change the PyUnit-based tests to use the test_main() approach. ThisFred Drake2001-09-201-1/+6
| | | | | allows using the tests with unittest.py as a script. The tests will still run when run as a script themselves.
* The first batch of changes recommended by the fixdiv tool. These areGuido van Rossum2001-09-041-1/+1
| | | | | mostly changes of / operators into //. Once or twice I did more or less than recommended.
* Added tests for rich comparison operator functions.Fred Drake2001-08-111-78/+212
| | | | Converted tests to PyUnit.
* Added tests for operator.floordiv() and operator.truediv().Fred Drake2001-08-091-0/+2
|
* Update the code to better reflect recommended style:Fred Drake2000-12-121-5/+5
| | | | | Use != instead of <> since <> is documented as "obsolescent". Use "is" and "is not" when comparing with None or type objects.
* Mass check-in after untabifying all files that need it.Guido van Rossum1998-03-261-3/+3
|
* test_rotor.py: New test of the rotor module.Barry Warsaw1996-12-231-0/+1
| | | | | | | test_*: converted to the new test harness. GvR note! test_signal.py works interatively (i.e. when verbose=1) but does not work inside the test harness. It must be a timing issue, but I haven't figured it out yet.
* Test of the operator moduleBarry Warsaw1996-12-181-0/+76