summaryrefslogtreecommitdiffstats
path: root/Misc
Commit message (Collapse)AuthorAgeFilesLines
* [3.6] bpo-31675: Fix memory leaks in Tkinter's methods splitlist() and ↵Miss Islington (bot)2017-10-031-0/+2
| | | | | | | | split() (GH-3866) (#3874) when pass a string larger than 2 GiB. Decrease memory requirements for Tcl's bigmem tests. (cherry picked from commit 27c623c845dd6e4b8e1782666ca3a956636da266)
* [3.6] bpo-31673: Fixed typo in the name of Tkinter's method adderrorinfo(). ↵Serhiy Storchaka2017-10-031-0/+1
| | | | | (GH-3864). (#3873) (cherry picked from commit 929b40a601db868530d6beaafb3256822103a7fb)
* [3.6] bpo-31619: Fixed a ValueError when convert a string with large number ↵Miss Islington (bot)2017-10-031-0/+2
| | | | | | of underscores (GH-3827) (#3863) to integer with binary base. (cherry picked from commit 85c0b8941f0c8ef3ed787c9d504712c6ad3eb5d3)
* Merge v3.6.3 into 3.6 branchNed Deily2017-10-031-0/+27
|\
| * Update NEWS blurbs for 3.6.3 finalNed Deily2017-10-034-5/+27
| |
| * Improve/fix some Misc/NEWS entriesNed Deily2017-10-033-3/+3
| |
| * Add NEWS entries for 3.6.3 final cherrypicks.Ned Deily2017-10-034-0/+5
| |
* | [3.6] bpo-31516: current_thread() should not return a dummy thread at ↵Miss Islington (bot)2017-10-021-0/+1
| | | | | | | | | | | | shutdown (GH-3673) (#3856) bpo-31516: current_thread() should not return a dummy thread at shutdown (cherry picked from commit 1023dbbcb7f05e76053486ae7ef7f73b4cdc5398)
* | [3.6] bpo-31460: Simplify the API of IDLE's Module Browser. (GH-3842) (#3843)Terry Jan Reedy2017-10-011-0/+6
| | | | | | | | | | | | | | Passing a widget instead of an flist with a root widget opens the option of creating a browser frame that is only part of a window. Passing a full file name instead of pieces assumed to come from a .py file opens the possibility of browsing python files that do not end in .py. (cherry picked from commit d6bb65f)
* | [3.6] bpo-31649: Make IDLE's _htest, _utest parameters keyword-only. ↵Terry Jan Reedy2017-09-301-0/+1
| | | | | | | | | | (GH-3839) (#3841) (cherry picked from commit bfebfd8)
* | [3.6] bpo-31592: Fix an assertion failure in Python parser in case of a bad ↵Miss Islington (bot)2017-09-301-0/+2
| | | | | | | | | | unicodedata.normalize(). (GH-3767) (#3836) (cherry picked from commit 7dc46d8cf5854d9f4ce3271b29c21aea4872e8ad)
* | [3.6] bpo-25351: avoid activate failure on strict shells (GH-3804) (#3820)Miss Islington (bot)2017-09-291-0/+1
| | | | | | (cherry picked from commit 90f1d989594f3340c5ffaa2cf9cef1876ac6bb89)
* | [3.6] bpo-31536: Avoid wholesale rebuild after `make regen-all` (GH-3678) ↵Miss Islington (bot)2017-09-281-0/+1
| | | | | | | | | | | | (#3797) bpo-31536: Avoid wholesale rebuild after `make regen-all`
* | [3.6] bpo-31478: Fix an assertion failure in random.seed() in case a seed ↵Serhiy Storchaka2017-09-281-0/+2
| | | | | | | | | | has a bad __abs__() method. (GH-3596) (#3794) (cherry picked from commit d780b2d588e68bd7047ef5d1f04e36da38b7a350)
* | [3.6] closes bpo-22140: Prevent double substitution of prefix in ↵Benjamin Peterson2017-09-282-12/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | python-config.sh (GH-3769) (#3793) 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. (cherry picked from commit 14086cfc5eed8c5e78342d79e5db87a135d75fa8)
* | [3.6] bpo-31588: Validate return value of __prepare__() methods (GH-3790)Miss Islington (bot)2017-09-271-0/+2
| | | | | | | | | | | | | | | | | | | | | | 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. (cherry picked from commit 5837d0418f47933b2e3c139bdee8a79c248a943c)
* | [3.6] bpo-25532: Protect against infinite loops in inspect.unwrap() ↵Serhiy Storchaka2017-09-271-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | (GH-1717) (#3778) 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.. (cherry picked from commit f9169ce6b48c7cc7cc62d9eb5e4ee1ac7066d14b)
* | [3.6] bpo-31505: Fix an assertion failure in json, in case ↵Miss Islington (bot)2017-09-271-0/+2
| | | | | | | | | | _json.make_encoder() received a bad encoder() argument. (GH-3643) (#3777) (cherry picked from commit 2b382dd6121bb1e4b75470fb3ef8555665df3eb6)
* | [3.6] bpo-31285: Fix an assertion failure and a SystemError in ↵Serhiy Storchaka2017-09-271-0/+3
| | | | | | | | | | warnings.warn_explicit. (GH-3219) (#3775) (cherry picked from commit 91fb0afe181986b48abfc6092dcca912b39de51d)
* | [3.6] bpo-31490: Fix an assertion failure in ctypes in case an _anonymous_ ↵Miss Islington (bot)2017-09-271-0/+3
| | | | | | | | | | attr is defined only outside _fields_. (GH-3615) (#3774) (cherry picked from commit 30b61b51e05d2d43e8e2e783b0a9df738535423b)
* | [3.6] bpo-31492: Fix assertion failures in case of a module with a bad ↵Serhiy Storchaka2017-09-271-0/+3
| | | | | | | | | | __name__ attribute. (GH-3620). (#3773) (cherry picked from commit 6db7033192cd537ca987a65971acb01206c3ba82)
* | [3.6] bpo-30347: Stop crashes when concurrently iterate over ↵Miss Islington (bot)2017-09-261-0/+1
| | | | | | | | | | itertools.groupby() iterators. (GH-1557) (#3770) (cherry picked from commit c740e4fe8a9bc5815dc18c38d7f7600b128c3c51)
* | [3.6] bpo-31311: Fix a SystemError and a crash in ↵Miss Islington (bot)2017-09-251-0/+2
| | | | | | | | | | ctypes._CData.__setstate__(), in case of a bad __dict__. (GH-3254) (#3743) (cherry picked from commit 57c2561c8c5663aef55b00e3f29cba575ff36ccd)
* | [3.6] bpo-30085: Improve documentation for operator (GH-1171) (#3736)Miss Islington (bot)2017-09-241-0/+2
| | | | | | | | | | The dunderless functions are preferred; dunder are retained for back compatilibity. Patch by Sanket Dasgupta. (cherry picked from commit 5b9299d8c72aeadccadd77e4b8132094ba9a1f96)
* | [3.6] bpo-31566: Fix an assertion failure in _warnings.warn() in case of a ↵Miss Islington (bot)2017-09-241-0/+2
| | | | | | | | | | bad __name__ global. (GH-3717) (#3730) (cherry picked from commit 5d3e80021ab33360191eb0fbff34e0246c913884)
* | [3.6] bpo-31459: Rename IDLE's module browser from Class Browser to Module ↵Miss Islington (bot)2017-09-231-0/+7
| | | | | | | | | | | | | | | | | | | | | | Browser. (GH-3704) (#3710) 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. (cherry picked from commit cd99e79dc74c9d9dea83a5551d657c334b2cc6c9)
* | [3.6] bpo-31559: Remove test order dependence in idle_test.test_browser. ↵Miss Islington (bot)2017-09-231-0/+1
| | | | | | | | | | | | (GH-3708) (#3709) Order dependence caused leak-test buildbots to fail when running test_idle repeatedly. (cherry picked from commit 99167f85b7373c8082b30a74211f009627bdedfa)
* | [3.6] bpo-1612262: IDLE: Class Browser shows nested functions, classes ↵Terry Jan Reedy2017-09-221-0/+3
| | | | | | | | | | | | | | | | | | | | (GH-2573) (#3702) Original patches for code and tests by Guilherme Polo and Cheryl Sabella, respectively. (cherry picked from commit 058de11360ea6816a6e978c7be0bcbea99a3f7da)
* | bpo-31351: Set return code in ensurepip when pip fails (GH-3626) (GH-3683)Miss Islington (bot)2017-09-221-0/+2
| | | | | | | | | | | | | | | | Previously ensurepip would always report success, even if the pip installation failed. (cherry picked from commit 9adda0cdf89432386b7a04444a6199b580d287a1) * Update version changed notice for backport
* | [3.6] bpo-31500: IDLE: Scale default fonts on HiDPI displays. (GH-3639) (#3686)Terry Jan Reedy2017-09-211-0/+1
| | | | | | (cherry picked from commit a96c96f)
* | [3.6] closes bpo-31532: Fix memory corruption due to allocator mix (GH-3679) ↵Miss Islington (bot)2017-09-211-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | (#3681) Fix a memory corruption in getpath.c due to mixed memory allocators between Py_GetPath() and Py_SetPath(). The fix use the Raw allocator to mimic the windows version. This patch should be used from python3.6 to the current version for more details, see the bug report and https://github.com/pyinstaller/pyinstaller/issues/2812 (cherry picked from commit 3d1e2ab584ed0175592b5be2a0bc98dc1723776a)
* | [3.6] bpo-31482: Missing bytes support for random.seed() version 1 ↵Miss Islington (bot)2017-09-191-0/+1
| | | | | | | | | | (GH-3614) (GH-3659) (cherry picked from commit 132a7d7cdbc7cb89fa1c1f4e8192241c3d68f549)
* | [3.6] bpo-31293: Fix crashes in truediv and mul of a timedelta by a float ↵Miss Islington (bot)2017-09-191-0/+2
| | | | | | | | | | with a bad as_integer_ratio() method. (GH-3227) (#3654) (cherry picked from commit 865e4b4f630e2ae91e61239258abb58b488f1d65)
* | [3.6] bpo-31315: Fix an assertion failure in imp.create_dynamic(), when ↵Miss Islington (bot)2017-09-191-0/+2
|/ | | | | spec.name is not a string. (GH-3257) (#3653) (cherry picked from commit 9974e1bcf3d0cec9b38b39b39b7ec8a1ebd9ef54)
* Update pydoc topics and NEWS blurbs for 3.6.3rc1Ned Deily2017-09-19122-288/+1259
|
* [3.6] bpo-31499, xml.etree: Fix xmlparser_gc_clear() crash (GH-3641) (#3645)Miss Islington (bot)2017-09-181-0/+1
| | | | | | | | | | * bpo-31499, xml.etree: Fix xmlparser_gc_clear() crash xml.etree: xmlparser_gc_clear() now sets self.parser to NULL to prevent a crash in xmlparser_dealloc() if xmlparser_gc_clear() was called previously by the garbage collector, because the parser was part of a reference cycle. Co-Authored-By: Serhiy Storchaka <storchaka@gmail.com> (cherry picked from commit e727d41ffcd91b21ce82026ec8c8381d34a16209)
* [3.6] bpo-31493: Fix code context update and font update timers. (GH-3622) ↵Miss Islington (bot)2017-09-171-0/+3
| | | | | | | (#3623) Canceling timers prevents a warning message when test_idle completes. (This is the minimum fix needed before upcoming releases.) (cherry picked from commit a6bb313c70f8619e6dc4af5cef7d73fa3bbd59ca)
* [3.6] bpo-31488: IDLE - update former extensions when options change. ↵Miss Islington (bot)2017-09-161-0/+4
| | | | | | | (GH-3612) (#3613) When apply ConfigDialog changes, call .reload on each class with non-key options. Change ParenMatch so that updates affect current instances. (cherry picked from commit 5777ecc438790f3d324d52f2ccdad56e667e0cb3)
* [3.6] bpo-314777: IDLE - improve rstrip entry in doc (GH-3602) (#3605)Terry Jan Reedy2017-09-151-0/+2
| | | | | 'Strip trailing whitespace' is not limited to spaces. Wording caters to beginners who do know know the meaning of 'whitespace'. Multiline string literals are not skipped. (cherry picked from commit ff70289)
* [3.6] bpo-31480: IDLE - fix tests to pass with zzdummy extension disabled. ↵Miss Islington (bot)2017-09-151-0/+1
| | | | | | (GH-3590) (#3591) Enabled by default was a temporary expedient. The fix is to add a user override to enable. (cherry picked from commit d384a81f557dab0b142bfcc9850bc68df46496ef)
* [3.6] bpo-31455: Fix an assertion failure in ElementTree.XMLParser(). ↵Miss Islington (bot)2017-09-141-0/+2
| | | | | | | | (GH-3545) (#3585) * Avoid calling "PyObject_GetAttrString()" (and potentially executing user code) with a live exception set. * Ignore only AttributeError on attribute lookups in ElementTree.XMLParser() and propagate all other exceptions. (cherry picked from commit c8d8e15bfc24abeeaaf3d8be9073276b0c011cdf)
* [3.6] bpo-28556: typing.get_type_hints: better globalns for classes and ↵Miss Islington (bot)2017-09-141-0/+2
| | | | | | | | | | | | | | | | modules (GH-3582) (#3583) This makes the default behavior (without specifying `globalns` manually) more predictable for users, finds the right globalns automatically. Implementation for classes assumes has a `__module__` attribute and that module is present in `sys.modules`. It does this recursively for all bases in the MRO. For modules, the implementation just uses their `__dict__` directly. This is backwards compatible, will just raise fewer exceptions in naive user code. Originally implemented and reviewed at https://github.com/python/typing/pull/470. (cherry picked from commit f350a268a7071ce7d7a5bb86a9b1229782d4963b)
* [3.6] bpo-31471: Fix assertion failure in subprocess.Popen() on Windows, in ↵Miss Islington (bot)2017-09-141-0/+2
| | | | | case env has a bad keys() method. (GH-3580) (#3584) (cherry picked from commit 0b3a87ef54a0112b74e8a1d8c6f87d10db4239ab)
* [3.6] bpo-31457: Allow for nested LoggerAdapter objects (GH-3551) (#3576)Miss Islington (bot)2017-09-141-0/+1
| | | | | | | Some of the proxied methods use internal Logger state which isn't proxied, causing failures if an adapter is applied to another adapter. This commit fixes the issue, adds a new test for the use case. (cherry picked from commit 1bbd482bcf6ea36bfe488f868810ffe110238ae1)
* [3.6] bpo-31418: Fix an assertion failure in PyErr_WriteUnraisable() in case ↵Miss Islington (bot)2017-09-141-0/+2
| | | | | of an exception with a bad __module__ attribute. (GH-3539) (#3556) (cherry picked from commit f6e61df01536493f1280cd07639c7ff9bffb2cdc)
* [3.6] bpo-28556: Minor updates to typing module (GH-3550) (#3558)Miss Islington (bot)2017-09-141-0/+2
| | | | | * Copy changes to typing from upstream repo * Add NEWS entry (cherry picked from commit 65bc62052fe5d550cb14c0033e8a2550618fb7b9)
* [3.6] bpo-31234, socket.create_connection(): Fix ref cycle (GH-3546) (#3552)Miss Islington (bot)2017-09-131-0/+2
| | | (cherry picked from commit acb9fa79fa6453c2bbe3ccfc9cad2837feb90093)
* [3.6] bpo-31421: Document how IDLE runs tkinter programs. (GH-3513) (#3514)Miss Islington (bot)2017-09-121-0/+4
| | | | | IDLE calls tcl/tk update in the background in order to make live interaction and experimentatin with tkinter applications much easier. (cherry picked from commit 98758bc67fb39b74bab368bef8ff3b34554c77c8)
* [3.6] bpo-31416: Fix assertion failures in case of a bad warnings.filters or ↵Serhiy Storchaka2017-09-121-0/+2
| | | | | | warnings.defaultaction. (GH-3496) (#3509) Patch by Oren Milman.. (cherry picked from commit 9d984fd2b097c8c29479d1c3eb740995fe1ccb0d)
* [3.6] bpo-31414: IDLE -- fix tk entry box tests by deleting first. (GH-3501) ↵Miss Islington (bot)2017-09-111-0/+2
| | | | | | | (#3502) Adding to an int entry is not the same as deleting and inserting because int('') will fail. (cherry picked from commit 667522efa8fedfb57fd89d7335d7dfd270f274d5)