[issue36430] A possible reference leak in itertools.count()

2019-03-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +12501 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36431] Use dict unpacking for merging two dicts

2019-03-25 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue36431] Use dict unpacking for merging two dicts

2019-03-25 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +12500 stage: -> patch review ___ Python tracker ___ ___ Python-bug

[issue36431] Use dict unpacking for merging two dicts

2019-03-25 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : The following PR replaces the sequence of statement d = d1.copy() d.update(d2) (where d1 and d2 are dicts) with a form proposed in PEP 448: d = {**d1, **d2} or equivalent. Besides functools, where using the new syntax makes the code clearer

[issue36430] A possible reference leak in itertools.count()

2019-03-25 Thread miss-islington
miss-islington added the comment: New changeset e0fe25be1ecbdf4abd1b0edd4aabacc4d75dec41 by Miss Islington (bot) in branch '3.7': bpo-36430: Fix a possible reference leak in itertools.count(). (GH-12551) https://github.com/python/cpython/commit/e0fe25be1ecbdf4abd1b0edd4aabacc4d75dec41 -

[issue22189] collections.UserString missing some str methods

2019-03-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > collections.UserString.__rmod__ references an undefined variable `args`: This is a duplicate of issue25652. -- nosy: +serhiy.storchaka resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___

[issue36430] A possible reference leak in itertools.count()

2019-03-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +12499 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36430] A possible reference leak in itertools.count()

2019-03-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 0523c39e7720b82b38ad793d3f1a5681adcdf873 by Serhiy Storchaka (Zackery Spytz) in branch 'master': bpo-36430: Fix a possible reference leak in itertools.count(). (GH-12551) https://github.com/python/cpython/commit/0523c39e7720b82b38ad793d3f1a568

[issue36430] A possible reference leak in itertools.count()

2019-03-25 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +12498 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue36430] A possible reference leak in itertools.count()

2019-03-25 Thread Zackery Spytz
New submission from Zackery Spytz : "long_step" is leaked in itertools_count_impl() if the type->tp_alloc() call fails. -- components: Extension Modules messages: 338853 nosy: ZackerySpytz priority: normal severity: normal status: open title: A possible reference leak in itertools.coun

[issue22189] collections.UserString missing some str methods

2019-03-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: Orivej Desh, would you care to make PR to fix this (and add a test)? -- priority: low -> resolution: fixed -> status: closed -> open ___ Python tracker

[issue36429] Fix starting IDLE with pyshell

2019-03-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: One can start IDLE from python with import idlelib.idle or import idlelib.__main__ but not by importing pyshell, as there is alread a __main__ module. I cannot think of anything else to check. -- ___ Python track

[issue36429] Fix starting IDLE with pyshell

2019-03-25 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +12497 stage: needs patch -> patch review ___ Python tracker ___ ___ P

[issue22189] collections.UserString missing some str methods

2019-03-25 Thread Orivej Desh
Orivej Desh added the comment: collections.UserString.__rmod__ references an undefined variable `args`: def __rmod__(self, format): return self.__class__(format % args) https://github.com/python/cpython/commit/573b44c18f69307d7dbc95c950aab57ef7ea303e#diff-8a750c700ae5ac1d0a14922de

[issue36426] exec() issue when used inside function

2019-03-25 Thread Steve Dower
Steve Dower added the comment: This is currently by design, which means 3.8 is likely the only viable place it can change. It's also not Windows specific so I removed that component (people may remove themselves from nosy). But +Nick, since I know he has some interest in making locals() beha

[issue36429] Fix starting IDLE with pyshell

2019-03-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: The shell actually 'starts', but with an empty box and no prompt. I am thinking of eventually deprecating and disabling starting with pyshell, but until we do, it should work. If nothing else, we should be able to display a deprecation notice if that become

[issue36429] Fix starting IDLE with pyshell

