[issue37224] test__xxsubinterpreters fails randomly

2019-11-22 Thread Kyle Stanley
Kyle Stanley added the comment: So, I was finally able to replicate a failure in test_still_running locally, it required using a rather ridiculous number of parallel workers: $ ./python -m test test__xxsubinterpreters -j200 -F ... Exception in thread Thread-7: Traceback (most recent call

[issue38899] Document that virtual environment activation for fish should use `source`

2019-11-22 Thread miss-islington
miss-islington added the comment: New changeset 84b1ff65609c5910b4f838adbe1ead83baae7dbf by Miss Islington (bot) (Brett Cannon) in branch 'master': bpo-38899: virtual environment activation for fish should use `source` (GH-17359)

[issue38864] dbm: Can't open database with bytes-encoded filename

2019-11-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Low level functions inthe os module support both str and bytes paths (they support also path-like objects and often support open file descriptors). But high level functions support only str and maybe path-like objects. Use os.fsdecode if you need to

[issue37224] test__xxsubinterpreters fails randomly

2019-11-22 Thread Kyle Stanley
Kyle Stanley added the comment: > Sorry I haven't gotten back to you sooner, Kyle. Thanks for working on this. > I'm looking at your PR right now. > BTW, Kyle, your problem-solving approach on this is on-track. Don't get > discouraged. This stuff is tricky. :) No problem at all, and

[issue38878] os.PathLike subclasshook causes subclass checks true on abstract implementation

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

[issue38881] unexpected behaviour of random.choices with zero weights

2019-11-22 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch pull_requests: +16847 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17362 ___ Python tracker

[issue38892] Audit Hook doc typos and confusion

2019-11-22 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +16846 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/17361 ___ Python tracker

[issue38866] test_pyclbr replace asyncore

2019-11-22 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue38483] [venv] Add ~/.venvrc to change module defaults

2019-11-22 Thread Cooper Lees
Cooper Lees added the comment: I vote in the stdlib. This is the biggest win of venv over virtualenv The aim of this request is to allow developers to customize some of the venv defaults to make it easier to move from project to project. To ensure a clean development environment, some days

[issue37073] clarify functions docs in IO modules and Bytes Objects

2019-11-22 Thread Inada Naoki
Inada Naoki added the comment: > The function actually copies `len` bytes from string v instead of the whole > string. "and length *len*" means it. So it is not a bug. If you want to rewrite it to "the first *len* bytes of", you should remove "and length *len*". But please note that

[issue37073] clarify functions docs in IO modules and Bytes Objects

2019-11-22 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue38881] unexpected behaviour of random.choices with zero weights

2019-11-22 Thread Tim Peters
Tim Peters added the comment: There are a number of "obvious" properties that should obtain, given the intended meaning of weights: - An input with weight 0 should never be returned. - The distribution shouldn't be affected by adding a new input with weight 0. - The distribution shouldn't

[issue38892] Audit Hook doc typos and confusion

2019-11-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree on consistency. I will make a PR for you to review. Do you think a minimal code example might help? Running ... import sys def hook(name, args): if name.startswith('compile'): print(name, args) sys.addaudithook(hook) compile('a = 1',

[issue38500] Provide a way to get/set PyInterpreterState.frame_eval without needing to access interpreter internals

2019-11-22 Thread Ned Deily
Change by Ned Deily : -- keywords: +3.8regression nosy: +lukasz.langa priority: normal -> critical ___ Python tracker ___ ___

[issue25872] multithreading traceback KeyError when modifying file

2019-11-22 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +16845 pull_request: https://github.com/python/cpython/pull/17360 ___ Python tracker ___

[issue38878] os.PathLike subclasshook causes subclass checks true on abstract implementation

2019-11-22 Thread Ammar Askar
Ammar Askar added the comment: Just for reference/existing behavior: >>> class A(collections.abc.Iterable): pass ... >>> class B: ... def __iter__(): pass ... >>> issubclass(B, A) False >>> issubclass(B, collections.abc.Iterable) True >>> issubclass(A, collections.abc.Iterable) True

[issue38896] Remove PyUnicode_ClearFreeList() function

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

[issue38896] Remove PyUnicode_ClearFreeList() function

2019-11-22 Thread STINNER Victor
STINNER Victor added the comment: New changeset d68b592dd67cb87c4fa862a8d3b3fd0a7d05e113 by Victor Stinner in branch 'master': bpo-38896: Remove PyUnicode_ClearFreeList() function (GH-17354) https://github.com/python/cpython/commit/d68b592dd67cb87c4fa862a8d3b3fd0a7d05e113 --

[issue38878] os.PathLike subclasshook causes subclass checks true on abstract implementation

2019-11-22 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: > So why is it bad that in the example class B is considered a "subclass" of > os.PathLike by implementing the protocol? This is not bad, my understanding of the problem is that currently B is considered a subclass of A, while the latter should not be

[issue36876] Global C variables are a problem.

2019-11-22 Thread Eric Snow
Eric Snow added the comment: And I *am* still working on the c-analyzer + a test to that runs it, so we can keep from adding more globals. :) -- ___ Python tracker ___

