[issue11193] test_subprocess error on AIX

2018-08-26 Thread Michael Felt
Michael Felt added the comment: Short Version: root@x065:[/data/prj/python/python3-3.8]./python -m test test_subprocess Run tests sequentially 0:00:00 [1/1] test_subprocess test_subprocess passed in 2 min 18 sec == Tests result: SUCCESS == 1 test OK. Total duration: 2 min 18 sec Tests

[issue11193] test_subprocess error on AIX

2018-08-26 Thread Michael Felt
Change by Michael Felt : -- keywords: +patch pull_requests: +8412 stage: -> patch review ___ Python tracker ___ ___

[issue34507] Add path expansion interpolation in pyvenv.cfg home key

2018-08-26 Thread Lior Cohen
New submission from Lior Cohen : When working with venv virtual environment, python.exe finds its base_prefix and base_exec_prefix by the home key in the pyvenv.cfg file. If one edits this file with $xyz (or %xyz% in windows), it is not not resolved. The reason of replacing the absolute path

[issue34497] Remove needless set operator restriction

2018-08-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: Sorry Dan, we're going to pass on this one. The current behavior was an intentional design choice by Guido and reflects a careful balance between some difficult trade-offs. An early and permanent mistake in Python's design is that list.__iadd__() and

[issue34512] Document platform-specific strftime() behavior for non-ASCII format strings

2018-08-26 Thread Alexey Izbyshev
New submission from Alexey Izbyshev : If a format string contains code points outside of ASCII range, time.strftime() can behave in four different ways depending on the platform, the current locale and the code points: * raise a UnicodeEncodeError * return an empty string * for surrogates in

[issue11193] test_subprocess test_undecodable_env error on AIX

2018-08-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +8425 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30858] Keyword can't be an expression?

2018-08-26 Thread Nick Coghlan
Nick Coghlan added the comment: I just ran into this, and found the existing error message *incredibly* confusing. My immediate reaction was "There's no keyword in that line, what are you complaining about?". An error message that said "Keyword argument name must be an identifier" would

[issue30858] Keyword can't be an expression?

2018-08-26 Thread Nick Coghlan
Nick Coghlan added the comment: The current error message is also outright incorrect, since simple names *are* valid expressions - the actual problem being reported is that binary expressions (veky's case) and strings (my case) *aren't* identifiers. --

[issue34514] assertEqual doesn't use maxDiff when comparing dictionaries

2018-08-26 Thread Victor Engmark
New submission from Victor Engmark : According to the documentation `assertDictEqual()` "will be used by default to compare dictionaries in calls to assertEqual()." Great, since `maxDiff` applies to assertDictEqual(). However, `maxDiff` doesn't apply to `assertEqual()` when comparing

[issue34514] assertEqual doesn't use maxDiff when comparing dictionaries

2018-08-26 Thread Prudvi RajKumar Maddala
Prudvi RajKumar Maddala added the comment: Hello Victor, can you tell me what is 'maxDiff'? Can you give me a simple example of expected output and actual output by taking a simple dictionary? Thanks -- nosy: +prudvinit ___ Python tracker

[issue32968] Fraction modulo infinity should behave consistently with other numbers

2018-08-26 Thread Elias Zamaria
Elias Zamaria added the comment: I updated my GitHub username. For the record, it used to be mikez302, and now it is elias6. -- ___ Python tracker ___

[issue34361] An error should be returned when there are spaces in between function name and parameters

2018-08-26 Thread Sanyam Khurana
Sanyam Khurana added the comment: Hi, I agree that it can break backward compatibility. But maybe we can add some sort of warning message? The entire motive of this is to get new folks to understand how a function is ideally defined and called. --

[issue15045] Make textwrap.dedent() consistent with str.splitlines(True) and str.strip()

2018-08-26 Thread Sanyam Khurana
Sanyam Khurana added the comment: Hey Nick, Serhiy The patch is up for your review. Any updates on this? -- ___ Python tracker ___

[issue34319] Clarify pathlib.Path("filepath").read_text()

2018-08-26 Thread Sanyam Khurana
Sanyam Khurana added the comment: Marking this bug as fixed via https://github.com/python/cpython/pull/8645 -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue34510] add HTTPConnection.settimeout()

2018-08-26 Thread Benjamin Peterson
Change by Benjamin Peterson : -- title: Add add HTTPConnection.settimeout() -> add HTTPConnection.settimeout() ___ Python tracker ___

[issue34508] return of non-parenthesized star-unpacking expression a SyntaxError

2018-08-26 Thread Mark Dickinson
Change by Mark Dickinson : -- keywords: +patch pull_requests: +8414 stage: -> patch review ___ Python tracker ___ ___

[issue34497] Remove needless set operator restriction

2018-08-26 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34510] Add add HTTPConnection.settimeout()

