[issue30413] Add fnmatch.filterfalse function

2019-08-21 Thread Roee Nizan
Roee Nizan added the comment: Was this abandoned? Is there a reason not to accept this? -- nosy: +Roee Nizan ___ Python tracker ___ ___

[issue37531] Fix regrtest timeout for subprocesses: regrtest -jN --timeout=SECONDS

2019-08-21 Thread STINNER Victor
STINNER Victor added the comment: > typepref.exe (load for test_concurrent_futures) I don't understand why you get 2 typepref.exe process: only the main process should spawn one. Worker processes don't need it and should not spawn it. -- ___

[issue37531] Fix regrtest timeout for subprocesses: regrtest -jN --timeout=SECONDS

2019-08-21 Thread STINNER Victor
STINNER Victor added the comment: New changeset de2d9eed8bc628533e1628b843cc4c7a5010f6e5 by Victor Stinner in branch 'master': bpo-37531: Enhance regrtest multiprocess timeout (GH-15345) https://github.com/python/cpython/commit/de2d9eed8bc628533e1628b843cc4c7a5010f6e5 -- __

[issue37901] 21 tests fail when run on an IPv6-only host

2019-08-21 Thread STINNER Victor
STINNER Victor added the comment: How do you configure a Linux box to disable IPv4? At least, disable IPv4 localhost? -- ___ Python tracker ___ __

[issue37531] Fix regrtest timeout for subprocesses: regrtest -jN --timeout=SECONDS

2019-08-21 Thread STINNER Victor
STINNER Victor added the comment: Oh, interesting: test_regrtest.test_multiprocessing_timeout() failed with a timeout on x86 Windows7 3.x. This build tested commit d33e46d17d33f9b918846982c02ddc17d897c9bc which is older than my "bpo-37531: Enhance regrtest multiprocess timeout (GH-15345)" c

[issue37531] Fix regrtest timeout for subprocesses: regrtest -jN --timeout=SECONDS

2019-08-21 Thread STINNER Victor
STINNER Victor added the comment: > x86 Windows7 3.x > https://buildbot.python.org/all/#/builders/58/builds/2889 This buildbot looks slow: the 3 latest builds (2886, 2887, 2888) took around 1 hour. Example: 10 slowest tests: - test_multiprocessing_spawn: 15 min 31 sec - test_zipfile: 8 min 4

[issue30413] Add fnmatch.filterfalse function

2019-08-21 Thread STINNER Victor
STINNER Victor added the comment: Rather than adding a new function, why not adding a parameter like sort(key=func, reverse=True)? Something like fnmatch.filterfalse(pat, invert=True)? The Unix grep command has a --invert-match option: -v, --invert-match Invert the sens

[issue37901] 21 tests fail when run on an IPv6-only host

2019-08-21 Thread STINNER Victor
STINNER Victor added the comment: > (I already filed separate issues about 5 other tests that hang rather than > fail) Maybe use this issue as a meta-issue for IPv6-only issues? I saw: * bpo-37895: test_logging hangs on an IPv6-only host * bpo-37896: test_multiprocessing_fork hangs on an IP

[issue37873] unittest: execute tests in parallel

2019-08-21 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue25299] argparse: TypeError: __init__() takes at least 4 arguments (4 given)

2019-08-21 Thread STINNER Victor
Change by STINNER Victor : -- title: TypeError: __init__() takes at least 4 arguments (4 given) -> argparse: TypeError: __init__() takes at least 4 arguments (4 given) ___ Python tracker

[issue36670] test suite broken due to cpu usage feature on win 10/ german

2019-08-21 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue36670] regrtest: win_utils decodes typeperf output from the wrong encoding (test suite broken due to cpu usage feature on win 10/ german)

2019-08-21 Thread STINNER Victor
Change by STINNER Victor : -- title: test suite broken due to cpu usage feature on win 10/ german -> regrtest: win_utils decodes typeperf output from the wrong encoding (test suite broken due to cpu usage feature on win 10/ german) ___ Python track

[issue37790] subprocess.Popen() is extremely slow

