summaryrefslogtreecommitdiffstats
path: root/Misc
Commit message (Collapse)AuthorAgeFilesLines
* bpo-30520: Implemented pickling for loggers. (#1956)Vinay Sajip2017-06-061-1/+3
| | | Implemented pickling for loggers.
* bpo-30095: Make CSS classes used by calendar.HTMLCalendar customizable (GH-1439)Oz N Tiram2017-06-061-0/+1
| | | Several class attributes have been added to calendar.HTMLCalendar that allow customization of the CSS classes used in the resulting HTML. This can be done by subclasses HTMLCalendar and overwriting those class attributes (Patch by Oz Tiram).
* bpo-30557: faulthandler now correctly filters and displays exception codes ↵Steve Dower2017-06-051-0/+3
| | | | | | | | | | 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-031-0/+3
| | | | | | | | | | TextIOWrapper.write_through attribute (#1922) * Fix bpo-30526: Add TextIOWrapper.reconfigure() * Apply Nick's improved wording * Update Misc/NEWS
* bpo-24899: Add comparison table for os.path -> pathlib (GH-1753)Jamiel Almeida2017-06-021-4/+5
|
* bpo-30052: Always regenerate cross-references (#1339)Nick Coghlan2017-06-021-0/+9
| | | | | | | | | | | | | * bpo-30052: Always regenerate cross-references The patch for bpo-30052 changed the preferred link target for :func:`bytes` and :func`bytearray` references to be the respective type definitions rather than the corresponding builtin function entries. This patch changes the daily documentation builds to disable the output caching in Sphinx, in order to ensure that cross-reference changes like this one are reliably picked up and applied automatically after merging.
* bpo-30245: Fix possible overflow when organize struct.pack_into error ↵Johan Liu2017-06-022-0/+4
| | | | message (#1682)
* bpo-30378: Fix the problem that SysLogHandler can't handle IPv6 addresses ↵Xiang Zhang2017-06-011-0/+3
| | | | (#1676)
* bpo-25324: copy tok_name before changing it (#1608)Albert-Jan Nijburg2017-05-311-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | * add test to check if were modifying token * copy list so import tokenize doesnt have side effects on token * shorten line * add tokenize tokens to token.h to get them to show up in token * move ERRORTOKEN back to its previous location, and fix nitpick * copy comments from token.h automatically * fix whitespace and make more pythonic * change to fix comments from @haypo * update token.rst and Misc/NEWS * change wording * some more wording changes
* Doc nits for bpo-16500 (#1841)Antoine Pitrou2017-05-281-0/+3
| | | | | | * Doc nits for bpo-16500 * Fix more references
* bpo-20210: Support the *disabled* marker in Setup files (GH-132)xdegaye2017-05-271-0/+4
| | | | | 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-271-0/+2
| | | | | | | | | | | | * 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-30470: Deprecate invalid ctypes call protection on Windows. (GH-1810)Mariatta2017-05-271-0/+3
| | | Calling Ctypes functions is deprecated in 3.6.2 and will be removed in 3.7
* bpo-30414: multiprocessing.Queue._feed do not break from main loop on exc ↵grzgrzgrz32017-05-251-0/+3
| | | | | | | | | | | | | | | | | | (#1683) * bpo-30414: multiprocesing.Queue._feed do not break from main loop on exc Queue background running thread was not handling exceptions correctly. Any exception occurred inside thread (putting unpickable object) cause feeder to finish running. After that every message put into queue is silently ignored. * bpo-30414: multiprocesing.Queue._feed do not break from main loop on exc Queue background running thread was not handling exceptions correctly. Any exception occurred inside thread (putting unpickable object) cause feeder to finish running. After that every message put into queue is silently ignored.
* bpo-29104: Fixed parsing backslashes in f-strings. (#490)Serhiy Storchaka2017-05-251-0/+2
|
* bpo-29851: Have importlib.reload() raise ImportError if the module's spec is ↵Garvit Khatri2017-05-242-0/+4
| | | | not found (GH-972)
* bpo-28845: Clean up known issues for AIX (GH-1670)Eric N. Vander Weele2017-05-241-7/+0
| | | | | | | | | Clean up `Misc/README.AIX` for addressed known issues. - Issues that have been marked fixed: #11184, #11185 - Issues resolved by new AIX version: #1745108 - Issues resolved, but not yet marked fixed/closed: #11188 Signed-off-by: Eric N. Vander Weele <ericvw@gmail.com>
* bpo-22257: Small changes for PEP 432. (#1728)Eric Snow2017-05-231-0/+2
| | | PEP 432 specifies a number of large changes to interpreter startup code, including exposing a cleaner C-API. The major changes depend on a number of smaller changes. This patch includes all those smaller changes.
* bpo-25532: Protect against infinite loops in inspect.unwrap() (#1717)Thomas Kluyver2017-05-231-0/+4
| | | | | | | | | Some objects (like test mocks) auto-generate new objects on attribute access, which can lead to an infinite loop in inspect.unwrap(). Ensuring references are retained to otherwise temporary objects and capping the size of the memo dict turns this case into a conventional exception instead.
* bpo-29102: Add a unique ID to PyInterpreterState. (#1639)Eric Snow2017-05-231-0/+3
|
* bpo-30395 _PyGILState_Reinit deadlock fix (#1734)Jason Fried2017-05-221-0/+1
| | | | head_lock could be held by another thread when fork happened. We should reset it to avoid deadlock.
* Add --with-assertions configure flag to enable C assertions(#1731)T. Wouters2017-05-221-0/+4
| | | Defaults to 'no', but as before assertions are implied by --with-pydebug.
* bpo-30003: Fix handling escape characters in HZ codec (#1556)Xiang Zhang2017-05-221-0/+3
|
* bpo-27945: Fixed various segfaults with dict. (#1657)Serhiy Storchaka2017-05-202-0/+5
| | | | Based on patches by Duane Griffin and Tim Mitchell.
* bpo-17188: DOC: Document 'from None' in raise statement (#1671)csabella2017-05-201-0/+1
| | | | | Original patch by Dennis Mårtensson.
* bpo-25794: Fix `type.__setattr__()` for non-interned attribute names. (#1652)Serhiy Storchaka2017-05-201-0/+3
| | | | Based on patch by Eryk Sun.
* bpo-30039: Don't run signal handlers while resuming a yield from stack (#1081)Nathaniel J. Smith2017-05-171-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If we have a chain of generators/coroutines that are 'yield from'ing each other, then resuming the stack works like: - call send() on the outermost generator - this enters _PyEval_EvalFrameDefault, which re-executes the YIELD_FROM opcode - which calls send() on the next generator - which enters _PyEval_EvalFrameDefault, which re-executes the YIELD_FROM opcode - ...etc. However, every time we enter _PyEval_EvalFrameDefault, the first thing we do is to check for pending signals, and if there are any then we run the signal handler. And if it raises an exception, then we immediately propagate that exception *instead* of starting to execute bytecode. This means that e.g. a SIGINT at the wrong moment can "break the chain" – it can be raised in the middle of our yield from chain, with the bottom part of the stack abandoned for the garbage collector. The fix is pretty simple: there's already a special case in _PyEval_EvalFrameEx where it skips running signal handlers if the next opcode is SETUP_FINALLY. (I don't see how this accomplishes anything useful, but that's another story.) If we extend this check to also skip running signal handlers when the next opcode is YIELD_FROM, then that closes the hole – now the exception can only be raised at the innermost stack frame. This shouldn't have any performance implications, because the opcode check happens inside the "slow path" after we've already determined that there's a pending signal or something similar for us to process; the vast majority of the time this isn't true and the new check doesn't run at all.
* bpo-30149: Fix partialmethod without explicit self parameter (#1308)Dong-hee Na2017-05-171-0/+4
|
* bpo-30301: Fix AttributeError when using SimpleQueue.empty() (#1601)Xiang Zhang2017-05-171-0/+3
| | | | | Under *spawn* and *forkserver* start methods, SimpleQueue.empty() could raise AttributeError due to not setting _poll in __setstate__.
* bpo-30380: Fix Sphinx 1.6.1 warnings. (#1613)Serhiy Storchaka2017-05-161-2/+2
| | | | | | | | * Use explicit numbering for footnotes referred by explicit number. * Restore missed footnote reference in stdtypes.rst. * Fix literal strings formatting in howto/urllib2.rst. * Update susp-ignored.csv for zipapp.rst. * Fix suspicious mark up in Misc/NEWS.
* bpo-30375: Correct the stacklevel of regex compiling warnings. (#1595)Serhiy Storchaka2017-05-161-0/+4
| | | | | | Warnings emitted when compile a regular expression now always point to the line in the user code. Previously they could point into inners of the re module if emitted from inside of groups or conditionals.
* bpo-30357: test_thread now uses threading_cleanup() (#1592)Victor Stinner2017-05-152-0/+6
| | | | | | | test_thread: setUp() now uses support.threading_setup() and support.threading_cleanup() to wait until threads complete to avoid random side effects on following tests. Co-Authored-By: Grzegorz Grzywacz <grzegorz.grzywacz@nazwa.pl>
* bpo-30329: Catch Windows error 10022 on shutdown() (#1538)Victor Stinner2017-05-151-0/+4
| | | | | | Catch the Windows socket WSAEINVAL error (code 10022) in imaplib and poplib on shutdown(SHUT_RDWR): An invalid operation was attempted This error occurs sometimes on SSL connections.
* bpo-29196: Removed old-deprecated classes Plist, Dict and _InternalDict (#488)Serhiy Storchaka2017-05-151-0/+5
| | | | | in the plistlib module. Dict values in the result of functions readPlist() and readPlistFromBytes() are now exact dicts.
* bpo-9850: Document macpath deprecation in Misc/NEWS (#1590)Victor Stinner2017-05-151-0/+3
|
* bpo-30299: Display a bytecode when compile a regex in debug mode. (#1491)Serhiy Storchaka2017-05-141-0/+3
| | | | | `re.compile(..., re.DEBUG)` now displays the compiled bytecode in human readable form.
* bpo-30340: Enhanced regular expressions optimization. (#1542)Serhiy Storchaka2017-05-141-0/+3
| | | | This increased the performance of matching some patterns up to 25 times.
* bpo-30178: Add Jim Fasarakis-Hilliard to Misc/ACKS (GH-1572)Mariatta2017-05-131-0/+1
|
* bpo-28974: `object.__format__(x, '')` is now equivalent to `str(x)` (#506)Serhiy Storchaka2017-05-131-0/+3
| | | | rather than `format(str(self), '')`.
* bpo-30048: asyncio: fix Task.cancel() was ignored. (GH-1097)INADA Naoki2017-05-111-0/+3
| | | | | | | | | | | | when there are no more `await` or `yield (from)` before return in coroutine, cancel was ignored. example: async def coro(): asyncio.Task.current_task().cancel() return 42 ... res = await coro() # should raise CancelledError
* bpo-28787: Fix out of tree --with-dtrace builds (#135)stratakis2017-05-102-0/+4
| | | | | | | | * bpo-28787: Fix out of tree --with-dtrace builds * Unsilence directory creation * Add Misc/NEWS and Misc/ACKS entries
* bpo-30298: Weaken the condition of deprecation warnings for inline ↵Serhiy Storchaka2017-05-101-0/+6
| | | | | | | | modifiers. (#1490) Now allowed several subsequential inline modifiers at the start of the pattern (e.g. '(?i)(?s)...'). In verbose mode whitespaces and comments now are allowed before and between inline modifiers (e.g. '(?x) (?i) (?s)...').
* bpo-30285: Optimize case-insensitive matching and searching (#1482)Serhiy Storchaka2017-05-091-0/+3
| | | | of regular expressions.
* bpo-30024: Circular imports involving absolute imports with binding (#1264)Serhiy Storchaka2017-05-091-0/+3
| | | a submodule to a name are now supported.
* bpo-29990: Fix range checking in GB18030 decoder (#1495)Xiang Zhang2017-05-091-0/+2
| | | When decoding a 4-byte GB18030 sequence, the first and third byte cannot exceed 0xFE.
* bpo-29979: Rewrite cgi.parse_multipart to make it consistent with ↵Pierre Quentel2017-05-081-0/+4
| | | | FieldStorage (#991)
* Revert bpo-26293 for zipfile breakage. See also bpo-29094. (#1484)Serhiy Storchaka2017-05-061-7/+0
|
* bpo-30218: support path-like objects in shutil.unpack_archive() (GH-1367)Jelle Zijlstra2017-05-051-0/+3
| | | Thanks to Jelle Zijlstra for the patch.
* bpo-29243: Fix Makefile with respect to --enable-optimizations (#1478)torsava2017-05-052-0/+5
| | | | | | | | | | | | | * bpo-29243: Fix Makefile with respect to --enable-optimizations When using the Profile Guided Optimization (./configure --enable-optimizations) Python is built not only during `make` but rebuilt again during `make test`, `make install` and others. This patch fixes the issue. Note that this fix produces no change at all in the Makefile if configure is run witout --enable-optimizations. * !squash
* bpo-30243: Fixed the possibility of a crash in _json. (#1420)Serhiy Storchaka2017-05-051-0/+4
| | | | | | It was possible to get a core dump by using uninitialized _json objects. Now __new__ methods create initialized objects. __init__ methods are removed.