summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Issue #26778: Fixed "a/an/and" typos in code comment and documentation.Serhiy Storchaka2016-04-176-6/+6
|
* Fix typos in code comments and documentationMartin Panter2016-04-162-4/+4
|
* Issue #26535: Correct docs regarding the struct buffer sizeMartin Panter2016-04-151-8/+8
|
* Correct “an” → “a” with “Unicode”, “user”, “UTF”, etcMartin Panter2016-04-153-3/+3
| | | | This affects documentation, code comments, and a debugging messages.
* Fix unused variable 'libver' warning in Modules/_ssl.cBerker Peksag2016-04-141-0/+2
| | | | | | | | | It can be seen on various buildbots like 3.x.cea-indiana-amd64 and 3.x.murray-snowleopard: /export/home/buildbot/64bits/3.x.cea-indiana-amd64/build/Modules/_ssl.c:2227: warning: unused variable 'libver' /Users/buildbot/buildarea/3.x.murray-snowleopard/build/Modules/_ssl.c:2227: warning: unused variable ‘libver’
* Issue #26716: Regenerate Argument Clinic code.Serhiy Storchaka2016-04-142-3/+3
|
* Issue #26200: Restored more safe usages of Py_SETREF.Serhiy Storchaka2016-04-111-3/+3
|
* 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
|
* 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 #22570: Renamed Py_SETREF to Py_XSETREF.Serhiy Storchaka2016-04-0622-86/+86
|
* 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: Avoid sighandler_t Gnu-ismMartin Panter2016-04-031-1/+1
|
* Issue #23735: Add SIGWINCH handler for Readline 6.3+ support, by Eric PriceMartin Panter2016-04-031-0/+31
|
* 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: Clarify documentation about UnsupportedOperation and add testsMartin Panter2016-03-313-15/+13
| | | | | Also change BufferedReader.writable() and BufferedWriter.readable() to always return False.
* 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: 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.
* Issue#26616:Fixed a bug in datetime.astimezone() method.Alexander Belopolsky2016-03-251-1/+6
|
* 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.
* Issue #24266: Cancel history search mode with Ctrl+C in Readline 7Martin Panter2016-03-221-0/+3
|
* Issue #15699: Reunite comment with variableMartin Panter2016-03-221-16/+3
|
* Fix usage of PyMem_Malloc() in overlapped.cVictor Stinner2016-03-161-3/+6
| | | | | | Issue #26563: Replace PyMem_Malloc() with PyMem_RawFree() since PostToQueueCallback() calls PyMem_RawFree() (previously PyMem_Free()) in a new C thread which doesn't hold the GIL.
* _tracemalloc: store lineno as unsigned intVictor Stinner2016-03-151-17/+7
| | | | Issue #26564. Cleanup the code, lineno is never negative.
* faulthandler: Test Py_FatalError() with GIL releasedVictor Stinner2016-03-151-2/+10
| | | | Issue #26558.
* Issue #26505: Fix typos in getaddrinfo license text.Ned Deily2016-03-071-4/+4
| | | | Patch by Alex Willmer.
* Issue #25718: Fixed pickling and copying the accumulate() iterator with ↵Serhiy Storchaka2016-03-061-0/+17
| | | | total is None.
* Issue #26406: Avoid unnecessary serialization of getaddrinfo(3) calls onNed Deily2016-02-231-4/+10
| | | | current versions of OpenBSD and NetBSD. Patch by A. Jesse Jiryu Davis.
* merge 3.4 (closes #25939)Benjamin Peterson2016-02-181-2/+6
|\
| * open the cert store readonlyBenjamin Peterson2016-02-181-2/+6
| | | | | | | | Patch from Chi Hsuan Yen.
* | Issue #25924: Avoid unnecessary serialization of getaddrinfo(3) calls on OS XNed Deily2016-02-151-2/+18
| | | | | | | | versions 10.5 or higher. Original patch by A. Jesse Jiryu Davis.
* | Issue #26304: Change "allows to <verb>" to "allows <verb>ing" or similarMartin Panter2016-02-102-2/+2
| | | | | | | | | | The original form is incorrect grammar and feels awkward, even though the meaning is clear.
* | Issue #26117: The os.scandir() iterator now closes file descriptor not onlySerhiy Storchaka2016-02-081-17/+20
| | | | | | | | when the iteration is finished, but when it was failed with error.
* | Issue #25945: Fixed bugs in functools.partial.Serhiy Storchaka2016-02-021-60/+68
| | | | | | | | | | | | | | Fixed a crash when unpickle the functools.partial object with wrong state. Fixed a leak in failed functools.partial constructor. "args" and "keywords" attributes of functools.partial have now always types tuple and dict correspondingly.
* | Issue #26244: Clarify default zlib compression level in documentationMartin Panter2016-02-032-6/+8
| | | | | | | | Based on patch by Aviv Palivoda.
* | Issue #26194: Inserting into a full deque to raise an IndexErrorRaymond Hettinger2016-02-021-5/+2
| |
* | Issue #19883: Fixed possible integer overflows in zipimport.Serhiy Storchaka2016-01-281-153/+214
| |
* | Merge headsSerhiy Storchaka2016-01-281-2/+24
|\ \
| * | Windows: Decode hostname from ANSI code pageVictor Stinner2016-01-281-2/+24
| | | | | | | | | | | | | | | | | | Issue #26227: On Windows, getnameinfo(), gethostbyaddr() and gethostbyname_ex() functions of the socket module now decode the hostname from the ANSI code page rather than UTF-8.
* | | Issue #26198: Added tests for "es", "et", "es#", "et#" and "C" format unitsSerhiy Storchaka2016-01-281-1/+93
|/ / | | | | | | of PyArg_Parse*() functions.
* | Issue #26194: Fix undefined behavior for deque.insert() when len(d) == maxlenRaymond Hettinger2016-01-271-0/+7
| |
* | merge 3.4Benjamin Peterson2016-01-221-0/+4
|\ \ | |/
| * reject negative data_sizeBenjamin Peterson2016-01-221-0/+4
| |
* | merge 3.4 (#26171)Benjamin Peterson2016-01-211-0/+5
|\ \ | |/
| * prevent buffer overflow in get_data (closes #26171)Benjamin Peterson2016-01-211-0/+5
| |
* | merge 3.4Benjamin Peterson2016-01-211-0/+1
|\ \ | |/
| * fix refleak in error conditionBenjamin Peterson2016-01-211-0/+1
| |
* | Add _PyThreadState_UncheckedGet()Victor Stinner2016-01-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #26154: Add a new private _PyThreadState_UncheckedGet() function which gets the current thread state, but don't call Py_FatalError() if it is NULL. Python 3.5.1 removed the _PyThreadState_Current symbol from the Python C API to no more expose complex and private atomic types. Atomic types depends on the compiler or can even depend on compiler options. The new function _PyThreadState_UncheckedGet() allows to get the variable value without having to care of the exact implementation of atomic types. Changes: * Replace direct usage of the _PyThreadState_Current variable with a call to _PyThreadState_UncheckedGet(). * In pystate.c, replace direct usage of the _PyThreadState_Current variable with the PyThreadState_GET() macro for readability. * Document also PyThreadState_Get() in pystate.h