aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* bpo-29464: Rename METH_FASTCALL to METH_FASTCALL|METH_KEYWORDS and make (#1955)Serhiy Storchaka2017-07-0353-1518/+464
| | | | | the bare METH_FASTCALL be used for functions with positional-only parameters.
* bpo-30695: Add set_nomemory(start, stop) to _testcapi (GH-2406)xdegaye2017-07-011-0/+128
|
* bpo-30807: signal.setitimer() may disable the timer by mistake (#2493)Antoine Pitrou2017-06-301-0/+4
| | | | | | * bpo-30807: signal.setitimer() may disable the timer by mistake * Add NEWS blurb
* bpo-30703: Improve signal delivery (#2415)Antoine Pitrou2017-06-281-16/+14
| | | | | | | | | | | | | | | | | | | | * Improve signal delivery Avoid using Py_AddPendingCall from signal handler, to avoid calling signal-unsafe functions. * Remove unused function * Improve comments * Add stress test * Adapt for --without-threads * Add second stress test * Add NEWS blurb * Address comments @haypo
* bpo-23451: Fix socket deprecation warnings in socketmodule.c (#2318)Segev Finer2017-06-281-171/+16
| | | | | | | | | | | | | | | | | | * bpo-23451: Fix WSASocket and WSADuplicateSocket deprecation warnings * bpo-23451: Add backwards compatibility note about socket share/fromshare * bpo-23451: Fixed `WSAAddressToString`/`WSAStringToAddress` deprecation warnings * bpo-23451: Use `inet_pton`/`inet_ntop` instead of `WSAAddressToString`/`WSAStringToAddress` * bpo-23451: Move `HAVE_INET_PTON` from _socket.vcxproj to pyconfig.h * bpo-23451: Add SUPPRESS_DEPRECATED_CALL to socketmodule.c * bpo-23451: Add a NEWS.d entry * bpo-23451: Corrected NEWS.d entry
* Fix compiler warnings on Windows introduced in bpo-13617. (#2464)Serhiy Storchaka2017-06-281-1/+1
|
* [security] bpo-13617: Reject embedded null characters in wchar* strings. (#2302)Serhiy Storchaka2017-06-289-10/+35
| | | | | | | Based on patch by Victor Stinner. Add private C API function _PyUnicode_AsUnicode() which is similar to PyUnicode_AsUnicode(), but checks for null characters.
* bpo-30708: Check for null characters in PyUnicode_AsWideCharString(). (#2285)Serhiy Storchaka2017-06-271-8/+1
| | | | | Raise a ValueError if the second argument is NULL and the wchar_t\* string contains null characters.
* bpo-30769: Fix reference leak introduced in 77703942c59 (#2416)Eric N. Vander Weele2017-06-271-0/+4
| | | | | | | New error condition paths were introduced, which did not decrement `key2` and `val2` objects. Therefore, decrement references before jumping to the error label. Signed-off-by: Eric N. Vander Weele <ericvw@gmail.com>
* bpo-30746: Prohibited the '=' character in environment variable names (#2382)Serhiy Storchaka2017-06-251-4/+28
| | | | in `os.putenv()` and `os.spawn*()`.
* bpo-30745: Fix compiler warnings introduced in bpo-30730. (#2376)Serhiy Storchaka2017-06-241-2/+1
|
* bpo-30726: expat: Fix compiler warnings on Windows 64-bit (#2368)Victor Stinner2017-06-241-2/+2
| | | | | Explicitly cast on integer downcasting to fix compiler warnings. (cherry picked from libexpat commit 788bff7a3baad1983b15b17c29e19e1a1a795c48)
* bpo-30730: Prevent environment variables injection in subprocess on Windows. ↵Serhiy Storchaka2017-06-231-5/+21
| | | | | | (#2325) Prevent passing other invalid environment variables and command arguments.
* bpo-21071: struct.Struct.format type is now str (#845)Victor Stinner2017-06-231-2/+2
|
* bpo-30602: Fix lastarg in os.spawnve() (#2287)Victor Stinner2017-06-231-3/+3
| | | | Fix a regression introduced by myself in the commit 526b22657cb18fe79118c2ea68511aca09430c2c.
* bpo-30736: upgrade to Unicode 10.0 (#2344)Benjamin Peterson2017-06-223-31177/+32262
| | | Straightforward. While we're at it, though, strip trailing whitespace from generated tables.
* bpo-30694: Upgrade Modules/expat/ to libexpat 2.2.1 (#2300)Victor Stinner2017-06-218-158/+878
| | | New file: Modules/expat/siphash.h.
* bpo-30054: Expose tracemalloc C API (#1236)Victor Stinner2017-06-202-15/+15
| | | | | | | | | * Make PyTraceMalloc_Track() and PyTraceMalloc_Untrack() functions public (remove the "_" prefix) * Remove the _PyTraceMalloc_domain_t type: use directly unsigned int. * Document methods Note: methods are already tested in test_tracemalloc.
* bpo-30565: Add PYTHONCOERCECLOCALE=warn runtime flag (GH-2260)Nick Coghlan2017-06-181-4/+3
| | | | | | | | | | | | - removes PY_WARN_ON_C_LOCALE build time flag - locale coercion and compatibility warnings are now always compiled in, but are off by default - adds PYTHONCOERCECLOCALE=warn runtime option to aid in debugging potentially locale related compatibility problems Due to not-yet-resolved test failures on *BSD systems (including Mac OS X), this also temporarily disables UTF-8 as a locale coercion target, and skips testing the interpreter's behavior in the POSIX locale.
* bpo-30176: Add missing curses cell attributes constants (GH-1302)Xiang Zhang2017-06-151-3/+5
|
* bpo-20627: Fix error message when keyword arguments are used (#2115)Sylvain2017-06-152-8/+16
|
* bpo-30602: Fix refleak in os.spawnv() (#2212)Victor Stinner2017-06-151-1/+1
| | | | | When os.spawnv() fails while handling arguments, free correctly argvlist: pass lastarg+1 rather than lastarg to free_string_array() to also free the first item.
* bpo-29591: Upgrade Modules/expat to libexpat 2.2 (#2164)Victor Stinner2017-06-1513-476/+523
| | | | | | | | | | | | | | | | | | | | | * bpo-29591: Upgrade Modules/expat to libexpat 2.2 * bpo-29591: Restore Python changes on expat * bpo-29591: Remove expat config of unsupported platforms Remove the configuration (Modules/expat/*config.h) of unsupported platforms: * Amiga * MacOS Classic on PPC32 * Open Watcom * bpo-29591: Remove useless XML_HAS_SET_HASH_SALT The XML_HAS_SET_HASH_SALT define of Modules/expat/expat.h became useless since our local expat copy was upgrade to expat 2.1 (it's now expat 2.2.0).
* bpo-30602: Fix refleak in os.spawnve() (#2184)Victor Stinner2017-06-141-2/+2
| | | | | When os.spawnve() fails while handling arguments, free correctly argvlist: pass lastarg+1 rather than lastarg to free_string_array() to also free the first item.
* bpo-30650: Fixed a syntax error: missed right parentheses (#2154)messi Liao2017-06-131-1/+1
|
* bpo-30636: Fix the indentation for the help (#2131)Stéphane Wirtel2017-06-131-1/+1
|
* bpo-30636: Add PYTHONCOERCECLOCALE to the help of the command line (GH-2125)Stéphane Wirtel2017-06-121-0/+4
|
* bpo-28994: Fixed errors handling in atexit._run_exitfuncs(). (#2034)Serhiy Storchaka2017-06-121-1/+1
| | | The traceback no longer displayed for SystemExit raised in a callback registered by atexit.
* bpo-30508: Don't log exceptions if Task/Future "cancel()" method called (#2050)Yury Selivanov2017-06-111-1/+17
|
* bpo-27425: Be more explicit in .gitattributes (GH-840)Zachary Ware2017-06-101-111/+111
| | | Updates checked-in line endings on several files.
* Regenerate Argument Clinic code for bpo-19180. (#2073)Serhiy Storchaka2017-06-102-2/+2
|
* bpo-30600: Fix error messages (condition order in Argument Clinic) (#2051)Sylvain2017-06-1037-871/+871
| | | | | | | | The function '_PyArg_ParseStack()' and '_PyArg_UnpackStack' were failing (with error "XXX() takes Y argument (Z given)") before the function '_PyArg_NoStackKeywords()' was called. Thus, the latter did not raise its more meaningful error : "XXX() takes no keyword arguments".
* bpo-30524: Write unit tests for FASTCALL (#2022)Victor Stinner2017-06-091-0/+101
| | | | | | | Test C functions: * _PyObject_FastCall() * _PyObject_FastCallDict() * _PyObject_FastCallKeywords()
* bpo-19180: Updated references for RFC 1750, RFC 3280 & RFC 4366 (GH-148)Chandan Kumar2017-06-092-2/+2
| | | | | * RFC 1750 has been been obsoleted by RFC 4086. * RFC 3280 has been obsoleted by RFC 5280. * RFC 4366 has been obsoleted by RFC 6066.
* bpo-30601: Fix a refleak in WindowsConsoleIO (#2003)Victor Stinner2017-06-081-3/+2
| | | | | Fix a reference leak in _io._WindowsConsoleIO: PyUnicode_FSDecoder() always initialize decodedname when it succeed and it doesn't clear input decodedname object.
* bpo-30592: Fixed error messages for some builtins. (#1996)Serhiy Storchaka2017-06-087-14/+14
| | | | | Error messages when pass keyword arguments to some builtins that don't support keyword arguments contained double parenthesis: "()()". The regression was introduced by bpo-30534.
* bpo-30594: Fixed refcounting in newPySSLSocket (#1992)Nathaniel J. Smith2017-06-081-2/+1
| | | If pass a server_hostname= that fails IDNA decoding to SSLContext.wrap_socket or SSLContext.wrap_bio, then the SSLContext object had a spurious Py_DECREF called on it, eventually leading to segfaults.
* bpo-30537: use PyNumber in itertools.islice instead of PyLong (#1918)Will Roberts2017-06-071-4/+4
| | | | | | | | * bpo-30537: use PyNumber in itertools instead of PyLong * bpo-30537: revert changes except to islice_new * bpo-30537: test itertools.islice and add entry to Misc/NEWS
* bpo-30353: Fix pass by value for structs on 64-bit Cygwin/MinGW (GH-1559)Erik Bray2017-06-072-2/+39
|
* Simplify X.509 extension handling code (#1855)Alex Gaynor2017-06-061-30/+4
| | | | | | | | * Simplify X.509 extension handling code The previous implementation had grown organically over time, as OpenSSL's API evolved. * Delete even more code
* bpo-30557: faulthandler now correctly filters and displays exception codes ↵Steve Dower2017-06-051-4/+4
| | | | | | | | | | on Windows (#1924) * bpo-30557: faulthandler now correctly filters and displays exception codes on Windows * Adds test for non-fatal exceptions. * Adds bpo number to comment.
* Fix bpo-30526: Add TextIOWrapper.reconfigure() and a ↵Antoine Pitrou2017-06-032-1/+96
| | | | | | | | | | TextIOWrapper.write_through attribute (#1922) * Fix bpo-30526: Add TextIOWrapper.reconfigure() * Apply Nick's improved wording * Update Misc/NEWS
* bpo-30544: _io._WindowsConsoleIO.write raises the wrong error when ↵Segev Finer2017-06-021-1/+1
| | | | | | | | WriteConsoleW fails (#1912) * bpo-30544: _io._WindowsConsoleIO.write raises the wrong error when WriteConsoleW fails * bpo-30544: _io._WindowsConsoleIO.write raises the wrong error when WriteConsoleW fails
* bpo-30245: Fix possible overflow when organize struct.pack_into error ↵Johan Liu2017-06-021-2/+5
| | | | message (#1682)
* Change error message for array methods to use 'array' instead of 'list'. (#1853)Jim Fasarakis-Hilliard2017-05-291-2/+2
|
* bpo-16500: Don't use string constants for os.register_at_fork() behavior (#1834)Gregory P. Smith2017-05-293-54/+76
| | | | Instead use keyword only arguments to os.register_at_fork for each of the scenarios. Updates the documentation for clarity.
* bpo-30248: Convert boolean arguments only once in _json. (#1423)Serhiy Storchaka2017-05-281-40/+24
| | | | | Rather than saving the Python object and calling PyObject_IsTrue() every time when the boolean argument is used, call it only once and save C boolean value.
* bpo-20210: Support the *disabled* marker in Setup files (GH-132)xdegaye2017-05-272-13/+37
| | | | | Extension modules listed after the *disabled* marker are not built at all, neither by the Makefile nor by setup.py.
* bpo-16500: Allow registering at-fork handlers (#1715)Antoine Pitrou2017-05-274-59/+212
| | | | | | | | | | | | * bpo-16500: Allow registering at-fork handlers * Address Serhiy's comments * Add doc for new C API * Add doc for new Python-facing function * Add NEWS entry + doc nit
* bpo-9146: Raise a ValueError if OpenSSL fails to init a hash func. (#1777)Gregory P. Smith2017-05-241-9/+36
| | | | This helps people in weird FIPS mode environments where common things like MD5 are not available in the binary as a matter of policy.