2019-03-25 Thread Terry J. Reedy
New submission from Terry J. Reedy : python -m idlelib.pyshell # and python f:/dev/3x/lib/idlelib/pyshell.py # for instance no longer start IDLE properly. The separate subprocess startup command for when pyshell is the main, from 2004, is obsolete and no longer needed. The command needed i

[issue34632] Port importlib_metadata to Python 3.8

2019-03-25 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: +12496 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue36301] Add _Py_PreInitialize() function

2019-03-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 20004959d23d07ac784eef51ecb161012180faa8 by Victor Stinner in branch 'master': bpo-36301: Remove _PyCoreConfig.preconfig (GH-12546) https://github.com/python/cpython/commit/20004959d23d07ac784eef51ecb161012180faa8 -- _

[issue36426] exec() issue when used inside function

2019-03-25 Thread Emmanuel Arias
Emmanuel Arias added the comment: But I confirmed the behavior reported uhmm weird -- ___ Python tracker ___ ___ Python-bugs-list

[issue36426] exec() issue when used inside function

2019-03-25 Thread Emmanuel Arias
Emmanuel Arias added the comment: I test on 3.5 and 3.8 running not in an func and I don't have the problem: Python 3.8.0a2+ (heads/bpo-36287:ba8f342623, Mar 25 2019, 21:57:16) [GCC 6.3.0 20170516] on linux Type "help", "copyright", "credits" or "license" for more information. >>> a = 'bar' >

[issue34616] implement "Async exec"

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

[issue36428] Support AutoAwait?

2019-03-25 Thread Guido van Rossum
Guido van Rossum added the comment: Oh, you're right. Thanks! Closing in favor of issue34616. -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker __

[issue36428] Support AutoAwait?

2019-03-25 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- superseder: -> implement "Async exec" ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue36428] Support AutoAwait?

2019-03-25 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I think this is same as issue34616 . The issue talks about the workarounds IPython has to use for the feature and links to the PR where it was implemented https://github.com/ipython/ipython/pull/11265 . I never knew about this feature and this will

[issue36428] Support AutoAwait?

2019-03-25 Thread Yury Selivanov
Yury Selivanov added the comment: Absolutely. I think there's another open issue for this and I even have a dev branch somewhere with this idea half implemented. Definitely something to have in 3.8. -- ___ Python tracker

[issue36301] Add _Py_PreInitialize() function

2019-03-25 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12495 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36428] Support AutoAwait?

2019-03-25 Thread Guido van Rossum
New submission from Guido van Rossum : I just found out about IPython's autoawait feature: https://ipython.readthedocs.io/en/stable/interactive/autoawait.html I wonder if we should at least help them do this right in Python 3.8 by having a flag to compile() that allows `await` in the toplevel

[issue36174] Remove licenseUrl field from nuget packages

2019-03-25 Thread Ned Deily
Ned Deily added the comment: New changeset 276dcc8cfbb012c932d86d2af60e1797b22b2d1c by Ned Deily (Miss Islington (bot)) in branch '3.7': bpo-36174: Update nuget authoring for new license field. (GH-12300) https://github.com/python/cpython/commit/276dcc8cfbb012c932d86d2af60e1797b22b2d1c

[issue34085] doc Improve wording on classmethod/staticmethod

2019-03-25 Thread Cheryl Sabella
Change by Cheryl Sabella : -- versions: -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue34085] doc Improve wording on classmethod/staticmethod

2019-03-25 Thread Cheryl Sabella
Cheryl Sabella added the comment: Thanks for the report and the PR, Andrés! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker _

[issue36301] Add _Py_PreInitialize() function

2019-03-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset f78a5e9ce8f32a195f5f788aade79578437f30a6 by Victor Stinner in branch 'master': bpo-36301: Add _Py_GetEnv() function (GH-12542) https://github.com/python/cpython/commit/f78a5e9ce8f32a195f5f788aade79578437f30a6 -- __

