[issue41510] Mentions of pdb.set_trace() in library/functions and library/sys incorrectly states that set_trace expects no arguments

2020-08-08 Thread Shubham Kumar Jha
Shubham Kumar Jha added the comment: I am a first-time contributor, can I start working on this? -- nosy: +ShubhamKJha ___ Python tracker ___

[issue41510] Mentions of pdb.set_trace() in library/functions and library/sys incorrectly states that set_trace expects no arguments

2020-08-08 Thread Maciej Olko
Change by Maciej Olko : -- title: Mentions of pdb.set_trace() in library/functions and library/sys uncorrectly states that set_trace expects no arguments -> Mentions of pdb.set_trace() in library/functions and library/sys incorrectly states that set_trace expects no arguments

[issue41510] Mentions of pdb.set_trace() in library/functions and library/sys uncorrectly states that set_trace expects no arguments

2020-08-08 Thread Maciej Olko
New submission from Maciej Olko : An argument was added to pdb.set_trace() in Python 3.7 and those fragments of documentation should have been updated: library/functions.rst:120 > By default, sys.breakpointhook() calls pdb.set_trace() expecting no arguments. library/sys.rst > For example,

[issue41097] confusing BufferError: Existing exports of data: object cannot be re-sized

2020-08-08 Thread Jeffrey Kintscher
Jeffrey Kintscher added the comment: >>> import io >>> b = io.BytesIO() >>> b.write(b'abc') 3 >>> buf = b.getbuffer() >>> b.seek(0) 0 >>> b.write(b'?') Traceback (most recent call last): File "", line 1, in BufferError: Existing exports of data: object cannot be re-sized >>> The problem

[issue41506] Inclusion or documentation of extended with syntax in 3.9

2020-08-08 Thread David Halter
David Halter added the comment: I second this. I just see people complaining about this not working in a lot of tools. This is really not necessary for a feature that should not be used anyway and puts work onto the greater Python ecosystem for no good reason. --

[issue41506] Inclusion or documentation of extended with syntax in 3.9

2020-08-08 Thread David Halter
Change by David Halter : -- nosy: +davidhalter ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41097] confusing BufferError: Existing exports of data: object cannot be re-sized

2020-08-08 Thread Jeffrey Kintscher
Jeffrey Kintscher added the comment: The error message is found in three different locations in the source code. One is in the bytearray class, and the other two are in the BytesIO class. They are unrelated code paths. -- nosy: +Jeffrey.Kintscher

[issue39697] Failed to build with --with-cxx-main=g++-9.2.0

2020-08-08 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: -pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39411] pyclbr rewrite using AST

2020-08-08 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: -pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39102] Increase Enum performance

2020-08-08 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: -pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35786] get_lock() method is not present for Values created using multiprocessing.Manager()

2020-08-08 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: -pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40275] test.support has way too many imports

2020-08-08 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: >> This PR has broken a considerable amount of build bots, so we would need to >> revert it if is not fixed in 24 hours Whops, sorry I just saw that this is being fixed here #21785, apologies then! -- ___

[issue40275] test.support has way too many imports

2020-08-08 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: PR21771 has broken a considerable amount of buildbopts so we would need to revert it if is not fixed in 24 hours -- nosy: +pablogsal ___ Python tracker

[issue41509] ntpath.relpath behaves differently on Windows with trailing spaces

2020-08-08 Thread Eryk Sun
Eryk Sun added the comment: > I suspect the Windows version is using some API that strips whitespace > from the filename before performing a relative path. When normalizing a path, the Windows API strips trailing dots and spaces from the final component. Apparently it also strips a single

[issue41455] Python Devguide differs from python docs

2020-08-08 Thread miss-islington
miss-islington added the comment: New changeset 105cfb5b182da63e8481fcb009e92546d240c6b5 by Miss Islington (bot) in branch '3.8': bpo-41455: Provide a link to how the third generation is collected in the GC docs (GH-21703)

[issue41455] Python Devguide differs from python docs

2020-08-08 Thread miss-islington
miss-islington added the comment: New changeset 103ce3debf07a48e79319acd0890be0c53e64fff by Miss Islington (bot) in branch '3.9': bpo-41455: Provide a link to how the third generation is collected in the GC docs (GH-21703)

[issue41455] Python Devguide differs from python docs

2020-08-08 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue41455] Python Devguide differs from python docs

