[issue17187] Python segfaults from improperly formed and called function

2017-06-22 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> not a bug stage: needs patch -> resolved status: pending -> closed ___ Python tracker

[issue30736] Support Unicode 10.0

2017-06-22 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

[issue30736] Support Unicode 10.0

2017-06-22 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 279a96206f3118a482d10826a1e32b272db4505d by Benjamin Peterson in branch 'master': bpo-30736: upgrade to Unicode 10.0 (#2344) https://github.com/python/cpython/commit/279a96206f3118a482d10826a1e32b272db4505d --

[issue30721] Show expected input for right shift operator usage in custom "print" error message

2017-06-22 Thread Sanyam Khurana
Changes by Sanyam Khurana : -- pull_requests: +2390 ___ Python tracker ___ ___

[issue24860] Can IDLE's query box be improved

2017-06-22 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- assignee: -> terry.reedy ___ Python tracker ___ ___

[issue24860] Can IDLE's query box be improved

2017-06-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: The patch is mostly obsolete. I added query.py a year ago, which replaced the open-module box and those used in configdialog. The code began with one of the existing boxes, but it has the two improvements listed above: a) stay open on error (really helpful

[issue29887] test_normalization doesn't work

2017-06-22 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- pull_requests: +2389 ___ Python tracker ___ ___

[issue25020] IDLE - centralize ui policies and small utilities

2017-06-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: The specific patch is out-of-date. IDLE 3.6+ requires tk 8.5+. We should finish converting everything to ttk before 3.7.0. In practice, I believe people are using late 8.5 or 8.6. 8.5.9 on Apple is too buggy to really use and latest ActiveState 8.5 for mac

[issue22460] idle editor: replace all in selection

2017-06-22 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- assignee: -> terry.reedy stage: needs patch -> test needed versions: +Python 3.6, Python 3.7 -Python 2.7, Python 3.4, Python 3.5 ___ Python tracker

[issue25032] IDLE - same menubar across application

2017-06-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree. Better to gray-out inactive items. I believe bar is already somewhat shared on mac. We are working on other changes needed to use tabbed notebooks. -- assignee: -> terry.reedy stage: -> needs patch type: -> enhancement versions: +Python

[issue1080387] Making IDLE Themes and Keys Config more Robust

2017-06-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: These additions happened years ago, though the foreground is now different. +builtin-foreground= #ca00ca +builtin-background= #ff -- assignee: kbk -> terry.reedy nosy: +terry.reedy resolution: -> out of date stage: needs patch -> resolved status:

[issue30736] Support Unicode 10.0

2017-06-22 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- pull_requests: +2388 ___ Python tracker ___ ___

[issue25224] Replace Idle's README.txt with annotated file list

2017-06-22 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue25125] "Edit with IDLE" does not work for shortcuts

2017-06-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is not an IDLE code issue, but an installation issue, and I think one main entry with a submenu is proper. I just tried clicking on '3.5.3' and '3.6.2' and both opened an editor for a .py file with the corresponding version. -- resolution: ->

[issue15216] Add encoding & errors parameters to TextIOWrapper.reconfigure()

2017-06-22 Thread INADA Naoki
Changes by INADA Naoki : -- pull_requests: +2387 ___ Python tracker ___ ___

[issue30709] Bad getter from Descriptor#Properties example

2017-06-22 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue24252] IDLE removes elements from tracebacks.

2017-06-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: #26627 was closed as an apparent duplicate of this. It should be rechecked if this is fixed. -- assignee: -> terry.reedy versions: +Python 3.7 -Python 2.7, Python 3.4, Python 3.5 ___ Python tracker

[issue30709] Bad getter from Descriptor#Properties example

2017-06-22 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset d79ac2c2468f072653ed9096cd33f89acb6ff5bb by Mariatta in branch '3.6': [3.6] bpo-30709: Improve code example in Descriptor HowTo doc (GH-2339) (GH-2342) https://github.com/python/cpython/commit/d79ac2c2468f072653ed9096cd33f89acb6ff5bb

[issue30709] Bad getter from Descriptor#Properties example

2017-06-22 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 508267437cc66fdadc12fb19fb2958c452b8a26f by Mariatta in branch '2.7': [2.7] bpo-30709: Improve code example in Descriptor HowTo doc (GH-2339) (GH-2340) https://github.com/python/cpython/commit/508267437cc66fdadc12fb19fb2958c452b8a26f