[issue34085] doc Improve wording on classmethod/staticmethod

2019-03-25 Thread miss-islington
miss-islington added the comment: New changeset b23b08623a46cef841038ee32948020692ef1b35 by Miss Islington (bot) in branch '3.7': bpo-34085: Improve wording on classmethod/staticmethod (GH-8228) https://github.com/python/cpython/commit/b23b08623a46cef841038ee32948020692ef1b35 -- __

[issue34085] doc Improve wording on classmethod/staticmethod

2019-03-25 Thread miss-islington
miss-islington added the comment: New changeset bd96393cda54044d81054225dcfc1b26374589a8 by Miss Islington (bot) in branch '2.7': bpo-34085: Improve wording on classmethod/staticmethod (GH-8228) https://github.com/python/cpython/commit/bd96393cda54044d81054225dcfc1b26374589a8 -- nos

[issue34085] doc Improve wording on classmethod/staticmethod

2019-03-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +12493 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue34085] doc Improve wording on classmethod/staticmethod

2019-03-25 Thread Cheryl Sabella
Cheryl Sabella added the comment: New changeset 548cb6060ab9d5a66931ea2be4da08c2c72c9176 by Cheryl Sabella (Andre Delfino) in branch 'master': bpo-34085: Improve wording on classmethod/staticmethod (#8228) https://github.com/python/cpython/commit/548cb6060ab9d5a66931ea2be4da08c2c72c9176 ---

[issue34085] doc Improve wording on classmethod/staticmethod

2019-03-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +12494 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36345] Deprecate Tools/scripts/serve.py in favour of python -m http.server -d

2019-03-25 Thread Brett Cannon
Brett Cannon added the comment: New changeset 360e1e4c519cfc139de707bcdd1e6c871eec79ee by Brett Cannon (Stéphane Wirtel) in branch 'master': bpo-36345: Add a new example in the documentation of wsgiref (#12511) https://github.com/python/cpython/commit/360e1e4c519cfc139de707bcdd1e6c871eec79ee

[issue34098] multiprocessing.Server swallows original exception traceback

2019-03-25 Thread Cheryl Sabella
Change by Cheryl Sabella : -- nosy: +davin, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue36416] bytes.rpartition bug in online documentation

2019-03-25 Thread PEW's Corner
Change by PEW's Corner : -- keywords: +patch pull_requests: +12492 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-li

[issue36427] Document that PyEval_RestoreThread and PyGILState_Ensure can terminate the calling thread

2019-03-25 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > Right. It was just a general comment :-) Yep, daemon threads are evil :) -- ___ Python tracker ___ _

[issue36427] Document that PyEval_RestoreThread and PyGILState_Ensure can terminate the calling thread

2019-03-25 Thread STINNER Victor
STINNER Victor added the comment: > Well, given that this happens as well in Python3.7 and before, at least we > should document it and we can think about changing it in the future. But for > now, but I suggest keeping both PRs separated (in case we really want to > change anything). Right.

[issue36427] Document that PyEval_RestoreThread and PyGILState_Ensure can terminate the calling thread

2019-03-25 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > I really dislike the design of daemon threads. If it would be only me, I > would prefer this nasty feature causing so much issues at Python shutdown. Well, given that this happens as well in Python3.7 and before, at least we should document it and w

[issue36301] Add _Py_PreInitialize() function

2019-03-25 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12491 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36301] Add _Py_PreInitialize() function

2019-03-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 1075d1684ab84dc7c28d93cfb46e95e70d3b6d3b by Victor Stinner in branch 'master': bpo-36301: Add _Py_GetConfigsAsDict() function (GH-12540) https://github.com/python/cpython/commit/1075d1684ab84dc7c28d93cfb46e95e70d3b6d3b --

[issue36427] Document that PyEval_RestoreThread and PyGILState_Ensure can terminate the calling thread

