[issue36985] typing.ForwardRef is undocumented

2019-05-20 Thread Anthony Sottile
New submission from Anthony Sottile : - New since 3.7.0 - is exposed by some public apis: - the `__doc__` attribute of `typing` mentions `ForwardRef` - `get_type_hints` can expose an instance of it: https://bugs.python.org/issue35834 Should this be documented? including in __all__?

[issue36984] typing docs "versionadded" is inaccurate for many attributes

2019-05-20 Thread Anthony Sottile
Change by Anthony Sottile : -- keywords: +patch pull_requests: +13366 stage: -> patch review ___ Python tracker ___ ___

[issue36984] typing docs "versionadded" is inaccurate for many attributes

2019-05-20 Thread Anthony Sottile
New submission from Anthony Sottile : expanding on https://bugs.python.org/issue36983 the docs are also a bit out of date in places I'm not sure how to document something that appeared in two versions, but I'll leave that part to review. Using data generated / collected in

[issue36965] use of STATUS_CONTROL_C_EXIT in Modules/main.c breaks compilation with non MSC compilers

2019-05-20 Thread Eryk Sun
Eryk Sun added the comment: "crtdbg.h" doesn't provide STATUS_CONTROL_C_EXIT, but it should be fine to remove it anyway. I think it was left behind by accident in 2007. It was added to support a PYTHONNOERRORWINDOW environment variable, but then this idea was dropped in favor of extending

[issue36983] typing.__all__ has drifted from actual contents

2019-05-20 Thread Anthony Sottile
Anthony Sottile added the comment: using the same heuristic as the test uses, here's what's been missing from __all__ historically (note: I _manually_ skipped `Final` for 3.5.0-3) ===(3, 5, 0)=== +FrozenSet +SupportsBytes

[issue36983] typing.__all__ has drifted from actual contents

2019-05-20 Thread Anthony Sottile
Change by Anthony Sottile : -- keywords: +patch pull_requests: +13365 stage: -> patch review ___ Python tracker ___ ___

[issue36983] typing.__all__ has drifted from actual contents

2019-05-20 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +gvanrossum, levkivskyi ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36983] typing.__all__ has drifted from actual contents

2019-05-20 Thread Anthony Sottile
New submission from Anthony Sottile : notably it is missing ForwardRef, OrderedDict, ChainMap in python3.8 it is missing others in other versions I'm going to attempt to write a test which should classify things that should belong there -- components: Library (Lib) messages: 342975

[issue36982] Add support for extended color functions in ncurses 6.1

2019-05-20 Thread Jeffrey Kintscher
New submission from Jeffrey Kintscher : ncurses 6.1 adds extended color functions to support terminals with 256 colors (e.g. xterm-256color). The extended functions take color pair values that are signed integers because the existing functions only take signed 16-bit values. My goal with

[issue36981] asyncio transport.write() memory out

2019-05-20 Thread viocal
New submission from viocal : in asyncio when filedata than free memory(hardware) will be memory out Or killed by OS for buf in filedata: transport.write(buf) #to client I try it todo: abort transporting to protect application be killed by OS modified selector_events.py def

[issue36952] fileinput input's and Fileinput's bufsize=0 marked for removal in 3.8

2019-05-20 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue36906] Compile time textwrap.dedent() equivalent for str or bytes literals

2019-05-20 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: > Oh, please, please, please PLEASE let's not over-sell this! Sorry didn't wanted to give you a heart attack. The optimisation has been mentioned, and you never know what people get excited on. > Such constant-folding ... Well, in here we might get

[issue31163] Return destination path in Path.rename and Path.replace

2019-05-20 Thread Cheryl Sabella
Cheryl Sabella added the comment: I've closed the original pull request as the Github user account that created it no longer exists. -- keywords: +easy -patch nosy: +berker.peksag, cheryl.sabella stage: patch review -> needs patch versions: +Python 3.8 -Python 3.6

[issue36980] pass-by-reference clues

