[issue36264] os.path.expanduser should not use HOME on windows

2019-03-17 Thread daniel hahler
daniel hahler added the comment: Just as a sidenote: the other day I was checking Python's source to see how to override a user's home (in tests, when os.path.expanduser` is used in code), and found it easy to just set $HOME in the environment in the end. I guess this change will cause

[issue34745] asyncio ssl memory leak

2019-03-17 Thread Fantix King
Change by Fantix King : -- pull_requests: +12348 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36332] compile() error on AST object with assignment expression

2019-03-17 Thread Guido van Rossum
Guido van Rossum added the comment: Confirmed. Emily, do you need help tracking this down? -- ___ Python tracker ___ ___

[issue36334] pathlib.Path unexpected (wrong) behaviour when combining paths in a for loop

2019-03-17 Thread Eryk Sun
Eryk Sun added the comment: The drive is retained when a rooted path is joined to a drive-absolute or UNC-absolute path. This is documented behavior [1]: When several absolute paths are given, the last is taken as an anchor (mimicking os.path.join()’s behaviour): >>>

[issue36335] Factor out / add bdb.Bdb.is_skipped_frame

2019-03-17 Thread daniel hahler
Change by daniel hahler : -- keywords: +patch pull_requests: +12347 stage: -> patch review ___ Python tracker ___ ___

[issue36335] Factor out / add bdb.Bdb.is_skipped_frame

2019-03-17 Thread daniel hahler
New submission from daniel hahler : In https://bugs.python.org/issue36130 is_skipped_module was changed to handle frames without __name__, but I think it makes sense being able to skip e.g. frames on frame.f_code.co_name then. Factoring out is_skipped_frame allows for this. The default

[issue34461] Availability of parsers in etree initializer

2019-03-17 Thread Ned Deily
Ned Deily added the comment: Thanks for the suggestion but, since there has been no agreement that this change is desirable, I am going to close the issue along with the submitted PRs. -- nosy: +ned.deily resolution: -> not a bug stage: patch review -> resolved status: open ->

[issue36272] Recursive logging crashes Interpreter in Python 3

2019-03-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +12346 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36318] Adding support for setting the "disabled" attribute of loggers from logging.config.dictConfig

2019-03-17 Thread Vinay Sajip
Vinay Sajip added the comment: I don't see any value in configuring a logger which starts as disabled - making it completely useless - why would one want to do this? I don't think the "consistency" argument flies in this case. -- ___ Python

[issue36334] pathlib.Path unexpected (wrong) behaviour when combining paths in a for loop

2019-03-17 Thread Mike Davies
New submission from Mike Davies : I wish to create a list of pathlib.Paths by combining two lists of pathlib.Paths. I use two for loops to make every combination. However the output is not what one would expect (see no 'Program Files' is visible in the output). ## INPUT: pa = [

[issue36247] zipfile - extract truncates (existing) file when bad password provided (zip encryption weakness)

2019-03-17 Thread Ned Deily
Ned Deily added the comment: I'll let it up to other coredevs to decide whether this is behavior that should be changed in master for the next feature release and/or whether a doc change is needed. But we are not going to change the behavior of 3.6 for sure so I am closing PR 12242.

[issue36195] initializer is not a valid param in ThreadPoolExecutor

2019-03-17 Thread Ned Deily
Ned Deily added the comment: Thanks for the PR! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36195] initializer is not a valid param in ThreadPoolExecutor

2019-03-17 Thread Ned Deily
Ned Deily added the comment: New changeset e601ef0fa384d149f6759fff3c18762a8c63851e by Ned Deily (Harmandeep Singh) in branch '3.6': bpo-36195: Remove the ThreadPoolExecutor documentation mentioning the initializer feature added in Python 3.7 (GH-12182)

[issue35121] Cookie domain check returns incorrect results

2019-03-17 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Larry, I am reopening this since this seems to affects 2.7 and would wait for Benjamin's call on backporting this. -- resolution: fixed -> stage: resolved -> commit review status: closed -> open ___

[issue36332] compile() error on AST object with assignment expression

2019-03-17 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +emilyemorehouse, gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36268] Change default tar format to modern POSIX 2001 (pax) for better portability/interop, support and standards conformance

2019-03-17 Thread C.A.M. Gerlach
C.A.M. Gerlach added the comment: Also, one additional minor note (since I apparently can't edit comments here). Windows 10 (since the April 2018 update a year ago) now includes libarchive-based bsdtar built-in by default and accessible from the standard command prompt, which as mentioned

[issue22303] Write better test for SSLContext.load_verify_locations

2019-03-17 Thread Cheryl Sabella
Cheryl Sabella added the comment: Issue 22449 added some tests around these environment variables. Was that enough to satisfy this issue or does more need to be done? -- nosy: +cheryl.sabella ___ Python tracker

[issue36333] memory leaks detected with valgrind for python -V

2019-03-17 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: @vstinner I ping you because you are the main author for the new changes in the interpreter and the PyPreConfig part. -- nosy: +vstinner ___ Python tracker

[issue36333] memory leaks detected with valgrind for python -V

2019-03-17 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- versions: +Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36333] memory leaks detected with valgrind for python -V

2019-03-17 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- keywords: +patch pull_requests: +12345 stage: -> patch review ___ Python tracker ___ ___

[issue36333] memory leaks detected with valgrind for python -V

2019-03-17 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: The report of valgrind with no leaks. -- Added file: https://bugs.python.org/file48214/valgrind-without-memory-leak.log ___ Python tracker

[issue36333] memory leaks detected with valgrind for python -V

2019-03-17 Thread Stéphane Wirtel
New submission from Stéphane Wirtel : I have detected 3 memory leaks when I execute python -V with valgrind -> 162 bytes. The leaks do seem to be in pymain_init and in _PyPreConfig_ReadFromArgv (the string for the locale is not freed). Also _PyRuntimeState_Fini does not release the memory of

[issue34745] asyncio ssl memory leak

2019-03-17 Thread miss-islington
miss-islington added the comment: New changeset 7f7485c0605fe979e39c58b688f2bb6a4f43e65e by Miss Islington (bot) in branch '3.7': bpo-34745: Fix asyncio sslproto memory issues (GH-12386) https://github.com/python/cpython/commit/7f7485c0605fe979e39c58b688f2bb6a4f43e65e -- nosy:

[issue34745] asyncio ssl memory leak

2019-03-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +12344 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34745] asyncio ssl memory leak

2019-03-17 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset f683f464259715d620777d7ed568e701337a703a by Yury Selivanov (Fantix King) in branch 'master': bpo-34745: Fix asyncio sslproto memory issues (GH-12386) https://github.com/python/cpython/commit/f683f464259715d620777d7ed568e701337a703a --

[issue36330] Warning about a potential dead code in timemodule and Clang

2019-03-17 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi Paul, Thank you for your explanation, I was not sure about the solution and I have just preferred to publish this issue. I don't have this issue with gcc, only with clang. -- ___ Python tracker

[issue34745] asyncio ssl memory leak

2019-03-17 Thread Fantix King
Change by Fantix King : -- keywords: +patch pull_requests: +12343 stage: -> patch review ___ Python tracker ___ ___

[issue36332] compile() error on AST object with assignment expression

2019-03-17 Thread Kyungdahm Yun
New submission from Kyungdahm Yun : Seems like compile() can't properly handle assignment expressions parsed in AST object. Python 3.8.0a2+ (heads/master:06e1e68, Mar 17 2019, 14:27:19) [Clang 10.0.0 (clang-1000.10.44.4)] on darwin Type "help", "copyright", "credits" or "license" for more

[issue36245] PCBuild/build.bat errors, probably from space characters in paths

2019-03-17 Thread Jess
Jess added the comment: How long should I be waiting on review? -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36331] check_output is returning non-zero exit status 1

2019-03-17 Thread Ned Deily
Ned Deily added the comment: Did you try running the same command "screen -ls" with subprocess.run() so you can see the output from it? Or just from a terminal shell? If I do, I see: >>> subprocess.run(["screen", "-ls"]) No Sockets found in

[issue36331] check_output is returning non-zero exit status 1

2019-03-17 Thread Jagadeesh Marella
New submission from Jagadeesh Marella : check_output(["screen", "-ls"]) Traceback (most recent call last): File "", line 1, in File "/usr/local/Cellar/pypy3/6.0.0/libexec/lib-python/3/subprocess.py", line 316, in check_output **kwargs).stdout File

[issue35121] Cookie domain check returns incorrect results

2019-03-17 Thread Larry Hastings
Change by Larry Hastings : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36330] Warning about a potential dead code in timemodule and Clang

2019-03-17 Thread Paul Ganssle
Paul Ganssle added the comment: Sorry, I should say unlikely that it should ever be *true*. It seems unlikely that there is a platform or piece of hardware on which this error would be raised. -- ___ Python tracker

[issue36330] Warning about a potential dead code in timemodule and Clang

2019-03-17 Thread Paul Ganssle
Paul Ganssle added the comment: It does seem like the values CLOCKS_PER_SEC, _PyTime_MAX and SEC_TO_NS are all defined at compile-time, so presumably this can be a compile-time error. As currently defined, though, it seems very unlikely that this would ever be false, since _PyTime_MAX is

[issue36330] Warning about a potential dead code in timemodule and Clang

2019-03-17 Thread Stéphane Wirtel
New submission from Stéphane Wirtel : env CC="/usr/bin/clang" CCX="/usr/bin/clang" ./configure > /dev/null ;and make -j 4 > /dev/null ./Modules/timemodule.c:113:13: warning: code will never be executed [-Wunreachable-code] PyErr_SetString(PyExc_OverflowError,

[issue36320] typing.NamedTuple to switch from OrderedDict to regular dict

2019-03-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: Okay, I'll put together a PR and assign it to you :-) -- ___ Python tracker ___ ___

[issue36329] use the right python "make -C Doc/ serve"

2019-03-17 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- keywords: +patch pull_requests: +12342 stage: -> patch review ___ Python tracker ___ ___

[issue36329] use the right python "make -C Doc/ serve"

2019-03-17 Thread Stéphane Wirtel
New submission from Stéphane Wirtel : When serving the documentation with `make -C Doc/ serve`, we can not specify the path of the python binary. My use case, I wanted to debug the wsgiref.simple_server method, used by Tools/scripts/serve.py. It's just impossible because we use the default

[issue36329] use the right python "make -C Doc/ serve"

2019-03-17 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- assignee: -> docs@python components: +Documentation nosy: +docs@python ___ Python tracker ___ ___

[issue36317] Typo in documentation of _PyObject_FastCallDict

2019-03-17 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- keywords: +patch pull_requests: +12341 stage: -> patch review ___ Python tracker ___ ___

[issue36290] _ast.ast_type_init does not handle args and kwargs correctly.

2019-03-17 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- keywords: +patch pull_requests: +12340 stage: -> patch review ___ Python tracker ___ ___

[issue36308] Fix warning in _PyPathConfig_ComputeArgv0

2019-03-17 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36328] tstate may be used uninitialized in Py_NewInterpreter

2019-03-17 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- keywords: +patch pull_requests: +12339 stage: -> patch review ___ Python tracker ___ ___

[issue36328] tstate may be used uninitialized in Py_NewInterpreter

2019-03-17 Thread Stéphane Wirtel
New submission from Stéphane Wirtel : I get this warning when I compile python without the --with-pydebug flag. Python/pylifecycle.c: In function 'Py_NewInterpreter': Python/pylifecycle.c:1442:12: warning: 'tstate' may be used uninitialized in this function [-Wmaybe-uninitialized] return

[issue19415] test_gdb fails when using --without-doc-strings on Fedora 19

2019-03-17 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: @Nick, I have tested with the last 3.8 and 3.7 and Fedora 29. ./configure --without-doc-strings > /dev/null ;and make -j 4 > /dev/null ;and ./python -m test -W test_gdb Run tests sequentially 0:00:00 load avg: 1.49 [1/1] test_gdb test_gdb passed in 41 sec

[issue36235] distutils.sysconfig.customize_compiler() overrides CFLAGS var with OPT var if CFLAGS env var is set

2019-03-17 Thread Chih-Hsuan Yen
Change by Chih-Hsuan Yen : -- pull_requests: +12338 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31062] socket.makefile does not handle line buffering

2019-03-17 Thread Cheryl Sabella
Change by Cheryl Sabella : -- nosy: +giampaolo.rodola versions: -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue36327] Remove EOLed Py34 from "Status of Python branches"

2019-03-17 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: The tracker is for CPython and the devguide has it's own issue tracker where this could be raised : https://github.com/python/devguide . I am just adding Larry who is release manager for 3.4 and closing this as third party. Feel free to reopen if

[issue36327] Remove EOLed Py34 from "Status of Python branches"

2019-03-17 Thread Christian Clauss
New submission from Christian Clauss : Remove Python 3.4 https://devguide.python.org/#branchstatus Add Python 3.4 https://devguide.python.org/devcycle/#end-of-life-branches -- assignee: docs@python components: Documentation messages: 338131 nosy: cclauss, docs@python priority: normal

[issue36320] typing.NamedTuple to switch from OrderedDict to regular dict

2019-03-17 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: Good idea! This should be easy to fix/update, this was initially discussed in https://github.com/python/typing/issues/339. -- ___ Python tracker

[issue35998] test_asyncio: test_start_tls_server_1() TimeoutError on Fedora 29

2019-03-17 Thread Matthias Klose
Matthias Klose added the comment: setting to release-blocker for evaluation. the freebsd solution seems to be wrong, just avoiding the error. Is the test correct, or do we have an issue that TLSv1.3 isn't properly handled? -- keywords: +3.7regression nosy: +lukasz.langa, ned.deily

[issue36319] Erro 0xC0000374 on windows 10

2019-03-17 Thread Eryk Sun
Eryk Sun added the comment: Windows Error Reporting should create a crash dump file. The default location for dump files is "%LocalAppData%\CrashDumps". The file should be named either "python.exe..dmp" (release build) or "python_d.exe..dmp" (debug build). You can analyze the crash dump in

[issue36326] Build-out help() to read __slots__ with an optional data dictionary

2019-03-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I am not sure that this is the best application of dict as __slots__. Maybe use dict for specifying default values? Currently slots are not compatible with class-level values used as fallbacks. Following the pattern for namedtuple attributes, docstrings

[issue36323] IDLE: always display full grep path

2019-03-17 Thread Emmanuel Arias
Change by Emmanuel Arias : -- nosy: +eamanu ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12622] failfast argument to TextTestRunner not documented

2019-03-17 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: failfast was added to the TextTestRunner signature in docs with issue17871 for 3.x and issue26097 for 2.7 . I guess the original issue was about signature missing in the docs and if so would propose closing this issue since it's fixed now.

[issue36326] Build-out help() to read __slots__ with an optional data dictionary

2019-03-17 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36326] Build-out help() to read __slots__ with an optional data dictionary

2019-03-17 Thread Raymond Hettinger
New submission from Raymond Hettinger : The __slots__ variable already works with dictionaries. The values are simply ignored. I propose teaching help() to read those optional dictionaries to give better information on member objects (much like we already have with property objects). This

[issue34965] Python on Docker container using flask is going down after sometime

2019-03-17 Thread Cheryl Sabella
Cheryl Sabella added the comment: As no additional information has been provided, I'm going to close this as third party. Feel free to reopen if a reproducing script can be created to demonstrate that this is a bug in the language and not an issue with Flask or Docker. Thanks! --

[issue36325] Build-out help() to support a class level data dictionary

2019-03-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: Moving to a fresh issue. -- stage: -> resolved status: open -> closed ___ Python tracker ___

[issue36325] Build-out help() to support a class level data dictionary

2019-03-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: Something like this would be especially helpful for classes using __slots__. The member objects show-up in help(), but there is no way to attach an explanation like we can with property objects. So there is a slots only alternative that would only

[issue36325] Build-out help() to support a class level data dictionary

2019-03-17 Thread Raymond Hettinger
New submission from Raymond Hettinger : class Bicycle: __data_dictionary__ = dict( category = 'Primary use: road, cross-over, or hybrid', model = 'Unique six digit vendor-supplied code', size = 'Rider size: child, small, medium, large, extra-large', price =

[issue36276] Python urllib CRLF injection vulnerability

2019-03-17 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- superseder: -> CRLF Injection in httplib ___ Python tracker ___ ___ Python-bugs-list

[issue36324] Inverse cumulative normal distribution function

2019-03-17 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch pull_requests: +12337 stage: -> patch review ___ Python tracker ___ ___

[issue36324] Inverse cumulative normal distribution function

2019-03-17 Thread Raymond Hettinger
New submission from Raymond Hettinger : Give statistics.NormalDist()a method for computing the inverse cumulative distribution function. Model it after the NORM.INV function in MS Excel. https://support.office.com/en-us/article/norm-inv-function-54b30935-fee7-493c-bedb-2278a9db7e13 Use the

[issue12616] zip fixer fails on zip()[:-1]

2019-03-17 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This seems to have been fixed with issue28837 and 93b4b47e3a720171d67f3b608de406aef462835c. Marking this as resolved. Thanks for the report. ➜ cpython git:(master) ✗ cat /tmp/foo.py zip(B, D)[:-1] ➜ cpython git:(master) ✗ 2to3-3.7 /tmp/foo.py