[issue33422] Fix and update string/byte literals in help()

2018-05-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your contribution Andrés! I just wondering how did you discover this bug? -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> behavior versions: +Python 2.7, Python

[issue33422] Fix and update string/byte literals in help()

2018-05-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset c40eeeb5e69df12a5f46edc7ba82ec75c7d1b820 by Serhiy Storchaka (Andrés Delfino) in branch '2.7': [2.7] bpo-33422: Fix quotation marks getting deleted when looking up byte/string literals on pydoc. (GH-6701)

[issue33355] Windows 10 buildbot: 15 min timeout on test_mmap.test_large_filesize()

2018-05-06 Thread David Bolen
David Bolen added the comment: Disk space seems unlikely as a reason - the local disk is 60GB on each buildbot, of which at least 50GB+ is generally free. So that shouldn't be a problem (the WinXP/Win7 buildbots operate with far less, like 5-10GB). I had also considered

[issue33355] Windows 10 buildbot: 15 min timeout on test_mmap.test_large_filesize()

2018-05-06 Thread Paul Goins
Paul Goins added the comment: For what it's worth as a newbie here, I'll add my 2 cents. (This is partially copied from my mail on python-dev.) The one thing which I did notice between the last builds which passed and the current builds is, under the "10 slowest tests"

[issue33351] Support compiling with clang-cl on Windows

2018-05-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: FWIW, I would _love_ to see this. But I don't wrangle Windows myself so I can't usefully offer anything other than being happy to volunteer to run a Clang on Windows buildbot VM once there is something to actually be run. -- nosy:

[issue22848] Subparser help does not respect SUPPRESS argument

2018-05-06 Thread paul j3
paul j3 added the comment: I've attached a file that tries out the idea of building a custom `metavar` in the `add_parser` method. It subclasses argparse._SubParsersAction, and registers it with the parser. No other modification to production code is required.

[issue33436] Add an interactive shell for Sqlite3

2018-05-06 Thread Raymond Hettinger
New submission from Raymond Hettinger : To facilitate rapid experimentation with SQL queries, add a shell to run commands and display results. Attached is minimal proof-of-concept modeled loosely on the Linux sqlite3 REPL. Here's a sample session: SQLite

[issue20104] expose posix_spawn(p)

2018-05-06 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Thanks! I have updated the PR and added tests. -- ___ Python tracker ___

[issue20104] expose posix_spawn(p)

2018-05-06 Thread Martin Panter
Martin Panter added the comment: Can you use the existing sched_param class? https://docs.python.org/3/library/os.html#os.sched_param -- ___ Python tracker

[issue33355] Windows 10 buildbot: 15 min timeout on test_mmap.test_large_filesize()

2018-05-06 Thread David Bolen
David Bolen added the comment: Nothing for my part, but there was an Azure "maintenance" on 4/16 where both the Win8 and Win10 buildbots were migrated to "newer" hardware (the first change to their physical machine for a really long time). No word on why. The VM machine

[issue32608] Incompatibilities with the socketserver and multiprocessing packages

2018-05-06 Thread Michael Durso
Michael Durso added the comment: I added more commits to the PR based on your comments. Although I cannot figure out why on the new Process objects create Threads that do not get cleaned up. -- ___ Python tracker

[issue33412] Tkinter hangs if using multiple threads and event handlers

2018-05-06 Thread Ivan Pozdeev
Ivan Pozdeev added the comment: > Without thread support, event generation from multiple threads fails > immediately. This ticket is for threaded Tcl only, so this is off topic. In nonthreaded Tcl, this script crashes rather than freezes, for an entire ly different

[issue33412] Tkinter hangs if using multiple threads and event handlers

2018-05-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: Without thread support, event generation from multiple threads fails immediately. I tried an experiment with callback scheduling. It seems to work -- almost. thread_event.py runs on 2.7 with non-t tcl. It modifies TkinterHandlres32.py

[issue33257] Race conditions in Tkinter with non-threaded Tcl

2018-05-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: This issue is effectively a re-opening and continuation of #11077. TkinterCrash2(3)-2.py are altered versions of Serhiy's file of the same name on the old issue. (Ivan, you really should have said all this at the beginning of this issue.)

[issue11077] Tkinter is not thread safe

2018-05-06 Thread Mark Lawrence
Change by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___

[issue11077] Tkinter is not thread safe

2018-05-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: This issue was effectively reopened by #33257, with altered versions of TkinterCrash2-2. Serhiy's original thereof fails for me on 2.7.15. I will put details on the new issue. -- ___ Python