[issue30709] Bad getter from Descriptor#Properties example

2017-06-22 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 8aa15ba884b14c1cf65d4c1a4c5abc4253f5c9ed by Mariatta in branch '3.5': [3.5] bpo-30709: Improve code example in Descriptor HowTo doc (GH-2339) (GH-2341) https://github.com/python/cpython/commit/8aa15ba884b14c1cf65d4c1a4c5abc4253f5c9ed

[issue26627] IDLE incorrectly labeling error as internal

2017-06-22 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- assignee: -> terry.reedy resolution: -> duplicate stage: test needed -> resolved status: open -> closed superseder: -> IDLE removes elements from tracebacks. ___ Python tracker

[issue26993] Copy idlelib *.py files with new names

2017-06-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: Files were renamed later in May. Some things were backported to 3.5 and even 2.7 for 3.5.3 and 2.7.13. Anything involving ttk, which will soon be nearly all tkinter code, could not and cannot be backported. -- resolution: postponed -> rejected

[issue30709] Bad getter from Descriptor#Properties example

2017-06-22 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +2386 ___ Python tracker ___ ___

[issue30709] Bad getter from Descriptor#Properties example

2017-06-22 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +2385 ___ Python tracker ___ ___

[issue30709] Bad getter from Descriptor#Properties example

2017-06-22 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +2384 ___ Python tracker ___ ___

[issue27162] Add idlelib.interface module

2017-06-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: Nick later suggested against this, and in the absence of requests, I don't want to do this, at least not before 3.7, if ever. What if we make a change that makes the public promise awkward? The docstring for colordelegator should say how it is used (in IDLE

[issue16198] IDLE - tabbing in a string always brings up file completion window

2017-06-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: I pushed a patch on another issue that fixed tabbing on lines after the first line within multiline strings. With 3.6, I verified that tabbing anywhere on the same line of an opening quote, except immediately after the quote, brings up the box. --

[issue30709] Bad getter from Descriptor#Properties example

2017-06-22 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset b066edfb1b268e90ea11f45dd1827f46d7ceec88 by Mariatta (_ = NaN) in branch 'master': bpo-30709: Improve code example in Descriptor HowTo doc (GH-2339) https://github.com/python/cpython/commit/b066edfb1b268e90ea11f45dd1827f46d7ceec88 --

[issue30709] Bad getter from Descriptor#Properties example

2017-06-22 Thread AnqurVanillapy
AnqurVanillapy added the comment: Previous conversation here: https://github.com/python/cpython/pull/2288 -- ___ Python tracker ___

[issue30709] Bad getter from Descriptor#Properties example

2017-06-22 Thread AnqurVanillapy
Changes by AnqurVanillapy : -- pull_requests: +2382 ___ Python tracker ___ ___

[issue15308] IDLE - add an "Interrupt Execution" to shell menu

2017-06-22 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue29910] Ctrl-D eats a character on IDLE

2017-06-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: I have since discovered the [unified][split] buttons in the diff windows. I have also starting applying the return run elsewhere in idlelib. I had to think about paren_match_event. It is bound to KeyRelease-parenright, etc, via config-extentions.def and

[issue30016] No sideways scrolling in IDLE

2017-06-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: I believe this is about, or would be satisfied, by a horizontal scrollbar, the subject of #1207613. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Idle Editor: Bottom Scroll Bar

[issue30619] typing.Union doc incoherence in case a class and its subclass are present

2017-06-22 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Fixed and backported to 3.5 and 3.6. Thanks! -- resolution: -> fixed stage: backport needed -> resolved status: open -> closed versions: +Python 3.7 ___ Python tracker

[issue30619] typing.Union doc incoherence in case a class and its subclass are present

2017-06-22 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset ce1bd6ac7ffaf396157a9ceb55b281a3b196323f by Mariatta in branch '3.5': [3.5] bpo-30619: Clarify typing.Union documentation (GH-2326) (GH-2338) https://github.com/python/cpython/commit/ce1bd6ac7ffaf396157a9ceb55b281a3b196323f --

[issue30303] IDLE: Add _utest to textview and add textview tests

2017-06-22 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> fixed stage: backport needed -> resolved status: open -> closed ___ Python tracker ___

