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

2019-05-13 Thread Cheryl Sabella
Cheryl Sabella added the comment: @giampaolo.rodola, no problem. I intended this more as a general request rather than something for right now. If you do have any availability at some point, please keep this one in mind. Thanks! -- ___ Python t

[issue36891] Additional startup plugin for vendors

2019-05-13 Thread Inada Naoki
Inada Naoki added the comment: > vx1920 added the comment: > > "sitevendor" is required because "sitecustomize" already "taken": imagine > organization XYZ , they install Python/Anaconda for workers in XYZ. Admin > in XYZ places some XYZ-specific code into "sitecustomize". I don't think it's

[issue36870] test_asyncio: test_drain_raises() fails randomly on Windows

2019-05-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: I have gotten this too, multiple times, on both Azure Pipelines and Appveyor. The latter is worse since required. There was also a Mac failure for Azure, not sure is same issue. Please disable this test. External resource problems should not be blocking

[issue35814] Syntax quirk with variable annotations

2019-05-13 Thread Guido van Rossum
Guido van Rossum added the comment: (With a comment indicating that the second is only accepted in Python 3.8 and later.) -- ___ Python tracker ___ __

[issue35814] Syntax quirk with variable annotations

2019-05-13 Thread Guido van Rossum
Guido van Rossum added the comment: I think PEP 526 does not clarify the intention here. Perhaps we could add a specific example? It currently shows: t: Tuple[int, ...] = (1, 2, 3) We could just add this there: t: Tuple[int, ...] = 1, 2, 3 -- __

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

2019-05-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: When 3.x is done, I will do 2.7. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

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

2019-05-13 Thread STINNER Victor
STINNER Victor added the comment: New changeset 24482bd0ae203116fd7e41ec3219fb2857fb3ac7 by Victor Stinner (Matthias Bussonnier) in branch '3.7': [3.7] bpo-36895: document time.clock() has been removed in 3.8 (GH-13287) https://github.com/python/cpython/commit/24482bd0ae203116fd7e41ec3219fb28

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

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

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

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

[issue36414] Multiple test failures in GCC and Clang optional builds on Travis CI

2019-05-13 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: The builds are now running since issue36684 changed the build process splitting the coverage and there are now three test failures in test_gc, test_descr and test_typing (issue36905) unrelated to the original report : https://travis-ci.org/python/

[issue36891] Additional startup plugin for vendors

2019-05-13 Thread vx1920
vx1920 added the comment: "sitevendor" is required because "sitecustomize" already "taken": imagine organization XYZ , they install Python/Anaconda for workers in XYZ. Admin in XYZ places some XYZ-specific code into "sitecustomize". As to "usersite" - each worker of XYS uses it for their own pu

[issue36841] Supporting customization of float encoding in JSON

2019-05-13 Thread Wei Lee
Wei Lee added the comment: I've sent a PR for it. https://github.com/python/cpython/pull/13233 -- ___ Python tracker ___ ___ Python

[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

[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

[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

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

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

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

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

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

[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

[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

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

[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

[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

[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

[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

[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

[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

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

[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

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

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

[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

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

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

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

[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 STINNER Victor
Change by STINNER Victor : -- pull_requests: -13188 ___ 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 Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- keywords: +patch pull_requests: +13190 stage: -> patch review ___ Python tracker ___ ___ Py

[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

[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

[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

[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

[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

[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

[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

[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 Stéphane Wirtel
Change by Stéphane Wirtel : -- pull_requests: +13187 ___ 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

[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

[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

[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

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

[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

[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

[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

[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

[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

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

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

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

[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

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

[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

[issue36902] spam

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

[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

[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

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

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

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

[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

[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

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

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

[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

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

[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

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

[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

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

[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

[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
Change by SilentGhost : -- components: +Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[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

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

[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

[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

[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

<    1   2   3   >