2020-08-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +20930 pull_request: https://github.com/python/cpython/pull/21788 ___ Python tracker ___

[issue41455] Python Devguide differs from python docs

2020-08-08 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +20928 pull_request: https://github.com/python/cpython/pull/21786 ___ Python tracker

[issue41455] Python Devguide differs from python docs

2020-08-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +20929 pull_request: https://github.com/python/cpython/pull/21787 ___ Python tracker ___

[issue41455] Python Devguide differs from python docs

2020-08-08 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 82ca8fada15b121866530f2cdac1b7055be4a244 by Yaroslav Pankovych in branch 'master': bpo-41455: Provide a link to how the third generation is collected in the GC docs (GH-21703)

[issue41458] Avoid overflow/underflow in math.prod()

2020-08-08 Thread Raymond Hettinger
Raymond Hettinger added the comment: > But I see no obvious improvement in accuracy > over "left to right" for the uniformly random > test cases I've tried. Same here. -- ___ Python tracker

[issue41509] ntpath.relpath behaves differently on Windows with trailing spaces

2020-08-08 Thread Jason R. Coombs
New submission from Jason R. Coombs : On Windows: Python 3.8.3 (tags/v3.8.3:6f8c832, May 13 2020, 22:37:02) [MSC v.1924 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import ntpath >>> ntpath.relpath('foo ', 'foo') '.' On macOS: Python

[issue41458] Avoid overflow/underflow in math.prod()

2020-08-08 Thread Tim Peters
Tim Peters added the comment: Well, that can't work: the most likely result for a long input is 0.0 (try it!). frexp() forces the mantissa into range [0.5, 1.0). Multiply N of those, and the result _can_ be as small as 2**-N. So, as in Mark's code, every thousand times (2**-1000 is

[issue40275] test.support has way too many imports

2020-08-08 Thread hai shi
hai shi added the comment: Hi, terry. When creating the new test helpers, the docs have been updated. such as: https://docs.python.org/3.10/library/test.html#module-test.support.os_helper -- ___ Python tracker

[issue40027] re.sub inconsistency beginning with 3.7

2020-08-08 Thread Wayne Davison
Wayne Davison <4way...@gmail.com> added the comment: Can this bug please be reopened and fixed? This is an anchored substitution, and so should never match more than once. -- nosy: +4wayned ___ Python tracker

[issue41458] Avoid overflow/underflow in math.prod()

2020-08-08 Thread Raymond Hettinger
Raymond Hettinger added the comment: Here's a pairwise variant: def prod(seq): stack = [] exp = 0 for i, x in enumerate(seq, start=1): m, e = frexp(x) exp += e stack += [m] while not i&1: i >>= 1

[issue41458] Avoid overflow/underflow in math.prod()

2020-08-08 Thread Tim Peters
Tim Peters added the comment: "Denormal" and "subnormal" mean the same thing. The former is probably still in more common use, but all the relevant standards moved to "subnormal" some years ago. Long chains of floating mults can lose precision too, but hardly anyone bothers to do anything

[issue41109] subclasses of pathlib.PurePosixPath never call __init__ or __new__

2020-08-08 Thread Louis-Vincent Boudreault
Louis-Vincent Boudreault added the comment: Path.__new__ should not call _from_parts because it breaks the specialization by directly using object.__new__. This is why `_from_parts` has to be duplicated in each subclass's `__new__`. My suggestion (first draft) is to do the parsing of

[issue41501] 0x80070643, can't install any version

2020-08-08 Thread William Pickard
William Pickard added the comment: Try what's explained here: https://support.microsoft.com/en-us/help/2438651/how-to-troubleshoot-windows-installer-errors -- nosy: +WildCard65 ___ Python tracker

[issue41508] Failed to open os.path in Open Module window of IDLE without any error informations

2020-08-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: On Windows 10: when I start 3.7.8 IDLE in Command Prompt with C:\Users\Terry>py -3.7 -m idlelib and try Open Module with 'os.path', I get this traceback in Command Prompt. Exception in Tkinter callback Traceback (most recent call last): File

[issue41494] Adds window resizing support to Lib/pty.py [ SIGWINCH ]

2020-08-08 Thread Soumendra Ganguly
Change by Soumendra Ganguly : -- title: Adds window resizing support to Lib/pty.py -> Adds window resizing support to Lib/pty.py [ SIGWINCH ] ___ Python tracker ___

[issue41494] Adds window resizing support to Lib/pty.py

2020-08-08 Thread Soumendra Ganguly
Change by Soumendra Ganguly : -- title: Adds window resizing support to Lib/pty.py for proper output rendering -> Adds window resizing support to Lib/pty.py ___ Python tracker

[issue41494] Adds window resizing support to Lib/pty.py for proper output rendering

2020-08-08 Thread Soumendra Ganguly
Soumendra Ganguly added the comment: The following are two [ very old ] stackoverflow threads that are relevant. https://stackoverflow.com/questions/6418678/resize-the-terminal-with-python

[issue40275] test.support has way too many imports

2020-08-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: PR-21771 "Remove test helpers aliases in test.support" was just merged. It needs an immediate followup to document the new locations of constants and functions. The now dead entries in test.suppport doc must be moved into new support module docs, with

[issue41494] Adds window resizing support to Lib/pty.py for proper output rendering

2020-08-08 Thread Soumendra Ganguly
Change by Soumendra Ganguly : -- title: Add window resizing support [ SIGWINCH ] to Lib/pty -> Adds window resizing support to Lib/pty.py for proper output rendering ___ Python tracker

[issue40275] test.support has way too many imports

2020-08-08 Thread STINNER Victor
STINNER Victor added the comment: New changeset c6f282f3b1cb6da6febc3b8b6d2dc1ef714dbbf7 by Hai Shi in branch 'master': bpo-40275: Use new test.support helper submodules in tests (GH-21785) https://github.com/python/cpython/commit/c6f282f3b1cb6da6febc3b8b6d2dc1ef714dbbf7 --

[issue41109] subclasses of pathlib.PurePosixPath never call __init__ or __new__

2020-08-08 Thread Étienne Pot
Étienne Pot added the comment: Before solving this issue, I think it would be best to think on a more generic solution on how to make Pathlib more extensible. Related to: https://discuss.python.org/t/make-pathlib-extensible/3428 For instance, if childs created with `p.parent()`, `p /

[issue40275] test.support has way too many imports

2020-08-08 Thread hai shi
Change by hai shi : -- pull_requests: +20927 pull_request: https://github.com/python/cpython/pull/21785 ___ Python tracker ___ ___

[issue41508] Failed to open os.path in Open Module window of IDLE without any error informations

2020-08-08 Thread Alex
New submission from Alex <2423067...@qq.com>: When openning os.path by Open Module window in IDLE (Shortcut: Alt + M), the window didn't open 'ntpath'(in Windows) or show any error informations. -- assignee: terry.reedy components: IDLE messages: 375040 nosy: Alex-Python-Programmer,

[issue41501] 0x80070643, can't install any version

2020-08-08 Thread Ronald Oussoren
Change by Ronald Oussoren : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___

[issue40275] test.support has way too many imports

2020-08-08 Thread STINNER Victor
STINNER Victor added the comment: New changeset d94af3f7ed98e6bfb4bf5f918f464b5e23d3ed1b by Hai Shi in branch 'master': bpo-40275: Remove test helpers aliases in test.support (GH-21771) https://github.com/python/cpython/commit/d94af3f7ed98e6bfb4bf5f918f464b5e23d3ed1b --

[issue32884] Adding the ability for getpass to print asterisks when password is typed

2020-08-08 Thread Jeffrey Kintscher
Jeffrey Kintscher added the comment: This is easy to implement for Windows (as shown), but the unix implementation uses io.TextIOWrapper.readline() to get the password input. The unix implementation would have to be rewritten to provide the same functionality. --

[issue40064] py38: document xml.etree.cElementTree will be removed in 3.9

2020-08-08 Thread Chitrank-Dixit
New submission from Chitrank-Dixit : Looking at this issue, I can see the changes in the file `xml.etree.elementtree` should go like .. warning:: The :mod:`xml.etree.ElementTree` will be removed from python 3.9. -- ___ Python tracker

[issue40064] py38: document xml.etree.cElementTree will be removed in 3.9

2020-08-08 Thread Chitrank-Dixit
Change by Chitrank-Dixit : -- keywords: +patch nosy: +Chitrank-Dixit nosy_count: 2.0 -> 3.0 pull_requests: +20925 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21784 ___ Python tracker