[issue30619] typing.Union doc incoherence in case a class and its subclass are present

2017-06-22 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +2381 ___ Python tracker ___ ___

[issue24813] Redesign Help => About IDLE, make it non-modal

2017-06-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: I experimented with how the icon looks with different backgrounds, for point 4. Because the paper holes are transparent, white is bad, proposed light gray okay, black is good. Overall white on black is better than white on current dingy gray, so I consider

[issue30619] typing.Union doc incoherence in case a class and its subclass are present

2017-06-22 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 8baf78b98f3acd76e51a4381542ff1612911b18f by Mariatta in branch '3.6': [3.6] bpo-30619: Clarify typing.Union documentation (GH-2326) (GH-2337) https://github.com/python/cpython/commit/8baf78b98f3acd76e51a4381542ff1612911b18f --

[issue30731] Use correct executable manifest for windows

2017-06-22 Thread tumagonx
tumagonx added the comment: @Segev oops, must be my own typo "i" when I try repair the manifest. sorry about that. -- ___ Python tracker ___

[issue30619] typing.Union doc incoherence in case a class and its subclass are present

2017-06-22 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +2380 ___ Python tracker ___ ___

[issue24813] Redesign Help => About IDLE, make it non-modal

2017-06-22 Thread Cheryl Sabella
Cheryl Sabella added the comment: I submitted a PR for #3. In Mark's patch, he had moved the existing text, email, docs, etc to column 1 instead of column 0 for better looking alignment. I can add that part of the redesign, but for now I just added the icon. --

[issue24813] Redesign Help => About IDLE, make it non-modal

2017-06-22 Thread Cheryl Sabella
Changes by Cheryl Sabella : -- pull_requests: +2379 ___ Python tracker ___ ___

[issue26143] Ensure that IDLE's stdlib imports are from the stdlib

2017-06-22 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- keywords: +patch ___ Python tracker ___ ___ Python-bugs-list

[issue27163] IDLE entry for What's New in Python 3.6

2017-06-22 Thread veganaiZe
Changes by veganaiZe : -- nosy: +veganaiZe ___ Python tracker ___ ___

[issue13601] sys.stderr should be line-buffered when stderr is not a TTY

2017-06-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Amusingly, I didn't realize I had already opened this issue when one of our users hit it recently which led me to add TextIOWrapper.reconfigure(): https://bugs.python.org/issue30526 Still, I think it would be a good idea to do this as well (switch sys.stderr

[issue30736] Support Unicode 10.0

2017-06-22 Thread Matthew Barnett
Matthew Barnett added the comment: @Steven: Python 3.6 supports Unicode 9. Python 3.6.1 (v3.6.1:69c0db5, Mar 21 2017, 18:41:36) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import unicodedata >>> unicodedata.unidata_version

[issue30727] [2.7] test_threading.ConditionTests.test_notify() hangs randomly on Python 2.7

2017-06-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Actually this approach already is used in this test. PR 2334 uses it to ensure all workers into cond.wait(). -- ___ Python tracker

[issue30728] IDLE: Modernize configdialog code.

2017-06-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: Yes, I intend to add the expanded list, further edited, to the roadmap, or something not tied to one issue. I should add changing messagebox and font imports. Except for switching to ttk widgets, the changes listed are invisible to users. The purpose of

[issue30727] [2.7] test_threading.ConditionTests.test_notify() hangs randomly on Python 2.7

2017-06-22 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +2378 ___ Python tracker ___ ___

[issue6739] IDLE: refuse invalid key bindings

2017-06-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: Patch mostly looks good. To apply now, keybindingDialog.py must become config_key.py. I have no idea what other merge issues there might be. The name of the new function'KeySequenceCheck()' should be 'sequence_ok()'. A minimal new test should call

[issue21519] IDLE : Bug in keybinding validity check

2017-06-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: #6739 is about rejecting *invalid* sequences, this is about rejecting a *duplicate* valid sequence. Both fixes are needed. -- ___ Python tracker

[issue24813] Redesign Help => About IDLE, make it non-modal

2017-06-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: Cheryl, I suggest to start with any of 1, 3, and 4. My preference is 3. To be sure of avoiding merge conflicts, I would do one at a time. Narrowly focused PRs should be quick to review, test, and merge. -- nosy: +csabella

