[issue36958] IDLE should print exit message or status if one is provided

2019-05-20 Thread miss-islington
miss-islington added the comment: New changeset 2d94d4f1a5f54f73450d2982eab54a6301741a32 by Miss Islington (bot) in branch '3.7': bpo-36958: In IDLE, print exit message (GH-13435) https://github.com/python/cpython/commit/2d94d4f1a5f54f73450d2982eab54a6301741a32 -- nosy: +miss-isling

[issue36958] IDLE should print exit message or status if one is provided

2019-05-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thanks for the report. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

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

2019-05-20 Thread Laurie Opperman
Laurie Opperman added the comment: > Furthermore I do not understand why the simlink is created. I suppose that > `python3` is already on the `PATH`, so what's the purpose of simlink? On machines with multiple Python installs (eg Python 3.6 and Python 3.7, or a distributed Python 3.7 and a u

[issue36970] Rename _PyObject_FastCall functions

2019-05-20 Thread Jeroen Demeyer
New submission from Jeroen Demeyer : As preparation for PEP 590, rename _PyObject_FastCallKeywords -> _PyObject_Vectorcall _PyObject_FastCallDict -> _PyObject_VectorcallDict -- components: Interpreter Core messages: 342892 nosy: Mark.Shannon, jdemeyer, petr.viktorin priority: normal se

[issue36970] Rename _PyObject_FastCall functions

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

[issue36970] Rename _PyObject_FastCall functions

2019-05-20 Thread Stefan Krah
Stefan Krah added the comment: Sorry for the bikeshedding here, but I'll read those function names a lot. Is it possible to rename Vectorcall, which looks good on its own but not inside _PyObject_VectorcallDict()? _PyObject_FastCallDict is much easier to read. Has the PEP been accepted? It s

[issue36970] Rename _PyObject_FastCall functions

2019-05-20 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > Is it possible to rename Vectorcall, which looks good on its own but not > inside _PyObject_VectorcallDict()? I don't understand what you mean here? > _PyObject_FastCallDict is much easier to read. You think that "_PyObject_FastCallDict" is easier to read

[issue36970] Rename _PyObject_FastCall functions

2019-05-20 Thread STINNER Victor
STINNER Victor added the comment: > Has the PEP been accepted? It still says "Draft". I would prefer to wait until the PEP is accepted before starting to push changes ;-) -- Cython uses the FASTCALL calling convention. Please check with Stefan Behnel to see fix it's ok to "remove" _PyObjec

[issue36970] Rename _PyObject_FastCall functions

2019-05-20 Thread Stefan Krah
Stefan Krah added the comment: > You think that "_PyObject_FastCallDict" is easier to read than > "_PyObject_VectorcallDict"? I don't think that there is much difference. Marvellous. How much do you work with the C-API? -- ___ Python tracker

[issue36970] Rename _PyObject_FastCall functions

2019-05-20 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: Now to justify the naming: the plan is to keep the name "fast call" for the PyMethodDef flag METH_FASTCALL but to use the name "vectorcall" in the more general API. I think that's a good idea regardless of PEP 590, as it makes it clear that _PyObject_Vector

[issue36970] Rename _PyObject_FastCall functions

2019-05-20 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > I would prefer to wait until the PEP is accepted before starting to push > changes ;-) I don't think it's wrong to propose and discuss changes already now. With the first beta of Python 3.8 getting close, it's better to be prepared already for the moment

[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 6d1c46746e17367caf8a24623cb5c9a9c4e3e036 by Victor Stinner in branch 'master': bpo-36763: Fix Python preinitialization (GH-13432) https://github.com/python/cpython/commit/6d1c46746e17367caf8a24623cb5c9a9c4e3e036 -- ___

[issue36970] Rename _PyObject_FastCall functions

2019-05-20 Thread Stefan Krah
Stefan Krah added the comment: It is one thing to name something __vectorcall, and quite another to mix camel and normal case. When I'm scanning the code very quickly, I initially parse _PyObject_VectorcallDict as PyObject_VectorallDict or_PyObject_Vector_callDict. >From the perspective of

[issue36970] Rename _PyObject_FastCall functions

2019-05-20 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > From the perspective of reading, it is one of the most obnoxious names I've > seen in the Python code base. PyObject_Vectorcall() is the name in PEP 590, so if you want to change it, better write to python-dev about it. -- ___

[issue36970] Rename _PyObject_FastCall functions

2019-05-20 Thread Stefan Krah
Change by Stefan Krah : -- nosy: -skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue36970] Rename _PyObject_FastCall functions