2019-05-20 Thread Josh Rosenberg
Josh Rosenberg added the comment: 1. This is a bug tracker for bugs in the Python language spec and the CPython interpreter, not a general problem solving site. 2. The ids will differ for changeValue2 if you actually call it (kernel = kernel + 2 requires the the old id of kernel differ from

[issue36980] pass-by-reference clues

2019-05-20 Thread Steven D'Aprano
Steven D'Aprano added the comment: Hi Stefan, and welcome. This is not a help desk, you really should ask elsewhere for explanations of how Python works. There are no bugs here: what you are seeing is standard pass-by-object behaviour. You are misinterpreting what you are seeing. Python

[issue36906] Compile time textwrap.dedent() equivalent for str or bytes literals

2019-05-20 Thread Steven D'Aprano
Steven D'Aprano added the comment: > It might be unclear for the following especially if `.dedent()` get > sold as zero-overhead at compile time. Oh, please, please, please PLEASE let's not over-sell this! There is no promise that dedent will be zero-overhead: it is a method, like any

[issue36980] pass-by-reference clues

2019-05-20 Thread stefan
New submission from stefan : I often get unexpected results when a called function results in a change in a variable because the function gets a pass by reference. For example, consider this snippet of code that manipulates the first column of a 3x3 matrix that it gets.

[issue36792] [Windows] time: crash on formatting time with de_DE locale

2019-05-20 Thread Jeremy Kloth
Jeremy Kloth added the comment: > * the experimental UTF-8 support was enabled because "de_DE" is not a > known Windows locale name - try with "de-DE" > > Perhaps it would be easy to do the replacement of underscores with hyphens > on Windows in this function? I think that's safe enough, yes?

[issue36906] Compile time textwrap.dedent() equivalent for str or bytes literals

2019-05-20 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: I've tried a bit PR 13455, I find this way nicer than textwrap.dedent(...), though I wonder if f-string readability (and expected behavior?) might suffer a tiny bit with the order of formatting the f-string vs dedenting. In the following it is clear

[issue22865] Document how to make pty.spawn not copy data

2019-05-20 Thread Geoff Shannon
Change by Geoff Shannon : -- pull_requests: +13364 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36511] Add Windows ARM32 buildbot

2019-05-20 Thread Paul Monson
Change by Paul Monson : -- pull_requests: +13363 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35563] Doc: warnings.rst - add links to references

2019-05-20 Thread Cheryl Sabella
Cheryl Sabella added the comment: New changeset 6220c02e09e9f3a7458d32ad774ada0ba1571cb8 by Cheryl Sabella in branch 'master': bpo-35563: Add reference links to warnings.rst (GH-11289) https://github.com/python/cpython/commit/6220c02e09e9f3a7458d32ad774ada0ba1571cb8 --

[issue35563] Doc: warnings.rst - add links to references

2019-05-20 Thread Cheryl Sabella
Change by Cheryl Sabella : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36906] Compile time textwrap.dedent() equivalent for str or bytes literals

2019-05-20 Thread Gregory P. Smith
Gregory P. Smith added the comment: Agreed, I'm in favor of going forward with this .dedent() optimization approach today. If we were to attempt a default indented multi-line str and bytes literal behavior change in the future (a much harder decision to make as it is a breaking change),

[issue36969] pdb: do_args: display/handle keyword-only arguments

2019-05-20 Thread miss-islington
miss-islington added the comment: New changeset 50b3f205d82d88eec69f18a0ad4bb2440ba73501 by Miss Islington (bot) in branch '3.7': bpo-36969: Make PDB args command display keyword only arguments (GH-13452) https://github.com/python/cpython/commit/50b3f205d82d88eec69f18a0ad4bb2440ba73501

[issue31779] assertion failures and a crash when using an uninitialized struct.Struct object

2019-05-20 Thread Cheryl Sabella
Change by Cheryl Sabella : -- versions: -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36969] pdb: do_args: display/handle keyword-only arguments

2019-05-20 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: > Rémi, could you do a PR addressing co_posonlyargcount? Of course, should I open a new PR or post a patch to be added to a current PR? -- nosy: +remi.lapeyre ___ Python tracker

[issue36969] pdb: do_args: display/handle keyword-only arguments