[issue30731] Use correct executable manifest for windows

2017-06-22 Thread Segev Finer
Changes by Segev Finer : -- pull_requests: +2377 ___ Python tracker ___ ___

[issue24813] Redesign Help => About IDLE, make it non-modal

2017-06-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: The proposed patch does several things that can be considered independently. 1. Give the 'title' parameter a default value 'About IDLE'. Instead, add the python/IDLE version, as done for IDLE doc in help.py. (In both cases, one might wonder why title is a

[issue30738] __next__() method in iterators 9.9

2017-06-22 Thread Eryk Sun
Eryk Sun added the comment: Did you try the example in Python 2? Did you click on the "next" link in the preceding paragraph? Please read the following: https://docs.python.org/2/library/stdtypes.html#iterator.next iterator.next() Return the next item from the container In

[issue30738] __next__() method in iterators 9.9

2017-06-22 Thread Hiba
New submission from Hiba: class Reverse: """Iterator for looping over a sequence backwards.""" def __init__(self, data): self.data = data self.index = len(data) def __iter__(self): return self def next(self): if self.index == 0: raise

[issue30737] Update devguide link to the new URL

2017-06-22 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: This is in progress. -- ___ Python tracker ___ ___ Python-bugs-list

[issue30737] Update devguide link to the new URL

2017-06-22 Thread Mariatta Wijaya
New submission from Mariatta Wijaya: The Devguide has a new URL: https://devguide.python.org I believe there are a few references to the devguide from CPython documentation. Those links should be updated to the new url. -- assignee: Mariatta components: Documentation messages: 296644

[issue30725] Windows installer for 2.7.13 doesn't install pip when installing to C:\Program Files

2017-06-22 Thread Kevin Keating
Kevin Keating added the comment: Running the msi from an elevated command prompt worked. Thanks! -- ___ Python tracker ___

[issue30725] Windows installer for 2.7.13 doesn't install pip when installing to C:\Program Files

2017-06-22 Thread Eryk Sun
Eryk Sun added the comment: You can still create and use virtual environments (virtualenv) without requiring administrator access. -- ___ Python tracker

[issue30703] test_multiprocessing_forkserver hangs on the master branch

2017-06-22 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- title: regrtest hangs on the master branch -> test_multiprocessing_forkserver hangs on the master branch ___ Python tracker

[issue30703] test_multiprocessing_forkserver hangs on the master branch

2017-06-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Matt, if you try the following command, it will run the specific test in a loop in verbose mode: $ ./python -m test --timeout=30 -F -m test_many_processes -v test_multiprocessing_forkserver -- nosy: +pitrou ___

[issue30725] Windows installer for 2.7.13 doesn't install pip when installing to C:\Program Files

2017-06-22 Thread Paul Moore
Paul Moore added the comment: Note that even if you do get this working, you'll still need to run pip from an elevated prompt every time you want to use it to install new packages (or use --user). -- ___ Python tracker

[issue30697] segfault in PyErr_NormalizeException() after memory exhaustion

2017-06-22 Thread Xavier de Gaye
Xavier de Gaye added the comment: PR 2327 lacks the test cases mentionned below for the moment. 1) With PR 2327, the memerr.py script runs correctly: $ ./python /path/to/memerr.py Fatal Python error: Cannot recover from MemoryErrors while normalizing exceptions. Current thread

[issue30697] segfault in PyErr_NormalizeException() after memory exhaustion

2017-06-22 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- pull_requests: +2376 ___ Python tracker ___ ___

[issue30725] Windows installer for 2.7.13 doesn't install pip when installing to C:\Program Files

2017-06-22 Thread Eryk Sun
Eryk Sun added the comment: Issue 27888 switched to using WiX CAQuietExec task to hide the console, but it also changed the action flags to no longer include msidbCustomActionTypeNoImpersonate (2048). Without this flag, the installer impersonates the user for these custom actions: UpdatePip,

[issue30731] Use correct executable manifest for windows

2017-06-22 Thread tumagonx
tumagonx added the comment: Not really, just want to be correct... AFAIK wrong manifest like that will prevent execution on older Windows such XP saying application not configured properly. Apparently earlier Windows has been stricter. But it's not like official python 3.6 support XP.

[issue30725] Windows installer for 2.7.13 doesn't install pip when installing to C:\Program Files