[issue36876] Global C variables are a problem.

2019-11-22 Thread Eric Snow
Eric Snow added the comment: FYI, others have been tackling this in separate issues (e.g. Victor, anyone relative to PEP 384). -- ___ Python tracker ___

[issue36876] Global C variables are a problem.

2019-11-22 Thread Eric Snow
Eric Snow added the comment: Thanks, Vinay! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37224] test__xxsubinterpreters fails randomly

2019-11-22 Thread Eric Snow
Eric Snow added the comment: Thus far these are the failures we've seen: * not running when we expect it to be running: * interpreters.is_running(interp) * interpreters.run_string(interp, ...) * interpreters.destroy(interp) * can't find the interpreter even though we expect it to

[issue37224] test__xxsubinterpreters fails randomly

2019-11-22 Thread Eric Snow
Eric Snow added the comment: BTW, Kyle, your problem-solving approach on this is on-track. Don't get discouraged. This stuff is tricky. :) -- ___ Python tracker ___

[issue38483] [venv] Add ~/.venvrc to change module defaults

2019-11-22 Thread Brett Cannon
Brett Cannon added the comment: Is this best served in the stdlib or in an external tool like how virtualenvwrapper is separate from virtualenv? While I get the convenience of not having to install another tool to do this, it does bring in some complexity that does not directly tie into the

[issue38899] Document that virtual environment activation for fish should use `source`

2019-11-22 Thread Brett Cannon
Change by Brett Cannon : -- keywords: +patch pull_requests: +16844 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17359 ___ Python tracker ___

[issue38899] Document that virtual environment activation for fish should use `source`

2019-11-22 Thread Brett Cannon
New submission from Brett Cannon : https://fishshell.com/docs/current/commands.html#source -- assignee: brett.cannon components: Documentation messages: 357346 nosy: brett.cannon priority: low severity: normal status: open title: Document that virtual environment activation for fish

[issue37224] test__xxsubinterpreters fails randomly

2019-11-22 Thread Eric Snow
Eric Snow added the comment: Sorry I haven't gotten back to you sooner, Kyle. Thanks for working on this. I'm looking at your PR right now. -- ___ Python tracker ___

[issue37224] test__xxsubinterpreters fails randomly

2019-11-22 Thread Eric Snow
Change by Eric Snow : -- keywords: +patch pull_requests: +16843 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16293 ___ Python tracker ___

[issue38748] 32 bit ctypes stdcall callback fails to restore stack pointer