2019-05-20 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Rémi, could you do a PR addressing co_posonlyargcount? -- ___ Python tracker ___ ___

[issue36969] pdb: do_args: display/handle keyword-only arguments

2019-05-20 Thread miss-islington
Change by miss-islington : -- pull_requests: +13362 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36969] pdb: do_args: display/handle keyword-only arguments

2019-05-20 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset bf457c7d8224179a023957876e757f2a7ffc3d9d by Pablo Galindo (Rémi Lapeyre) in branch 'master': bpo-36969: Make PDB args command display keyword only arguments (GH-13452)

[issue36969] pdb: do_args: display/handle keyword-only arguments

2019-05-20 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Notice that pdb also does not handle correctly PEP570: def f1(x,/,arg=None, *, kwonly=None): breakpoint() f1(3) -> breakpoint() (Pdb) args x = 3 -- nosy: +pablogsal ___ Python tracker

[issue36979] ncurses extension uses wrong include path

2019-05-20 Thread Chris Hargreaves
New submission from Chris Hargreaves : This is similar to: https://bugs.python.org/issue28190 Not cross-compiling, but using a different ncurses version than is provided under /usr/include/ncursesw Specifying CPPFLAGS to have "-I/path/to/ncurses/include" does not override the

[issue36630] failure of test_colors_funcs in test_curses with ncurses 6.1

2019-05-20 Thread Jeffrey Kintscher
Jeffrey Kintscher added the comment: I posted a bug report to the bug-ncurses mailing list: https://lists.gnu.org/archive/html/bug-ncurses/2019-05/msg00022.html -- ___ Python tracker

[issue36969] pdb: do_args: display/handle keyword-only arguments

2019-05-20 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- keywords: +patch pull_requests: +13361 stage: -> patch review ___ Python tracker ___ ___

[issue36978] `python3 -m pip install` has no `--requirement` option on Windows

2019-05-20 Thread Marco Sulla
New submission from Marco Sulla : It's really useful and easy to have a requirements.txt. It integrates also with Github, that tells you if you're specifying a version of the library with security issues. I don't understand why this flag is missing in Windows builds. It seems to me not too

[issue36964] `python3 -m venv NAME`: virtualenv is not portable

2019-05-20 Thread Marco Sulla
Marco Sulla added the comment: Well, I didn't know `--copy`. I think I'll use it. :) What about VIRTUAL_ENV="$(dirname "$(dirname "$(readlink -nf "$0")")")"? In `bash` and in `sh` it works. -- ___ Python tracker

[issue36952] fileinput input's and Fileinput's bufsize=0 marked for removal in 3.8

2019-05-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 1a3faf9d9740a8c7505c61839ef09929a7ff9e35 by Serhiy Storchaka (Matthias Bussonnier) in branch 'master': bpo-36952: Remove the bufsize parameter in fileinput.input(). (GH-13400)

[issue23378] argparse.add_argument action parameter should allow value extend

2019-05-20 Thread Guido van Rossum
Guido van Rossum added the comment: I've felt the need for this myself. -- nosy: +gvanrossum ___ Python tracker ___ ___

[issue36919] Exception from 'compile' reports a newline char not present in input

2019-05-20 Thread Pavel Koneski
Pavel Koneski added the comment: > I'm assuming the real issue is wanting to make IronPython pass as much of the > CPython test suite as possible. This is indeed the case. The CPython test suite is invaluable in guiding IronPython development. Most of the time, the tests are pretty good to

[issue23896] lib2to3 doesn't provide a grammar where exec is a function

2019-05-20 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks Batuhan Taşkaya! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue23896] lib2to3 doesn't provide a grammar where exec is a function

2019-05-20 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset 4011d865d0572a3dd9988f2935cd835cc8fb792a by Guido van Rossum (Batuhan Taşkaya) in branch 'master': bpo-23896: Add a grammar where exec isn't a stmt (#13272) https://github.com/python/cpython/commit/4011d865d0572a3dd9988f2935cd835cc8fb792a

[issue36977] SharedMemoryManager should relase its resources when its parent process dies