2019-08-21 Thread STINNER Victor
STINNER Victor added the comment: This issue lacks a lot of information: * What is your operating system (name and version)? On Linux, what is your Linux kernel version? * Which Python version did you try? * Which command are you running? * Do you use a shell? * Do you use bytes (default) or

[issue37872] Move _Py_IDENTIFIER statics in Python/import.c to top of the file

2019-08-21 Thread STINNER Victor
STINNER Victor added the comment: Why should we move static variables as globals? What is the rationale? _Py_IDENTIFIER uses a linked list internally to be able to free all these strings at Python exit. -- nosy: +vstinner ___ Python tracker

[issue37871] 40 * 473 grid of "é" has a single wrong character on Windows

2019-08-21 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue37871] Windows: WindowsConsoleIO produces mojibake for strings longer than 32 KiB

2019-08-21 Thread STINNER Victor
Change by STINNER Victor : -- title: 40 * 473 grid of "é" has a single wrong character on Windows -> Windows: WindowsConsoleIO produces mojibake for strings longer than 32 KiB ___ Python tracker _

[issue29535] datetime hash is deterministic in some cases

2019-08-21 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue30413] Add fnmatch.filterfalse function

2019-08-21 Thread Steven D'Aprano
Steven D'Aprano added the comment: On Wed, Aug 21, 2019 at 10:51:02AM +, STINNER Victor wrote: > Rather than adding a new function, why not adding a parameter like > sort(key=func, reverse=True)? Something like fnmatch.filterfalse(pat, > invert=True)? Guido argues that as a general rule

[issue37823] Telnet documentation: fix the link to open()

2019-08-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +15067 pull_request: https://github.com/python/cpython/pull/15355 ___ Python tracker ___ __

[issue37823] Telnet documentation: fix the link to open()

2019-08-21 Thread STINNER Victor
STINNER Victor added the comment: New changeset e0b6117e2723327d6741d0aa599408514add5b30 by Victor Stinner (Michael Anckaert) in branch 'master': bpo-37823: Fix open() link in telnetlib doc (GH-15281) https://github.com/python/cpython/commit/e0b6117e2723327d6741d0aa599408514add5b30

[issue37823] Telnet documentation: fix the link to open()

2019-08-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +15068 pull_request: https://github.com/python/cpython/pull/15356 ___ Python tracker ___ __

[issue37904] Suggested edit to Python Tutorial - Section 4

2019-08-21 Thread Lawrence R. Normie
New submission from Lawrence R. Normie : Suggest amending the text of the first sentence in Section 4, from: "Besides the while statement just introduced, Python knows the usual control flow statements known from other languages, with some twists." to: Besides the while statement just introd

[issue37904] Suggested edit to Python Tutorial - Section 4

2019-08-21 Thread Eric V. Smith
Eric V. Smith added the comment: I think I'd prefer "... Python uses the usual flow control statements known from other languages ..." It's not just syntax, after all. -- keywords: +newcomer friendly nosy: +eric.smith stage: -> needs patch ___ Py

[issue37823] Telnet documentation: fix the link to open()

2019-08-21 Thread miss-islington
miss-islington added the comment: New changeset 72088d56247ee422d8abeef94a89be463737b982 by Miss Islington (bot) in branch '3.7': bpo-37823: Fix open() link in telnetlib doc (GH-15281) https://github.com/python/cpython/commit/72088d56247ee422d8abeef94a89be463737b982 --

[issue37823] Telnet documentation: fix the link to open()

2019-08-21 Thread miss-islington
miss-islington added the comment: New changeset c777dec6f47ce649f3dea88d308e36e45538fdac by Miss Islington (bot) in branch '3.8': bpo-37823: Fix open() link in telnetlib doc (GH-15281) https://github.com/python/cpython/commit/c777dec6f47ce649f3dea88d308e36e45538fdac -- nosy: +miss-i

[issue37823] Telnet documentation: fix the link to open()

2019-08-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +15069 pull_request: https://github.com/python/cpython/pull/15357 ___ Python tracker ___ __

