[issue36898] Add parameter @case_sensitive to glob and rglob in pathlib

2019-05-13 Thread SilentGhost
Change by SilentGhost : -- pull_requests: +13179 stage: -> patch review versions: +Python 3.8 -Python 3.7 ___ Python tracker ___ __

[issue36898] Add parameter @case_sensitive to glob and rglob in pathlib

2019-05-13 Thread Chuang Men
New submission from Chuang Men : In pathlib, I add a parameter @case_sensitive to glob and rglob. Sometimes the extension would be in upper case but sometimes it would be lower case, for example: *.tif and *.TIF. So the parameter @case_sensitive may be useful in some cases. Usage example: In

[issue36783] No documentation for _FromXandFold C API functions

2019-05-13 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: New changeset d28772ab6967fea136c0707f0207673ebad66f61 by Stéphane Wirtel (Edison A) in branch 'master': bpo-36783: Add new references for C API Documentation changes (GH-13204) https://github.com/python/cpython/commit/d28772ab6967fea136c0707f0207673ebad66f61

[issue36783] No documentation for _FromXandFold C API functions

2019-05-13 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Thank you for your PR. @Cherryl, the PR 13204 was not merged and the issue was closed :/ -- ___ Python tracker ___ _

[issue36898] Add parameter @case_sensitive to glob and rglob in pathlib

2019-05-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: You can use the pattern '*.[Tt][Ii][Ff]'. -- nosy: +serhiy.storchaka ___ Python tracker ___ ___

[issue6584] gzip module has no custom exception

2019-05-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset cf599f6f6f1c392d8f12936982a370d533782195 by Serhiy Storchaka (Zackery Spytz) in branch 'master': bpo-6584: Add a BadGzipFile exception to the gzip module. (GH-13022) https://github.com/python/cpython/commit/cf599f6f6f1c392d8f12936982a370d53378

[issue6584] gzip module has no custom exception

2019-05-13 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue36898] Add parameter @case_sensitive to glob and rglob in pathlib

2019-05-13 Thread Chuang Men
Chuang Men added the comment: It is a good solution but when pattern is long, it might be a little inconvenient. Anyway, just an advice. Thank you for your reply! -- ___ Python tracker

[issue36778] test_site.StartupImportTests.test_startup_imports fails if default code page is cp65001

2019-05-13 Thread STINNER Victor
STINNER Victor added the comment: New changeset 3aef48e3157f52a8bcdbacf47a35d0016348735e by Victor Stinner in branch 'master': bpo-36778: Update cp65001 codec documentation (GH-13240) https://github.com/python/cpython/commit/3aef48e3157f52a8bcdbacf47a35d0016348735e -- _

[issue36728] Remove PyEval_ReInitThreads() from the public C API

2019-05-13 Thread STINNER Victor
STINNER Victor added the comment: > i double checked in our massive internal codebase at work and found no calls > other than python interpreters themselves. Thanks. It confirms what I understood using GitHub code search (see my initial message). --

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