2019-11-22 Thread Steve Dower
Steve Dower added the comment: I would guess this is due to the updated libffi, and probably it's a case that is not sufficiently tested. Adding tests is the first step. It'll probably have to enumerate many parameter types (in case there's something weird here like misaligning the double

[issue38686] WWW-Authenticate qop="auth,auth-int" rejected by urllib

2019-11-22 Thread Senthil Kumaran
Change by Senthil Kumaran : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> behavior ___ Python tracker ___

[issue38877] Python 3.9 build fails under Debian 9.11

2019-11-22 Thread Ned Deily
Ned Deily added the comment: Glad you got it working. In general, it is probably a good idea to do a "make clean" before or after re-running ./configure in a particular build directory. Ideally, the Makefile dependencies should detect and do the right thing automatically so that a manual

[issue38686] WWW-Authenticate qop="auth,auth-int" rejected by urllib

2019-11-22 Thread miss-islington
miss-islington added the comment: New changeset 07432c33a0cab9d40ec71b274ec4bca5c57ca6e9 by Miss Islington (bot) in branch '3.7': bpo-38686: fix HTTP Digest handling in request.py (GH-17045) https://github.com/python/cpython/commit/07432c33a0cab9d40ec71b274ec4bca5c57ca6e9 --

[issue38878] os.PathLike subclasshook causes subclass checks true on abstract implementation

2019-11-22 Thread Brett Cannon
Brett Cannon added the comment: I just realized one problem with this is it explicitly requires subclassing the ABC while os.PathLike is supposed to represent a protocol (before typing.Protocol was a thing). So why is it bad that in the example class B is considered a "subclass" of

[issue38721] modulefinder should use import hooks properly

2019-11-22 Thread Dominic Littlewood
Dominic Littlewood <11dlittlew...@gmail.com> added the comment: In regards to the "unnecessary refactoring", here's a full list of what I've changed. 1. Previously, the module revolved around passing files and file descriptors around. Now, it uses specs. This means all the functions that

[issue38892] Audit Hook doc typos and confusion

2019-11-22 Thread Steve Dower
Steve Dower added the comment: Thanks Terry, this is great! Agree with everything apart from not liking "raise" - I think "raise an event" is totally fine usage, and certainly better than "triggers an audit call" (since it may not, if nobody's listening). Plus PEP 578 is full of "raise",

[issue38686] WWW-Authenticate qop="auth,auth-int" rejected by urllib

2019-11-22 Thread miss-islington
miss-islington added the comment: New changeset b9e5547f5814962964c4a5bd5cd36a2af8fbf974 by Miss Islington (bot) in branch '3.8': bpo-38686: fix HTTP Digest handling in request.py (GH-17045) https://github.com/python/cpython/commit/b9e5547f5814962964c4a5bd5cd36a2af8fbf974 -- nosy:

[issue38686] WWW-Authenticate qop="auth,auth-int" rejected by urllib

2019-11-22 Thread Senthil Kumaran
Change by Senthil Kumaran : -- versions: +Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38686] WWW-Authenticate qop="auth,auth-int" rejected by urllib

2019-11-22 Thread Senthil Kumaran
Change by Senthil Kumaran : -- versions: +Python 3.9 -Python 2.7, Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue38686] WWW-Authenticate qop="auth,auth-int" rejected by urllib

2019-11-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +16841 pull_request: https://github.com/python/cpython/pull/17357 ___ Python tracker ___

[issue38686] WWW-Authenticate qop="auth,auth-int" rejected by urllib

2019-11-22 Thread Senthil Kumaran
Senthil Kumaran added the comment: New changeset 14a89c47983f2fb9e7fdf33c769e622eefd3a14a by Senthil Kumaran (PypeBros) in branch 'master': bpo-38686: fix HTTP Digest handling in request.py (#17045) https://github.com/python/cpython/commit/14a89c47983f2fb9e7fdf33c769e622eefd3a14a

[issue38686] WWW-Authenticate qop="auth,auth-int" rejected by urllib

2019-11-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +16842 pull_request: https://github.com/python/cpython/pull/17358 ___ Python tracker ___

[issue38686] WWW-Authenticate qop="auth,auth-int" rejected by urllib

2019-11-22 Thread Senthil Kumaran
Change by Senthil Kumaran : -- versions: +Python 3.8 -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue38384] An assertion failure in test_pickle

2019-11-22 Thread Tal Einat
Change by Tal Einat : -- Removed message: https://bugs.python.org/msg357336 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue38384] An assertion failure in test_pickle

2019-11-22 Thread Tal Einat
Tal Einat added the comment: Good catch on this, Zackery! For anyone readying this, Serhiy posted a minimal reproducer in a PR comment, and the PR now adds a test for this. -- ___ Python tracker

