Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | mark implementation detail as such | Benjamin Peterson | 2010-06-25 | 1 | -0/+1 |
| | |||||
* | this must be a typo | Benjamin Peterson | 2010-06-25 | 1 | -1/+1 |
| | |||||
* | mark implementation detail as such | Benjamin Peterson | 2010-06-25 | 1 | -0/+1 |
| | |||||
* | Fix a NameError in test_enumerate. | Mark Dickinson | 2010-05-25 | 1 | -1/+1 |
| | |||||
* | Issue #8816: Extra tests for some built-in functions. These tests are | Mark Dickinson | 2010-05-25 | 1 | -0/+12 |
| | | | | ports of IronPython tests. Thanks Gregory Nofi. | ||||
* | run and fix enumerate start test cases #8636 | Benjamin Peterson | 2010-05-08 | 1 | -9/+14 |
| | |||||
* | *sigh* deal with instances correctly | Benjamin Peterson | 2009-05-09 | 1 | -0/+6 |
| | |||||
* | Don't allow keyword arguments to reversed(). | Georg Brandl | 2008-05-16 | 1 | -0/+2 |
| | |||||
* | #2831: add start argument to enumerate(). Patch by Scott Dial and me. | Georg Brandl | 2008-05-13 | 1 | -1/+15 |
| | |||||
* | Convert iterator __len__() methods to a private API. | Raymond Hettinger | 2005-09-24 | 1 | -0/+1 |
| | |||||
* | Whitespace normalization. | Tim Peters | 2005-07-17 | 1 | -1/+1 |
| | |||||
* | Fix: | Michael W. Hudson | 2005-07-12 | 1 | -0/+20 |
| | | | | | | | [ 1229429 ] missing Py_DECREF in PyObject_CallMethod Add a test in test_enumerate, which is a bit random, but suffices (reversed_new calls PyObject_CallMethod under some circumstances). | ||||
* | Improve test coverage. | Raymond Hettinger | 2004-09-29 | 1 | -0/+29 |
| | |||||
* | Use floor division operator. | Raymond Hettinger | 2004-09-27 | 1 | -1/+1 |
| | |||||
* | Tidied up the implementations of reversed (including the custom ones | Raymond Hettinger | 2004-03-10 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | for xrange and list objects). * list.__reversed__ now checks the length of the sequence object before calling PyList_GET_ITEM() because the mutable could have changed length. * all three implementations are now tranparent with respect to length and maintain the invariant len(it) == len(list(it)) even when the underlying sequence mutates. * __builtin__.reversed() now frees the underlying sequence as soon as the iterator is exhausted. * the code paths were rearranged so that the most common paths do not require a jump. | ||||
* | Eliminate the double reverse option. It's only use case | Raymond Hettinger | 2004-03-10 | 1 | -4/+1 |
| | | | | was academic and it was potentially confusing to use. | ||||
* | Make reversed() transparent with respect to length. | Raymond Hettinger | 2004-02-10 | 1 | -0/+4 |
| | |||||
* | Let reversed() work with itself. | Raymond Hettinger | 2004-02-08 | 1 | -0/+4 |
| | |||||
* | * Migrate set() and frozenset() from the sandbox. | Raymond Hettinger | 2003-11-16 | 1 | -3/+2 |
| | | | | | | | | * Install the unittests, docs, newsitem, include file, and makefile update. * Exercise the new functions whereever sets.py was being used. Includes the docs for libfuncs.tex. Separate docs for the types are forthcoming. | ||||
* | Implement and apply PEP 322, reverse iteration | Raymond Hettinger | 2003-11-06 | 1 | -1/+19 |
| | |||||
* | Fix typo so that the test actually calls the tested function. | Raymond Hettinger | 2003-05-29 | 1 | -1/+1 |
| | |||||
* | * Beefed-up tests | Raymond Hettinger | 2003-05-28 | 1 | -14/+45 |
| | | | | | * Allow tuple re-use * Call tp_iternext directly | ||||
* | Combine the functionality of test_support.run_unittest() | Walter Dörwald | 2003-05-01 | 1 | -7/+1 |
| | | | | | | | | | | and test_support.run_classtests() into run_unittest() and use it wherever possible. Also don't use "from test.test_support import ...", but "from test import test_support" in a few spots. From SF patch #662807. | ||||
* | Get rid of relative imports in all unittests. Now anything that | Barry Warsaw | 2002-07-23 | 1 | -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. :) | ||||
* | Removed the generator future-stmt -- not needed for 2.3. | Tim Peters | 2002-06-20 | 1 | -1/+0 |
| | |||||
* | - New builtin function enumerate(x), from PEP 279. Example: | Guido van Rossum | 2002-04-26 | 1 | -0/+118 |
enumerate("abc") is an iterator returning (0,"a"), (1,"b"), (2,"c"). The argument can be an arbitrary iterable object. |