2019-05-13 Thread STINNER Victor
STINNER Victor added the comment: I dislike adding a function which always return 0 when the feature is not supported: unsigned long PyThread_get_thread_native_id(void) { ... #if ... ... #else unsigned long native_id; native_id = 0; #endif return (unsigned long) native_id;

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

2019-05-13 Thread STINNER Victor
STINNER Victor added the comment: > """Native integral thread ID of this thread or 0 if it has not been started. > (...) Why not set the attribute to None before a thread starts? It would be more consistent with the the "ident" attribute behavior, no? Extract __repr__(): def __repr__(se

[issue36895] time.clock() marked for removal in 3.8 – still there.

2019-05-13 Thread STINNER Victor
STINNER Victor added the comment: I would prefer to remove time.clock() documentation if the function is removed. Would you mind to update Python 3.7 documentation to mention that the function is removed from Python 3.8? https://docs.python.org/3.7/library/time.html#time.clock In short, use

[issue36751] Changes in the inspect module for PEP 570

2019-05-13 Thread Miro Hrončok
Miro Hrončok added the comment: Just a quick idea: What if a warning happened iff positional only argument are there, but not with functions that don't use those? Might be a different kind of warning. -- nosy: +hroncok ___ Python tracker

[issue36751] Changes in the inspect module for PEP 570

2019-05-13 Thread STINNER Victor
STINNER Victor added the comment: > And no, the undeprecation wasn't because of Python 2 (Py2 doesn't have > getfullargspec() - it's a Py3 only API). Python 3.8.0 is scheduled for: "3.8.0 final: Monday, 2019-10-21" Something like 2 months before 2.7 end of support: 2019-12-31. Does the "bec

[issue36899] datetime utcfromtimestamp ignores astimezone

2019-05-13 Thread Piotr Kamoda
New submission from Piotr Kamoda : See below code: >>> datetime.utcfromtimestamp(1557395250).astimezone(get_localzone()).strftime('%Y-%m-%d >>> %H:%M:%S %z %Z') '2019-05-09 09:47:30 +0200 CEST' >>> datetime.fromtimestamp(1557395250).astimezone(get_localzone()).strftime('%Y-%m-%d >>> %H:%M:%S %

[issue36895] time.clock() marked for removal in 3.8 – still there.

2019-05-13 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Should this section also be updated about time.clock removal? https://docs.python.org/3.8/whatsnew/3.8.html#api-and-feature-removals -- nosy: +xtreak ___ Python tracker

[issue36899] datetime utcfromtimestamp ignores astimezone

2019-05-13 Thread SilentGhost
SilentGhost added the comment: The utcfromtimestamp returns a naïve object that is assumed to be in the UTC timezone, you're then effectively turning it into a aware object in CEST timezone. I'm not sure what you think is wrong with utcfromtimestamp here, but it behaves according to documenta

[issue36899] datetime utcfromtimestamp ignores astimezone

2019-05-13 Thread SilentGhost
Change by SilentGhost : -- components: +Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue36899] datetime utcfromtimestamp ignores astimezone

2019-05-13 Thread Piotr Kamoda
Piotr Kamoda added the comment: Docs state that fromtimestamp returns a naive datetime object (https://docs.python.org/3.7/library/datetime.html#datetime.datetime.fromtimestamp) and not utcfromtimestamp. Perhaps it needs fixing. Additionally, astimezone fails silently, I even tried >>> datet

[issue36899] datetime utcfromtimestamp ignores astimezone

2019-05-13 Thread SilentGhost
SilentGhost added the comment: In the same page about utcfromtimestamp https://docs.python.org/3.7/library/datetime.html#datetime.datetime.utcfromtimestamp it says: > with tzinfo None Also below, "To get an aware datetime object". All this means or implies naïve object. I've no idea what y

[issue36891] Additional startup plugin for vendors

2019-05-13 Thread Inada Naoki
Inada Naoki added the comment: Why is sitevendor required in addition to sitecustomize? -- nosy: +inada.naoki ___ Python tracker ___ __

[issue36891] Additional startup plugin for vendors

2019-05-13 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue36899] datetime utcfromtimestamp ignores astimezone

2019-05-13 Thread Piotr Kamoda
Piotr Kamoda added the comment: Ok, now I see that naive object assumes my timezone in some cases. That's still mind-boggling that utcfromtimestamp returns an object that shows utc hour but when astimezone is applied it reverts without converting the hour to local timezone. See below as exp

[issue36880] Returning None from a callback with restype py_object decrements None's refcount too much

2019-05-13 Thread dgelessus
dgelessus added the comment: Thank you for looking into this! I can confirm that Eryk Sun's change fixes the issue for me locally. I'm up for making the patch for this. Regarding tests, I see there are already some refcount-related ctypes tests in Lib/ctypes/test/test_refcounts.py - should

[issue36899] datetime utcfromtimestamp ignores astimezone

2019-05-13 Thread SilentGhost
SilentGhost added the comment: Naïve object does not assume anything, naïve object *lacks* timezone information. It cannot convert anything. It is a mistake to set a wrong timezone to a naïve object, a mistake that you're making. Piotr, this is a bug tracker for development of CPython, let's

[issue36728] Remove PyEval_ReInitThreads() from the public C API

2019-05-13 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue36728] Remove PyEval_ReInitThreads() from the public C API

2019-05-13 Thread STINNER Victor
STINNER Victor added the comment: New changeset d5d9e81ce9a7efc5bc14a5c21398d1ef6f626884 by Victor Stinner in branch 'master': bpo-36728: Remove PyEval_ReInitThreads() from C API (GH-13241) https://github.com/python/cpython/commit/d5d9e81ce9a7efc5bc14a5c21398d1ef6f626884 -- ___

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

2019-05-13 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +13180 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36867] Make semaphore_tracker track other system resources

2019-05-13 Thread Pierre Glaser
Pierre Glaser added the comment: Yes, one test I wrote in an unrelated commit does not unlink a memory segment. Now the ResourceTracker complains. Fixing it now. -- ___ Python tracker __

[issue36867] Make semaphore_tracker track other system resources

2019-05-13 Thread Pierre Glaser
Pierre Glaser added the comment: Actually, I was properly unlinking the shared_memory segments. The warning messages are due to bad interactions between the ResourceTracker and the SharedMemoryManager object. In this particular case, it's easy to change a little bit the problematic test to

[issue36867] Make semaphore_tracker track other system resources

2019-05-13 Thread STINNER Victor
STINNER Victor added the comment: test_shared_memory_cleaned_after_process_termination() uses time as a weak synchronization primitive: # killing abruptly processes holding reference to a shared memory # segment should not leak the given memory segment. p.terminate()

[issue36900] Use _PyCoreConfig rather than global configuration variables

2019-05-13 Thread STINNER Victor
New submission from STINNER Victor : PyInterpreterState.config is now preferred over global configuration variables, so two interpreters can have a different configuration, the "state" of an interpreter is now better defined (especially when and how its configuration is set). Attached PRs fi

[issue36867] Make semaphore_tracker track other system resources

2019-05-13 Thread Pierre Glaser
Change by Pierre Glaser : -- pull_requests: +13182 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue36901] Fix leaks in /PC/bdist_wininst/install.c

2019-05-13 Thread Cheryl Sabella
New submission from Cheryl Sabella : /PC/bdist_wininst/install.c contains some memory leaks. PR2142 appears to be abandoned, so a new PR needs to be opened with the changes and also with the additional changes requested by Serhiy. -- components: Installation messages: 342311 nosy: che

[issue36901] Fix leaks in /PC/bdist_wininst/install.c

2019-05-13 Thread Tiago Filipe Silva
Change by Tiago Filipe Silva : -- keywords: +patch pull_requests: +13183 stage: needs patch -> patch review ___ Python tracker ___ _

[issue36008] [good first issue] Update documentation for 3.8

2019-05-13 Thread Cheryl Sabella
Cheryl Sabella added the comment: New changeset 3e2afd78babe5bd270e7f3b9df8796eeabc79865 by Cheryl Sabella (Utkarsh Gupta) in branch 'master': bpo-36008: Doc update for 3.8 migration (GH-12887) https://github.com/python/cpython/commit/3e2afd78babe5bd270e7f3b9df8796eeabc79865 -- ___

[issue36008] [good first issue] Update documentation for 3.8

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

[issue36807] IDLE doesn't call os.fsync()

2019-05-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 4f098b35f58e911639f8e9adc393d5cf5c792e7f by Terry Jan Reedy (Guido van Rossum) in branch 'master': bpo-36807: When saving a file in IDLE, call flush and fsync (#13102) https://github.com/python/cpython/commit/4f098b35f58e911639f8e9adc393d5cf5c79

[issue36902] Wireless Network Engineer

2019-05-13 Thread rudragavara
New submission from rudragavara : A Wireless Network Engineer is responsible for installing, configuring and maintaining wireless network equipment, network management and security including 802.11 b/g/n/ac standards and industry best practices for implementing high-density WIFI solutions. M

[issue36902] spam

2019-05-13 Thread SilentGhost
Change by SilentGhost : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bu

[issue36902] spam

2019-05-13 Thread SilentGhost
Change by SilentGhost : -- Removed message: https://bugs.python.org/msg342314 ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue36902] spam

2019-05-13 Thread SilentGhost
Change by SilentGhost : -- nosy: -rudragavara title: Wireless Network Engineer -> spam ___ Python tracker ___ ___ Python-bugs-list

[issue22021] shutil.make_archive() root_dir do not work

2019-05-13 Thread Cheryl Sabella
Cheryl Sabella added the comment: @giampaolo.rodola, would you be able to provide a review of this doc change? Thanks! -- nosy: +cheryl.sabella, giampaolo.rodola versions: -Python 3.6 ___ Python tracker _

[issue34424] Unicode names break email header

2019-05-13 Thread Cheryl Sabella
Cheryl Sabella added the comment: This looks like it was just pending final approval after changes. Please let me know if I can help move it along. Thanks! -- nosy: +cheryl.sabella versions: +Python 3.8 -Python 3.7 ___ Python tracker

[issue10991] trace fails when test imported a temporary file

2019-05-13 Thread SilentGhost
SilentGhost added the comment: Brett, is this something that is still relevant for the supported versions or are you OK with closing this issue as out of date or wont fix? -- nosy: +SilentGhost, brett.cannon ___ Python tracker

[issue36867] Make semaphore_tracker track other system resources

2019-05-13 Thread Olivier Grisel
Olivier Grisel added the comment: As Victor said, the `time.sleep(1.0)` might lead to Heisen failures. I am not sure how to write proper strong synchronization in this case but we could instead go for something intermediate such as the following pattern: ... p.terminate()

[issue36008] [good first issue] Update documentation for 3.8

2019-05-13 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: I suggest to remove b2+ and just keep 3.8.0 -- ___ Python tracker ___ ___ Python-bugs-list mailin

[issue36867] Make semaphore_tracker track other system resources

2019-05-13 Thread Pierre Glaser
Pierre Glaser added the comment: We can do that, or maybe we can try to wait on the `resource_tracker's` pid? -- ___ Python tracker ___ ___

[issue36900] Use _PyCoreConfig rather than global configuration variables

2019-05-13 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +13184 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue36008] [good first issue] Update documentation for 3.8

2019-05-13 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: @Cheryl, I was reading the last commits on master and I have seen the merge of that PR, but 3.8.0 is not yet in Beta2. Maybe we should fix that in an other PR for the same issue. -- nosy: +matrixise ___ Python tr

[issue35907] [security][CVE-2019-9948] Unnecessary URL scheme exists to allow file:// reading file in urllib

2019-05-13 Thread STINNER Victor
Change by STINNER Victor : -- title: Unnecessary URL scheme exists to allow file:// reading file in urllib -> [security][CVE-2019-9948] Unnecessary URL scheme exists to allow file:// reading file in urllib ___ Python tracker

[issue35727] sys.exit() in a multiprocessing.Process does not align with Python behavior

2019-05-13 Thread Cheryl Sabella
Change by Cheryl Sabella : -- nosy: +davin versions: -Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue36008] [good first issue] Update documentation for 3.8

2019-05-13 Thread Utkarsh Gupta
Utkarsh Gupta added the comment: Sure, but ultimately (soon enough) it is going to happen, no? -- ___ Python tracker ___ ___ Python

[issue33882] doc Mention breakpoint() in debugger-related FAQ

2019-05-13 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: New changeset af5ef3e1077bc2ed177a7c8598f8ecc756ecf6f9 by Stéphane Wirtel (Miss Islington (bot)) in branch '3.7': bpo-33882: mention breakpoint() in debugger-related FAQ (GH-7759) (GH-13077) https://github.com/python/cpython/commit/af5ef3e1077bc2ed177a7c8598f

[issue33882] doc Mention breakpoint() in debugger-related FAQ

2019-05-13 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Thank you for your PR, -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue34682] Typo reports on docs@

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

[issue34682] Typo reports on docs@

2019-05-13 Thread miss-islington
miss-islington added the comment: New changeset 778a9107586e29421af3a08209cf0b557c1fe5bc by Miss Islington (bot) (divyag9) in branch 'master': bpo-34682: Wording and grammatical changes to the doc(https://docs.python.org/3) (GH-13120) https://github.com/python/cpython/commit/778a9107586e2942

[issue36807] IDLE doesn't call os.fsync()

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

[issue36867] Make semaphore_tracker track other system resources

2019-05-13 Thread STINNER Victor
STINNER Victor added the comment: I like Olivier's pattern. Maybe we can slowly increase the sleep to stop shortly if the resource goes away shortly. deadline = time.monotonic() + 60.0 sleep = 0.010 while ...: if : break if time.monotonic() > deadline: ... assert error ... sleep

[issue34682] Typo reports on docs@

2019-05-13 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- pull_requests: +13187 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36890] python-3.7.3-macosx10.6.pkg verification error on macOS 10.6 Snow Leopard

2019-05-13 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi, In fact, there is another question, MacOS X Snow Leopard is not supported since 2014, do we need to continue to generate the package for this version? https://en.wikipedia.org/wiki/Mac_OS_X_Snow_Leopard -- nosy: +matrixise _

[issue34682] Typo reports on docs@

2019-05-13 Thread Julien Palard
Julien Palard added the comment: New changeset 074d7c44a474680122ed869bb6be89c1f4f18f12 by Julien Palard (Stéphane Wirtel) in branch '3.7': [3.7] bpo-34682: Wording and grammatical changes to the doc(https://docs.python.org/3) (GH-13120) (GH-13281) https://github.com/python/cpython/commit/074

[issue36783] No documentation for _FromXandFold C API functions

2019-05-13 Thread Paul Ganssle
Paul Ganssle added the comment: @Stéphane The reason this issue was closed before PR 13204 was merged is that PR 13147 was merged a bit prematurely due to a miscommunication, which is why Cheryl closed the issue. I was going to re-open it after we realized what happened, but since we were at

[issue36725] Reference leak regression with Python3.8a3

2019-05-13 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +13188 stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list m

[issue36903] ResourceWarning in test_logging.HandlerTest.test_post_fork_child_no_deadlock

2019-05-13 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : There was a test added with 64aa6d2000665efb1a2eccae176df9520bf5f5e6. It opens a stream of '/dev/null' in the test and doesn't close it causing ResourceWarning. A fix would be to assign it to a variable and close it as part of test's cleanup pro

[issue36903] ResourceWarning in test_logging.HandlerTest.test_post_fork_child_no_deadlock

2019-05-13 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue36728] Remove PyEval_ReInitThreads() from the public C API

2019-05-13 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +13189 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36890] python-3.7.3-macosx10.6.pkg verification error on macOS 10.6 Snow Leopard

2019-05-13 Thread S. J. Cunningham
S. J. Cunningham added the comment: Apple's decision to support or not support their products is driven by Apple's business considerations and is not binding on anyone else. Many people continue to use earlier versions because of dependence on applications which do not run on later versions

[issue36903] ResourceWarning in test_logging.HandlerTest.test_post_fork_child_no_deadlock

2019-05-13 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- keywords: +patch pull_requests: +13190 stage: -> patch review ___ Python tracker ___ ___ Py

[issue36725] Reference leak regression with Python3.8a3

2019-05-13 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: -13188 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue36890] python-3.7.3-macosx10.6.pkg verification error on macOS 10.6 Snow Leopard

2019-05-13 Thread Ronald Oussoren
Ronald Oussoren added the comment: We generally don't drop support for OS versions in patch releases for Python. The 3.8 installer will require macOS 10.9, as does the default x86-64 installer for 3.7. -- ___ Python tracker

[issue36725] Reference leak regression with Python3.8a3

2019-05-13 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- assignee: nanjekyejoannah -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36728] Remove PyEval_ReInitThreads() from the public C API

2019-05-13 Thread STINNER Victor
STINNER Victor added the comment: New changeset c1f7262f7013074613805347db2276f8b5e0e3a4 by Victor Stinner in branch 'master': bpo-36728: Remove PyEval_ReInitThreads documentation (GH-13282) https://github.com/python/cpython/commit/c1f7262f7013074613805347db2276f8b5e0e3a4 -- __

[issue36807] IDLE doesn't call os.fsync()

2019-05-13 Thread Guido van Rossum
Change by Guido van Rossum : -- pull_requests: +13191 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue35907] [security][CVE-2019-9948] Unnecessary URL scheme exists to allow file:// reading file in urllib

2019-05-13 Thread STINNER Victor
STINNER Victor added the comment: Christian: > I agree, this looks like an implementation artefact. urllib should not expose > the local_file schema. In Python 3 refuses local_file:// (tested with 3.4 to > 3.7). I'm not sure that I understand well the issue. urllib accepts various scheme by

[issue35907] [security][CVE-2019-9948] Unnecessary URL scheme exists to allow file:// reading file in urllib

2019-05-13 Thread Christian Heimes
Christian Heimes added the comment: The issue is not about whether "file://" schema or not. It's about the fact that urllib on Python 2 has two schemas that allow local file access. There is the well-known "file://" schema and there is the implementation artifact "local_file://". A careful,

[issue36903] ResourceWarning in test_logging.HandlerTest.test_post_fork_child_no_deadlock

2019-05-13 Thread STINNER Victor
STINNER Victor added the comment: New changeset 2c10538d11fa9be9a1a9f21605861e10ec4fa207 by Victor Stinner (Xtreak) in branch 'master': bpo-36903: Fix ResourceWarning in test_logging (GH-13283) https://github.com/python/cpython/commit/2c10538d11fa9be9a1a9f21605861e10ec4fa207 -- ___

[issue36903] ResourceWarning in test_logging.HandlerTest.test_post_fork_child_no_deadlock

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

[issue35907] [security][CVE-2019-9948] Unnecessary URL scheme exists to allow file:// reading file in urllib

2019-05-13 Thread STINNER Victor
STINNER Victor added the comment: If you use directly the URLopener class, Python 3 has a similar issue: --- import urllib.request req = urllib.request.URLopener().open('local_file:///etc/passwd') print(req.read()[:30]) req.close() --- -- versions: +Python 3.7, Python 3.8

[issue36900] Use _PyCoreConfig rather than global configuration variables

2019-05-13 Thread STINNER Victor
STINNER Victor added the comment: New changeset 410b85a7f701be280eb15b0ca4fe116e86f1d008 by Victor Stinner in branch 'master': bpo-36900: import.c uses PyInterpreterState.core_config (GH-13278) https://github.com/python/cpython/commit/410b85a7f701be280eb15b0ca4fe116e86f1d008 -- ___

[issue35907] [security][CVE-2019-9948] Unnecessary URL scheme exists to allow local_file:// reading file in urllib

2019-05-13 Thread Christian Heimes
Change by Christian Heimes : -- title: [security][CVE-2019-9948] Unnecessary URL scheme exists to allow file:// reading file in urllib -> [security][CVE-2019-9948] Unnecessary URL scheme exists to allow local_file:// reading file in urllib ___ Py

[issue36904] Implement _PyStack_UnpackDict() with a single allocation

2019-05-13 Thread Jeroen Demeyer
New submission from Jeroen Demeyer : _PyStack_UnpackDict() is used to convert from the FastCallDict calling convention to FastCallKeywords. It currently needs two allocations: one for the tuple of keyword names and one for the array of arguments (positional and keyword). This can be optimize

[issue36904] Implement _PyStack_UnpackDict() with a single allocation

2019-05-13 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue36895] time.clock() marked for removal in 3.8 – still there.

2019-05-13 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- pull_requests: +13193 stage: commit review -> patch review ___ Python tracker ___ ___ Python-bugs

[issue36725] Reference leak regression with Python3.8a3

2019-05-13 Thread STINNER Victor
STINNER Victor added the comment: This leak has been fixed by: commit f00828a742d2e88c910bdfd00f08fcd998554ba5 (refs/bisect/bad) Author: Pablo Galindo Date: Thu May 9 16:52:02 2019 +0100 bpo-36851: Clean the frame stack if the execution ends with a return and the stack is not empty (G

[issue36851] Frame stack is not cleaned after execution is finished with return

2019-05-13 Thread STINNER Victor
STINNER Victor added the comment: I marked bpo-36725 as a duplicate of this issue. -- nosy: +vstinner ___ Python tracker ___ ___ Py

[issue32573] All sys attributes (.argv, ...) should exist in embedded environments

2019-05-13 Thread STINNER Victor
STINNER Victor added the comment: In Python 3.8, sys.argv is now always created. It's initialized to sys.argv = [""] if (argc, argv) are not set in _PyCoreConfig. So PR 12463 looks useless to me, except if someone wants to change the behavior. --

[issue13286] PEP 3151 breaks backward compatibility: it should be documented

2019-05-13 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- pull_requests: +13194 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue32573] All sys attributes (.argv, ...) should exist in embedded environments

2019-05-13 Thread STINNER Victor
STINNER Victor added the comment: See also the PEP 587. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue36895] time.clock() marked for removal in 3.8 – still there.

2019-05-13 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- pull_requests: +13195 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue13286] PEP 3151 breaks backward compatibility: it should be documented

2019-05-13 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: -13194 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue36903] ResourceWarning in test_logging.HandlerTest.test_post_fork_child_no_deadlock

2019-05-13 Thread STINNER Victor
STINNER Victor added the comment: New changeset 744129db5d4e7706fd7d46dfc691aa47fabd66fa by Victor Stinner (Miss Islington (bot)) in branch '3.7': bpo-36903: Fix ResourceWarning in test_logging (GH-13283) (GH-13285) https://github.com/python/cpython/commit/744129db5d4e7706fd7d46dfc691aa47fabd

[issue36895] time.clock() marked for removal in 3.8 – still there.

2019-05-13 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: Done: - 1 PR against master to remove the documentation and update api-and-feature-removals - and one against 3.7 to add the deprecated-removed. -- ___ Python tracker

[issue36903] ResourceWarning in test_logging.HandlerTest.test_post_fork_child_no_deadlock

2019-05-13 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

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

2019-05-13 Thread STINNER Victor
STINNER Victor added the comment: This change broke the AIX buildbot: https://buildbot.python.org/all/#/builders/132/builds/486 == FAIL: test_various_ops (test.test_threading.ThreadTests) --

[issue22021] shutil.make_archive() root_dir do not work

2019-05-13 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: @cheryl.sabella don't have the bandwidth right now (traveling), sorry. -- ___ Python tracker ___ _

[issue32893] ast.literal_eval() shouldn't accept booleans as numbers in AST

2019-05-13 Thread Chris Angelico
Change by Chris Angelico : -- pull_requests: +13196 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36905] test_typing.GetTypeHintTests.test_get_type_hints_modules_forwardref unexpected success while running whole test suite sequentially

2019-05-13 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : This happens only while running the tests sequentially and also with whole test suite. This error is present in optional GCC build consistently as below : https://travis-ci.org/python/cpython/jobs/531845094#L2103 Running whole test suite sequent

[issue32587] Make REG_MULTI_SZ support zero-length strings

2019-05-13 Thread Steve Dower
Steve Dower added the comment: Updating the title to actually reflect the issue - Zackery, could you update your PR and NEWS entry? I just spent way too long looking for a MoveFileEx call that doesn't exist, because this isn't actually about doing things on reboot :) For tests, you should b

  1   2   3   >