[issue34397] remove redundant overflow checks in tuple and list implementations

2019-01-24 Thread Windson Yang
Windson Yang added the comment: I reviewed the patch months ago, maybe we need a core developer review this path? -- ___ Python tracker ___

[issue35823] Use vfork() in subprocess on Linux

2019-01-24 Thread Ronald Oussoren
Ronald Oussoren added the comment: Issue #34663 contains some earlier discussion about vfork, in the context of supporting a specific posix_spawn flag on Linux. W.r.t. closing all file descriptors > 2: posix_spawn_file_actions_addclose can do this when using posix_spawn. That would have a

[issue35666] Update design FAQ about assignment expression

2019-01-24 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Ah sorry I think this could be a duplicate of issue34237 where you have added an update. -- ___ Python tracker ___

[issue35666] Update design FAQ about assignment expression

2019-01-24 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: > I believe a spot where assignment expressions are explicitly mentioned as not > being included in the language, which is no longer the case Emily, I guess you were referring to this issue in https://bugs.python.org/issue35224#msg334331 . Now

[issue35821] Clarify when logging events are propagated when propagate is true

2019-01-24 Thread Chris Jerdonek
Chris Jerdonek added the comment: Thanks for the diagram. How about the following as a replacement? "If this attribute is true and the event isn't rejected by the logger's level and filters, an event passed to this logger will recursively be passed to its parent logger and handled by the

[issue35224] PEP 572: Assignment Expressions

2019-01-24 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I don't know if this is the correct issue for questions/clarifications but it seems parens are mandatory while using named expressions in while statement which makes some of the examples invalid like

[issue35821] Clarify when logging events are propagated when propagate is true

2019-01-24 Thread Vinay Sajip
Vinay Sajip added the comment: I believe the information is clear from this link in the documentation: https://docs.python.org/3/howto/logging.html#logging-flow However, if you can suggest alternative wording which you think is clearer, I'll certainly take a look at it. Perhaps a link could

[issue35824] http.cookies._CookiePattern modifying regular expressions

2019-01-24 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the MDN cookie directive link. I didn't know it links to Date link in the GitHub PR. I don't see space optional in the sane-date format specified for expires attribute. I could be reading the grammar wrong. I will wait for others

[issue35824] http.cookies._CookiePattern modifying regular expressions

2019-01-24 Thread MeiK
New submission from MeiK : http.cookies.BaseCookie[1] can't parse Expires in this format like Expires=Thu,31 Jan 2019 05:56:00 GMT;(Less space after Thu,). I encountered this problem in actual use, Chrome, IE and Firefox can parse this string normally. Many languages, such as JavaScript, can

[issue35824] http.cookies._CookiePattern modifying regular expressions

2019-01-24 Thread MeiK
Change by MeiK : -- components: Extension Modules nosy: MeiK priority: normal severity: normal status: open title: http.cookies._CookiePattern modifying regular expressions type: enhancement ___ Python tracker

[issue35814] Syntax quirk with variable annotations

2019-01-24 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.8 -Python 3.7 ___ Python tracker ___

[issue35537] use os.posix_spawn in subprocess

2019-01-24 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: > Is sys.platform equal to 'linux' on WSL? Sorry, I don't know WSL. If it's > equal, is it possible to explicitly exclude WSL in the subprocess test, > _use_posix_spawn()? I don't have immediate access to WSL right now, but I'll try to get one and

[issue35823] Use vfork() in subprocess on Linux

2019-01-24 Thread Alexey Izbyshev
Change by Alexey Izbyshev : -- keywords: +patch, patch pull_requests: +11484, 11485 stage: -> patch review ___ Python tracker ___

[issue35823] Use vfork() in subprocess on Linux

2019-01-24 Thread Alexey Izbyshev
Change by Alexey Izbyshev : -- keywords: +patch pull_requests: +11484 stage: -> patch review ___ Python tracker ___ ___

[issue35823] Use vfork() in subprocess on Linux

