summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Issue #26200: Restored more safe usages of Py_SETREF.Serhiy Storchaka2016-04-112-7/+7
|\
| * Issue #26200: Restored more safe usages of Py_SETREF.Serhiy Storchaka2016-04-111-3/+3
| |
* | Issue #26685: Raise OSError if closing a socket failsMartin Panter2016-04-111-1/+5
| |
* | Issue #26200: Added Py_SETREF and replaced Py_XSETREF with Py_SETREFSerhiy Storchaka2016-04-1013-30/+30
|\ \ | |/ | | | | in places where Py_DECREF was used.
| * Issue #26200: Added Py_SETREF and replaced Py_XSETREF with Py_SETREFSerhiy Storchaka2016-04-1011-25/+25
| | | | | | | | in places where Py_DECREF was used.
* | Issue #26719: More efficient formatting of ints and floats in json.Serhiy Storchaka2016-04-101-52/+4
|\ \ | |/
| * Issue #26719: More efficient formatting of ints and floats in json.Serhiy Storchaka2016-04-101-52/+4
| |
* | Merge 3.5: fcntl docVictor Stinner2016-04-091-1/+1
|\ \ | |/
| * Update fcntl doc: replace IOError with OSErrorVictor Stinner2016-04-091-1/+1
| | | | | | | | Issue #26716. IOError is a deprecated alias to OSError since Python 3.3.
* | Issue #26687: Use Py_RETURN_NONE macro in sqlite3 moduleBerker Peksag2016-04-094-32/+16
| |
* | Issue #26671: Fixed #ifdef indentation.Serhiy Storchaka2016-04-061-2/+2
| |
* | Backed out changeset 8dc144e47252Serhiy Storchaka2016-04-061-26/+2
| |
* | Issue #26671: Fixed #ifdef indentation.Serhiy Storchaka2016-04-061-2/+26
| |
* | Issue #26671: Enhanced path_converter.Serhiy Storchaka2016-04-061-56/+50
| | | | | | | | | | Exceptions raised during converting argument of correct type are no longer overridded with TypeError. Some error messages are now more detailed.
* | Issue #22570: Renamed Py_SETREF to Py_XSETREF.Serhiy Storchaka2016-04-0627-105/+105
|\ \ | |/
| * Issue #22570: Renamed Py_SETREF to Py_XSETREF.Serhiy Storchaka2016-04-0622-86/+86
| |
* | Issue #6953: Merge readline doc from 3.5Martin Panter2016-04-051-16/+16
|\ \ | |/
| * Issue #6953: Rearrange and expand Readline module documentationMartin Panter2016-04-051-16/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Group functions into six new subsections * Document the underlying Readline function or variable accessed * get_history_length() returns the history file limit * clear_history() is conditionally compiled in * Clarify zero and one bases for history item indexes * parse_and_bind() uses its argument directly as an init line * Change "command line" to "line buffer" for consistency * read_init_file() also executes the file * read_history_file() replaces the previous history * write_history_file() overwrites any existing file * Differentiate history file lines from history list items, which could be multi-line * Add more information about completion, also addressing Issue #10796 * libedit (Editline) may be used on any platform; detection is OS X specific
* | Issue #23735: Merge sighandler_t fix from 3.5Martin Panter2016-04-031-1/+1
|\ \ | |/
| * Issue #23735: Avoid sighandler_t Gnu-ismMartin Panter2016-04-031-1/+1
| |
* | Issue #23735: Merge Readline resize handling from 3.5Martin Panter2016-04-031-0/+31
|\ \ | |/
| * Issue #23735: Add SIGWINCH handler for Readline 6.3+ support, by Eric PriceMartin Panter2016-04-031-0/+31
| |
* | Merge 3.5 (asyncio)Victor Stinner2016-04-011-0/+6
|\ \ | |/
| * asyncio: sync overlapped.c with GitHubVictor Stinner2016-04-011-0/+6
| | | | | | | | | | | | | | | | | | | | On Python 3.3, use aliases: * PyMem_RawMalloc = PyMem_Malloc * PyMem_RawFree = PyMem_Free These aliases are not need in Python 3.5, but this change makes synchronization of code base simpler.
* | Issue #22854: Merge UnsupportedOperation fixes from 3.5Martin Panter2016-03-313-15/+13
|\ \ | |/
| * Issue #22854: Clarify documentation about UnsupportedOperation and add testsMartin Panter2016-03-313-15/+13
| | | | | | | | | | Also change BufferedReader.writable() and BufferedWriter.readable() to always return False.
* | Issue #26492: Exhausted iterator of array.array now conforms with the behaviorSerhiy Storchaka2016-03-301-4/+18
| | | | | | | | | | of iterators of other mutable sequences: it lefts exhausted even if iterated array is extended.
* | Issue #26494: Fixed crash on iterating exhausting iterators.Serhiy Storchaka2016-03-301-6/+10
|\ \ | |/ | | | | | | | | Affected classes are generic sequence iterators, iterators of str, bytes, bytearray, list, tuple, set, frozenset, dict, OrderedDict, corresponding views and os.scandir() iterator.
| * Issue #26494: Fixed crash on iterating exhausting iterators.Serhiy Storchaka2016-03-301-6/+10
| | | | | | | | | | | | Affected classes are generic sequence iterators, iterators of str, bytes, bytearray, list, tuple, set, frozenset, dict, OrderedDict, corresponding views and os.scandir() iterator.
* | Issue #26644: Merge SSL negative read fix from 3.5Martin Panter2016-03-271-0/+5
|\ \ | |/
| * Issue #26644: Raise ValueError for negative SSLSocket.recv() and read()Martin Panter2016-03-271-0/+5
| |
| * _pickle: Fix load_counted_tuple(), use Py_ssize_t for sizeVictor Stinner2016-03-141-1/+1
| | | | | | | | Fix a warning on Windows 64-bit.
* | mergeAlexander Belopolsky2016-03-251-1/+6
|\ \ | |/
| * Issue#26616:Fixed a bug in datetime.astimezone() method.Alexander Belopolsky2016-03-251-1/+6
| |
* | _tracemalloc: use compact key for tracesVictor Stinner2016-03-231-1/+61
| | | | | | | | | | | | Issue #26588: Optimize memory footprint of _tracemalloc before non-zero domain is used. Start with compact key (Py_uintptr_t) and also switch to pointer_t key when the first memory block with a non-zero domain is tracked.
* | socketmodule.c: error if option larger than INT_MAXVictor Stinner2016-03-231-3/+16
| | | | | | | | | | On Windows, socket.setsockopt() raises an OverflowError if the socket option is larger than INT_MAX bytes.
* | Issue #26621: Update libmpdec version and remove unnecessary test case.Stefan Krah2016-03-231-2/+2
| |
* | Issue #23848: Fix usage of _Py_DumpDecimal()Victor Stinner2016-03-231-1/+1
| |
* | Issue #23848: Try to fix test_faulthandler on ARMVictor Stinner2016-03-231-32/+16
| | | | | | | | Restore the previous code for stack_overflow().
* | faulthandler: only log fatal exceptionsVictor Stinner2016-03-231-3/+10
| | | | | | | | | | | | | | | | Issue #23848, #26622: * faulthandler now only logs fatal Windows exceptions. * write error code as decimal, not as hexadecimal * replace "Windows exception" with "Windows fatal exception"
* | faulthandler: add Windows exception handlerVictor Stinner2016-03-231-64/+189
| | | | | | | | | | | | Issue #23848: On Windows, faulthandler.enable() now also installs an exception handler to dump the traceback of all Python threads on any Windows exception, not only on UNIX signals (SIGSEGV, SIGFPE, SIGABRT).
* | Cleanup hashtable.hVictor Stinner2016-03-233-80/+81
| | | | | | | | | | | | | | | | | | | | | | | | Issue #26588: * Pass the hash table rather than the key size to hash and compare functions * _Py_HASHTABLE_READ_KEY() and _Py_HASHTABLE_ENTRY_READ_KEY() macros now expect the hash table as the first parameter, rather than the key size * tracemalloc_get_traces_fill(): use _Py_HASHTABLE_ENTRY_READ_DATA() rather than pointer dereference * Remove the _Py_HASHTABLE_ENTRY_WRITE_PKEY() macro * Move "PKEY" and "PDATA" macros inside hashtable.c
* | Issue #26588:Victor Stinner2016-03-232-11/+30
| | | | | | | | | | | | | | * Optimize tracemalloc_add_trace(): modify hashtable entry data (trace) if the memory block is already tracked, rather than trying to remove the old trace and then add a new trace. * Add _Py_HASHTABLE_ENTRY_WRITE_DATA() macro
* | Issue #26588:Victor Stinner2016-03-233-11/+28
| | | | | | | | | | | | | | | | * _Py_HASHTABLE_ENTRY_DATA: change type from "char *" to "const void *" * Add _Py_HASHTABLE_ENTRY_WRITE_PKEY() macro * Rename _Py_HASHTABLE_ENTRY_WRITE_DATA() macro to _Py_HASHTABLE_ENTRY_WRITE_PDATA() * Add _Py_HASHTABLE_ENTRY_WRITE_DATA() macro
* | Issue #26588: Optimize tracemalloc_realloc()Victor Stinner2016-03-231-1/+6
| | | | | | | | No need to remove the old trace if the memory block didn't move.
* | Implement finalizer for os.scandir() iteratorVictor Stinner2016-03-221-17/+47
| | | | | | | | | | | | | | | | Issue #26603: * Implement finalizer for os.scandir() iterator * Set the source parameter when emitting the ResourceWarning warning * Close the iterator before emitting the warning
* | Fix macros in hashtable.hVictor Stinner2016-03-221-2/+2
| | | | | | | | Add parenthesis.
* | Merge 3.5Victor Stinner2016-03-221-15/+1
|\ \ | |/
| * Enhance _tracemalloc debug modeVictor Stinner2016-03-221-1/+1
| | | | | | | | Issue #26588: Enhance assertion in set_reentrant()
| * Fix _tracemalloc start/stopVictor Stinner2016-03-221-14/+0
| | | | | | | | | | | | | | | | | | Issue #26588: Fix _tracemalloc start/stop: don't play with the reentrant flag. set_reentrant(1) fails with an assertion error if tracemalloc_init() is called first in a thread A and tracemalloc_start() is called second in a thread B. The tracemalloc is imported in a thread A. Importing the module calls tracemalloc_init(). tracemalloc.start() is called in a thread B.