2019-05-20 Thread Pierre Glaser
Change by Pierre Glaser : -- keywords: +patch pull_requests: +13360 stage: -> patch review ___ Python tracker ___ ___

[issue36977] SharedMemoryManager should relase its resources when its parent process dies

2019-05-20 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +davin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36977] SharedMemoryManager should relase its resources when its parent process dies

2019-05-20 Thread Pierre Glaser
New submission from Pierre Glaser : The new multiprocessing.managers.SharedMemoryManager spawns a server that delivers memory segments to a parent Python process. If the parent process terminates unexpectedly, we should now make the manager process notice this termination it using the recent

[issue36919] Exception from 'compile' reports a newline char not present in input

2019-05-20 Thread Guido van Rossum
Guido van Rossum added the comment: I'm assuming the real issue is wanting to make IronPython pass as much of the CPython test suite as possible. I am okay with interpretation (B) in this case -- I can totally see that other parsing strategies have no use for adding the '\n' character to

[issue36888] Create a way to check that the parent process is alive for deamonized processes

2019-05-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Waiting for the next PR now :-) -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.9 ___ Python tracker

[issue36888] Create a way to check that the parent process is alive for deamonized processes

2019-05-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset c09a9f56c08d80567454cae6f78f738a89e1ae94 by Antoine Pitrou (Thomas Moreau) in branch 'master': bpo-36888: Add multiprocessing.parent_process() (GH-13247) https://github.com/python/cpython/commit/c09a9f56c08d80567454cae6f78f738a89e1ae94

[issue36919] Exception from 'compile' reports a newline char not present in input

2019-05-20 Thread Pavel Koneski
Change by Pavel Koneski : -- versions: -Python 3.5, Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36919] Exception from 'compile' reports a newline char not present in input

2019-05-20 Thread Pavel Koneski
Pavel Koneski added the comment: If "equivalent input" is acceptable, then it looks like case B: other implementations possibly having different forms of equivalent input. I am going to post this question on python-dev. -- versions: +Python 3.5, Python 3.6

[issue36965] use of STATUS_CONTROL_C_EXIT in Modules/main.c breaks compilation with non MSC compilers

2019-05-20 Thread Erik Janssens
Erik Janssens added the comment: PR has been changed to include "windows.h" ... -- ___ Python tracker ___ ___ Python-bugs-list

[issue36976] email: AttributeError

2019-05-20 Thread alter-bug-tracer
alter-bug-tracer added the comment: It is actually the exact same bug. At that time we were not sure if it security related or not, so we disclosed it privately and discussed it with Mark. We were not aware that he has submitted it for us. -- ___

[issue36976] email: AttributeError

2019-05-20 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: See also issue36910 which seems to be similar report on non-ascii Content-Transfer-Encoding which is present in the reported file0 file too. -- components: +email nosy: +barry, maxking, msapiro, r.david.murray, xtreak

[issue36976] email: AttributeError

2019-05-20 Thread alter-bug-tracer
New submission from alter-bug-tracer : The 'lower' method is called on a Header object when trying to parse the attached file. Code: import email import sys with open(sys.argv[1], "rb") as f: msg = email.message_from_binary_file(f) print (len(msg)) Traceback: msg =

[issue36975] csv: undocumented UnicodeDecodeError on malformed file

2019-05-20 Thread alter-bug-tracer
New submission from alter-bug-tracer : UnicodeDecodeError is thrown instead of csv.Error when parsing malformed inputs. Examples: 1. file0 UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd5 in position 0: invalid continuation byte Traceback (most recent call last): File

[issue36906] Compile time textwrap.dedent() equivalent for str or bytes literals

2019-05-20 Thread Steven D'Aprano
Steven D'Aprano added the comment: > While the string method works pretty well, I do not think this is the best > way. Regardless of what we do for literals, a dedent() method will help for non-literals, so I think that this feature should go in even if we intend to change the default

[issue36974] Implement PEP 590

2019-05-20 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- keywords: +patch pull_requests: +13359 stage: -> patch review ___ Python tracker ___ ___

[issue36974] Implement PEP 590