2018-08-26 Thread Collin Anderson
Change by Collin Anderson : -- components: Library (Lib) nosy: collinanderson priority: normal pull_requests: 8422 severity: normal status: open title: Add add HTTPConnection.settimeout() type: enhancement ___ Python tracker

[issue34511] I suggest to add documentation about "method" parameter of urllib.request.Request class

2018-08-26 Thread harobed
New submission from harobed : Hi, I see "method=None" parameter in urllib.request.Request constructor (https://github.com/python/cpython/blob/master/Lib/urllib/request.py#L327) but I don't see "method" parameter in documentation:

[issue34171] Lib/trace.cover not removed by the clean target

2018-08-26 Thread Zachary Ware
Zachary Ware added the comment: > Can we manually ssh into the buildbots from the buildbot master and delete > the file? No, there is no access to the workers except for the connection created by each worker for the purpose of buildbot communication (and individually by each worker owner).

[issue34494] simple "sequence" class ignoring __len__

2018-08-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: I concur with Josh. This matches the documented behavior and isn't a bug. Marking as closed. There are potentially two ways to stop sequence iteration, either by using len or by waiting for IndexError. Python uses the latter to allow lists to be

[issue34503] Reference leak in PyErr_SetObject()

2018-08-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +8417 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34503] Reference leak in PyErr_SetObject()

2018-08-26 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset a2eefa67542c25617a58c03a27c17fd48e2a0856 by Xiang Zhang (Alexey Izbyshev) in branch 'master': bpo-34503: Fix refleak in PyErr_SetObject() (GH-8934) https://github.com/python/cpython/commit/a2eefa67542c25617a58c03a27c17fd48e2a0856 --

[issue34503] Reference leak in PyErr_SetObject()

2018-08-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +8416 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34503] Reference leak in PyErr_SetObject()

2018-08-26 Thread Xiang Zhang
Change by Xiang Zhang : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue11193] test_subprocess test_undecodable_env error on AIX

2018-08-26 Thread Gregory P. Smith
Gregory P. Smith added the comment: https://github.com/python/cpython/pull/8939 and https://github.com/python/cpython/pull/8946 -- ___ Python tracker ___

[issue34509] Starting to use gcc-8 on CI

2018-08-26 Thread Jun Aruga
Jun Aruga added the comment: > it would be better to set up a buildbot running GCC 8, or switching one of > our existing workers to it. We want to keep the pre-merge CI as stable as > possible, and using a bleeding-edge compiler doesn't strike me as > particularly stable. Oh it seems that

[issue34511] I suggest to add documentation about "method" parameter of urllib.request.Request class

2018-08-26 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: method is added in Python 3.3. You're referencing documentation of Python 3.2. The documentation is correct for later Python versions: https://docs.python.org/3.7/library/urllib.request.html#urllib.request.Request -- nosy: +Mariatta resolution: ->

[issue34513] test_multiprocessing_spawn fails on x86 Windows7 3.7 buildbot

2018-08-26 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : test_multiprocessing_spawn fails on x86 Windows7 3.7 buildbot: https://buildbot.python.org/all/#/builders/111/builds/500 Timeout (0:15:00)! Thread 0x0c64 (most recent call first): File

[issue34509] Starting to use gcc-8 on CI

2018-08-26 Thread Jun Aruga
Change by Jun Aruga : -- keywords: +patch pull_requests: +8418 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue11193] test_subprocess test_undecodable_env error on AIX

2018-08-26 Thread Gregory P. Smith
Gregory P. Smith added the comment: someone with modern AIX access reopen if this specific issue still appears to exist after the 3.8 and 3.7 PRs finish merging. -- nosy: +gregory.p.smith stage: patch review -> resolved status: open -> closed title: test_subprocess error on AIX ->

[issue11193] test_subprocess test_undecodable_env error on AIX

2018-08-26 Thread Gregory P. Smith
Change by Gregory P. Smith : -- resolution: -> fixed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34509] Starting to use gcc-8 on CI

2018-08-26 Thread Zachary Ware
Zachary Ware added the comment: I think rather than switching Travis CI (or VSTS) to GCC 8, it would be better to set up a buildbot running GCC 8, or switching one of our existing workers to it. We want to keep the pre-merge CI as stable as possible, and using a bleeding-edge compiler

[issue6700] inspect.getsource() returns incorrect source lines at the module level

