Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | upgrade unicode db to 6.3.0 (closes #19221) | Benjamin Peterson | 2013-10-10 | 1 | -8/+6 |
| | |||||
* | Issue #18874: _PyObject_Malloc/Realloc/Free() now falls back on | Victor Stinner | 2013-10-10 | 1 | -17/+19 |
| | | | | | | _PyMem_RawMalloc/Realloc/Free, instead of _PyMem_Malloc/Realloc/Free. So it becomes possible to use the fast pymalloc allocator for the PYMEM_DOMAIN_MEM domain (PyMem_Malloc/Realloc/Free functions). | ||||
* | Issue #18874: PyCode_New() now ensures that the filename is a ready Unicode | Victor Stinner | 2013-10-10 | 1 | -0/+5 |
| | | | | | string. This change does nothing is most cases, but it is useful on Windows in some cases. | ||||
* | Issue #19171: speed some cases of 3-argument long pow(). | Tim Peters | 2013-10-05 | 1 | -4/+10 |
|\ | | | | | | | | | | | | | | | | | | | Reduce the base by the modulus when the base is larger than the modulus. This can unboundedly speed the "startup costs" of doing modular exponentiation, particularly in cases where the base is much larger than the modulus. Original patch by Armin Rigo, inspired by https://github.com/pyca/ed25519. Merged from 3.3. | ||||
| * | Issue #19171: speed some cases of 3-argument long pow(). | Tim Peters | 2013-10-05 | 1 | -4/+10 |
| | | | | | | | | | | | | | | | | Reduce the base by the modulus when the base is larger than the modulus. This can unboundedly speed the "startup costs" of doing modular exponentiation, particularly in cases where the base is much larger than the modulus. Original patch by Armin Rigo, inspired by https://github.com/pyca/ed25519. | ||||
* | | #19069: merge with 3.3. | Ezio Melotti | 2013-10-05 | 1 | -11/+11 |
|\ \ | |/ | |||||
| * | #19069: use imperative mood in float object docstrings. Patch by Marco Buttu. | Ezio Melotti | 2013-10-05 | 1 | -11/+11 |
| | | |||||
* | | #19068: merge with 3.3. | Ezio Melotti | 2013-10-05 | 1 | -2/+2 |
|\ \ | |/ | |||||
| * | #19068: use imperative mood in complex object docstrings. Patch by Marco Buttu. | Ezio Melotti | 2013-10-05 | 1 | -2/+2 |
| | | |||||
* | | #19067: merge with 3.3. | Ezio Melotti | 2013-10-05 | 1 | -3/+3 |
|\ \ | |/ | |||||
| * | #19067: use imperative mood in range object docstrings. Patch by Marco Buttu. | Ezio Melotti | 2013-10-05 | 1 | -3/+3 |
| | | |||||
* | | Hopefully fix Windows compilation error following 499a96611baa | Antoine Pitrou | 2013-10-05 | 1 | -10/+10 |
| | | |||||
* | | Issue #19087: Improve bytearray allocation in order to allow cheap popping ↵ | Antoine Pitrou | 2013-10-05 | 1 | -145/+163 |
| | | | | | | | | of data at the front (slice deletion). | ||||
* | | Issue #19014: memoryview.cast() is now allowed on zero-length views. | Antoine Pitrou | 2013-10-03 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Issue #19014: memoryview.cast() is now allowed on zero-length views. | Antoine Pitrou | 2013-10-03 | 1 | -1/+1 |
| | | |||||
* | | Close #19078: memoryview now supports reversed | Nick Coghlan | 2013-10-02 | 1 | -1/+1 |
| | | | | | | | | Patch by Claudiu Popa | ||||
* | | merge | Raymond Hettinger | 2013-10-01 | 1 | -4/+1 |
|\ \ | |/ | |||||
| * | Issue #18594: Fix the fast path for collections.Counter(). | Raymond Hettinger | 2013-10-01 | 1 | -4/+1 |
| | | | | | | | | The path wasn't being taken due to an over-restrictive type check. | ||||
* | | Close #18596: Support address sanity checking in clang/GCC | Nick Coghlan | 2013-09-28 | 1 | -0/+20 |
| | | | | | | | | | | | | This patch appropriately marks known false alarms in the small object allocator when address sanity checking is enabled (patch contributed by Dhiru Kholia). | ||||
* | | Fix minor typo. | Georg Brandl | 2013-09-25 | 1 | -1/+1 |
| | | |||||
* | | Note that LINEAR_PROBES can be set to zero. | Raymond Hettinger | 2013-09-22 | 1 | -1/+1 |
| | | |||||
* | | Minor beautification. Put updates and declarations in a more logical order. | Raymond Hettinger | 2013-09-21 | 1 | -2/+2 |
| | | |||||
* | | When LINEAR_PROBES=0, let the compiler remove the dead code on its own. | Raymond Hettinger | 2013-09-21 | 1 | -12/+0 |
| | | |||||
* | | Make the linear probe sequence clearer. | Raymond Hettinger | 2013-09-21 | 1 | -8/+4 |
| | | |||||
* | | Update internal comments to say _something_ about the "API ID". | Tim Peters | 2013-09-20 | 1 | -1/+3 |
| | | | | | | | | Best I can tell, the possible values for this aren't documented anywhere. | ||||
* | | Issue 18771: Make it possible to set the number linear probes at compile-time. | Raymond Hettinger | 2013-09-15 | 1 | -5/+19 |
| | | |||||
* | | Put the defines in the logical section and fix indentation. | Raymond Hettinger | 2013-09-08 | 1 | -8/+8 |
| | | |||||
* | | Minor code beautification. | Raymond Hettinger | 2013-09-08 | 1 | -6/+5 |
| | | |||||
* | | Improve code clarity by removing two unattractive macros. | Raymond Hettinger | 2013-09-08 | 1 | -16/+18 |
| | | |||||
* | | Remove the freelist scheme for setobjects. | Raymond Hettinger | 2013-09-08 | 2 | -48/+8 |
| | | | | | | | | | | | | | | | | | | The setobject freelist was consuming memory but not providing much value. Even when a freelisted setobject was available, most of the setobject fields still needed to be initialized and the small table still required a memset(). This meant that the custom freelisting scheme for sets was providing almost no incremental benefit over the default Python freelist scheme used by _PyObject_Malloc() in Objects/obmalloc.c. | ||||
* | | Small rearrangement to bring together the three functions for probing the ↵ | Raymond Hettinger | 2013-09-08 | 1 | -32/+39 |
| | | | | | | | | hash table. | ||||
* | | Move the overview comment to the top of the file. | Raymond Hettinger | 2013-09-07 | 1 | -22/+20 |
| | | |||||
* | | Nerge 3.3 into default. | Tim Peters | 2013-09-06 | 1 | -1/+1 |
|\ \ | |/ | | | | | | | | | | | | | Issue #18942: sys._debugmallocstats() output was damaged on Windows. _PyDebugAllocatorStats() called PyOS_snprintf() with a %zd format code, but MS doesn't support that code. Interpolated PY_FORMAT_SIZE_T in place of the "z". | ||||
| * | Issue #18942: sys._debugmallocstats() output was damaged on Windows. | Tim Peters | 2013-09-06 | 1 | -1/+1 |
| | | | | | | | | | | | | _PyDebugAllocatorStats() called PyOS_snprintf() with a %zd format code, but MS doesn't support that code. Interpolated PY_FORMAT_SIZE_T in place of the "z". | ||||
* | | Minor touchups. | Raymond Hettinger | 2013-09-02 | 1 | -4/+6 |
| | | |||||
* | | Factor-out the common code for setting a KeyError. | Raymond Hettinger | 2013-09-02 | 2 | -33/+5 |
| | | |||||
* | | Instead of XORed indicies, switch to a hybrid of linear probing and open ↵ | Raymond Hettinger | 2013-09-02 | 1 | -91/+68 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | addressing. Modern processors tend to make consecutive memory accesses cheaper than random probes into memory. Small sets can fit into L1 cache, so they get less benefit. But they do come out ahead because the consecutive probes don't probe the same key more than once and because the randomization step occurs less frequently (or not at all). For the open addressing step, putting the perturb shift before the index calculation gets the upper bits into play sooner. | ||||
* | | Update copyright. | Raymond Hettinger | 2013-09-01 | 1 | -1/+1 |
| | | |||||
* | | Further reduce the cost of hash collisions by inspecting an additional ↵ | Raymond Hettinger | 2013-09-01 | 1 | -4/+39 |
| | | | | | | | | nearby entry. | ||||
* | | Close #18780: %-formatting now prints value for int subclasses with %d, %i, ↵ | Ethan Furman | 2013-08-31 | 1 | -5/+3 |
| | | | | | | | | and %u codes. | ||||
* | | Tighten-up the lookkey() logic and beautify the code a bit. | Raymond Hettinger | 2013-08-29 | 1 | -88/+43 |
| | | | | | | | | | | | | | | Use less code by moving many of the steps from the initial lookup into the main search loop. Beautify the code but keep the overall logic unchanged. | ||||
* | | Issue #18783: Removed existing mentions of Python long type in docstrings, | Serhiy Storchaka | 2013-08-27 | 5 | -61/+60 |
|\ \ | |/ | | | | | error messages and comments. | ||||
| * | Issue #18783: Removed existing mentions of Python long type in docstrings, | Serhiy Storchaka | 2013-08-27 | 5 | -61/+60 |
| | | | | | | | | error messages and comments. | ||||
* | | Restore changeset 5bd9db528aed (issue #18408) | Victor Stinner | 2013-08-26 | 2 | -0/+22 |
| | | | | | | | | | | | | | | | | "Issue #18408: PyObject_Str(), PyObject_Repr() and type_call() now fail with an assertion error if they are called with an exception set (PyErr_Occurred()). As PyEval_EvalFrameEx(), they may clear the current exception and so the caller looses its exception." | ||||
* | | Issue #18408: _PyObject_Dump() now saves/restores the current exception | Victor Stinner | 2013-08-26 | 1 | -0/+6 |
| | | | | | | | | So it can be called even if an exception was raised | ||||
* | | Various clarifications based on feedback & questions over the years. | Tim Peters | 2013-08-24 | 1 | -19/+96 |
|\ \ | |/ | |||||
| * | Various clarifications based on feedback & questions over the years. | Tim Peters | 2013-08-24 | 1 | -19/+96 |
| | | | | | | | | (grafted from 23181bf411a16287a0a54e910fc0f9ecd2764bf0) | ||||
* | | Issue #18772: fix the gdb plugin after the set implementation changes | Antoine Pitrou | 2013-08-24 | 2 | -9/+3 |
| | | |||||
* | | Back out 5bd9db528aed (issue #18408). It caused unsolved buildbot failures. | Antoine Pitrou | 2013-08-23 | 2 | -23/+0 |
| | | |||||
* | | Add the same dummy type that is used in dictionaries. | Raymond Hettinger | 2013-08-23 | 1 | -15/+49 |
| | |