2019-05-20 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- components: Interpreter Core nosy: Mark.Shannon, jdemeyer, petr.viktorin priority: normal severity: normal status: open title: Implement PEP 590 type: enhancement versions: Python 3.8 ___ Python tracker

[issue36973] test_json.test_recursion.TestPyRecursion.test_endless_recursion stack overflow in AMD64 Windows8.1 Non-Debug 3.x

2019-05-20 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : test_json results in stack overflow after the commit to implement __repr__ for weakset. This is very much similar to the one consistently occurring on my inspect module PR in Windows tests only for the past two weeks. My change was in changing

[issue36965] use of STATUS_CONTROL_C_EXIT in Modules/main.c breaks compilation with non MSC compilers

2019-05-20 Thread Erik Janssens
Erik Janssens added the comment: ok, thank you for the advice, I'll keep it in mind and adapt the PR ! -- ___ Python tracker ___

[issue36965] use of STATUS_CONTROL_C_EXIT in Modules/main.c breaks compilation with non MSC compilers

2019-05-20 Thread Steve Dower
Steve Dower added the comment: Some people say "windows.h" is the only one you're ever supposed to include, so if that works best, let's go with that :) -- ___ Python tracker

[issue36972] Add SupportsIndex

2019-05-20 Thread Paul Dagnelie
Change by Paul Dagnelie : -- keywords: +patch pull_requests: +13358 stage: -> patch review ___ Python tracker ___ ___

[issue36949] WeakSet.__repr__ and __str__ do not show contents of the set

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

[issue36949] WeakSet.__repr__ and __str__ do not show contents of the set

2019-05-20 Thread Steve Dower
Steve Dower added the comment: New changeset 5ae1c84bcd13b766989fc3f1e1c851e7bd4c1faa by Steve Dower (Batuhan Taşkaya) in branch 'master': bpo-36949: Implement __repr__ on WeakSet (GH-13415) https://github.com/python/cpython/commit/5ae1c84bcd13b766989fc3f1e1c851e7bd4c1faa --

[issue36965] use of STATUS_CONTROL_C_EXIT in Modules/main.c breaks compilation with non MSC compilers

2019-05-20 Thread Erik Janssens
Erik Janssens added the comment: including "winnt.h" gives me compilation problems with other undefined types. however, simply including "windows.h" instead of both includes compiles just fine. so maybe that is sufficient ?? -- ___ Python

[issue36965] use of STATUS_CONTROL_C_EXIT in Modules/main.c breaks compilation with non MSC compilers

2019-05-20 Thread Steve Dower
Steve Dower added the comment: Is including just "winnt.h" sufficient? It's very hard to tell which Windows headers are "public" vs "internal", but winternl.h is certainly one of the internal ones (according to the big warning comment at the top of the file) --

[issue36906] Compile time textwrap.dedent() equivalent for str or bytes literals

2019-05-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: While the string method works pretty well, I do not think this is the best way. If 98% of multiline string will need deindenting, it is better to do it by default. For those 2% that do not need deintentation, it can be prohibited by adding the backslash

[issue25988] collections.abc.Indexable

2019-05-20 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: mbussonn: Your new PR looks like it's related to #36953 ("Remove collections ABCs?"), not this issue specifically. Can you withdraw/reissue attached to the correct issue? Apologies, I've rebased and updated the issue numbers, not sure how I got the

[issue25988] collections.abc.Indexable

2019-05-20 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- pull_requests: -13320 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26467] Add async magic method support to unittest.mock.Mock

2019-05-20 Thread Lisa Roach
Lisa Roach added the comment: Added and AsyncMock class which supports mocking async magic methods. -- stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue36906] Compile time textwrap.dedent() equivalent for str or bytes literals

2019-05-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The optimization that can be done in the AST is done in the AST. -- ___ Python tracker ___ ___

[issue36953] Remove collections ABCs?

2019-05-20 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- keywords: +patch pull_requests: +13356 stage: -> patch review ___ Python tracker ___ ___

[issue36906] Compile time textwrap.dedent() equivalent for str or bytes literals

