Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | Use Py_ssize_t type for number of arguments | Victor Stinner | 2016-08-24 | 7 | -90/+128 | |
| | | | | | | | | | | Issue #27848: use Py_ssize_t rather than C int for the number of function positional and keyword arguments. | |||||
* | | Merge with 3.5 | Terry Jan Reedy | 2016-08-24 | 1 | -1/+1 | |
|\ \ | |/ | ||||||
| * | Fix misspelling | Terry Jan Reedy | 2016-08-24 | 1 | -1/+1 | |
| | | ||||||
* | | Merge from 3.5 | Berker Peksag | 2016-08-24 | 1 | -1/+1 | |
|\ \ | |/ | ||||||
| * | Fix typo in Cursor.execute(). | Berker Peksag | 2016-08-24 | 1 | -1/+1 | |
| | | ||||||
* | | Issue #6057: Merge from 3.5 | Berker Peksag | 2016-08-24 | 2 | -2/+33 | |
|\ \ | |/ | ||||||
| * | Issue #6057: Document exceptions in sqlite3 module | Berker Peksag | 2016-08-24 | 2 | -2/+33 | |
| | | | | | | | | Patch by Jaysinh Shukla and Stéphane Wirtel. | |||||
* | | Closes #20124: clarified usage of the atTime parameter in ↵ | Vinay Sajip | 2016-08-24 | 1 | -17/+35 | |
| | | | | | | | | TimedRotatingFileHandler documentation. | |||||
* | | Issue #12319: Move NEWS under beta 1 heading | Martin Panter | 2016-08-24 | 1 | -8/+8 | |
| | | ||||||
* | | Issue #12319: Support for chunked encoding of HTTP request bodies | Martin Panter | 2016-08-24 | 9 | -150/+531 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When the body object is a file, its size is no longer determined with fstat(), since that can report the wrong result (e.g. reading from a pipe). Instead, determine the size using seek(), or fall back to chunked encoding for unseekable files. Also, change the logic for detecting text files to check for TextIOBase inheritance, rather than inspecting the “mode” attribute, which may not exist (e.g. BytesIO and StringIO). The Content-Length for text files is no longer determined ahead of time, because the original logic could have been wrong depending on the codec and newline translation settings. Patch by Demian Brecht and Rolf Krahl, with a few tweaks by me. | |||||
* | | Remove expected failure from test of _product internal function. | Steven D'Aprano | 2016-08-24 | 1 | -2/+2 | |
| | | ||||||
* | | Remove support for nth root of negative numbers with odd powers. | Steven D'Aprano | 2016-08-24 | 2 | -28/+8 | |
| | | | | | | | | | | | | | | Although nth roots of negative numbers are real for odd n, the statistics module doesn't make use of this. Remove support for negative roots from the private _nth_root function, which simplifies the test suite. | |||||
* | | Add geometric_mean to __all__ | Steven D'Aprano | 2016-08-24 | 1 | -1/+2 | |
| | | ||||||
* | | Update NEWS. | Steven D'Aprano | 2016-08-24 | 1 | -1/+3 | |
| | | ||||||
* | | #26907: add some missing getsockopt constants. | R David Murray | 2016-08-24 | 3 | -0/+20 | |
| | | | | | | | | Patch by Christian Heimes, reviewed by Martin Panter. | |||||
* | | Merge: #25916: fix a few 'string of bytes' references. | R David Murray | 2016-08-24 | 4 | -4/+4 | |
|\ \ | |/ | ||||||
| * | #25916: fix a few 'string of bytes' references. | R David Murray | 2016-08-24 | 4 | -4/+4 | |
| | | | | | | | | Patch by SilengGhost. | |||||
* | | Issue #27809: map_next() uses fast call | Victor Stinner | 2016-08-23 | 1 | -15/+31 | |
| | | | | | | | | | | Use a small stack allocated in the C stack for up to 5 iterator functions, otherwise allocates a stack on the heap memory. | |||||
* | | PyObject_CallMethodObjArgs() now uses fast call | Victor Stinner | 2016-08-23 | 1 | -32/+71 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #27809: * PyObject_CallMethodObjArgs(), _PyObject_CallMethodIdObjArgs() and PyObject_CallFunctionObjArgs() now use fast call to avoid the creation of a temporary tuple * Rename objargs_mktuple() to objargs_mkstack() * objargs_mkstack() now stores objects in a C array using borrowed references, instead of storing arguments into a tuple objargs_mkstack() uses a small buffer allocated on the C stack for 5 arguments or less, or allocates a buffer in the heap memory. Note: this change is different than the change 0e4f26083bbb, I fixed the test to decide if the small stack can be used or not. sizeof(PyObject**) was also replaced with sizeof(stack[0]) since the sizeof() was wrong (but gave the same result). | |||||
* | | Backed out changeset 0e4f26083bbb (PyObject_CallMethodObjArgs) | Victor Stinner | 2016-08-23 | 1 | -71/+32 | |
| | | ||||||
* | | Backed out changeset 70f88b097f60 (map_next) | Victor Stinner | 2016-08-23 | 1 | -31/+15 | |
| | | ||||||
* | | PyObject_CallMethodObjArgs() now uses fast call | Victor Stinner | 2016-08-23 | 1 | -32/+71 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #27809: * PyObject_CallMethodObjArgs(), _PyObject_CallMethodIdObjArgs() and PyObject_CallFunctionObjArgs() now use fast call to avoid the creation of a temporary tuple * Rename objargs_mktuple() to objargs_mkstack() * objargs_mkstack() now stores objects in a C array using borrowed references, instead of storing arguments into a tuple objargs_mkstack() uses a small buffer allocated on the C stack for 5 arguments or less, or allocates a buffer in the heap memory. | |||||
* | | Issue #27809: map_next() uses fast call | Victor Stinner | 2016-08-23 | 1 | -15/+31 | |
| | | | | | | | | | | Use a small stack allocated in the C stack for up to 5 iterator functions, otherwise allocates a stack on the heap memory. | |||||
* | | Backed out changeset 1017215f5492 | Mark Dickinson | 2016-08-23 | 2 | -144/+0 | |
| | | ||||||
* | | Issue #27834: Avoid overflow error in ZoneInfo.invert(). | Alexander Belopolsky | 2016-08-23 | 1 | -3/+3 | |
| | | ||||||
* | | Fix markup, add versionadded tags | Zachary Ware | 2016-08-23 | 1 | -3/+7 | |
| | | ||||||
* | | Issue #27787: No longer call deleted test_main(). | Terry Jan Reedy | 2016-08-23 | 1 | -1/+1 | |
| | | ||||||
* | | A new version of typing.py from https://github.com/python/typing. (Merge ↵ | Guido van Rossum | 2016-08-23 | 3 | -26/+61 | |
|\ \ | |/ | | | | | 3.5->3.6) | |||||
| * | A new version of typing.py from https://github.com/python/typing. | Guido van Rossum | 2016-08-23 | 3 | -26/+61 | |
| | | ||||||
* | | Issue 27598: Add Collections to collections.abc. | Guido van Rossum | 2016-08-23 | 5 | -21/+132 | |
| | | | | | | | | Patch by Ivan Levkivskyi, docs by Neil Girdhar. | |||||
* | | Automated merge with ssh://hg.python.org/cpython | Steven D'Aprano | 2016-08-23 | 5 | -26/+104 | |
|\ \ | ||||||
| * | | Re-licence statistics.py under the standard Python licence. | Steven D'Aprano | 2016-08-23 | 1 | -17/+0 | |
| | | | ||||||
| * | | Add documentation for geometric and harmonic means. | Steven D'Aprano | 2016-08-23 | 1 | -0/+58 | |
| | | | ||||||
| * | | Issue #27573 make the exit message configurable. | Steven D'Aprano | 2016-08-23 | 3 | -9/+46 | |
| | | | ||||||
* | | | In asyncio.locks.Lock.acquire(): Avoid deadlock when a cancelled future is ↵ | Guido van Rossum | 2016-08-23 | 1 | -1/+1 | |
|\ \ \ | | |/ | |/| | | | | in self._waiters. (Merge 3.5->3.6) | |||||
| * | | In asyncio.locks.Lock.acquire(): Avoid deadlock when a cancelled future is ↵ | Guido van Rossum | 2016-08-23 | 1 | -1/+1 | |
| | | | | | | | | | | | | in self._waiters. | |||||
* | | | Issue #26040 (part 1): add new testcases to cmath_testcases.txt. Thanks Jeff ↵ | Mark Dickinson | 2016-08-23 | 2 | -0/+144 | |
| | | | | | | | | | | | | Allen. | |||||
* | | | Issue #27832: Make _normalize parameter to Fraction.__init__ keyword-only. | Mark Dickinson | 2016-08-23 | 3 | -1/+5 | |
| |/ |/| | ||||||
* | | Issue #27809: partial_call() uses fast call for positional args | Victor Stinner | 2016-08-23 | 1 | -12/+28 | |
| | | ||||||
* | | Issue #27787: Remove test_main() and hard-coded list of test classes | Martin Panter | 2016-08-23 | 1 | -9/+2 | |
| | | | | | | | | | | | | The @reap_threads decorator made the test wait (for up to 1 s) until background threads have finished. Calling join() with a timeout should be equivalent. | |||||
* | | Issue #12713: reverted fix pending further discussion. | Vinay Sajip | 2016-08-23 | 4 | -98/+32 | |
| | | ||||||
* | | Issue #27809: builtin___build_class__() uses fast call | Victor Stinner | 2016-08-22 | 1 | -6/+2 | |
| | | ||||||
* | | PyEval_CallObjectWithKeywords() doesn't inc/decref | Victor Stinner | 2016-08-22 | 1 | -7/+1 | |
| | | | | | | | | | | | | Issue #27809: PyEval_CallObjectWithKeywords() doesn't increment temporary the reference counter of the args tuple (positional arguments). The caller already holds a strong reference to it. | |||||
* | | Issue #27809: methodcaller_reduce() uses fast call | Victor Stinner | 2016-08-22 | 1 | -11/+7 | |
| | | ||||||
* | | Issue #27809: _csv: _call_dialect() uses fast call | Victor Stinner | 2016-08-22 | 1 | -9/+7 | |
| | | ||||||
* | | Issue #27809: tzinfo_reduce() uses fast call | Victor Stinner | 2016-08-22 | 1 | -14/+10 | |
| | | ||||||
* | | Issue #27809: PyErr_SetImportError() uses fast call | Victor Stinner | 2016-08-22 | 1 | -14/+8 | |
| | | ||||||
* | | Add _PyErr_CreateException() | Victor Stinner | 2016-08-22 | 1 | -30/+29 | |
| | | | | | | | | | | Issue #27809: Helper function optimized to create an exception: use fastcall whenever possible. | |||||
* | | Issue #27809: Use _PyObject_FastCallDict() | Victor Stinner | 2016-08-22 | 2 | -25/+15 | |
| | | | | | | | | | | | | | | | | | | Modify: * init_subclass() * builtin___build_class__() Fix also a bug in init_subclass(): check for super() failure. | |||||
* | | PyEval_CallObjectWithKeywords() uses fast call with kwargs | Victor Stinner | 2016-08-22 | 1 | -12/+4 | |
| | | | | | | | | | | Issue #27809. _PyObject_FastCallDict() now supports keyword arguments, and so the args==NULL fast-path can also be used when kwargs is not NULL. |