2019-03-25 Thread STINNER Victor
STINNER Victor added the comment: > This behaviour that protects against problems due to daemon threads > registered with the interpreter can be *very* surprising for C-extensions > that are using these functions to implement callbacks that can call into > Python. I really dislike the desig

[issue36427] Document that PyEval_RestoreThread and PyGILState_Ensure can terminate the calling thread

2019-03-25 Thread STINNER Victor
STINNER Victor added the comment: > if (_Py_IsFinalizing() && !_Py_CURRENTLY_FINALIZING(tstate)) _Py_IsFinalizing() check is redundant :-) -- ___ Python tracker ___ _

[issue36427] Document that PyEval_RestoreThread and PyGILState_Ensure can terminate the calling thread

2019-03-25 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +12490 stage: -> patch review ___ Python tracker ___ ___ Pytho

[issue36427] Document that PyEval_RestoreThread and PyGILState_Ensure can terminate the calling thread

2019-03-25 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : Currently PyEval_RestoreThread and its callers (mainly PyGILState_Ensure) can terminate the thread if the interpreter is finalizing: PyEval_RestoreThread(PyThreadState *tstate) { if (tstate == NULL) Py_FatalError("PyEval_RestoreThread: NU

[issue36143] Auto-generate Lib/keyword.py

2019-03-25 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue36143] Auto-generate Lib/keyword.py

2019-03-25 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 91759d98015e1d6d5e1367cff60592ab548e7806 by Pablo Galindo in branch 'master': bpo-36143: Regenerate Lib/keyword.py from the Grammar and Tokens file using pgen (GH-12456) https://github.com/python/cpython/commit/91759d98015e1d6d5e1367cff6

[issue36370] Check for PyErr_Occurred() after PyImport_GetModule().

2019-03-25 Thread Stefan Krah
Stefan Krah added the comment: It looks like 3.6 is in security-fix only mode, so it cannot be backported there. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.7 -Python 3.6 ___ Python tracker <

[issue36370] Check for PyErr_Occurred() after PyImport_GetModule().

2019-03-25 Thread Stefan Krah
Stefan Krah added the comment: New changeset cdd8d4d6dd57f4c9429566706009d4613277d391 by Stefan Krah (Miss Islington (bot)) in branch '3.7': bpo-36370: Check for PyErr_Occurred() after PyImport_GetModule() (GH-12504) https://github.com/python/cpython/commit/cdd8d4d6dd57f4c9429566706009d461327

[issue36301] Add _Py_PreInitialize() function

2019-03-25 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12489 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36370] Check for PyErr_Occurred() after PyImport_GetModule().

2019-03-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +12488 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36370] Check for PyErr_Occurred() after PyImport_GetModule().

2019-03-25 Thread Stefan Krah
Stefan Krah added the comment: New changeset 027b09c5a13aac9e14a3b43bb385298d549c3833 by Stefan Krah in branch 'master': bpo-36370: Check for PyErr_Occurred() after PyImport_GetModule() (GH-12504) https://github.com/python/cpython/commit/027b09c5a13aac9e14a3b43bb385298d549c3833 --

[issue36326] Teach inpsect.getdoc() to read __slots__ with an optional data dictionary

2019-03-25 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue36326] Teach inpsect.getdoc() to read __slots__ with an optional data dictionary

2019-03-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset d1e768a67707bf7bb426c1537e1a764e89eaff78 by Raymond Hettinger in branch 'master': bpo-36326: Let inspect.getdoc() find docstrings for __slots__ (GH-12498) https://github.com/python/cpython/commit/d1e768a67707bf7bb426c1537e1a764e89eaff78 ---

[issue36408] Tkinter multi-processing performance, Linux 10-25 times faster than Windows 10

2019-03-25 Thread J.E.McCormack
J.E.McCormack added the comment: I can run four independent processes (i.e. not using multiprocessing, with no links at all between them) yet the results show that only one core is running. Where is this lock taking place? Why would a tkinter process need to know about another tkinter proces