2019-05-20 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Thanks @serhiy.storchaka, it's far easier to do here. I pushed the patch to the attached PR. Is there a reason the other optimisations in the Peephole optimizer are not done in the AST? -- ___ Python tracker

[issue36770] stdlib - shutil.make_archive - add support for different ZIP compression method

2019-05-20 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +13355 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue26467] Add async magic method support to unittest.mock.Mock

2019-05-20 Thread Lisa Roach
Lisa Roach added the comment: New changeset 77b3b7701a34ecf6316469e05b79bb91de2addfa by Lisa Roach in branch 'master': bpo-26467: Adds AsyncMock for asyncio Mock library support (GH-9296) https://github.com/python/cpython/commit/77b3b7701a34ecf6316469e05b79bb91de2addfa -- nosy:

[issue36972] Add SupportsIndex

2019-05-20 Thread Paul Dagnelie
New submission from Paul Dagnelie : In order to allow hex() oct() and bin() to be used on user-defined classes, and to check if they can be used on a class at runtime, a SupportsIndex protocol would be useful to integrate. A PR already exists in the backport repo for this issue:

[issue36792] [Windows] time: crash on formatting time with de_DE locale

2019-05-20 Thread Charlie Clark
Charlie Clark added the comment: I can confirm that using "de-DE" does indeed avoid the crash. -- ___ Python tracker ___ ___

[issue36792] [Windows] time: crash on formatting time with de_DE locale

2019-05-20 Thread Steve Dower
Steve Dower added the comment: I've received a detailed response from the UCRT team, and there are a few pieces here. * the fact that tzname is cached in ACP is known and will be fixed * the decoding bug is real, but it's due to the experimental UTF-8 support * the experimental UTF-8 support

[issue34700] typing.get_type_hints doesn't know about typeshed

2019-05-20 Thread Guido van Rossum
Guido van Rossum added the comment: Yeah, the Sphinx use case is somewhat different from the originally envisioned use case for get_type_hints(). Possibly Sphinx could just directly inspect __annotations__ rather than calling get_type_hints()? I'm not sure if there's any situation where

[issue25988] collections.abc.Indexable

2019-05-20 Thread Josh Rosenberg
Josh Rosenberg added the comment: mbussonn: Your new PR looks like it's related to #36953 ("Remove collections ABCs?"), not this issue specifically. Can you withdraw/reissue attached to the correct issue? -- nosy: +josh.r, mbussonn ___ Python

[issue36084] Threading: add builtin TID attribute to Thread objects

2019-05-20 Thread STINNER Victor
STINNER Victor added the comment: > So where do we go from here? I propose to only add attribute if it's supported. If nobody comes with a fix, I would prefer to remove the feature to repair the AIX buildbot. -- ___ Python tracker

[issue26122] Isolated mode doesn't ignore PYTHONHASHSEED

2019-05-20 Thread STINNER Victor
STINNER Victor added the comment: > Is there a way to fix the issue in 3.7 and earlier? We might consider it a > security issue. Hum, Python 3.7 is fixed as well. At least, in the 3.7 dev branch. Fixed seed: vstinner@apu$ PYTHONHASHSEED=42 ./python -c 'print(set("abcdefgh"))' {'g', 'e',

[issue36906] Compile time textwrap.dedent() equivalent for str or bytes literals

2019-05-20 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: > Perform the optimization at the AST level, not in the peepholer. Thanks, this makes more sense. -- ___ Python tracker ___

[issue36906] Compile time textwrap.dedent() equivalent for str or bytes literals

2019-05-20 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: > Serhiy's message crossed with mine. And mine crossed with yours, sorry. I will update my PR shortly. -- ___ Python tracker ___

[issue36906] Compile time textwrap.dedent() equivalent for str or bytes literals

2019-05-20 Thread Steven D'Aprano
Steven D'Aprano added the comment: Serhiy's message crossed with mine -- you should probably listen to him over me :-) -- ___ Python tracker ___

[issue36971] Add subsections in C API "Common Object Structures" page

2019-05-20 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- keywords: +patch pull_requests: +13354 stage: -> patch review ___ Python tracker ___ ___

