Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | SF patch #910929: Optimize list comprehensions | Raymond Hettinger | 2004-03-07 | 1 | -0/+4 |
| | | | | | Add a new opcode, LIST_APPEND, and apply it to the code generation for list comprehensions. Reduces the per-loop overhead by about a third. | ||||
* | SF #904720: dict.update should take a 2-tuple sequence like dict.__init_ | Raymond Hettinger | 2004-03-04 | 2 | -3/+14 |
| | | | | | | | | (Championed by Bob Ippolito.) The update() method for mappings now accepts all the same argument forms as the dict() constructor. This includes item lists and/or keyword arguments. | ||||
* | Added license notices that are required to be included in the | Raymond Hettinger | 2004-03-03 | 1 | -1/+331 |
| | | | | documentation as well as the source code. | ||||
* | Have strftime() check its time tuple argument to make sure the tuple's values | Brett Cannon | 2004-03-02 | 1 | -1/+4 |
| | | | | | | | | | | are within proper boundaries as specified in the docs. This can break possible code (datetime module needed changing, for instance) that uses 0 for values that need to be greater 1 or greater (month, day, and day of year). Fixes bug #897625. | ||||
* | Replace left(), right(), and __reversed__() with the more general purpose | Raymond Hettinger | 2004-03-01 | 1 | -15/+6 |
| | | | | | | | __getitem__() and __setitem__(). Simplifies the API, reduces the code size, adds flexibility, and makes deques work with bisect.bisect(), random.shuffle(), and random.sample(). | ||||
* | Improvements to collections.deque(): | Raymond Hettinger | 2004-02-29 | 1 | -7/+22 |
| | | | | | | | | * Add doctests for the examples in the library reference. * Add two methods, left() and right(), modeled after deques in C++ STL. * Apply the new method to asynchat.py. * Add comparison operators to make deques more substitutable for lists. * Replace the LookupErrors with IndexErrors to more closely match lists. | ||||
* | Use versionadded for new features | Neal Norwitz | 2004-02-28 | 1 | -0/+4 |
| | |||||
* | Add version changed/added to doc | Neal Norwitz | 2004-02-28 | 1 | -0/+2 |
| | |||||
* | fix typo in reference to RFC 3464 DSN MIME type | Fred Drake | 2004-02-24 | 1 | -1/+1 |
| | |||||
* | fix English usage error reported by Ken Fuchs | Fred Drake | 2004-02-24 | 1 | -2/+2 |
| | |||||
* | - "Mac OS" should always include the space | Fred Drake | 2004-02-19 | 1 | -23/+33 |
| | | | | | | | - comment out documentation for a non-existant feature (--spec-file) that the comments indicate isn't clearly needed - lots of minor markup adjustments to get a more consistent presentation | ||||
* | - according to Apple's publication style guide, yes, "Mac people" use | Fred Drake | 2004-02-19 | 1 | -2/+2 |
| | | | | | | the term Installer (always capitalized, however) - generalize the text about the term "installer" in a fairly reasonable way | ||||
* | use API documentation style for the descriptions of the additional | Fred Drake | 2004-02-19 | 1 | -40/+39 |
| | | | | | functions made available in the post-installation script run by the Windows installer | ||||
* | minor markup improvements | Fred Drake | 2004-02-19 | 1 | -9/+9 |
| | |||||
* | Implementation of patch 869468 | David Ascher | 2004-02-18 | 1 | -1/+12 |
| | | | | | | | | | | | | | | | Allow the user to create Tkinter.Tcl objects which are just like Tkinter.Tk objects except that they do not initialize Tk. This is useful in circumstances where the script is being run on machines that do not have an X server running -- in those cases, Tk initialization fails, even if no window is ever created. Includes documentation change and tests. Tested on Linux, Solaris and Windows. Reviewed by Martin von Loewis. | ||||
* | Mention the optimization of list.extend(). | Raymond Hettinger | 2004-02-17 | 1 | -0/+2 |
| | |||||
* | markup correction | Fred Drake | 2004-02-17 | 1 | -1/+1 |
| | |||||
* | Patch #893566: Document that tp_dealloc may be called from any thread. | Martin v. Löwis | 2004-02-15 | 1 | -0/+10 |
| | |||||
* | Fine tune the speed/space trade-off for overallocating small lists. | Raymond Hettinger | 2004-02-14 | 1 | -2/+2 |
| | | | | | | | | | | | | | | The Py2.3 approach overallocated small lists by up to 8 elements. The last checkin would limited this to one but slowed down (by 20 to 30%) the creation of small lists between 3 to 8 elements. This tune-up balances the two, limiting overallocation to 3 elements (significantly reducing space consumption from Py2.3) and running faster than the previous checkin. The first part of the growth pattern (0, 4, 8, 16) neatly meshes with allocators that trigger data movement only when crossing a power of two boundary. Also, then even numbers mesh well with common data alignments. | ||||
* | Lists are measured in elements not bytes. | Raymond Hettinger | 2004-02-13 | 1 | -2/+2 |
| | |||||
* | * Note list optimizations | Raymond Hettinger | 2004-02-13 | 1 | -13/+14 |
| | | | | * Move an example out of a comment. | ||||
* | minor markup improvements | Fred Drake | 2004-02-12 | 1 | -7/+7 |
| | |||||
* | Replace backticks with repr() or "%r" | Walter Dörwald | 2004-02-12 | 5 | -18/+18 |
| | | | | From SF patch #852334. | ||||
* | fix minor markup error: \code{for} --> \keyword{for} | Fred Drake | 2004-02-12 | 1 | -6/+7 |
| | |||||
* | SF 895560: minor typo | Raymond Hettinger | 2004-02-12 | 1 | -2/+2 |
| | |||||
* | add support for \e to the {alltt} environment | Fred Drake | 2004-02-10 | 2 | -1/+3 |
| | |||||
* | SF #894428, fix typo | Neal Norwitz | 2004-02-10 | 1 | -1/+1 |
| | |||||
* | the \file macro is no longer a good example of where \e can't be used | Fred Drake | 2004-02-09 | 1 | -4/+5 |
| | |||||
* | support \e in \file and \filenq; this is useful for Windows paths | Fred Drake | 2004-02-09 | 1 | -1/+1 |
| | |||||
* | Minor edits | Andrew M. Kuchling | 2004-02-09 | 1 | -6/+7 |
| | |||||
* | Documentation for PyDescr_NewClassMethod was missing - here's at least | Thomas Heller | 2004-02-09 | 1 | -0/+5 |
| | | | | | | the function prototype. Already backported to release23-maint. | ||||
* | SF patch #892821: example for urllib2 has SyntaxError | Raymond Hettinger | 2004-02-08 | 1 | -2/+1 |
| | | | | (Contributed by George Yoshida.) | ||||
* | Fix misspelled name. | Raymond Hettinger | 2004-02-08 | 1 | -1/+1 |
| | |||||
* | Fix typo | Raymond Hettinger | 2004-02-08 | 1 | -1/+1 |
| | |||||
* | SF patch #880552: Fix typo in usage message(prechm.py) | Raymond Hettinger | 2004-02-08 | 1 | -3/+3 |
| | | | | | | (Contributed by George Yoshida.) * Also convert tabs to spaces. | ||||
* | SF bug #892854: typo in textwrap doc page | Raymond Hettinger | 2004-02-08 | 1 | -1/+1 |
| | | | | (Reported by Drew Perttula.) | ||||
* | * Incorporate Skip's suggestions for documentation (explain the word deque | Raymond Hettinger | 2004-02-07 | 1 | -22/+42 |
| | | | | | comes from and show the differences from lists). * Add a rotate() method. | ||||
* | a couple other sunos4 support items removed | Skip Montanaro | 2004-02-07 | 1 | -2/+1 |
| | |||||
* | * Fix ref counting in extend() and extendleft(). | Raymond Hettinger | 2004-02-07 | 1 | -1/+3 |
| | | | | * Let deques support reversed(). | ||||
* | Have deques support high volume loads. | Raymond Hettinger | 2004-02-06 | 1 | -2/+18 |
| | |||||
* | minor markup adjustments | Fred Drake | 2004-02-03 | 1 | -2/+2 |
| | |||||
* | Clarify minor point about the ref() and proxy() constructors. | Fred Drake | 2004-02-03 | 1 | -1/+2 |
| | | | | This matches what is already documented for corresponding feature of the C API. | ||||
* | update dependency information | Fred Drake | 2004-01-29 | 1 | -0/+1 |
| | |||||
* | Add documentation for collections.deque(). | Raymond Hettinger | 2004-01-29 | 1 | -0/+1 |
| | |||||
* | Add documentation for collections.deque(). | Raymond Hettinger | 2004-01-29 | 1 | -0/+88 |
| | |||||
* | * Move collections.deque() in from the sandbox | Raymond Hettinger | 2004-01-29 | 3 | -21/+25 |
| | | | | | | * Add unittests, newsitem, and whatsnew * Apply to Queue.py mutex.py threading.py pydoc.py and shlex.py * Docs are forthcoming | ||||
* | fix whitespace style (inconsistent with the rest of the docs) | Fred Drake | 2004-01-27 | 1 | -17/+17 |
| | |||||
* | update signature of the socket constructor | Fred Drake | 2004-01-27 | 1 | -5/+7 |
| | | | | (could someone backport this to Python 2.3.x please?) | ||||
* | add missing period | Fred Drake | 2004-01-26 | 1 | -1/+1 |
| | |||||
* | fix markup | Fred Drake | 2004-01-26 | 1 | -1/+1 |
| |