[issue36424] Pickle fails on frozen dataclass that has slots

2019-03-25 Thread Eric V. Smith
Change by Eric V. Smith : -- assignee: -> eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue33725] Python crashes on macOS after fork with no exec

2019-03-25 Thread Łukasz Langa
Łukasz Langa added the comment: It's trivial but not safe in the sense that code that previously depended on some global state setup done in the master process right before fork will stop working. If this code is a library that is not in your control, you might not be able to "just revert" to

[issue36205] Python 3.7 and 3.8 process_time is not reported correctly when built on older macOS versions

2019-03-25 Thread Łukasz Langa
Łukasz Langa added the comment: Looks like this will have to be broken for 3.8.0a3, too. I will mark this as a release blocker for a4 though. -- nosy: +lukasz.langa ___ Python tracker ___

[issue36425] Add Simplified Chinese to the language switcher

2019-03-25 Thread Rohit travels and tours
Change by Rohit travels and tours : -- type: -> resource usage ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue36404] Document PendingDeprecationWarning as deprecated

2019-03-25 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue36298] Lib/pyclbr.py crashes when the package spec cannot be determined by importlib

2019-03-25 Thread Brett Cannon
Brett Cannon added the comment: Thanks, mental! -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue36228] Support coercion of complex to float/int

2019-03-25 Thread Mark Dickinson
Mark Dickinson added the comment: @nagayev I applaud your enthusiasm here, but multiple core developers have already rejected your suggestions in this discussion. Given that, it would probably not be a great use of your time to pursue this. Maybe you could take a look around the bug tracker

[issue36424] Pickle fails on frozen dataclass that has slots

2019-03-25 Thread Jacques Gaudin
Change by Jacques Gaudin : -- nosy: +jagaudin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue31369] re.RegexFlag is not included in __all__, makes type inference less useful

2019-03-25 Thread Ethan Furman
Ethan Furman added the comment: I see no reason no prefix `RegexFlag` with an `_`. As far as adding it to `__all__` -- I didn't originally because I was trying to mirror the original implementation, but I am not against it. I would defer that decision to those that work on typing.

[issue36301] Add _Py_PreInitialize() function

2019-03-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset a6fbc4e25e1dc7d1c9a26888b9115bc6c2afc101 by Victor Stinner in branch 'master': bpo-36301: Add _Py_PreInitializeFromConfig() (GH-12536) https://github.com/python/cpython/commit/a6fbc4e25e1dc7d1c9a26888b9115bc6c2afc101 -- __

[issue36425] Add Simplified Chinese to the language switcher

2019-03-25 Thread Shengjing Zhu
Change by Shengjing Zhu : -- keywords: +patch pull_requests: +12487 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue36426] exec() issue when used inside function

2019-03-25 Thread Domen Jurkovič
Domen Jurkovič added the comment: Seems like I don't know how to write a code here. Anyway, issue created on stack overflow can be found on: https://stackoverflow.com/questions/55239875/python-exec-function-broken-in-versions-above-2-7-error-name-not-defined/5524?noredirect=1#comment9736202

[issue36426] exec() issue when used inside function

2019-03-25 Thread Domen Jurkovič
New submission from Domen Jurkovič : I've reported a stack overflow question and no reasonable explation was offered. Here is what I've discovered: .. code-block:: python def func(): varName = 'bar' varValue = 42 localVarToEvaluate = varName + ' = varValue' t

[issue36425] Add Simplified Chinese to the language switcher

2019-03-25 Thread Shengjing Zhu
New submission from Shengjing Zhu : Just checked on transifex, the Simplified Chinese translation has reached - 100% of bugs.html - 100% of tutorial - 100% of library/functions (builtins) So, let's add it to the language switcher { 'zh-cn': 'Simplified Chinese' } And backport it to 3.7 b

[issue36301] Add _Py_PreInitialize() function