[issue33355] Windows 10 buildbot: 15 min timeout on test_mmap.test_large_filesize()

2018-05-06 Thread Zachary Ware
Zachary Ware added the comment: David, has anything gone wonky on those builders lately? Should we consider passing `-u-largefile` on them? -- nosy: +db3l ___ Python tracker

[issue20104] expose posix_spawn(p)

2018-05-06 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: One open question is how to construct and pass through the struct "sched_param" that “posix_spawnattr_setschedparam” needs. -- ___ Python tracker

[issue32915] Running Python 2 with -3 flag doesn't complain about cmp/__cmp__

2018-05-06 Thread Stefan Behnel
Stefan Behnel added the comment: > cmp(a,b) can be replaced with (a>b)-(a b" and "a < b" both return something that supports the minus operator, such as a boolean value. That might not be the case, and it is definitely impossible to infer

[issue32915] Running Python 2 with -3 flag doesn't complain about cmp/__cmp__

2018-05-06 Thread Ayush
Ayush added the comment: I believe 2to3 should be able to replicate the same results of cmp function in python 3 too. I can create a PR which will allow the library to handle it. For example, a function call cmp(a,b) can be replaced with (a>b)-(a

[issue20104] expose posix_spawn(p)

2018-05-06 Thread Martin Panter
Martin Panter added the comment: To wrap “posix_spawnattr_setschedparam” perhaps you could combine it with the scheduler policy: # Inherit current policy and parameters: posix_spawn(..., scheduler=None) # Set new policy with parameters: posix_spawn(...,

[issue20087] Mismatch between glibc and X11 locale.alias

2018-05-06 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Thanks, Serhiy. -- ___ Python tracker ___ ___

[issue21592] Make statistics.median run in linear time

2018-05-06 Thread Steven D'Aprano
Steven D'Aprano added the comment: How does the performance change with this patch? Quick-select is a nice idea in theory, but unless it is written in C, it is unlikely to beat sorting the list unless you have HUGE data sets. Its been nearly four years since I

[issue33435] incorrect detection of information of some distributions

2018-05-06 Thread Andrey Bychkov
New submission from Andrey Bychkov : In some linux distributions, the information about the distribution is incorrectly determined when the linux_distribution() method is called from the platform class. Since the information file os-release becomes a certain standard, I

[issue33434] ^L character in Lib/email/generator.py

2018-05-06 Thread Nathaniel Smith
Nathaniel Smith added the comment: That's a "form feed" or "page break" character: https://en.wikipedia.org/wiki/Page_break Quoting that page: "The form feed character is sometimes used in plain text files of source code as a delimiter for a page break, or as marker for

[issue33434] ^L character in Lib/email/generator.py

2018-05-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is intended. Emacs use it for separating sections of code. Python parser specially supports this character. -- nosy: +serhiy.storchaka resolution: -> not a bug stage: -> resolved status: open -> closed

[issue33434] ^L character in Lib/email/generator.py

2018-05-06 Thread hexchain
New submission from hexchain : There is a "^L" character in line 25 of the Lib/email/generator.py file, and it seems it's there for a long time (since commit 8b3febef2f9). Is it intended or some carelessness? It does not seem to have any functional impact, though.

[issue20087] Mismatch between glibc and X11 locale.alias

2018-05-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset a55ac801f749a731250f3c7c1db7d546d22ae032 by Serhiy Storchaka in branch '2.7': [2.7] bpo-20087: Update locale alias mapping with glibc 2.27 supported locales. (GH-6708). (GH-6717)

[issue20087] Mismatch between glibc and X11 locale.alias

2018-05-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 6049bda21b607acc90bbabcc604997e794e8aee1 by Serhiy Storchaka (Miss Islington (bot)) in branch '3.7': [3.7] bpo-20087: Update locale alias mapping with glibc 2.27 supported locales. (GH-6708) (GH-6713)

[issue20087] Mismatch between glibc and X11 locale.alias

2018-05-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset b1c70d0ffbb235def1deab62a744ffd9b5253924 by Serhiy Storchaka (Miss Islington (bot)) in branch '3.6': [3.6] bpo-20087: Update locale alias mapping with glibc 2.27 supported locales. (GH-6708) (GH-6714)

[issue20087] Mismatch between glibc and X11 locale.alias

2018-05-06 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +6409 ___ Python tracker ___ ___

[issue21592] Make statistics.median run in linear time

2018-05-06 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +6408 ___ Python tracker ___ ___