[issue36906] Compile time textwrap.dedent() equivalent for str or bytes literals

2019-05-20 Thread Steven D'Aprano
Steven D'Aprano added the comment: > One issue with it is that in: > def f(): > return " foo".dedent() > f will have both " foo" and "foo" in its constants even if the first is not > used anymore. That seems to be what happens with other folded constants: py> def f(): ... return

[issue35894] Apparent regression in 3.8-dev: 'TypeError: required field "type_ignores" missing from Module'

2019-05-20 Thread Guido van Rossum
Guido van Rossum added the comment: > [T]here's other optional fields in the ast, type ignores don't seem essential > to the `Module`, could those be made optional as well? I think you're referring to the `?` syntax in `Python.asdl`. But the `type_ignores` attribute is already a list

[issue36906] Compile time textwrap.dedent() equivalent for str or bytes literals

2019-05-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Perform the optimization at the AST level, not in the peepholer. -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue36763] Implementation of the PEP 587

2019-05-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset 0f72147ce2b3d65235b41eddc6a57be40237b5c7 by Victor Stinner in branch 'master': bpo-36763: Fix _PyRuntime.preconfig.coerce_c_locale (GH-13444) https://github.com/python/cpython/commit/0f72147ce2b3d65235b41eddc6a57be40237b5c7 --

[issue36971] Add subsections in C API "Common Object Structures" page

2019-05-20 Thread Jeroen Demeyer
New submission from Jeroen Demeyer : The page https://docs.python.org/3/c-api/structures.html could be better structured by arranging the content in sub-sections. -- assignee: docs@python components: Documentation messages: 342911 nosy: docs@python, jdemeyer priority: normal severity:

[issue22865] Document how to make pty.spawn not copy data

2019-05-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset 522ccef8690970fc4f78f51a3adb995f2547871a by Victor Stinner (Geoff Shannon) in branch 'master': bpo-22865: Expand on documentation for the pty.spawn function (GH-11980)

[issue36906] Compile time textwrap.dedent() equivalent for str or bytes literals

2019-05-20 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Hi @steven.daprano, @gregory.p.smith. I added the first version of my PR for review. One issue with it is that in: def f(): return " foo".dedent() f will have both " foo" and "foo" in its constants even if the first is not used anymore. Removing it

[issue36906] Compile time textwrap.dedent() equivalent for str or bytes literals

2019-05-20 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- keywords: +patch pull_requests: +13353 stage: -> patch review ___ Python tracker ___ ___

[issue35814] Syntax quirk with variable annotations

2019-05-20 Thread Guido van Rossum
Guido van Rossum added the comment: > Is PEP the best place for such updates? Maybe we can add a `versionchanged` > note in > https://docs.python.org/3/reference/simple_stmts.html#annotated-assignment-statements > instead? We should definitely update the docs, with `versionchanged`. But

[issue36763] Implementation of the PEP 587

2019-05-20 Thread STINNER Victor
Change by STINNER Victor : -- title: PEP 587: Rework initialization API to prepare second version of the PEP -> Implementation of the PEP 587 ___ Python tracker ___

[issue36763] PEP 587: Rework initialization API to prepare second version of the PEP

2019-05-20 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +13352 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36763] PEP 587: Rework initialization API to prepare second version of the PEP

2019-05-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset 425717fee1c72df464c9f85b9a8d32b9197d1035 by Victor Stinner in branch 'master': bpo-36763: Fix encoding/locale tests in test_embed (GH-13443) https://github.com/python/cpython/commit/425717fee1c72df464c9f85b9a8d32b9197d1035 --

[issue36763] PEP 587: Rework initialization API to prepare second version of the PEP

2019-05-20 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +13351 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26185] zipfile.ZipInfo slots can raise unexpected AttributeError

2019-05-20 Thread Mickaël Schoentgen
Change by Mickaël Schoentgen : -- pull_requests: +13350 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35721] _UnixSubprocessTransport leaks socket pair if Popen fails

2019-05-20 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.7 ___ Python tracker ___

  1   2   >