2019-03-25 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12486 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36301] Add _Py_PreInitialize() function

2019-03-25 Thread STINNER Victor
STINNER Victor added the comment: Note for myself: is there a problem between the priority of PYTHONHOME env var and pybuilddir.txt configuration file? -- ___ Python tracker

[issue36301] Add _Py_PreInitialize() function

2019-03-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset f72346c47537657a287a862305f65eb5d7594fbf by Victor Stinner in branch 'master': bpo-36301: Cleanup preconfig code (GH-12535) https://github.com/python/cpython/commit/f72346c47537657a287a862305f65eb5d7594fbf -- _

[issue36408] Tkinter multi-processing performance, Linux 10-25 times faster than Windows 10

2019-03-25 Thread Steve Dower
Steve Dower added the comment: Windows only allows a single thread to access Win32 GUI elements at a time, and I'm fairly sure whichever part of Tcl/Tk/Tkinter is responsible for this makes sure it happens. So if you're throwing lots of UI updates at the UI thread, then yeah, you're going t

[issue35473] Intel compiler (icc) does not fully support C11 Features, including atomics

2019-03-25 Thread Josh Rosenberg
Josh Rosenberg added the comment: Perhaps an alternative solution would be to provide conditional definitions for the stuff ICC leaves out? I'm assuming ICC can actually handle _Atomic uintptr_t if you type it out, it's just missing the typedef for it for whatever reason? -- nosy: +

[issue36422] tempfile.TemporaryDirectory() removes entire directory tree even if it's a mount-point

2019-03-25 Thread Riccardo Murri
Riccardo Murri added the comment: > you should be handling errors properly in the first place, > e.g. by changing your mount_sshfs manager to: > > @contextmanager > def mount_sshfs(localdir, remote): > subprocess.run(f"sshfs {remote} {localdir}") > try: > yie

[issue36424] Pickle fails on frozen dataclass that has slots

2019-03-25 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue36408] Tkinter multi-processing performance, Linux 10-25 times faster than Windows 10

2019-03-25 Thread Josh Rosenberg
Josh Rosenberg added the comment: Could you provide a minimal reproducer script? With multiprocessing involved, I'd suspect some issue with data sharing (Windows can't fork after all, so it's possible something is involved there). I see nothing obvious in the _tkinter module that would expla

[issue36422] tempfile.TemporaryDirectory() removes entire directory tree even if it's a mount-point

2019-03-25 Thread Josh Rosenberg
Josh Rosenberg added the comment: Allowing delete_on_error=False is kind of defeating the purpose here; the whole point of the with statement is guaranteed, consistent cleanup in both normal and error cases. If you knew enough to know you needed to pass delete_on_error, you'd also know enoug

[issue36424] Pickle fails on frozen dataclass that has slots