2019-01-24 Thread Alexey Izbyshev
Change by Alexey Izbyshev : -- keywords: +patch, patch, patch pull_requests: +11484, 11485, 11486 stage: -> patch review ___ Python tracker ___

[issue35823] Use vfork() in subprocess on Linux

2019-01-24 Thread Alexey Izbyshev
New submission from Alexey Izbyshev : This issue is to propose a (complementary) alternative to the usage of posix_spawn() in subprocess (see bpo-35537). As mentioned by Victor Stinner in msg332236, posix_spawn() has the potential of being faster and safer than fork()/exec() approach.

[issue35814] Syntax quirk with variable annotations

2019-01-24 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: New changeset 62c35a8a8ff5854ed470b1c16a7a14f3bb80368c by Ivan Levkivskyi in branch 'master': bpo-35814: Allow same r.h.s. in annotated assignments as in normal ones (GH-11667)

[issue35224] PEP 572: Assignment Expressions

2019-01-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset 1396d8fab4d0ae830d45f4937322bbb43ce0c30e by Victor Stinner in branch 'master': bpo-35224: Add support for NamedExpr to unparse.py (GH-11670) https://github.com/python/cpython/commit/1396d8fab4d0ae830d45f4937322bbb43ce0c30e --

[issue35821] Clarify when logging events are propagated when propagate is true

2019-01-24 Thread Chris Jerdonek
Chris Jerdonek added the comment: Also, does "logged to this logger" include events propagated to it from a child logger? For example, if an event is logged to logger "A.B.C" and propagated to "A.B", will the propagate attribute of the latter effect whether logger "A" (or its handlers) sees

[issue35224] PEP 572: Assignment Expressions

2019-01-24 Thread STINNER Victor
STINNER Victor added the comment: > @vstinner Is there something I could/should have checked other than the CI > displayed in GitHub before merging? Let me know if I can help. It wasn't your fault. Our pre-commit checks on pull requests is incomplete on purpose: it has to be fast. It's fine

[issue35224] PEP 572: Assignment Expressions

2019-01-24 Thread Emily Morehouse
Emily Morehouse added the comment: @vstinner Is there something I could/should have checked other than the CI displayed in GitHub before merging? Let me know if I can help. Here's a brief summary of the differences between the PEP spec and implementation: >From the "Scope of the target"

[issue35224] PEP 572: Assignment Expressions

2019-01-24 Thread STINNER Victor
STINNER Victor added the comment: The change broke most buildbots: congrats Emily, each core dev has to do their as part of their training ;-) Don't worry, it's fine. I wrote PR #11670 which should fix test_tools. -- nosy: +vstinner ___ Python

[issue35224] PEP 572: Assignment Expressions

2019-01-24 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +11481, 11482 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35224] PEP 572: Assignment Expressions

2019-01-24 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +11481, 11482, 11483 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35224] PEP 572: Assignment Expressions

2019-01-24 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +11481 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35821] Clarify when logging events are propagated when propagate is true

2019-01-24 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +vinay.sajip, xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35822] _queue _queuemodule.c is missing inside the Setup file

2019-01-24 Thread Igor Z
New submission from Igor Z : I had to install manually new urllib3 (zip archive) module inside python 3.7 and got and error that module "_queue" is missing. I did not find anything related to such module inside the Setup file. Then I found this module in the github and manually added: _queue

[issue35224] PEP 572: Assignment Expressions

2019-01-24 Thread Guido van Rossum
Guido van Rossum added the comment: This is huge! I do recall there are some minor edge cases where the implementation currently doesn't match the PEP. Could you summarize those here, and add your recommendation (e.g. change the PEP, fix the code, wait and see) with motivation? --

[issue3430] httplib.HTTPResponse documentations inconsistent

2019-01-24 Thread Demian Brecht
Change by Demian Brecht : -- nosy: -demian.brecht ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17251] LWPCookieJar load() set domain_specifed wrong

