summaryrefslogtreecommitdiffstats
path: root/Misc
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* bpo-30215: Make re.compile() locale agnostic. (#1361)Serhiy Storchaka2017-05-051-0/+4
| | | | | | Compiled regular expression objects with the re.LOCALE flag no longer depend on the locale at compile time. Only the locale at matching time affects the result of matching.
* bpo-30185: avoid KeyboardInterrupt tracebacks in forkserver (#1319)Antoine Pitrou2017-05-041-0/+3
| | | | | | * bpo-30185: avoid KeyboardInterrupt tracebacks in forkserver * Tweak comment
* bpo-23404: make touch becomes make regen-all (#1405)Victor Stinner2017-05-031-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | Don't rebuild generated files based on file modification time anymore, the action is now explicit. Replace "make touch" with "make regen-all". Changes: * Remove "make touch", Tools/hg/hgtouch.py and .hgtouch * Add a new "make regen-all" command to rebuild all generated files * Add subcommands to only generate specific files: - regen-ast: Include/Python-ast.h and Python/Python-ast.c - regen-grammar: Include/graminit.h and Python/graminit.c - regen-importlib: Python/importlib_external.h and Python/importlib.h - regen-opcode: Include/opcode.h - regen-opcode-targets: Python/opcode_targets.h - regen-typeslots: Objects/typeslots.inc * Rename PYTHON_FOR_GEN to PYTHON_FOR_REGEN * pgen is now only built by by "make regen-grammar" * Add $(srcdir)/ prefix to paths to source files to handle correctly compilation outside the source directory Note: $(PYTHON_FOR_REGEN) is no more used nor needed by "make" default target building Python.
* bpo-30103: Allow Uuencode in Python using backtick as zero instead of space ↵Xiang Zhang2017-05-031-0/+3
| | | | | | (#1326)
* bpo-28556: Routine updates to typing (#1366)Ivan Levkivskyi2017-05-021-0/+4
| | | | | - Add NoReturn type - Use WrapperDescriptorType (original PR by Jim Fasarakis-Hilliard) - Minor bug-fixes
* bpo-30205: Fix getsockname() for unbound AF_UNIX sockets on Linux (#1370)Antoine Pitrou2017-05-021-0/+2
| | | | | | * bpo-30205: Fix getsockname() for unbound AF_UNIX sockets on Linux * Add NEWS entry
* bpo-30228: FileIO seek() and tell() set seekable (#1384)Victor Stinner2017-05-021-0/+3
| | | | | | | FileIO.seek() and FileIO.tell() method now set the internal seekable attribute to avoid one syscall on open() (in buffered or text mode). The seekable property is now also more reliable since its value is set correctly on memory allocation failure.
* bpo-30190: improved error msg for assertAlmostEqual(delta=...) (#1331)Giampaolo Rodola2017-05-011-1/+5
| | | | | | | | | | | | * #30190 / unittest / assertAlmostEqual(delta=...) / error msg: show the difference between the 2 numbers in case of failure * safe_repr() diff * also show difference when passing 'places' argument * refactoring * update Misc/NEWS
* bpo-30197: Enhance functions swap_attr() and swap_item() in test.support. ↵Serhiy Storchaka2017-04-281-0/+6
| | | | | | | | | | | | | (#1341) * bpo-30197: Enhance functions swap_attr() and swap_item() in test.support. They now work when delete replaced attribute or item inside the with statement. The old value of the attribute or item (or None if it doesn't exist) now will be assigned to the target of the "as" clause, if there is one. * Update docstrings.
* bpo-30101: Add support for curses.A_ITALIC. (#1015)Eijebong2017-04-262-0/+3
|
* bpo:29950: Rename SlotWrapperType to WrapperDescriptorType (GH-926)Jim Fasarakis-Hilliard2017-04-251-1/+1
|
* bpo-29822: Make inspect.isabstract() work during __init_subclass__. (#678)Nate2017-04-241-0/+3
| | | | | | | At the time when an abstract base class' __init_subclass__ runs, ABCMeta.__new__ has not yet finished running, so in the presence of __init_subclass__, inspect.isabstract() can no longer depend only on TPFLAGS_IS_ABSTRACT.
* bpo-29751: add Cheryl Sabella to Misc/ACKS (GH-1268)Mariatta2017-04-241-0/+1
|
* Remove unneeded Misc/NEWS entry for bpo-29802. (#1251)Serhiy Storchaka2017-04-221-3/+0
| | | The bug was added in still not released version.
* bpo-29960 _random.Random corrupted on exception in setstate(). (#1019)bladebryan2017-04-222-0/+4
|
* bpo-29802: Fix reference counting in module-level struct functions (#1213)Serhiy Storchaka2017-04-201-0/+3
| | | | when pass arguments of wrong type.
* bpo-12414: Update code_sizeof() to take in account co_extra memory. (#1168)Dong-hee Na2017-04-202-0/+5
|
* bpo-30070: Fixed leaks and crashes in errors handling in the parser module. ↵Serhiy Storchaka2017-04-191-0/+2
| | | | (#1131)
* bpo-22352: Adjust widths in the output of dis.dis() for large line numbers ↵Serhiy Storchaka2017-04-191-0/+3
| | | | | | | and (#1153) instruction offsets. Add tests for widths of opcode names.
* bpo-30061: Check if PyObject_Size()/PySequence_Size()/PyMapping_Size() (#1096)Serhiy Storchaka2017-04-191-0/+5
| | | | | | raised an error. Replace them with using concrete types API that never fails if appropriate.
* bpo-10076: Compiled regular expression and match objects now are copyable. ↵Serhiy Storchaka2017-04-161-0/+3
| | | | (#1000)
* bpo-29839: Raise ValueError rather than OverflowError in len() for negative ↵Serhiy Storchaka2017-04-161-0/+3
| | | | values. (#701)
* bpo-30068: add missing iter(self) in _io._IOBase.readlines when hint is ↵Xiang Zhang2017-04-151-2/+4
| | | | present (#1130)
* bpo-29738: Add Olivier Vielpeau to Misc/ACKS (GH-1146)Mariatta2017-04-151-0/+1
|
* bpo-11913: Add README.rst to the distutils standard READMEs list (#563)Ryan Gonzalez2017-04-141-2/+5
|
* bpo-29869: Add Nevada Sanchez to Misc/ACKS (GH-1125)Mariatta2017-04-141-1/+2
|
* bpo-29694: race condition in pathlib mkdir with flags parents=True (GH-1089)Armin Rigo2017-04-131-0/+4
|
* bpo-29995: re.escape() now escapes only special characters. (#1007)Serhiy Storchaka2017-04-131-0/+2
|
* bpo-26985: Add missing info of code object in inspect documentation (GH-1090)Xiang Zhang2017-04-131-0/+2
|
* bpo-30017: Allowed calling the close() method of the zip entry writer object ↵Serhiy Storchaka2017-04-121-0/+3
| | | | | | (#1041) multiple times. Writing to closed zip entry writer object now always produce a ValueError.
* bpo-29692: Add missing ACKS entry (#1079)Nick Coghlan2017-04-111-0/+1
|
* bpo-29692: contextlib.contextmanager may incorrectly unchain RuntimeError ↵svelankar2017-04-111-0/+3
| | | | | | | | | | (GH-949) contextlib._GeneratorContextManager.__exit__ includes a special case to deal with PEP 479 RuntimeErrors created when `StopIteration` is thrown into the context manager body. Previously this check was too permissive, and undid one level of chaining on *all* RuntimeError instances, not just those that wrapped a StopIteration instance.
* bpo-29506: Clarify deep copy note in copy moduleSanyam Khurana2017-04-091-0/+1
| | | | | | The reference to administrative data was confusing to readers, so this simplifies the note to explain that deep copying may copy more then you intended, such as data that you expected to be shared between copies.
* bpo-26187: Test that set_trace_callback() is not called multiple times (GH-461)Aviv Palivoda2017-04-091-0/+4
| | | | | | conn.set_trace_callback() shouldn't be called multiple times when the schema is changing. This has indirectly been fixed by using sqlite3_prepare_v2() in bpo-9303.
* bpo-29998: Pickling and copying ImportError now preserves name and path (#1010)Serhiy Storchaka2017-04-081-0/+3
| | | attributes.
* bpo-29914: Fix default implementations of __reduce__ and __reduce_ex__(). (#843)Serhiy Storchaka2017-04-081-0/+4
| | | | object.__reduce__() no longer takes arguments, object.__reduce_ex__() now requires one argument.
* bpo-28837: Fix lib2to3 handling of map/zip/filter calls when followed with a ↵Stuart Berg2017-04-061-0/+1
| | | | 'trailer', e.g. zip()[x] (#24)
* bpo-29962: add math.remainder (#950)Mark Dickinson2017-04-051-0/+3
| | | | | | | | | | | | | | * Implement math.remainder. * Fix markup for arguments; use double spaces after period. * Mark up function reference in what's new entry. * Add comment explaining the calculation in the final branch. * Fix out-of-order entry in whatsnew. * Add comment explaining why it's good enough to compare m with c, in spite of possible rounding error.
* Miscellaneous minor fixes of Misc/NEWS formatting. (#1002)Serhiy Storchaka2017-04-051-19/+19
|
* bpo-29649: Improve struct.pack_into() boundary error messages (#424)Andrew Nester2017-04-041-0/+3
|
* bpo-19225: Add a table of warning names and missed exception names in C API ↵cocoatomo2017-04-021-0/+1
| | | | | doc (#881) Move the `.. index` directive to more appropriate place.
* bpo-29654 : Support If-Modified-Since HTTP header (browser cache) (#298)Pierre Quentel2017-04-021-0/+3
| | | | Return 304 response if file was not modified.
* bpo-29957: change LBYL key lookup to dict.setdefault (#938)Michael Selik2017-04-021-0/+1
| | | | | | | | | | | | | * change LBYL key lookup to dict.setdefault The ``results`` was constructed as a defaultdict and we could simply delete the check ``if key not in results``. However, I think it's safer to use dict.setdefault as I'm not sure whether the caller expects a regular dict or defaultdict. * add name to the acknowledgements file * use defaultdict to make the key-lookup cleaner
* bpo-29949: Fix set memory usage regression (GH-943)INADA Naoki2017-04-011-0/+2
| | | | | Revert "Minor factoring: move redundant resize scaling logic into the resize function." This reverts commit 4897300276d870f99459c82b937f0ac22450f0b6.
* bpo-29931 fix __lt__ check in ipaddress.ip_interface for both v4 and v6. (#879)s-sanjay2017-04-011-0/+3
| | | | | | | | the original logic was just comparing the network address but this is wrong because if the network address is equal then we need to compare the ip address for breaking the tie add more ip_interface comparison tests
* bpo-29953: Fix memory leaks in the replace() method of datetime and time (#927)Serhiy Storchaka2017-03-311-0/+3
| | | objects when pass out of bound fold argument.
* bpo-29942: Fix the use of recursion in itertools.chain.from_iterable. (#889)T. Wouters2017-03-301-0/+3
| | | | | Fix the use of recursion in itertools.chain.from_iterable. Using recursion is unnecessary, and can easily cause stack overflows, especially when building in low optimization modes or with Py_DEBUG enabled.