[issue37823] Telnet documentation: fix the link to open()

2019-08-21 Thread miss-islington
miss-islington added the comment: New changeset 98b11e1160a1749bfdb48bbf4c0dda177296b005 by Miss Islington (bot) in branch '2.7': bpo-37823: Fix open() link in telnetlib doc (GH-15281) https://github.com/python/cpython/commit/98b11e1160a1749bfdb48bbf4c0dda177296b005 --

[issue37823] Telnet documentation: fix the link to open()

2019-08-21 Thread STINNER Victor
STINNER Victor added the comment: Thanks Michael Anckaert, I merged your PR and backported it to 2.7, 3.7 and 3.8 branches. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue37851] faulthandler: only allocate the signal handler stack when faulthandler is used

2019-08-21 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +15070 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15358 ___ Python tracker ___ _

[issue37433] syntax error in multiline f-string produces ~40k spaces output

2019-08-21 Thread STINNER Victor
STINNER Victor added the comment: The initial issue has been fixed in master by the commit 5b94f3578c662d5f1ee90c0e6b81481d9ec82d89: commit 5b94f3578c662d5f1ee90c0e6b81481d9ec82d89 Author: Anthony Sottile Date: Mon Jul 29 06:59:13 2019 -0700 Fix `SyntaxError` indicator printing too ma