2019-01-24 Thread Demian Brecht
Change by Demian Brecht : -- nosy: -demian.brecht ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20911] urllib 'headers' is not a well defined data type

2019-01-24 Thread Demian Brecht
Demian Brecht added the comment: >>> urlopen('https://example.com').info() >>> urlopen('http://example.com').info() >>> urlopen('ftp://speedtest.tele2.net').info() >>> urlopen('file:///path/to/setup.py').info() I've taken a look at the rest of the handlers in urllib.request and they all

[issue35819] Fatal Python error

2019-01-24 Thread Abdallah
Abdallah added the comment: Thank you alot On Thu, 24 Jan 2019, 19:37 Zachary Ware > Zachary Ware added the comment: > > Hi Abdallah, > > This tracker is for reporting bugs in the CPython interpreter or standard > library, not for general help; as such I'm closing this issue. For help, >

[issue35224] PEP 572: Assignment Expressions

2019-01-24 Thread Emily Morehouse
Emily Morehouse added the comment: New changeset 8f59ee01be3d83d5513a9a3f654a237d77d80d9a by Emily Morehouse in branch 'master': bpo-35224: PEP 572 Implementation (#10497) https://github.com/python/cpython/commit/8f59ee01be3d83d5513a9a3f654a237d77d80d9a --

[issue15248] Better explain "TypeError: 'tuple' object is not callable"

2019-01-24 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: +gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15248] Better explain "TypeError: 'tuple' object is not callable"

2019-01-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am not sure what you could do at the moment. We have not yet settled whether this is a documentation or interpreter core issue. I posted "Add more SyntaxWarnings?" to pydev to get more comments on Serhiy's patch, especially for other core developers.

[issue35820] Inconsistent behavior when parsing IP address

2019-01-24 Thread Eric V. Smith
Eric V. Smith added the comment: >From the documentation of IPv4Address: The following constitutes a valid IPv4 address: 1. A string in decimal-dot notation, consisting of four decimal integers in the inclusive range 0–255, separated by dots (e.g. 192.168.0.1). Each integer represents an

[issue35811] py.exe should unset the __PYVENV_LAUNCHER__ environment variable

2019-01-24 Thread Steve Dower
Steve Dower added the comment: I think that snippet may have to change to accommodate the multiprocessing issue, where we need to stop replacing sys.executable with the venv launcher and have it point to the base python.exe (and then anyone launching sys.executable needs to preserve

[issue35686] BufferError with memory.release()

2019-01-24 Thread Thomas Waldmann
Thomas Waldmann added the comment: https://github.com/borgbackup/borg/pull/4247/files this is the current code i have for this (it is not as simple there as in the minimal code samples i attached here). i meanwhile think i can not use a contextmanager there. do you think this is as good as

[issue35821] Clarify when logging events are propagated when propagate is true

2019-01-24 Thread Chris Jerdonek
New submission from Chris Jerdonek : Currently, the logging docs are a bit ambiguous or at least not completely clear as to when events are propagated when Logger.propagate is true. The docs currently say [1]-- "If [the `propagate`] attribute evaluates to true, events logged to this logger

[issue35820] Inconsistent behavior when parsing IP address

2019-01-24 Thread Tinu Tomson
Change by Tinu Tomson : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35820] Inconsistent behavior when parsing IP address

2019-01-24 Thread Tinu Tomson
New submission from Tinu Tomson : ip = '23.00.021.002' ipaddress.IPv4Address(ip) throw error: File "/usr/lib/python3.4/ipaddress.py", line 1271, in __init__ self._ip =

[issue35717] enum.Enum error on sys._getframe(2)

2019-01-24 Thread miss-islington
Change by miss-islington : -- pull_requests: +11478, 11479, 11480 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35717] enum.Enum error on sys._getframe(2)

2019-01-24 Thread miss-islington
Change by miss-islington : -- pull_requests: +11478, 11479 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35717] enum.Enum error on sys._getframe(2)

2019-01-24 Thread miss-islington
Change by miss-islington : -- pull_requests: +11478 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35717] enum.Enum error on sys._getframe(2)