[issue38384] An assertion failure in test_pickle

2019-11-22 Thread Tal Einat
Tal Einat added the comment: Good catch on this, Zackery! For anyone readying this, Serhit posted a minimal reproducer in a PR comment, and the PR now adds a test for this. -- nosy: +taleinat ___ Python tracker

[issue37228] UDP sockets created by create_datagram_endpoint() allow by default multiple processes to bind the same port

2019-11-22 Thread Kyle Stanley
Kyle Stanley added the comment: > This was reported by a partner that was working porting our code to Android > but might be fixed current Android API levels. I cannot test this myself. Thanks, it's helpful to be aware of potential incompatibilities either way. I don't think we directly

[issue38865] Can Py_Finalize() be called if the current interpreter is not the main interpreter?

2019-11-22 Thread Eric Snow
Eric Snow added the comment: I could swear the topic of destroy-everything-in-PyFinalize has come up before but I don't remember anything specific. Doing so there sure makes sense though... -- ___ Python tracker

[issue38524] functools.cached_property is not supported for setattr

2019-11-22 Thread Tal Einat
Tal Einat added the comment: Hi Florian! We'd be happy to have you do this, please go ahead. When you have a PR ready, you're welcome to request my review. -- ___ Python tracker

[issue38865] Can Py_Finalize() be called if the current interpreter is not the main interpreter?

2019-11-22 Thread Eric Snow
Eric Snow added the comment: > * Is Python supposed to magically destroy the 3 interpreters? Doesn't it? Gah. I guess I was thinking of PyOS_AfterFork_Child(), which calls _PyInterpreterState_DeleteExceptMain(). :/ In September there was a nice comment right above Py_FinalizeEx() saying

[issue38865] Can Py_Finalize() be called if the current interpreter is not the main interpreter?

2019-11-22 Thread Eric Snow
Eric Snow added the comment: tl;dr Py_Finalize() probably *should* only be allowed under the main interpreter. As you know well, when the runtime starts we do it at first relative to a partially initialized main interpreter and the finish initialization with a fully operational main

[issue30060] Crash with subinterpreters and Py_NewInterpreter()

2019-11-22 Thread Eric Snow
Eric Snow added the comment: Victor's comment [1] on that related issue, implies that this may no longer be a problem (on 3.8). Please check. Thanks! [1] https://bugs.python.org/issue17978#msg355166 -- status: open -> pending ___ Python

[issue36854] GC operates out of global runtime state.

2019-11-22 Thread Eric Snow
Eric Snow added the comment: Did I mention that you're my hero? :) -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue17639] symlinking .py files creates unexpected sys.path

2019-11-22 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36854] GC operates out of global runtime state.

2019-11-22 Thread Eric Snow
Eric Snow added the comment: Thanks so much for getting this done, Victor! > I'm not fully happy with this solution Should we have an issue open for finding a better solution? Are there risks with what you did that we don't want long-term? --

[issue38804] Regular Expression Denial of Service in http.cookiejar

2019-11-22 Thread Ned Deily
Ned Deily added the comment: New changeset 0716056c49e9505041e30386dad9b2e788f67aaf by Ned Deily (Miss Islington (bot)) in branch '3.6': bpo-38804: Fix REDoS in http.cookiejar (GH-17157) (#17343) https://github.com/python/cpython/commit/0716056c49e9505041e30386dad9b2e788f67aaf --

[issue37334] Add a cancel method to asyncio Queues

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

[issue38878] os.PathLike subclasshook causes subclass checks true on abstract implementation

2019-11-22 Thread Bar Harel
Bar Harel added the comment: Done. On Fri, Nov 22, 2019, 12:23 PM Bar Harel wrote: > > Change by Bar Harel : > > > -- > keywords: +patch > pull_requests: +16820 > stage: resolved -> patch review > pull_request: https://github.com/python/cpython/pull/17336 > >

[issue38840] incorrect __all__ list in multiprocessing.managers module

2019-11-22 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +davin, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38524] functools.cached_property is not supported for setattr