[issue37603] parsetok(): Assertion `(intptr_t)(int)(a - line_start) == (a - line_start)' failed, when running get-pip.py

2019-08-21 Thread STINNER Victor
STINNER Victor added the comment: This issue is a duplicate of bpo-37433 which has been fixed. -- priority: release blocker -> resolution: -> fixed stage: patch review -> resolved status: open -> closed superseder: -> syntax error in multiline f-string produces ~40k spaces output _

[issue19820] docs are missing info about module attributes

2019-08-21 Thread Michael Anckaert
Change by Michael Anckaert : -- keywords: +patch pull_requests: +15071 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/15359 ___ Python tracker

[issue37905] Remove NormalDist.overlap() or improve documentation?

2019-08-21 Thread Christoph Deil
New submission from Christoph Deil : I saw that Python 3.8 will add a NormalDist class: https://docs.python.org/3.8/library/statistics.html#normaldist-objects Personally I don't see the value of adding this to the Python standard lib. The natural progression would be to extend and extend, but

[issue37851] faulthandler: only allocate the signal handler stack when faulthandler is used

2019-08-21 Thread STINNER Victor
STINNER Victor added the comment: New changeset d8c5adf6f83024238545aac0bb465289cc2dde84 by Victor Stinner in branch 'master': bpo-37851: faulthandler allocates its stack on demand (GH-15358) https://github.com/python/cpython/commit/d8c5adf6f83024238545aac0bb465289cc2dde84 -- _

[issue37851] faulthandler: only allocate the signal handler stack when faulthandler is used

2019-08-21 Thread STINNER Victor
STINNER Victor added the comment: Note: faulthandler stack size is 16 KiB on my Fedora Linux 30 x86-64. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue37886] PyStructSequence_UnnamedField not exported

2019-08-21 Thread Zackery Spytz
Change by Zackery Spytz : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue37633] Py_CompileString and PyParser_SimpleParseString not exported in python38.dll

2019-08-21 Thread Zackery Spytz
Change by Zackery Spytz : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue37873] unittest: execute tests in parallel

2019-08-21 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue37906] FreeBSD: test_threading: test_recursion_limit() crash with SIGSEGV and create a coredump

2019-08-21 Thread STINNER Victor
New submission from STINNER Victor : On my FreeBSD 12.0-RELEASE-p10 VM, test_threading.test_recursion_limit() does crash with SIGSEGV and create a coredump. vstinner@freebsd$ ./python -m test -v test_threading -m test_recursion_limit == CPython 3.9.0a0 (heads/master:e0b6117e27, Aug 21 2019, 12

[issue37873] unittest: execute tests in parallel

2019-08-21 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: See also https://mail.python.org/pipermail/python-ideas/2017-September/047100.html . One of the ideas in the thread was to move test.regrtest parallel execution functionality into unittest. I think this would be good to have it in unittest like su

[issue37906] FreeBSD: test_threading: test_recursion_limit() crash with SIGSEGV and create a coredump

2019-08-21 Thread STINNER Victor
STINNER Victor added the comment: I used git bisect in the 3.8 branch and I found this change: commit 8399641c34d8136c3151fda6461cc4727a20b28e Author: Miss Islington (bot) <31488909+miss-isling...@users.noreply.github.com> Date: Thu Aug 1 07:38:57 2019 -0700 bpo-18049: Sync thread stack

[issue37906] FreeBSD: test_threading: test_recursion_limit() crash with SIGSEGV and create a coredump

2019-08-21 Thread STINNER Victor
STINNER Victor added the comment: The crash start to occur with a Python callstack depth larger than 750. It doesn't crash with setrecursionlimit(750). See attached stack.py. Example: vstinner@freebsd$ ./python stack.py 750 10240 setrecursionlimit(750) stack_size: 10240.0 kiB = 10.0 MiB end o

[issue18049] Re-enable threading test on macOS

2019-08-21 Thread STINNER Victor
STINNER Victor added the comment: The test does now crash on FreeBSD: see bpo-37906. -- ___ Python tracker ___ ___ Python-bugs-list

[issue37860] Add netlify deploy preview for docs

2019-08-21 Thread Carol Willing
Carol Willing added the comment: New changeset 87bc3b7a0b0c41ea5da2aa137c4145f437a1c9fd by Carol Willing (Ashwin Ramaswami) in branch 'master': bpo-37860: Add netlify deploy preview for docs (GH-15288) https://github.com/python/cpython/commit/87bc3b7a0b0c41ea5da2aa137c4145f437a1c9fd ---

[issue37906] FreeBSD: test_threading: test_recursion_limit() crash with SIGSEGV and create a coredump

2019-08-21 Thread STINNER Victor
STINNER Victor added the comment: Oh, my script called _thread.stack_size() to read the stack size, but that doesn't work: calling _thread.stack_size() sets the stack size to 0 again. stack2.py is the fixed script. It seems like the test works with a stack of 8 MiB and the default recursion

[issue37751] In codecs, function 'normalizestring' should convert both spaces and hyphens to underscores.

2019-08-21 Thread STINNER Victor
STINNER Victor added the comment: New changeset 20f59fe1f7748ae899aceee4cb560e5e1f528a1f by Victor Stinner (Jordon Xu) in branch 'master': bpo-37751: Fix codecs.lookup() normalization (GH-15092) https://github.com/python/cpython/commit/20f59fe1f7748ae899aceee4cb560e5e1f528a1f -- __

[issue37751] In codecs, function 'normalizestring' should convert both spaces and hyphens to underscores.

2019-08-21 Thread STINNER Victor
STINNER Victor added the comment: Thanks for the fix Jordon Xu. IMHO this change is not strictly a bugfix, but more like an enhancement. I close the issue. If you consider that a backport to Python 3.7 and 3.8 is needed, please say so. -- resolution: -> fixed stage: patch review ->

[issue37905] Remove NormalDist.overlap() or improve documentation?

2019-08-21 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +steven.daprano ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37905] Remove NormalDist.overlap() or improve documentation?

2019-08-21 Thread Mark Dickinson
Change by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue37906] FreeBSD: test_threading: test_recursion_limit() crash with SIGSEGV and create a coredump

2019-08-21 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'd increase the default stack size for FreeBSD as well. AFAIK FreeBSD uses clang as the default compiler like macOS, and it is therefore likely that the two platforms have similar stack usage for similar code. BTW. I can provide a PR for this but cannot ea

[issue37906] FreeBSD: test_threading: test_recursion_limit() crash with SIGSEGV and create a coredump

2019-08-21 Thread STINNER Victor
STINNER Victor added the comment: On my FreeBSD 12.0 VM, /usr/bin/ld is a symbolic link to ld.ldd: it's the LLVM linker called "LLD": https://lld.llvm.org/ I modified manually Makefile to give 16 MiB stack to the main thread using: LINKFORSHARED= -Wl,--export-dynamic "-Wl,-z" "-Wl,stack-siz

[issue37902] Add scrolling for IDLE browsers

2019-08-21 Thread George Zhang
Change by George Zhang : -- keywords: +patch pull_requests: +15072 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/15360 ___ Python tracker

[issue30413] Add fnmatch.filterfalse function

2019-08-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Rather than adding a new function, why not adding a parameter Guido, the reason iteratools has a separate filter() and filterfalse() tools is because of your API guidance to prefer separate functions rather than having flags in most cases. Do you stil

[issue37907] speed-up PyLong_As*() for large longs

2019-08-21 Thread Sergey Fedoseev
New submission from Sergey Fedoseev : PyLong_As*() functions computes result for large longs like this: size_t x, prev; x = 0; while (--i >= 0) { prev = x; x = (x << PyLong_SHIFT) | v->ob_digit[i]; if ((x >> PyLong_SHIFT) != prev) { *overflow = sign; goto exit; }

[issue37907] speed-up PyLong_As*() for large longs

2019-08-21 Thread Sergey Fedoseev
Change by Sergey Fedoseev : -- keywords: +patch pull_requests: +15074 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15363 ___ Python tracker ___

[issue9938] Documentation for argparse interactive use

2019-08-21 Thread hai shi
Change by hai shi : -- pull_requests: +15073 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/15362 ___ Python tracker ___ ___

[issue9938] Improving interactive use of argparse

2019-08-21 Thread hai shi
hai shi added the comment: It is a good idea. So I update this title and add PR 15362. I am not sure there have a problem of xuanli's CLA or not~ -- components: -Documentation nosy: +shihai1991 title: Documentation for argparse interactive use -> Improving interactive use of argpars

[issue30413] Add fnmatch.filterfalse function

2019-08-21 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue30413] Add fnmatch.filterfalse function

2019-08-21 Thread Guido van Rossum
Guido van Rossum added the comment: Yes, I still feel like this and I find it applies here. (Note that the module already has two variants of fnmatch(), so it's nothing new in this context.) -- ___ Python tracker

[issue37905] Remove NormalDist.overlap() or improve documentation?

2019-08-21 Thread Christoph Deil
Christoph Deil added the comment: The Monte Carlo example here has completely unstable results: https://github.com/python/cpython/commit/cc353a0cd95d9b0c93ed0b60ba762427a94c790d#diff-d436928bc44b5d7c40a8047840f55d35R633 If you run it multiple times, you will see that `mean` is relatively stab

[issue37902] Add scrolling for IDLE browsers

2019-08-21 Thread George Zhang
George Zhang added the comment: I looked at the code for scrolling and moved it over to the ScrolledCanvas and TreeNode (because it uses a Label that sits on the canvas, meaning we have to rebind it here). I haven't figured out how to add the scroll-by-pressing-down-and-moving way but I'll

[issue37890] Modernize several tests in test_importlib

2019-08-21 Thread Brett Cannon
Brett Cannon added the comment: A key question here is why are you trying to avoid the AttributeError case so much? If something has a bug and an attribute doesn't exist that should then that's a bug and the test needs to catch that. Now whether that's via an error from AttributeError being

[issue37775] update doc of compileall

2019-08-21 Thread hai shi
Change by hai shi : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Pytho

[issue37750] PyBuffer_FromContiguous not documented

2019-08-21 Thread hai shi
Change by hai shi : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/

[issue37698] Update doc of PyBuffer_ToContiguous

2019-08-21 Thread hai shi
Change by hai shi : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/

[issue37908] Add some examples of ArgumentParser.exit()

2019-08-21 Thread hai shi
New submission from hai shi : As paul said in bpo 9938: The exit and error methods are mentioned in the 3.4 documentation, but there are no examples of modifying them. 16.4.5.9. Exiting methods ArgumentParser.exit(status=0, message=None) ArgumentParser.error(message) I will update

[issue37908] Add some examples of ArgumentParser.exit()

2019-08-21 Thread hai shi
hai shi added the comment: issue 9938 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue37908] Add some examples of ArgumentParser.exit()

2019-08-21 Thread hai shi
Change by hai shi : -- nosy: +paul.j3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org

[issue37890] Modernize several tests in test_importlib

2019-08-21 Thread Kyle Stanley
Kyle Stanley added the comment: > A key question here is why are you trying to avoid the AttributeError case so > much? > but there's a reason that we don't have attribute existence tests before > every single attribute access throughout the test suite Hmm, good point. I may have been fixat

[issue37905] Remove NormalDist.overlap() or improve documentation?

2019-08-21 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue37905] Remove NormalDist.overlap() or improve documentation?

2019-08-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: Several thoughts: * OVL was used often in the finance firm where I worked. * It provides a simple, easy to understand point estimate of the similarity or overlap between two PDFs. * It was far easier to use than a Students-t test to answer the question

[issue36858] f-string '=' debugging output needs to be documented

2019-08-21 Thread sushma
sushma added the comment: Hello, I'd like to work on this and will take a look. -- nosy: +syadlapalli ___ Python tracker ___ ___ P

[issue37810] ndiff reports incorrect location when diff strings contain tabs

2019-08-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +15075 pull_request: https://github.com/python/cpython/pull/15365 ___ Python tracker ___ __

[issue22964] dbm.open(..., "x")

2019-08-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Agree with Batuhan. There are three dbm implementations in the stdlib: dumb, ndbm and gnu. It may be possible to implement the "x" flag in the former two, but gdbm_open() does not support it. Since by default the implementation is chosen automatically in d

[issue20410] Argument Clinic: add 'self' return converter

2019-08-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Batuhan, argument converters and return converters are different things. I have no opinion about the idea itself. You can try, Zachary, and see whether it makes the code clearer. -- nosy: +serhiy.storchaka ___ P

[issue37902] Add scrolling for IDLE browsers

2019-08-21 Thread George Zhang
Change by George Zhang : -- pull_requests: -15072 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue36375] PEP 499 implementation: "python -m foo" binds the main module as both __main__ and foo in sys.modules

2019-08-21 Thread Greg Price
Change by Greg Price : -- nosy: +Greg Price ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue37902] Add scrolling for IDLE browsers

2019-08-21 Thread George Zhang
Change by George Zhang : -- pull_requests: +15076, 15077 pull_request: https://github.com/python/cpython/pull/15360 ___ Python tracker ___ _

[issue37905] Remove NormalDist.overlap() or improve documentation?

2019-08-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: BTW, I get your concern about the statistics module as a whole. From the point of view of an expert numpy/scipy user, the whole module seems pointless. However, the purpose of the module is to put a useful subset of statistical tools into the hands of e

[issue37902] Add scrolling for IDLE browsers

2019-08-21 Thread George Zhang
Change by George Zhang : -- pull_requests: +15076 pull_request: https://github.com/python/cpython/pull/15360 ___ Python tracker ___

[issue37905] Improve docs for NormalDist.overlap()

2019-08-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Raymond and others interested in this topic - thoughts? Please do submit a PR with an improved example for the MonteCarlo simulation. I'm not fond of that example at all. It should be as short as possible while getting the core idea across. But it sh

[issue37834] readlink on Windows cannot read app exec links

2019-08-21 Thread Steve Dower
Steve Dower added the comment: So my colleagues confirmed that they deliberately represent junction points as symlinks within WSL, including translating the target to the mounted location (assuming it is mounted) and letting the Linux code traverse it normally. They also said they haven't he

[issue37905] Improve docs for NormalDist

2019-08-21 Thread Raymond Hettinger
Change by Raymond Hettinger : -- title: Improve docs for NormalDist.overlap() -> Improve docs for NormalDist ___ Python tracker ___

[issue37810] ndiff reports incorrect location when diff strings contain tabs

2019-08-21 Thread Tim Peters
Change by Tim Peters : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Py

[issue37902] Add scrolling for IDLE browsers

2019-08-21 Thread George Zhang
Change by George Zhang : -- pull_requests: -15077 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue37902] Add scrolling for IDLE browsers

2019-08-21 Thread George Zhang
Change by George Zhang : -- pull_requests: -15076 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue9949] os.path.realpath on Windows does not follow symbolic links

2019-08-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +15078 pull_request: https://github.com/python/cpython/pull/15367 ___ Python tracker ___ ___

[issue9949] os.path.realpath on Windows does not follow symbolic links

2019-08-21 Thread Steve Dower
Steve Dower added the comment: New changeset 75e064962ee0e31ec19a8081e9d9cc957baf6415 by Steve Dower in branch 'master': bpo-9949: Enable symlink traversal for ntpath.realpath (GH-15287) https://github.com/python/cpython/commit/75e064962ee0e31ec19a8081e9d9cc957baf6415 -- __

[issue37909] Thread pool return ref hold memory

2019-08-21 Thread Tianshu Gao
New submission from Tianshu Gao : This is very similar to issue35715. But this is happen for thread. After the func in thread finished, the memory is still hold and accumulate. import asyncio import time import concurrent import threading loop = asyncio.get_event_loop() def prepare_a_giant_l

[issue37909] Thread pool return ref hold memory

2019-08-21 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue9949] os.path.realpath on Windows does not follow symbolic links

2019-08-21 Thread miss-islington
miss-islington added the comment: New changeset c30c869e8dec5eefdee7977943ffa11a8e3c8d75 by Miss Islington (bot) in branch '3.8': bpo-9949: Enable symlink traversal for ntpath.realpath (GH-15287) https://github.com/python/cpython/commit/c30c869e8dec5eefdee7977943ffa11a8e3c8d75 -- no

[issue37902] Add scrolling for IDLE browsers

2019-08-21 Thread George Zhang
Change by George Zhang : -- pull_requests: +15079 pull_request: https://github.com/python/cpython/pull/15368 ___ Python tracker ___

[issue37902] Add scrolling for IDLE browsers

2019-08-21 Thread George Zhang
George Zhang added the comment: Looks like my PRs are getting out of hand... This is the final PR :P -- ___ Python tracker ___ ___

[issue9949] os.path.realpath on Windows does not follow symbolic links

2019-08-21 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: There are multiple failures on several buildbots after commit 75e064962ee0e31ec19a8081e9d9cc957baf6415 was merged: BUILDBOT FAILURE REPORT === Builder name: AMD64 Windows7 SP1 3.x Builder url: https://buildbot.python.org/all/#/buil

[issue31226] shutil.rmtree fails when target has an internal directory junction (Windows)

2019-08-21 Thread Steve Dower
Steve Dower added the comment: I think this definitely conflicts with the behaviour we've been working on for the last week over on issue37834 (the PR is going to conflict for sure). I am making a change to rmtree() that will cause it to delete junction point without trying to recursively re

[issue9949] os.path.realpath on Windows does not follow symbolic links

2019-08-21 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Py

[issue9949] os.path.realpath on Windows does not follow symbolic links

2019-08-21 Thread Steve Dower
Change by Steve Dower : -- assignee: -> steve.dower ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue37902] Add scrolling for IDLE browsers

2019-08-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: I won't merge with mousescroll duplicated, or worse, triplicated. If 'self.text/canvas' is replaced with 'event.widget', then the 'self' parameter can be deleted and the function made a standalone module function. For now, put it in tree, copied with the d

[issue9949] os.path.realpath on Windows does not follow symbolic links

2019-08-21 Thread Steve Dower
Steve Dower added the comment: On it -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue37792] xml.etree.ElementTree.Element.__eq__ does compare only objects identity

2019-08-21 Thread Marco Sulla
Marco Sulla added the comment: @scoder: 1. the fact that == does not traverse the Element is IMHO unpythonic and non-standard. A trivial example: >>> a = {1: {2: 3}} >>> b = {1: {2: 3}} >>> a == b True You can have a dictionary complicated as you want, but if they have the same structure,

  1   2   >