2019-01-24 Thread miss-islington
miss-islington added the comment: New changeset 1fd06f1eca80dcbf3a916133919482a8327f3da4 by Miss Islington (bot) (Rémi Lapeyre) in branch 'master': bpo-35717: Fix KeyError exception raised when using enums and compile (GH-11523)

[issue35811] py.exe should unset the __PYVENV_LAUNCHER__ environment variable

2019-01-24 Thread Eryk Sun
Eryk Sun added the comment: > But if I understood what Steve said, only if path\to\python.exe is > a *relative* pathname? I believe Steve is referring to behavior changes for applications that relied on a virtual environment's "Scripts" directory always being in the EXE and default DLL and

[issue34857] IDLE: SyntaxWarning not handled properly

2019-01-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: In 3.7.2, the statement in a file results in the SyntaxError being printed in Shell *before* the restart. It should be after, but before the code object is sent to the restarted execution process. -- ___ Python

[issue35811] py.exe should unset the __PYVENV_LAUNCHER__ environment variable

2019-01-24 Thread Paul Moore
Paul Moore added the comment: > The script executable redirects to run `"path\to\python.exe" > "path\to\.exe"`. But if I understood what Steve said, only if path\to\python.exe is a *relative* pathname? -- ___ Python tracker

[issue35811] py.exe should unset the __PYVENV_LAUNCHER__ environment variable

2019-01-24 Thread Eryk Sun
Eryk Sun added the comment: > 1. Is there a possibility that 3rd party applications like pip > could see bugs with Python 3.7.2? A bug occurs when running an entry-point script, such as pip.exe, for a system- or user-installed Python 3.7.2+ from the context of a virtual environment for

[issue35811] py.exe should unset the __PYVENV_LAUNCHER__ environment variable