2018-08-26 Thread Tal Einat
Tal Einat added the comment: New changeset 491740f116755e220135e596ec802ea3a0f65596 by Tal Einat in branch '2.7': [2.7] bpo-6700: Fix inspect.getsourcelines for module level frames/tracebacks (GH-8864) https://github.com/python/cpython/commit/491740f116755e220135e596ec802ea3a0f65596

[issue34171] Lib/trace.cover not removed by the clean target

2018-08-26 Thread Zachary Ware
Zachary Ware added the comment: It looks like https://github.com/python/buildmaster-config/pull/43 won't actually help; I changed it to use `method='clean'` because we don't want to blow away the `externals` directory on Windows buildbots, and `*.cover` is in `.gitignore` so

[issue33741] UnicodeEncodeError onsmtplib.login(MAIL_USER, MAIL_PASSWORD)

2018-08-26 Thread Windson Yang
Change by Windson Yang : -- pull_requests: +8410 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34506] Traceback logged when SSL handshake fails

2018-08-26 Thread Hrvoje Nikšić
New submission from Hrvoje Nikšić : When an SSL handshake fails in asyncio, an exception traceback is logged to standard error even if the application code catches the exception. This logging cannot be suppressed, except by providing a custom exception handler for the whole event loop. The

[issue29750] smtplib doesn't handle unicode passwords

2018-08-26 Thread Windson Yang
Change by Windson Yang : -- keywords: +patch pull_requests: +8411 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue6700] inspect.getsource() returns incorrect source lines at the module level

2018-08-26 Thread Tal Einat
Tal Einat added the comment: Thanks for reporting this, Gabriel! Thanks for the PR, Vladimir! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue34508] return of non-parenthesized star-unpacking expression a SyntaxError

2018-08-26 Thread Mark Dickinson
New submission from Mark Dickinson : [From https://stackoverflow.com/q/52026406/270986] The following is valid, and works as expected: >>> def f(): ... x = *(1, 2), 3 ... return x ... >>> f() (1, 2, 3) But the tuple expression can't be used directly in a "return" statement: >>> def

[issue34494] simple "sequence" class ignoring __len__

2018-08-26 Thread Josh Rosenberg
Josh Rosenberg added the comment: That's the documented behavior. Per https://docs.python.org/3/reference/datamodel.html#object.__getitem__ : >Note: for loops expect that an IndexError will be raised for illegal indexes >to allow proper detection of the end of the sequence. The need for

[issue34171] Lib/trace.cover not removed by the clean target

2018-08-26 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Can we manually ssh into the buildbots from the buildbot master and delete the file? -- ___ Python tracker ___

[issue34171] Lib/trace.cover not removed by the clean target

2018-08-26 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +8413 stage: resolved -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue34171] Lib/trace.cover not removed by the clean target

2018-08-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It may be easier to remove "trace.cover" before testing every time than clean up all buildbots once. -- ___ Python tracker ___

[issue34508] return of non-parenthesized star-unpacking expression a SyntaxError

2018-08-26 Thread Mark Dickinson
Change by Mark Dickinson : -- pull_requests: +8415 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34503] Reference leak in PyErr_SetObject()

2018-08-26 Thread miss-islington
miss-islington added the comment: New changeset 204fb459ca1d77c2eab02a3191ba2d2216ff2d72 by Miss Islington (bot) in branch '3.6': bpo-34503: Fix refleak in PyErr_SetObject() (GH-8934) https://github.com/python/cpython/commit/204fb459ca1d77c2eab02a3191ba2d2216ff2d72 -- nosy:

[issue34509] Starting to use gcc-8 on CI

2018-08-26 Thread Jun Aruga
New submission from Jun Aruga : This ticket is from below conversation on python-dev mailing list. https://mail.python.org/pipermail/python-dev/2018-August/155011.html Right now the Python project Travis CI is running on gcc-4.8.4 for coverage testing. I want to replace it or add the latest

[issue34503] Reference leak in PyErr_SetObject()

2018-08-26 Thread miss-islington
miss-islington added the comment: New changeset 2caf86ff6d72d625f86db78c6e90fdaf09e8f703 by Miss Islington (bot) in branch '3.7': bpo-34503: Fix refleak in PyErr_SetObject() (GH-8934) https://github.com/python/cpython/commit/2caf86ff6d72d625f86db78c6e90fdaf09e8f703 --

[issue34512] Document platform-specific strftime() behavior for non-ASCII format strings

2018-08-26 Thread Alexey Izbyshev
Change by Alexey Izbyshev : -- keywords: +patch pull_requests: +8424 stage: -> patch review ___ Python tracker ___ ___