2019-11-22 Thread Florian Dahlitz
Florian Dahlitz added the comment: It would be an honor for me to work on this issue (updating the docs) as my first CPython contribution. -- nosy: +DahlitzFlorian ___ Python tracker

[issue38889] Segmentation fault when using EPF Importer

2019-11-22 Thread Sebastian Szwarc
Sebastian Szwarc added the comment: I strongly disagree. Python 2.7 is 2.7 -> if some new errors appeared after upgrading between minor version this is not expected behaviour, and therefore it means there is error in interpreter itself. upgrading from 2.7 to 2.7 is not the same as upgrading

[issue38898] Tkinter checkbutton switch on and off together

2019-11-22 Thread zaza hohonini
New submission from zaza hohonini : Hello, I am running python 3.8.0 and found a problem where multiple checkbuttons get switched when I click one. From observing it looks like each first check button in a frame is linked. And each second, etc. I ran the some program in python 2.7.17 and it

[issue38538] dictobject dictviews don't return NotImplemented for unrecognized types.

2019-11-22 Thread Julien Palard
Julien Palard added the comment: Let's start slowly by warning when a non-set is given to the __or__ of dictview? I think it is just a side effect of the current implementation, not a feature. -- ___ Python tracker

[issue38858] new_interpreter() should reuse more Py_InitializeFromConfig() code

2019-11-22 Thread STINNER Victor
STINNER Victor added the comment: New changeset 2ec1a1b307cc893adae4662a32e1d2e94b6908e3 by Victor Stinner in branch 'master': bpo-38858: new_interpreter() uses pycore_init_import_warnings() (GH-17353) https://github.com/python/cpython/commit/2ec1a1b307cc893adae4662a32e1d2e94b6908e3

[issue38882] IDLE should not make the about dialog be a transient of the withdrawn root window

2019-11-22 Thread Marc Culler
Marc Culler added the comment: One thing to keep in mind is that Apple's release of OSX 10.14.6 caused Tk 8.6.8 to stop working on many systems in an extremely obnoxious way. Starting a Tk Application would trigger a segfault in Apple's WindowServer which would then cause the user to be

[issue38855] test_unpack.py does not catch the unpacking of a set

2019-11-22 Thread Zachary Ware
Zachary Ware added the comment: Absent clarification from the OP (though it appears some may have been added to bpo-38853), I'm closing the issue. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue38650] Add constantness to PyStructSequence_UnnamedField

2019-11-22 Thread Eric Snow
Eric Snow added the comment: I wouldn't worry about the c-analyzer stuff for now. I plan on re-generating the file in the near future. -- nosy: +eric.snow ___ Python tracker

[issue38882] IDLE should not make the about dialog be a transient of the withdrawn root window

2019-11-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: I still want to look at what happens on 3.x. -- versions: +Python 3.9 ___ Python tracker ___ ___

[issue38882] IDLE should not make the about dialog be a transient of the withdrawn root window

2019-11-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: Ned, is our last Mac installer for 2.7 going to use tk 8.6.10? I am extremely reluctant to touch IDLE for 2.7 since beginners are nearly all using 3.x and any mistakes are forever. -- ___ Python tracker

[issue38868] Shutil cannot delete a folder that contains an .ini file

2019-11-22 Thread Eryk Sun
Eryk Sun added the comment: The directory probably has the "readonly" attribute set. The documentation includes a basic remove_readonly error handler for rmtree [1]: import os, stat import shutil def remove_readonly(func, path, _): "Clear the readonly bit and

[issue38897] Example in socket documentation uses deprecated array.fromstring

2019-11-22 Thread David Coles
New submission from David Coles : See the `recv_fds` example for `socket.recvmsg`. This code produces a `DeprecationWarning` on current versions of Python. https://docs.python.org/3.9/library/socket.html#socket.socket.recvmsg -- assignee: docs@python components: Distutils,

[issue38896] Remove PyUnicode_ClearFreeList() function

2019-11-22 Thread STINNER Victor
STINNER Victor added the comment: See also similar issue, bpo-37340 "Remove PyMethod_ClearFreeList() and PyCFunction_ClearFreeList() functions". -- ___ Python tracker ___