2019-01-24 Thread Paul Moore
Paul Moore added the comment: Steve - thanks for the clarification. If it's only affecting launching with relative paths, then agreed it's minor (although I do recall recent discussions somewhere about using launchers with relative paths - that use case may need checking, but we can deal

[issue35817] IDLE 2.713 on debian 9.6 over WSL W10 IdentationError

2019-01-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: In the Debian screenshot with the traceback, you run interactive Python, not IDLE, in the system terminal, with the command-line entry 'python'. Notice the secondary ... prompt. The bug in the code you entered is indicated by the error message. In

[issue35819] Fatal Python error

2019-01-24 Thread Zachary Ware
Zachary Ware added the comment: Hi Abdallah, This tracker is for reporting bugs in the CPython interpreter or standard library, not for general help; as such I'm closing this issue. For help, it's better to ask on the main python mailing list (python-l...@python.org), in the #python IRC

[issue35767] unittest loader doesn't work with partial test functions

2019-01-24 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 841387dd43e67b1800d10e4d7ce1f8cedc9f3706 by Łukasz Langa (Miss Islington (bot)) in branch '3.7': bpo-35767: Fix unittest.loader to allow partials as test_functions (GH-11600) (#11662)

[issue35520] Python won't build with dtrace enabled on some systems.

2019-01-24 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 5c8f537669d3379fc50bb0a96accac756e43e281 by Łukasz Langa (Jakub Kulík) in branch 'master': bpo-35520: Fix build with dtrace support on certain systems. (#11194) https://github.com/python/cpython/commit/5c8f537669d3379fc50bb0a96accac756e43e281

[issue35819] Fatal Python error

2019-01-24 Thread Abdallah
New submission from Abdallah : ,He, i am having this problem for about 2 weeks , I can't do anything , so please give me some instructions so i can solve .it Fatal Python error: initfsencoding: unable to load the file system codec ModuleNotFoundError: No module named 'encodings' :Current

[issue31982] 8.3. collections — Container datatypes

2019-01-24 Thread Cheryl Sabella
Cheryl Sabella added the comment: This is a duplicate of issue 31075, which was closed as 'Not a bug'. -- nosy: +cheryl.sabella ___ Python tracker ___

[issue15248] Better explain "TypeError: 'tuple' object is not callable"

2019-01-24 Thread Mayank Singhal
Mayank Singhal <17mayanksing...@gmail.com> added the comment: Hey, if nobody is working on this can I go for it? -- nosy: +storymode7 ___ Python tracker ___

[issue35537] use os.posix_spawn in subprocess

2019-01-24 Thread STINNER Victor
STINNER Victor added the comment: I wrote PR 11668 to propose to *document* the subtle behavior change when posix_spawn() is used on QEMU User Emulation and WSL platforms, rather than trying to opt-out for posix_spawn() on these platforms. -- ___

[issue35537] use os.posix_spawn in subprocess

2019-01-24 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +11476, 11477 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35537] use os.posix_spawn in subprocess

2019-01-24 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +11476 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35811] py.exe should unset the __PYVENV_LAUNCHER__ environment variable

2019-01-24 Thread Steve Dower
Steve Dower added the comment: It might be worth adding a summary of that to the porting notes, but I think the actual impact will be minimal. Launching processes by relative path has been a bad decision for long enough now that I'd expect it to be rare, and the Scripts directory layout

[issue33342] urllib IPv6 parsing fails with special characters in passwords

2019-01-24 Thread Terrence Brannon
Terrence Brannon added the comment: Also note, if SQLAlchemy gives any guidance, then note that SA unquotes both the username and password of the URL: https://github.com/sqlalchemy/sqlalchemy/blob/master/lib/sqlalchemy/engine/url.py#L274 -- ___

[issue33342] urllib IPv6 parsing fails with special characters in passwords

2019-01-24 Thread Terrence Brannon
Terrence Brannon added the comment: Regarding "RFC 2396 explicitly excludes the use of [ and ] in URLs. RFC 2732 defines the syntax for IPv6 URLs, and allows [ and ] ONLY in the host part. So I'd say that the behaviour is arguably correct (if somewhat

[issue35811] py.exe should unset the __PYVENV_LAUNCHER__ environment variable

2019-01-24 Thread Paul Moore
Paul Moore added the comment: I'm not particularly happy with the statement that "However, the latter is out of scope here since the entry-point launchers are in distlib." If Python is changing the semantics of __PYVENV_LAUNCHER__ in such a way that it breaks 3rd party code, it seems to me

[issue33416] Add endline and endcolumn to every AST node

2019-01-24 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: Re-opening to track renaming of potentially public PyNode_AddChild() and PyParser_AddToken(). -- nosy: +vstinner resolution: fixed -> stage: resolved -> patch review status: closed -> open ___ Python tracker

[issue35814] Syntax quirk with variable annotations

2019-01-24 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- keywords: +patch, patch pull_requests: +11473, 11474 stage: -> patch review ___ Python tracker ___

[issue35814] Syntax quirk with variable annotations

2019-01-24 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- keywords: +patch, patch, patch pull_requests: +11473, 11474, 11475 stage: -> patch review ___ Python tracker ___

[issue35814] Syntax quirk with variable annotations

2019-01-24 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- keywords: +patch pull_requests: +11473 stage: -> patch review ___ Python tracker ___ ___

[issue35814] Syntax quirk with variable annotations

2019-01-24 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: Good catch! I think it was just overlooked rather than a conscious decision (unlike the left hand side, that generated lots of debates) I will make a PR to allow everything that is allowed on r.h.s. of a normal assignment. --

[issue35621] asyncio.create_subprocess_exec() only works with main event loop

2019-01-24 Thread Alexandre Défossez
Alexandre Défossez added the comment: Also impacted. A fix I found is to add `watcher.attach_loop(self)` just after `with events.get_child_watcher() as watcher:` in `_make_subprocess_transport` in `asyncio/unix_events.py`. -- nosy: +adfz ___

[issue35818] test_email: test_localtime_daylight_false_dst_true() fails if timezone database is missing

2019-01-24 Thread Andreas Schwab
Andreas Schwab added the comment: rpm -e timezone -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35818] test_email: test_localtime_daylight_false_dst_true() fails if timezone database is missing