2019-05-20 Thread Stefan Krah
Change by Stefan Krah : -- nosy: -skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue36970] Rename _PyObject_FastCall functions

2019-05-20 Thread Stefan Krah
Stefan Krah added the comment: Only people with very much time on their hands have the luxury to discuss changes like this on python-dev. -- ___ Python tracker ___ __

[issue36970] Rename _PyObject_FastCall functions

2019-05-20 Thread Stefan Krah
Stefan Krah added the comment: Also, thank you for lecturing a core dev again. -- nosy: +skrah ___ Python tracker ___ ___ Python-bu

[issue35721] _UnixSubprocessTransport leaks socket pair if Popen fails

2019-05-20 Thread miss-islington
miss-islington added the comment: New changeset 9932fd91e878b740704ff599522e945a4bbe2ae1 by Miss Islington (bot) (Niklas Fiekas) in branch 'master': bpo-35721: Close socket pair if Popen in _UnixSubprocessTransport fails (GH-11553) https://github.com/python/cpython/commit/9932fd91e878b740704

[issue35721] _UnixSubprocessTransport leaks socket pair if Popen fails

2019-05-20 Thread miss-islington
Change by miss-islington : -- pull_requests: +13348 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36721] Add pkg-config python-3.8-embed

2019-05-20 Thread Miro Hrončok
Miro Hrončok added the comment: As a note, waf seems to use python3-config for both embedded and extension modules. Currently, embedded is broken. See for example https://bugzilla.redhat.com/show_bug.cgi?id=1711638 -- nosy: +hroncok ___ Python trac

[issue29883] asyncio: Windows Proactor Event Loop UDP Support

2019-05-20 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +13349 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue35721] _UnixSubprocessTransport leaks socket pair if Popen fails

2019-05-20 Thread miss-islington
miss-islington added the comment: New changeset 3887932e1099931801876d53d05e25a43c3473b7 by Miss Islington (bot) in branch '3.7': bpo-35721: Close socket pair if Popen in _UnixSubprocessTransport fails (GH-11553) https://github.com/python/cpython/commit/3887932e1099931801876d53d05e25a43c3473

[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 ___

[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: https:

[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: https://m

[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: +13352 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[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 ___ __

[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 we

[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 ___ ___ Python-bugs-lis

[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 re

[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) https://github.com/python/cpython/commit/522ccef8690970fc4f78f51a3adb995f2547

[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:

[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 -- ___

[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 ___

[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 (using

[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

[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 ___ ___ Python-bugs-

[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 ___ __

[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 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 ___ ___

[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', 'a'

[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

[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 trac

[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 it

[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

[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 ___ ___ Python

[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: https://gith

[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: +lis

[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

[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

[issue36953] Remove collections ABCs?

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

[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 ___ ___

[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 __

[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: htt

[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 wro

[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 fo

[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) --

[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 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 -- ___

[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 ___ ___ P

[issue36972] Add SupportsIndex

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

[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 ___

[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 ___ __

[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 in

[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

[issue36974] Implement PEP 590

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

[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 behav

[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 "csv_parser.py",

[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 = email.message_from

[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
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. -- ___

[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 mail

[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 __

[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 Unsubscribe

[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 ---

[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 ___

[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 the

[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

[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: https://

[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 ___ ___ Python-bugs-l

[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 ---

[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 g

[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 ___ _

[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 ___ ___ Python-bugs

[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) https://github.com/python/cpython/commit/1a3faf9d9740a8c7505c61839e

[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

[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 m

[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 ___ ___ Python-bugs-lis

[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 ___

[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 "/usr/include/n

[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

[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) https://github.com/python/cpython/commit/bf457c7d8224179a023957876e757f

[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: https://m

[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 ___ ___ Python

[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 __

[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: https://

[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

[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), tha

  1   2   >