[issue38896] Remove PyUnicode_ClearFreeList() function

2019-11-22 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +16839 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17354 ___ Python tracker ___

[issue38896] Remove PyUnicode_ClearFreeList() function

2019-11-22 Thread STINNER Victor
New submission from STINNER Victor : The PyUnicode_ClearFreeList() function does nothing since Python 3.3, since this change: commit d63a3b8beb4a0841cb59fb3515347ccaab34b733 Author: Martin v. Löwis Date: Wed Sep 28 07:41:54 2011 +0200 Implement PEP 393. I propose attached PR to remove

[issue38858] new_interpreter() should reuse more Py_InitializeFromConfig() code

2019-11-22 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +16838 pull_request: https://github.com/python/cpython/pull/17353 ___ Python tracker ___

[issue38858] new_interpreter() should reuse more Py_InitializeFromConfig() code

2019-11-22 Thread STINNER Victor
STINNER Victor added the comment: New changeset 2582d46fbcf7bdf86b9cf4016850b8d155267ac6 by Victor Stinner in branch 'master': bpo-38858: new_interpreter() reuses pycore_init_builtins() (GH-17351) https://github.com/python/cpython/commit/2582d46fbcf7bdf86b9cf4016850b8d155267ac6 --

[issue38500] Provide a way to get/set PyInterpreterState.frame_eval without needing to access interpreter internals

2019-11-22 Thread STINNER Victor
STINNER Victor added the comment: > @victor if we are going to ask folks to start using a setter and getter I say > we might as well get it right the first time and start taking the tstate now. Done: New PR 17352 combines my two other PRs. -- ___

[issue38818] Modify PyInterpreterState.eval_frame to pass tstate (PyThreadState)

2019-11-22 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +16837 pull_request: https://github.com/python/cpython/pull/17352 ___ Python tracker ___

[issue38500] Provide a way to get/set PyInterpreterState.frame_eval without needing to access interpreter internals

2019-11-22 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +16836 pull_request: https://github.com/python/cpython/pull/17352 ___ Python tracker ___

[issue38021] pep425 tag for AIX is inadequate

2019-11-22 Thread Paul Moore
Paul Moore added the comment: What complicates the issue for AIX (and reminds me very strongly of the MacOS and manylinux situations, both of which were defined after the original tag PEP, and so contain additional insights) is the business of certain tags being compatible across multiple

[issue38500] Provide a way to get/set PyInterpreterState.frame_eval without needing to access interpreter internals

2019-11-22 Thread Brett Cannon
Brett Cannon added the comment: @greg I hope this goes into 3.8.1 since it was a breaking change. @victor if we are going to ask folks to start using a setter and getter I say we might as well get it right the first time and start taking the tstate now. --

[issue37334] Add a cancel method to asyncio Queues

2019-11-22 Thread Yury Selivanov
Yury Selivanov added the comment: > 1. A CancelledError (or maybe`QueueCancelled`?) exception is raised in all > producers and consumers ) - this gives a producer a chance to handle the > error and do something with the waiting item that could not be `put()` > 2. Items currently on the

[issue38858] new_interpreter() should reuse more Py_InitializeFromConfig() code

2019-11-22 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +16835 pull_request: https://github.com/python/cpython/pull/17351 ___ Python tracker ___

[issue38858] new_interpreter() should reuse more Py_InitializeFromConfig() code

2019-11-22 Thread STINNER Victor
STINNER Victor added the comment: New changeset 82c83bd907409c287a5bd0d0f4598f2c0538f34d by Victor Stinner in branch 'master': bpo-38858: _PyImport_FixupExtensionObject() handles subinterpreters (GH-17350) https://github.com/python/cpython/commit/82c83bd907409c287a5bd0d0f4598f2c0538f34d

[issue37334] Add a cancel method to asyncio Queues

2019-11-22 Thread Andrew Svetlov
Andrew Svetlov added the comment: My point is that closing (or cancellation) should be one-way ticket. Is there a case where continuing after stopping? -- ___ Python tracker

[issue38021] pep425 tag for AIX is inadequate