2019-01-24 Thread STINNER Victor
STINNER Victor added the comment: How can I reproduce the issue? -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35816] csv.DictReader, skipinitialspace does not ignore tabs

2019-01-24 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Sorry, I overlooked the patch. The issue reported is the same in issue21297 but the patch was about changing whitespace to space in the doc instead of changing the behavior as I can see from the discussion. --

[issue35818] test_email: test_localtime_daylight_false_dst_true() fails if timezone database is missing

2019-01-24 Thread Andreas Schwab
New submission from Andreas Schwab : bpo-35317 solution is incomplete, the test needs to be skipped if the timezone database is unavailable. -- messages: 334294 nosy: barry, miss-islington, p-ganssle, r.david.murray, schwab, vstinner, xtreak priority: normal severity: normal status:

[issue35817] IDLE 2.713 on debian 9.6 over WSL W10 IdentationError

2019-01-24 Thread Audric
New submission from Audric : Hello, The screenshot attached is a clear repro. Environment: Surface Pro 3 Win 10 1803 Python 2.7.14 WSL Debian 9.6 with Python 2.7.13 Code: >>elements = [] >>for i in range(0, 6): >>...elements.append(i) --- Working: >>print

[issue35537] use os.posix_spawn in subprocess

2019-01-24 Thread STINNER Victor
STINNER Victor added the comment: I discussed the following issue with Florian Weimer (who works on the glibc): --- $ cat test.c #include int main(int argc, char *argv[], char *envp[]) { return posix_spawn(0, "non-existing", 0, 0, argv, envp); } $ aarch64-linux-gnu-gcc -static test.c $

[issue35317] test_email: test_localtime_daylight_false_dst_true() fails depending on the timezone

2019-01-24 Thread Andreas Schwab
Andreas Schwab added the comment: The test still fails if the timezone database is not available. -- nosy: +schwab ___ Python tracker ___

[issue35816] csv.DictReader, skipinitialspace does not ignore tabs

2019-01-24 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: https://bugs.python.org/issue21297#msg216907 to be related and has a patch. It refers to whitespace as only space ('U+0020') with tabs being ignored. Current code where only space is taken into account :

[issue35816] csv.DictReader, skipinitialspace does not ignore tabs

2019-01-24 Thread André Lehmann
New submission from André Lehmann : When using the csv.DictReader a dialect can be given to change the behavior of interpretation of the csv file. The Dialect has an option "skipinitialspace" which shall ignore the whitespace after the delimiter according to the documentation

[issue35537] use os.posix_spawn in subprocess

2019-01-24 Thread STINNER Victor
STINNER Victor added the comment: > Another problem with posix_spawn() on glibc: it doesn't report errors to the > parent process when run under QEMU user-space emulation and Windows Subsystem > for Linux. This is because starting with commit [1] (glibc 2.25) > posix_spawn() relies on

[issue18078] threading.Condition to allow notify on a specific waiter

2019-01-24 Thread Richard Whitehead
Richard Whitehead added the comment: Thanks João. We are working on a medical prototype, and I wouldn't want to rely on our own version of something so fundamental without having a thorough test harness for it, which would obviously be quite time-consuming, and something of a dead-end. I've

[issue27035] Cannot set exit code in atexit callback

2019-01-24 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: You can always set the exit code calling sys.exit from outside the atexit handlers. I concur with R. David Murray in that calling sys.exit and expect anything sounds like a bad idea and an abuse if the atexit system. A normal application would call

[issue27035] Cannot set exit code in atexit callback

2019-01-24 Thread Miroslav Matějů
Miroslav Matějů added the comment: I completely support @gwk’s opinion expressed in his comments. My original intention has been to set the exit code in an atexit callback. I tried a way and found that it was working in Python 2.7 but not in 3.x (without notice), so I filed this bug report.