- 28 Sep, 2017 1 commit
-
-
Oren Milman authored
bpo-31478: Fix an assertion failure in random.seed() in case a seed has a bad __abs__() method. (#3596)
-
- 27 Sep, 2017 5 commits
-
-
Barry Warsaw authored
-
Oren Milman authored
Class execution requires that __prepare__() methods return a proper execution namespace. Check for that immediately after calling __prepare__(), rather than passing it through to the code execution machinery and potentially triggering SystemError (in debug builds) or a cryptic TypeError (in release builds). Patch by Oren Milman.
-
Benjamin Peterson authored
-
Michał Górny authored
Fix the logic in python-config.sh to avoid attempting to substitute prefix in a variable that might have already been subject to substitution. This e.g. happened if @exec_prefix@ was defined as "${prefix}" (which is the default of the configure script) -- in which case the exec_prefix_build variable was initialized with already-subtituted prefix, and then another round of substitution was performed which might have resulted in duplicate prefix. To avoid that, rename the variables so that the variables matching likely configure names (prefix, exec_prefix) retain their original values and a '_real' suffix is used for the real values of prefix. Furthermore, replace the unnecessary prefix and exec_prefix substitutions with direct prefix_real references since the sed always replaced the whole string anyway by design.
-
Oren Milman authored
-
- 26 Sep, 2017 3 commits
-
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
-
- 25 Sep, 2017 9 commits
-
-
Guilherme Caminha authored
- Remove the second mention about the `u` prefix - Remove the second mention about numeric literals do not include a sign
-
Serhiy Storchaka authored
-
Stefan Grönke authored
-
Raymond Hettinger authored
-
Victor Stinner authored
Non-regression tests for the Expat 2.2.3 UTF-8 decoder bug.
-
Raymond Hettinger authored
-
Oren Milman authored
bpo-31311: Fix a SystemError and a crash in ctypes._CData.__setstate__(), in case of a bad __dict__. (#3254)
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
- 24 Sep, 2017 10 commits
-
-
Benjamin Peterson authored
Python requires C implementations provide memmove, so we shouldn't need to check for it. The only place using this configure check was expat, where we can simply always define HAVE_MEMMOVE.
-
Sanket Dasgupta authored
The dunderless functions are preferred; dunder are retained for back compatilibity. Patch by Sanket Dasgupta.
-
Oren Milman authored
-
Oren Milman authored
-
Henk-Jaap Wagenaar authored
A `"` was missing from an `<a href>` tag.
-
Serhiy Storchaka authored
Defer removing old behavior to 3.8. Document new feature of selection_set() and friends.
-
Serhiy Storchaka authored
now becames exhausted after advancing the groupby iterator.
-
Oren Milman authored
bpo-31311: Impove error reporting in case the first argument to PyCData_setstate() isn't a dictionary. (#3255)
-
Oren Milman authored
bpo-31505: Fix an assertion failure in json, in case _json.make_encoder() received a bad encoder() argument. (#3643)
-
topper-123 authored
Mention that ``NewType`` can derive from another ``NewType``.
-
- 23 Sep, 2017 5 commits
-
-
Serhiy Storchaka authored
-
Cheryl Sabella authored
The original module-level class and method browser became a module browser, with the addition of module-level functions, years ago. Nested classes and functions were added yesterday. For back- compatibility, the virtual event <<open-class-browser>>, which appears on the Keys tab of the Settings dialog, is not changed. Patch by Cheryl Sabella.
-
Terry Jan Reedy authored
Order dependence caused leak-test buildbots to fail when running test_idle repeatedly.
-
Dmitry Chestnykh authored
-
Benjamin Peterson authored
-
- 22 Sep, 2017 6 commits
-
-
Cheryl Sabella authored
Original patches for code and tests by Guilherme Polo and Cheryl Sabella, respectively.
-
Neil Schemenauer authored
* Maintain a list of BufferedWriter objects. Flush them on exit. In Python 3, the buffer and the underlying file object are separate and so the order in which objects are finalized matters. This is unlike Python 2 where the file and buffer were a single object and finalization was done for both at the same time. In Python 3, if the file is finalized and closed before the buffer then the data in the buffer is lost. This change adds a doubly linked list of open file buffers. An atexit hook ensures they are flushed before proceeding with interpreter shutdown. This is addition does not remove the need to properly close files as there are other reasons why buffered data could get lost during finalization. Initial patch by Armin Rigo. * Use weakref.WeakSet instead of WeakKeyDictionary. * Simplify buffered double-linked list types. * In _flush_all_writers(), suppress errors from flush(). * Remove NEWS entry, use blurb. * Take more care when flushing file buffers from atexit. The previous implementation was not careful enough to avoid causing issues in multi-threaded cases. Check for buf->ok and buf->finalizing before actually doing the flush. Also, increase the refcnt to ensure the object does not disappear.
-
François Magimel authored
Use prefixed macro names for the `authoraddress` function, add T2A to the font encoding in LaTeX sources to support Cyrillic characters in the PDF documentation, and replace the deprecated `font_size` config option with `pointsize`.
-
Barry Warsaw authored
* Give pdb.set_trace() an optional `header` argument * What's new. * Give pdb.set_trace() an optional `header` argument * What's new.
-
Stefan Krah authored
-
Stefan Krah authored
-
- 21 Sep, 2017 1 commit
-
-
Serhiy Storchaka authored
-