2019-03-25 Thread David Hagen
New submission from David Hagen : If a dataclass is `frozen` and has `__slots__`, then unpickling an instance of it fails because the default behavior is to use `setattr` which `frozen` does not allow. ``` import pickle from dataclasses import dataclass @dataclass(frozen=True) class A: __s

[issue2771] Test issue

2019-03-25 Thread Ernest W. Durbin III
Ernest W. Durbin III added the comment: Test Notification -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36421] A possible double decref in _ctypes.c's PyCArrayType_new()

2019-03-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 0516f81828887a8ec34a3d5ed342dd396f367dcd by Serhiy Storchaka (Zackery Spytz) in branch '2.7': [2.7] bpo-36421: Fix ref counting bugs in _ctypes.c's PyCArrayType_new(). (GH-12534) https://github.com/python/cpython/commit/0516f81828887a8ec34a3d

[issue36423] www.pythontest.net is down

2019-03-25 Thread STINNER Victor
STINNER Victor added the comment: The server is back. No idea what happened... -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ _

[issue36423] www.pythontest.net is down

2019-03-25 Thread STINNER Victor
New submission from STINNER Victor : https://buildbot.python.org/all/#/builders/96/builds/361 Re-running failed tests in verbose mode Re-running test 'test_urllib2net' in verbose mode ERROR: test_fileno (test.test_urllib2net.OtherNetworkTests) ERROR: test_close (test.test_urllib2net.CloseSocket

[issue2771] Test issue

2019-03-25 Thread Ernest W. Durbin III
Ernest W. Durbin III added the comment: Test Email Notification -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue36421] A possible double decref in _ctypes.c's PyCArrayType_new()

2019-03-25 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 2.7 ___ Python tracker ___ __

[issue19495] context manager for measuring duration of blocks of code

2019-03-25 Thread Caleb Hattingh
Caleb Hattingh added the comment: Somehow I missed that there's been an open issue on this. Like others I've written a bunch of different incarnations of an "elapsed" context manager over the years. Always for the more crude "how long did this take" reason like David mentioned, never the mic

[issue36301] Add _Py_PreInitialize() function

2019-03-25 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12485 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue13611] Integrate ElementC14N module into xml.etree package

2019-03-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: References: Canonical XML Version 2.0 -- https://www.w3.org/TR/xml-c14n2/ Test cases for Canonical XML 2.0 -- https://www.w3.org/TR/xml-c14n2-testcases/ -- ___ Python tracker

[issue36422] tempfile.TemporaryDirectory() removes entire directory tree even if it's a mount-point

2019-03-25 Thread Riccardo Murri
New submission from Riccardo Murri : The behavior of `tempfile.TemporaryDirectory()` is to delete the temporary directory when done; this behavior cannot be turned off (there's no `delete=False`like `NamedTemporaryFile` has instead). However, in case a filesystem has been mounted on the tempora

[issue36421] A possible double decref in _ctypes.c's PyCArrayType_new()

2019-03-25 Thread Zackery Spytz
Change by Zackery Spytz : -- pull_requests: +12484 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue36347] Renaming the constants for the .flags of PyMemberDef

2019-03-25 Thread Ronald Oussoren
Ronald Oussoren added the comment: A discussion on the use of enum and deprecation warnings might be useful, although there is a significant risk on bike shedding. I agree that formally deprecating READONLY can lead to uglier code in extension that use the value and need to support anything

[issue36409] plistlib old API should be removed

2019-03-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It was preserved for compatibility with Python 2.7. From PEP 4: "In order to facilitate writing code that works in both Python 2 & 3 simultaneously, any module that exists in both Python 3.5 and Python 2.7 will not be removed from the standard library unti

[issue36408] Tkinter multi-processing performance, Linux 10-25 times faster than Windows 10

2019-03-25 Thread SilentGhost
Change by SilentGhost : -- components: +Windows nosy: +gpolo, paul.moore, serhiy.storchaka, steve.dower, tim.golden, zach.ware ___ Python tracker ___ __

[issue36415] [math] Implement pow2 function

2019-03-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue31980. The objections exposed there are applicable to this issue. -- nosy: +serhiy.storchaka resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker

[issue36421] A possible double decref in _ctypes.c's PyCArrayType_new()

2019-03-25 Thread miss-islington
miss-islington added the comment: New changeset fa27870992a7228c8bf378d53649ee22333b69db by Miss Islington (bot) in branch '3.7': bpo-36421: Fix a possible double decref in _ctypes.c's PyCArrayType_new(). (GH-12530) https://github.com/python/cpython/commit/fa27870992a7228c8bf378d53649ee22333

[issue35884] Add variable access benchmark to Tools/Scripts

2019-03-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 68d228f174ceed151200e7e0b44ffc5edd4e0ea2 by Raymond Hettinger (Stefan Behnel) in branch 'master': bpo-35884: Add string-keys-only microbenchmark for dict access to var_access_benchmark.py (GH-11905) https://github.com/python/cpython/commit/6

  1   2   >