2017-06-22 Thread Steve Dower
Steve Dower added the comment: The relevant lines are just above the ones you posted, but I can't view the attachment from my phone so I'll have to look later. Seems like the custom action is running as the original user and not admin. This should just be a flag on the command, though since

[issue17187] Python segfaults from improperly formed and called function

2017-06-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I suggest to close this issue as "not a bug" or "wont fix". -- nosy: +serhiy.storchaka status: open -> pending ___ Python tracker

[issue30725] Windows installer for 2.7.13 doesn't install pip when installing to C:\Program Files

2017-06-22 Thread Kevin Keating
Kevin Keating added the comment: Yeah, I only run into this problem if I install Python 2.7.13 into C:\Program Files\Python27. If I install Python 2.7.12 or 3.6.1 to the same location, then everything works fine. I can successfully install Python 2.7.13 to C:\Python27, C:\Programs\Python27,

[issue30736] Support Unicode 10.0

2017-06-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: +1 -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list

[issue30736] Support Unicode 10.0

2017-06-22 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- components: +Unicode nosy: +benjamin.peterson, ezio.melotti, haypo, lemburg stage: -> needs patch ___ Python tracker

[issue30725] Windows installer for 2.7.13 doesn't install pip when installing to C:\Program Files

2017-06-22 Thread Paul Moore
Paul Moore added the comment: Presumably you overrode the default location of C:\Python27 in favour of C:\Program Files? I'm not sure we've ever supported installing Python 2.7 in "Program Files", precisely because of the security constraints on that directory (plus the fact that a long time

[issue30725] Windows installer for 2.7.13 doesn't install pip when installing to C:\Program Files

2017-06-22 Thread Kevin Keating
Kevin Keating added the comment: Here's the log file. I'm assuming that the relevant bit starts at around line 18663: CAQuietExec: Collecting setuptools CAQuietExec: Collecting pip CAQuietExec: Installing collected packages: setuptools, pip CAQuietExec: Exception: CAQuietExec: Traceback

[issue30736] Support Unicode 10.0

2017-06-22 Thread Steven D'Aprano
New submission from Steven D'Aprano: Unicode 10.0 is now finalized: http://blog.unicode.org/2017/06/announcing-unicode-standard-version-100.html It would be good if Python 3.7 would support it. (I think that Python currently supports Unicode 8?) -- messages: 296630 nosy:

[issue30735] Python 3.6.1 test_asyncio fails on Solaris 11

2017-06-22 Thread Peter
New submission from Peter: I was building all the latest Python (2.7.13, 3.4.6, 3.5.3 and 3.6.1) on Solaris 11 using gcc 4.9.2 and found that Python 3.6.1 test_asyncio consistently fails while the other versions don't. Details: $ ./python -W default -bb -E -W error::BytesWarning -m test -r

[issue30731] Use correct executable manifest for windows

2017-06-22 Thread Steve Dower
Steve Dower added the comment: What is the impact of this error? I know of people who are relying on the manifest who have not raised any issue, so perhaps it isn't actually that important? -- ___ Python tracker

[issue30619] typing.Union doc incoherence in case a class and its subclass are present

2017-06-22 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- stage: -> backport needed ___ Python tracker ___

[issue30619] typing.Union doc incoherence in case a class and its subclass are present

2017-06-22 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 6580c19bbbe7bc9bc0884699afd69184f523b32e by Mariatta (khyox) in branch 'master': bpo-30619: Clarify typing.Union documentation (GH-2326) https://github.com/python/cpython/commit/6580c19bbbe7bc9bc0884699afd69184f523b32e -- nosy:

[issue30733] Typo in Document What's New: Calendar

2017-06-22 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- assignee: docs@python -> Mariatta nosy: +Mariatta ___ Python tracker ___

[issue30734] 200000 indexes crashes eval and python (without eval)

2017-06-22 Thread George Shuklin
New submission from George Shuklin: If there is too many indexes python crashes: a[0][0][0][0] segfault at 7ffd25fe6ff8 ip 564528c8cfe6 sp 7ffd25fe7000 error 6 in python2.7[564528b6a000+324000] code to generate code: >>> i="[0]"*20 >>>

[issue30733] Typo in Document What's New: Calendar

2017-06-22 Thread Jonathon Vandezande
New submission from Jonathon Vandezande: Says: The HTMLCalendar has added new class attribute which ease the customisation the CSS classes in the produced HTML calendar. (Contributed by Oz Tiram in bpo-30095.) Should say: The HTMLCalendar has added new class attributes which ease the

[issue30728] IDLE: Modernize configdialog code.

2017-06-22 Thread Cheryl Sabella
Cheryl Sabella added the comment: Hi Terry, I don't have a script for the renaming. Since I was reading the code for the docstrings at the same time, I just made the changes as I went along. However, my primary intent is to save you time and work, not cause more, so I will prepare the

[issue30727] [2.7] test_threading.ConditionTests.test_notify() hangs randomly on Python 2.7

2017-06-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I still didn't see a code, but perhaps we could use a spin-lock. Every child thread increases the global counter, and the main thread waits until the counter equal to the number of child threads (sleeping for short time in a loop) before calling notify().

[issue30727] [2.7] test_threading.ConditionTests.test_notify() hangs randomly on Python 2.7

2017-06-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Yes, the whole reason I wrote the tests like this is to avoid depending on Python synchronization primitives inside the tests for Python synchronization primitives. -- ___ Python tracker

[issue30727] [2.7] test_threading.ConditionTests.test_notify() hangs randomly on Python 2.7

2017-06-22 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: My favorite topic :) You could use threading.Barrier() which is designed to synchronize N threads doing this kind of lock-step processing. The problem is that the Barrier() is implemented using Condition variables, so for unit-testing, Condition