2019-11-22 Thread Michael Felt
Michael Felt added the comment: @paul.moore - thanks for the comment. I am trying to work from both https://packaging.python.org/specifications/platform-compatibility-tags/ which describes in a few words the goals of PEP425. As to the PEP425 itself, it does not specify what a tag looks

[issue37334] Add a cancel method to asyncio Queues

2019-11-22 Thread Martin Teichmann
Martin Teichmann added the comment: Yes, in the one-producer-many-consumers situation on can indeed to the trick with the None. But this is just a clumsy hack, cancelling the tasks is IMHO more in line with asyncio. In the many-producers-one-consumer scenario this does not work. The one

[issue38858] new_interpreter() should reuse more Py_InitializeFromConfig() code

2019-11-22 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +16834 pull_request: https://github.com/python/cpython/pull/17350 ___ Python tracker ___

[issue17639] symlinking .py files creates unexpected sys.path

2019-11-22 Thread Guido van Rossum
Guido van Rossum added the comment: You have a point — I was just responding to Nick’s last message without noticing how old it was. I’ll remove myself from the nosy list. On Fri, Nov 22, 2019 at 15:14 Kristján Valur Jónsson wrote: > > Kristján Valur Jónsson added the comment: > > So you

[issue38882] IDLE should not make the about dialog be a transient of the withdrawn root window

2019-11-22 Thread Marc Culler
Change by Marc Culler : -- versions: +Python 2.7 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29275] time module still has Y2K issues note

2019-11-22 Thread miss-islington
miss-islington added the comment: New changeset ca5fafc2bbda9373c9ab12b76d17614585cffc23 by Miss Islington (bot) in branch '3.8': closes bpo-29275: Remove Y2K reference from time module docs (GH-17321) https://github.com/python/cpython/commit/ca5fafc2bbda9373c9ab12b76d17614585cffc23

[issue29275] time module still has Y2K issues note

2019-11-22 Thread miss-islington
miss-islington added the comment: New changeset c58a8116475fc9e90fe87b150cde4e535173ec1c by Miss Islington (bot) in branch '3.7': closes bpo-29275: Remove Y2K reference from time module docs (GH-17321) https://github.com/python/cpython/commit/c58a8116475fc9e90fe87b150cde4e535173ec1c

[issue29275] time module still has Y2K issues note

2019-11-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +16833 pull_request: https://github.com/python/cpython/pull/17349 ___ Python tracker ___

[issue29275] time module still has Y2K issues note

2019-11-22 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 42bc60ead39c7be9f6bb7329977826e962f601eb by Benjamin Peterson (Callum Ward) in branch 'master': closes bpo-29275: Remove Y2K reference from time module docs (GH-17321)

[issue29275] time module still has Y2K issues note

2019-11-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +16832 pull_request: https://github.com/python/cpython/pull/17348 ___ Python tracker ___

[issue38858] new_interpreter() should reuse more Py_InitializeFromConfig() code

2019-11-22 Thread STINNER Victor
STINNER Victor added the comment: New changeset b00513636c9891deba4cae50217e25e8faf6c6ac by Victor Stinner in branch 'master': bpo-38858: Add init_interp_main() subfunction (GH-17347) https://github.com/python/cpython/commit/b00513636c9891deba4cae50217e25e8faf6c6ac --

[issue38895] performance degradation creating a mock object (by factor 7-8)

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

[issue38895] performance degradation creating a mock object (by factor 7-8)

2019-11-22 Thread Julian
Change by Julian : -- title: performance degradation creating a mock object -> performance degradation creating a mock object (by factor 7-8) ___ Python tracker ___

[issue38895] performance degradation creating a mock object

2019-11-22 Thread Julian
New submission from Julian : There seems to be a performance issue when creating a Mock() object from unittest module. The performance difference between 3.7.x and 3.8.0 is about 7-8 times slower in 3.8 Heres the smalles sample i could generate: Using python 3.7.5 ``` python3 -m timeit -v

[issue38858] new_interpreter() should reuse more Py_InitializeFromConfig() code

2019-11-22 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +16831 pull_request: https://github.com/python/cpython/pull/17347 ___ Python tracker ___

  1   2   >