[issue30731] Use correct executable manifest for windows

2017-06-22 Thread Tim Golden
Changes by Tim Golden : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___

[issue30732] json.dumps() lacks information about RecursionError related to default function

2017-06-22 Thread Krzysztof Nazarewski
Changes by Krzysztof Nazarewski : -- title: json.dumps() lack of information about RecursionError when using default function -> json.dumps() lacks information about RecursionError related to default function ___ Python tracker

[issue30732] json.dumps() lack of information about RecursionError when using default function

2017-06-22 Thread Krzysztof Nazarewski
New submission from Krzysztof Nazarewski: RecursionErrors related to json.dumps' default argument give no information whatsoever about the underlying issue. Example: $ /usr/bin/python3 -c "import json;from decimal import Decimal;json.dumps(Decimal(),default=lambda v:round(v, 8))" Traceback

[issue30731] Use correct executable manifest for windows

2017-06-22 Thread tumagonx
New submission from tumagonx: I think there is typo in python default manifest (applies to exe dll and pyd) in official installation. currently written as: ... should be: ... notice the lowercase "i" in incorrect manifest -- messages: 296619 nosy: tumagonx priority: normal

[issue30619] typing.Union doc incoherence in case a class and its subclass are present

2017-06-22 Thread khyox
Changes by khyox : -- pull_requests: +2375 ___ Python tracker ___ ___ Python-bugs-list

[issue30730] Injecting environment variable in subprocess on Windows

2017-06-22 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: It is possible to inject an environment variable in subprocess on Windows if a user data is passed to a subprocess via environment variable. Provided PR fixes this vulnerability. It also adds other checks for invalid environment (variable names containing

[issue30730] Injecting environment variable in subprocess on Windows

2017-06-22 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +2374 ___ Python tracker ___ ___

[issue29212] Python 3.6 logging thread name regression with concurrent.future threads

2017-06-22 Thread Gregory P. Smith
Gregory P. Smith added the comment: Yes, I'll get this into 3.6. The default repr based name was clearly a regression from reasonable behavior. -- ___ Python tracker

[issue29212] Python 3.6 logging thread name regression with concurrent.future threads

2017-06-22 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset a3d91b43c2851312fb942f31afa12f5961706db6 by Gregory P. Smith in branch 'master': bpo-29212: Fix the ugly repr() ThreadPoolExecutor thread name. (#2315) https://github.com/python/cpython/commit/a3d91b43c2851312fb942f31afa12f5961706db6

[issue30729] Swap doesn't work in some circumstances

2017-06-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: This is the expected behavior. The assignments are made left-to-right. The first use of L2[1] is updated BEFORE the second use as index. The assignments are equivalent to: == >>> L1 = [1,3,2,4] >>> L2 = [1,3,2,4] >>> tup =