[issue40907] cpython/lib/queue.py: put() does not acquire not_empty before notifying on it

2020-06-10 Thread r n
r n added the comment: Thanks for the response. However, if you see, every condition object has their own queue of waiters in self._waiters, that get notified during notify(), which are different for not_empty and not_full. I see a hang very very rarely, like 1/25 times, in my program, which

[issue40860] Exception in multiprocessing/context.py under load

2020-06-10 Thread Ned Deily
Change by Ned Deily : -- nosy: +davin, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40935] Links to Python3 docs for some libs return 404

2020-06-10 Thread Ned Deily
Ned Deily added the comment: Thanks for the report! If the links are always to ../3/.. it should be easy to set up permanent redirects on the website to the most appropriate webpage in the current Python 3 docset. If someone could produce a list of 2 to 3 mappings here, creating the

[issue17013] Allow waiting on a mock

2020-06-10 Thread Ilya Kulakov
Ilya Kulakov added the comment: Correct, it is not backward compatible in that respect. I did not check thoroughly, but a quick lookup shown no such use among public repos on GitHub. I can instead add the called_event property and make the CallEvent “public”. Best Regards Ilya Kulakov > On

[issue40826] PyOS_InterruptOccurred() now requires to hold the GIL: PyOS_Readline() crash

2020-06-10 Thread David Bolen
David Bolen added the comment: So a script I use on the buildbot intended to prevent hanging on assertions was failing to work in this particular case, which I've corrected. That changes the failure mode for new Win10 buildbot runs. The test in question (test_close_stdin) still fails, but

[issue40860] Exception in multiprocessing/context.py under load

2020-06-10 Thread Arkady
Arkady added the comment: Update. I have reproduced the problem in the code not calling Process.join() at all. It require more time and more load, but eventually Process.start() crashes. Posted a question on

[issue40869] errno missing descriptions

2020-06-10 Thread Arpit Mishra
Arpit Mishra added the comment: Hello, I am new to this platform and this would be my first opportunity. Please let me know how can I contribute to this. Thank you. -- nosy: +Arpit Mishra ___ Python tracker

[issue40907] cpython/lib/queue.py: put() does not acquire not_empty before notifying on it

2020-06-10 Thread r n
r n added the comment: Sorry, please ignore my previous comment, I can see that the issue is not in the queue, but probably be somewhere in my setup. I'll close this bug therefore. Thanks again for the clarification. -- resolution: -> not a bug stage: -> resolved status: open ->

[issue40889] Symmetric difference on dict_views is inefficient

2020-06-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I don't like a tendency of optimizing very uncommon cases. We can optimize every operation for specific types by inlining the code. But it increases maintaining cost and can have negative net effect on performance: because increasing the code size and

[issue40934] Default RLock does not work well for Manager Condition

2020-06-10 Thread Ned Deily
Change by Ned Deily : -- nosy: +davin, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32604] [subinterpreters] PEP 554 implementation: add interpreters module

2020-06-10 Thread STINNER Victor
STINNER Victor added the comment: test__xxsubinterpreters and test_interpreters failed on AMD64 FreeBSD Shared 3.x: https://buildbot.python.org/all/#/builders/152/builds/973 See also bpo-37224: "[subinterpreters] test__xxsubinterpreters fails randomly". IMO there are multiple race

[issue32604] [subinterpreters] PEP 554 implementation: add interpreters module

2020-06-10 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Joannah, Eric, could you look into this? Having random failures in the builbots can make debugging more challenging, hide other issues and can also spam the buildbot list :( -- ___ Python tracker

[issue40928] OS X: malloc(): set default diagnostics to DEBUG_WRITE_ON_CRASH

2020-06-10 Thread STINNER Victor
STINNER Victor added the comment: > Ok, I will try to do this in the coming days. Is adding this kind of super > ugly, super specific code to pymain_init() ok? Maybe _PyPreConfig_Write() would be a better place. There is a very little risk that memory allocation done before

[issue40928] OS X: malloc(): set default diagnostics to DEBUG_WRITE_ON_CRASH

2020-06-10 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'm not sure if it is worthwhile to tweak CPython to work around this misfeature of libc on macOS (and likely iOS). Is this something that causes issues in real code, or just in the test suite? Looking at this particular test is seems to use a context

[issue40928] OS X: malloc(): set default diagnostics to DEBUG_WRITE_ON_CRASH

2020-06-10 Thread Stefan Krah
Stefan Krah added the comment: But if malloc_print_configure() is not a public API, it should probably not be used. -- ___ Python tracker ___

[issue40826] PyOS_InterruptOccurred() now requires to hold the GIL: PyOS_Readline() crash

2020-06-10 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +19975 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/20779 ___ Python tracker ___

[issue40928] OS X: malloc(): set default diagnostics to DEBUG_WRITE_ON_CRASH

2020-06-10 Thread STINNER Victor
STINNER Victor added the comment: > Would it be possible to wrap malloc_print_configure() > (https://github.com/PureDarwin/libmalloc/blob/e37056265821cd6e014ab911d9fe3b9d0da88e22/src/malloc_printf.c#L59) > in a context manager that we put in test.support? or to override >

[issue40928] OS X: malloc(): set default diagnostics to DEBUG_WRITE_ON_CRASH

2020-06-10 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: > But is it really an use case to log any memory allocation failure? Python is > very likely to raise a MemoryError exception in this case. It's well defined, > no? Yes, we are not trying to log the allocation failure, we are just trying to suppress a dubious

[issue40928] OS X: malloc(): set default diagnostics to DEBUG_WRITE_ON_CRASH

2020-06-10 Thread Stefan Krah
Stefan Krah added the comment: No, it does not cause real issues. Adding this feature would just suppress chatty diagnostics like this one, which are a bit unfriendly: >>> [0] * 1 python3(36633,0x110c08dc0) malloc: can't allocate region :***

[issue40562] SEO: differentiate between Python 2 and Python 3 docs on Google SERP

2020-06-10 Thread Pinto
Pinto added the comment: I have the same problem on my site https://lesmarketing.fr I deactivated the breadcrumbs, you have found a solution ? -- nosy: +khaled ___ Python tracker

[issue17013] Allow waiting on a mock

2020-06-10 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > 1. called is almost never used in practice (people just use .assert*) Sorry but saying "almost never used" is not good enough. Not only because you hold incomplete data but because backwards compatibility is mainly binary: it breaks or it does not,

[issue40941] Merge generator.gi_running and frame executing flag into single frame state

2020-06-10 Thread Mark Shannon
New submission from Mark Shannon : Generators have a "gi_running" attribute (coroutines have an equivalent cr_running flag). Internally frame also has an executing flag. We use these, plus the test `f_stacktop pointer == NULL`, to determine what state a generator or frame is in. It would be

[issue17013] Allow waiting on a mock

2020-06-10 Thread Ilya Kulakov
Ilya Kulakov added the comment: As far as I understand it introduces 3 methods that may clash. It's unlikely but (I speculate) is still more likely than an identity check with called. That being said, the PR can be redone as a subclass. But that implementation will not play as nicely with

[issue17013] Allow waiting on a mock

2020-06-10 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > Current implementation relies on that: Notice that this is a clear disadvantage over a subclass-based approach, which is backwards compatible and preserves the semantics of mock. -- ___ Python tracker

[issue40928] OS X: malloc(): set default diagnostics to DEBUG_WRITE_ON_CRASH

2020-06-10 Thread Stefan Krah
Stefan Krah added the comment: And indeed, with the new decimal MAX_PREC feature, you should see the misguided diagnostic as well on OS X: >>> from decimal import * >>> >>> c = getcontext() >>> c.prec = MAX_PREC >>> Decimal(4).sqrt() Decimal('2') >>> So it is real code, but extremely

[issue39666] IDLE: Factor out similar code in editor and hyperparser

2020-06-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: The quote from #32989 is from my msg313179, msg313179. There are two levels of duplication. First, between Hyperparser and EditorWindow. Second between editor and shell branches. While I said before to resolve the first with an EditorWindow method, as

[issue17013] Allow waiting on a mock

2020-06-10 Thread Ilya Kulakov
Ilya Kulakov added the comment: > That is not true, is actually encouraged to check for singletons like True, > False and None. You're right, just never used it as I never needed an identity check against True / False The PR is re-done to use an additional property call_event instead of

[issue40940] How to update pip permanently for new venv?

2020-06-10 Thread Zachary Ware
Change by Zachary Ware : -- components: +Library (Lib) -asyncio nosy: +vinay.sajip -asvetlov, yselivanov ___ Python tracker ___ ___

[issue36439] Inconsistencies with datetime.fromtimestamp(t) when t < 0

2020-06-10 Thread Paul Anton Letnes
Paul Anton Letnes added the comment: I've encountered an issue on anaconda python on windows 10 v1909 which I suspect is related. It looks like no dates in 1970 can be converted to datetime.timestamp(): Python 3.8.2 (default, Apr 14 2020, 19:01:40) [MSC v.1916 64 bit (AMD64)] Type

[issue40928] OS X: malloc(): set default diagnostics to DEBUG_WRITE_ON_CRASH

2020-06-10 Thread Ronald Oussoren
Ronald Oussoren added the comment: I've filed a report with Apple about this (FB7731971), even though I expect that this behaviour will not change. That's something we should have done years ago. BTW. The link to malloc_print_configure that Victor shared seems to indicate that the default

[issue29242] Crash on GC when compiling PyPy

2020-06-10 Thread Ned Deily
Ned Deily added the comment: I agree with Zachery that this issue should be closed. There has been no activity on it since it was opened three years ago and no indication that it has been an ongoing problem. I'm not even sure what the current state of using cPython 3 to build PyPy is. If

[issue40928] test_decimal.CWhitebox.test_maxcontext_exact_arith() shows "malloc: can't allocate region" on MacOS

2020-06-10 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Would it be possible to wrap malloc_print_configure() (https://github.com/PureDarwin/libmalloc/blob/e37056265821cd6e014ab911d9fe3b9d0da88e22/src/malloc_printf.c#L59) in a context manager that we put in test.support? or to override

[issue40936] Remove deprecated functions from gettext

2020-06-10 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- keywords: +patch pull_requests: +19970 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20773 ___ Python tracker ___

[issue37969] Correct urllib.parse functions dropping the delimiters of empty URI components

2020-06-10 Thread Open Close
Open Close added the comment: This is a duplicate of issue22852 ('urllib.parse wrongly strips empty #fragment, ?query, //netloc'). Also note that three alternative solutions have already proposed. (1) Add 'None' type to Result objects members like this one. But it is considering not

[issue22852] urllib.parse wrongly strips empty #fragment, ?query, //netloc

2020-06-10 Thread Open Close
Open Close added the comment: I found another related issue (issue37969). I also filed one myself (issue 40938). --- One thing against the 'has_netloc' etc. solution is that while it guarantees round-trips (urlunsplit(urlsplit('...')) etc.), it is conditional on 'urlunsplit' getting

[issue40939] Remove the old parser

2020-06-10 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : As stated in PEP 617, the old parser will be removed in Python 3.10 -- assignee: pablogsal components: Interpreter Core messages: 371182 nosy: pablogsal priority: normal severity: normal status: open title: Remove the old parser versions:

[issue40939] Remove the old parser

2020-06-10 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +gvanrossum, lys.nikolaou ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40940] How to update pip permanently for new venv?

2020-06-10 Thread tillus
New submission from tillus : **Describe the bug** Every new environment has the old pip version (19.2.3) **Expected behavior** My system python has pip version 20 so I would expect direnv also to use the most recent pip version. But it installs the old pip version for every new environment

[issue40939] Remove the old parser

2020-06-10 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +19972 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20768 ___ Python tracker

[issue40932] subprocess docs should warn of shlex use on Windows

2020-06-10 Thread Chris Jerdonek
Change by Chris Jerdonek : -- nosy: +chris.jerdonek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40275] test.support has way too many imports

2020-06-10 Thread STINNER Victor
STINNER Victor added the comment: New changeset 0d00b2a5d74390da7bbeff7dfa73abf2eb46124a by Hai Shi in branch 'master': bpo-40275: Add os_helper submodule in test.support (GH-20765) https://github.com/python/cpython/commit/0d00b2a5d74390da7bbeff7dfa73abf2eb46124a --

[issue32604] [subinterpreters] PEP 554 implementation: add interpreters module

2020-06-10 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- pull_requests: +19974 pull_request: https://github.com/python/cpython/pull/20777 ___ Python tracker ___

[issue40928] test_decimal.CWhitebox.test_maxcontext_exact_arith() shows "malloc: can't allocate region" on MacOS

2020-06-10 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Ok, I will try to do this in the coming days. Is adding this kind of super ugly, super specific code to pymain_init() ok? -- ___ Python tracker

[issue40928] test_decimal.CWhitebox.test_maxcontext_exact_arith() shows "malloc: can't allocate region" on MacOS

2020-06-10 Thread Stefan Krah
Stefan Krah added the comment: I would probably put all that code in a separate function like init_darwin_libc(), and call init_darwin_libc() in pymain_init(). The real fun will start when we figure out which OS X versions support this feature. I hope we have a buildbot for each. :-)

[issue17013] Allow waiting on a mock

2020-06-10 Thread Ilya Kulakov
Ilya Kulakov added the comment: > Unfortunately, we take backwards compatibility very seriously in the core > team and this is a big downside of this proposal. Current implementation relies on that: 1. called is almost never used in practice (people just use .assert*) 2. The is True / False

[issue40938] urllib.parse.urlunsplit makes relative path to absolute (http:g -> http:///g)

2020-06-10 Thread Open Close
Change by Open Close : -- components: +Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40283] Documentation of turtle.circle()

2020-06-10 Thread Frank Henigman
Change by Frank Henigman : -- nosy: +fjh ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40937] Remove deprecated functions marked for removal in 3.10

2020-06-10 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- pull_requests: +19973 pull_request: https://github.com/python/cpython/pull/20775 ___ Python tracker ___

[issue40925] Remove redundant macros used for stack manipulation in interpreter

2020-06-10 Thread Mark Shannon
Mark Shannon added the comment: I'm proposing that we remove the nine macros above; the eleven listed, except TOP() and SECOND(). They can be replaced by POP(), PUSH() and PEEK() without lost of functionality or performance. -- ___ Python tracker

[issue40928] test_decimal.CWhitebox.test_maxcontext_exact_arith() shows "malloc: can't allocate region" on MacOS

2020-06-10 Thread Stefan Krah
Stefan Krah added the comment: > What about overriding the default to DEBUG_WRITE_ON_CRASH if > MallocDebugReport is not set? That sounds like a very good compromise! -- ___ Python tracker

[issue40938] urllib.parse.urlunsplit makes relative path to absolute (http:g -> http:///g)

2020-06-10 Thread Open Close
New submission from Open Close : path 'g' in 'http:g' becomes '/g'. >>> urlsplit('http:g') SplitResult(scheme='http', netloc='', path='g', query='', fragment='') >>> urlunsplit(urlsplit('http:g')) 'http:///g' >>> urlsplit('http:///g') SplitResult(scheme='http',

[issue40928] test_decimal.CWhitebox.test_maxcontext_exact_arith() shows "malloc: can't allocate region" on MacOS

2020-06-10 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: > I have two observations: > > First, I think that the default DEBUG_WRITE_ALWAYS, which is the cause > of this issue, is not C standard conforming -- The standard does not > permit implementation defined diagnostics (global side effects!) on a > completely

[issue40928] test_decimal.CWhitebox.test_maxcontext_exact_arith() shows "malloc: can't allocate region" on MacOS

2020-06-10 Thread Stefan Krah
Stefan Krah added the comment: I have two observations: First, I think that the default DEBUG_WRITE_ALWAYS, which is the cause of this issue, is not C standard conforming -- The standard does not permit implementation defined diagnostics (global side effects!) on a completely normal

[issue40860] Exception in multiprocessing/context.py under load

2020-06-10 Thread Arkady
Arkady added the comment: A workaround is to synchronize the call to Process.start() diff --git a/main.py b/main.py index d09dc53..49d68f0 100644 --- a/main.py +++ b/main.py @@ -26,17 +26,24 @@ def load_cpu(deadline): while time.time() - start < 0.2*deadline:

[issue40928] OS X: malloc(): set default diagnostics to DEBUG_WRITE_ON_CRASH

2020-06-10 Thread Stefan Krah
Stefan Krah added the comment: Changing the title to get more input from others. -- title: test_decimal.CWhitebox.test_maxcontext_exact_arith() shows "malloc: can't allocate region" on MacOS -> OS X: malloc(): set default diagnostics to DEBUG_WRITE_ON_CRASH

[issue40932] subprocess docs should warn of shlex use on Windows

2020-06-10 Thread Ned Deily
Change by Ned Deily : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware title: subprocess docs don't qualify the instruction to use shlex.quote by OS -> subprocess docs should warn of shlex use on Windows versions: +Python 3.10, Python 3.9

[issue40906] Unable to import module due to python unable to resolve dependecies

2020-06-10 Thread Ned Deily
Change by Ned Deily : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___ ___

[issue40936] Remove deprecated functions from gettext

2020-06-10 Thread Rémi Lapeyre
New submission from Rémi Lapeyre : The codeset parameter and the following functions were marked for removal in Python 3.10: - bind_textdomain_codeset() - lgettext() - ldgettext() - lngettext() - ldngettext() - output_charset() - set_output_charset() -- components: Library (Lib)

[issue40869] errno missing descriptions

2020-06-10 Thread YoSTEALTH
YoSTEALTH added the comment: Hello Arpit, Welcome to python bugs. I have already created the patch at https://github.com/python/cpython/pull/20665 if you feel like i missed something you can comment on it. That said there is always something to do with python, just keep your eye out for it

[issue40937] Remove deprecated functions marked for removal in 3.10

2020-06-10 Thread Rémi Lapeyre
New submission from Rémi Lapeyre : The following modules have functions marked for deprecation in Python 3.10: - asyncio-queue - asyncio-subprocess - asyncio-sync - asyncio-task - collections - builtins - gettext - the old parser I already opened a PR to remove those in gettext and

[issue40906] Unable to import module due to python unable to resolve dependecies

2020-06-10 Thread Saba Kauser
Saba Kauser added the comment: Hello Steve, You have added changes to load windows dependent DLLs for python C extension modules. After building the source, I can import the module only after I set dll path as: os.add_dll_directory('C:\\Program Files\\IBM\\IBM DATA SERVER DRIVER_01\\bin')

[issue32604] [subinterpreters] PEP 554 implementation: add interpreters module

2020-06-10 Thread Ned Deily
Change by Ned Deily : -- nosy: -ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17013] Allow waiting on a mock

2020-06-10 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > Correct, it is not backward compatible in that respect. Unfortunately, we take backwards compatibility very seriously in the core team and this is a big downside of this proposal. > I can instead add the called_event property Wouldn't that also

[issue40937] Remove deprecated functions marked for removal in 3.10

2020-06-10 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- keywords: +patch pull_requests: +19971 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20774 ___ Python tracker ___

[issue36543] Remove old-deprecated ElementTree features (part 2)

2020-06-10 Thread Stefan Behnel
Stefan Behnel added the comment: New changeset ec88e1bca81a167e6d5c0ac635e22f84298cb1df by Serhiy Storchaka in branch 'master': bpo-36543: Revert "bpo-36543: Remove the xml.etree.cElementTree module." (GH-20117)

[issue40943] PEP 353: Drop support for PyArg_ParseTuple() format when PY_SSIZE_T_CLEAN is not defined

2020-06-10 Thread STINNER Victor
Change by STINNER Victor : -- title: Drop support for PyArg_ParseTuple() format when PY_SSIZE_T_CLEAN is not defined -> PEP 353: Drop support for PyArg_ParseTuple() format when PY_SSIZE_T_CLEAN is not defined ___ Python tracker

[issue40703] PyType_FromSpec*() overwrites the type's "__module__"

2020-06-10 Thread Stefan Behnel
Change by Stefan Behnel : -- stage: patch review -> test needed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40703] PyType_FromSpec*() overwrites the type's "__module__"

2020-06-10 Thread Stefan Behnel
Stefan Behnel added the comment: New changeset 9419158a3e67ba2eadf33215568003ed723b0a98 by Miss Islington (bot) in branch '3.9': bpo-40703: Let PyType_FromSpec() set "type.__module__" only if it is not set yet. (GH-20273) (GH-20782)

[issue40826] PyOS_InterruptOccurred() now requires to hold the GIL: PyOS_Readline() crash

2020-06-10 Thread STINNER Victor
STINNER Victor added the comment: New changeset f6e58aefde2e57e4cb11ea7743955da53a3f1e80 by Victor Stinner in branch 'master': bpo-40826: Fix test_repl.test_close_stdin() on Windows (GH-20779) https://github.com/python/cpython/commit/f6e58aefde2e57e4cb11ea7743955da53a3f1e80 --

[issue40913] time.sleep ignores errors on Windows

2020-06-10 Thread Tim Golden
Tim Golden added the comment: Thinking about testing here.. is there any straightforward way to cause WaitForSingleObjectEx to fail? The code change would be fairly slight and amenable to inspection, but it would be good to actually test it ;) --

[issue40826] PyOS_InterruptOccurred() now requires to hold the GIL: PyOS_Readline() crash

2020-06-10 Thread STINNER Victor
STINNER Victor added the comment: New changeset 4a4f660cfde8b683634c53e6214a6baa51de43b1 by Victor Stinner in branch '3.9': bpo-40826: Fix test_repl.test_close_stdin() on Windows (GH-20779) (GH-20785) https://github.com/python/cpython/commit/4a4f660cfde8b683634c53e6214a6baa51de43b1

[issue40913] time.sleep ignores errors on Windows

2020-06-10 Thread Eryk Sun
Eryk Sun added the comment: > is there any straightforward way to cause WaitForSingleObjectEx to fail? The wait can fail for ERROR_INVALID_HANDLE or ERROR_ACCESS_DENIED (i.e. the handle lacks SYNCHRONIZE access). If _PyOS_SigintEvent were replaced with get/set functions, then a non-waitable

[issue40945] TKinter.Tk.geometry(Tk.winfo_geometry()) should be idempotent

2020-06-10 Thread Ben Li-Sauerwine
Change by Ben Li-Sauerwine : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40945] TKinter.Tk.geometry(Tk.winfo_geometry()) should be idempotent

2020-06-10 Thread Ben Li-Sauerwine
New submission from Ben Li-Sauerwine : One would expect that calling TKinter.Tk.geometry(tk.winfo_geometry()) would be idempotent. However, based on the system window frame, it is not and doing so moves the window down the screen. Running the example below reproduces the issue. --

[issue40878] Use c99 on the aixtools bot

2020-06-10 Thread Michael Felt
Michael Felt added the comment: Actually, iirc - xlc is c99 plus a few extra settings. The configuration files for xlc are, traditionally, in /etc (the later versions of the compiler have moved them into /opt/show/where so that multiple versions of the compiler can be installed.

[issue40680] thread_cputime isn't supported by AIX5

2020-06-10 Thread Michael Felt
Michael Felt added the comment: No, it is not supported - asin there are no new patches - but there are organizations that use it. imho - those organizations are not likely to be using the latest Python - but I have been packaging Python on AIX 5.3 and AIX 6.1 - as these packages run

[issue40826] PyOS_InterruptOccurred() now requires to hold the GIL: PyOS_Readline() crash

2020-06-10 Thread STINNER Victor
STINNER Victor added the comment: > Why doesn't SuppressCrashReport suppress the hard error dialog (i.e. > SEM_FAILCRITICALERRORS)? This dialog gets created by the NtRaiseHardError > system call. Would you mind to open a separated issue? -- ___

[issue30064] BaseSelectorEventLoop.sock_{recv, sendall}() don't remove their callbacks when canceled

2020-06-10 Thread STINNER Victor
STINNER Victor added the comment: Another kind of failure on x86 Gentoo Installed with X 3.x: https://buildbot.python.org/all/#/builders/128/builds/1030 ERROR: test_sock_client_racing (test.test_asyncio.test_sock_lowlevel.EPollEventLoopTests)

[issue40925] Remove redundant macros used for stack manipulation in interpreter

2020-06-10 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch pull_requests: +19979 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/20783 ___ Python tracker

[issue40928] OS X: malloc(): set default diagnostics to DEBUG_WRITE_ON_CRASH

2020-06-10 Thread Stefan Krah
Stefan Krah added the comment: > The first warning line in the initial message of this bug report tries to > allocate 872 petabyte. Yes, that's for systems like Linux where you never know what overallocation is going to permit and subsequently freeze the system. Special casing malloc()

[issue36543] Remove old-deprecated ElementTree features (part 2)

2020-06-10 Thread Stefan Behnel
Stefan Behnel added the comment: The xml.etree.cElementTree module is restored. We'll see about what to do with it later. It hurts less to keep it around than to delete it. I think this ticket can be closed. -- resolution: -> fixed stage: patch review -> resolved status: open ->

[issue40925] Remove redundant macros used for stack manipulation in interpreter

2020-06-10 Thread Dong-hee Na
Dong-hee Na added the comment: AFAIK, SET_VALUE is not used in CPython master codebase. -- ___ Python tracker ___ ___

[issue40943] PEP 353: Drop support for PyArg_ParseTuple() format when PY_SSIZE_T_CLEAN is not defined

2020-06-10 Thread STINNER Victor
STINNER Victor added the comment: I started to write a long rationale to explain why "#" variants of formats must be deprecated, before I noticed that they are already deprecated! To not lost it, here is my rationale :-) The C code base of Python switched from int to Py_ssize_t with PEP

[issue40826] PyOS_InterruptOccurred() now requires to hold the GIL: PyOS_Readline() crash

2020-06-10 Thread STINNER Victor
STINNER Victor added the comment: Thanks for the bug report David Bolen and thanks for the analysis Eryk Sun. The bug should be be fixed in the master branch, and backports to 3.8 and 3.9 are coming. -- ___ Python tracker

[issue40826] PyOS_InterruptOccurred() now requires to hold the GIL: PyOS_Readline() crash

2020-06-10 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +19982 pull_request: https://github.com/python/cpython/pull/20787 ___ Python tracker ___

[issue39465] [subinterpreters] Design a subinterpreter friendly alternative to _Py_IDENTIFIER

2020-06-10 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +19983 pull_request: https://github.com/python/cpython/pull/20788 ___ Python tracker ___

[issue40826] PyOS_InterruptOccurred() now requires to hold the GIL: PyOS_Readline() crash

2020-06-10 Thread STINNER Victor
STINNER Victor added the comment: New changeset c7a6c7b5279f766e65b7cc9dc5bebb73acee6672 by Victor Stinner in branch '3.8': bpo-40826: Fix test_repl.test_close_stdin() on Windows (GH-20779) (GH-20785) (GH-20787)

[issue40826] PyOS_InterruptOccurred() now requires to hold the GIL: PyOS_Readline() crash

2020-06-10 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue40927] ./python -m test test___all__ test_binhex fails

2020-06-10 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9c24e2e4c10705d95258558348417a28007dac66 by Victor Stinner in branch 'master': bpo-40927: Fix test_binhex when run twice (GH-20764) https://github.com/python/cpython/commit/9c24e2e4c10705d95258558348417a28007dac66 --

[issue40927] ./python -m test test___all__ test_binhex fails

2020-06-10 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +19984 pull_request: https://github.com/python/cpython/pull/20789 ___ Python tracker ___

[issue39465] [subinterpreters] Design a subinterpreter friendly alternative to _Py_IDENTIFIER

2020-06-10 Thread STINNER Victor
STINNER Victor added the comment: New changeset 1bcc32f0620d2e99649a6d423284d9496b7b3548 by Victor Stinner in branch 'master': bpo-39465: Use _PyInterpreterState_GET() (GH-20788) https://github.com/python/cpython/commit/1bcc32f0620d2e99649a6d423284d9496b7b3548 --

[issue39679] functools: singledispatchmethod doesn't work with classmethod

2020-06-10 Thread Viktor Roytman
Viktor Roytman added the comment: Sorry to bump this after months of inactivity but is there something I need to do here? -- ___ Python tracker ___

[issue40927] ./python -m test test___all__ test_binhex fails

2020-06-10 Thread STINNER Victor
STINNER Victor added the comment: Rémi Lapeyre: Thanks for the bug report, it's now fixed! -- versions: +Python 3.9 ___ Python tracker ___

[issue40927] ./python -m test test___all__ test_binhex fails

2020-06-10 Thread STINNER Victor
STINNER Victor added the comment: New changeset af6932575391bca10f4f2145b56e3edbe9765343 by Victor Stinner in branch '3.9': bpo-40927: Fix test_binhex when run twice (GH-20764) (GH-20789) https://github.com/python/cpython/commit/af6932575391bca10f4f2145b56e3edbe9765343 --

[issue40944] email.message.EmailMessage address parser fails to handle 'example@'

2020-06-10 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 3.0 -> 4.0 pull_requests: +19985 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20790 ___ Python tracker

[issue40847] New parser considers empty line following a backslash to be a syntax error, old parser didn't

2020-06-10 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40826] PyOS_InterruptOccurred() now requires to hold the GIL: PyOS_Readline() crash

2020-06-10 Thread Eryk Sun
Eryk Sun added the comment: Why doesn't SuppressCrashReport suppress the hard error dialog (i.e. SEM_FAILCRITICALERRORS)? This dialog gets created by the NtRaiseHardError system call. For example: >>> NtRaiseHardError = ctypes.windll.ntdll.NtRaiseHardError >>> response =

[issue40944] email.message.EmailMessage address parser fails to handle 'example@'

2020-06-10 Thread Ivan Savin
New submission from Ivan Savin : How to reproduce: >>> import email.message >>> message = email.message.EmailMessage() >>> message['From'] = 'hey@' Traceback (most recent call last): File "/home/ivan/.pyenv/versions/3.9.0a5/lib/python3.9/email/_header_value_parser.py", line 1956, in

[issue40895] weakref documentation contains cautions about dictionary mutation problems that have been solved in the implementation

2020-06-10 Thread miss-islington
miss-islington added the comment: New changeset 1642c0ef750f96664a98cadb09301d492098d2fb by Daniel Fortunov in branch 'master': bpo-40895: Update weakref documentation to remove old warnings (GH-20687) https://github.com/python/cpython/commit/1642c0ef750f96664a98cadb09301d492098d2fb

[issue40895] weakref documentation contains cautions about dictionary mutation problems that have been solved in the implementation

2020-06-10 Thread Antoine Pitrou
Change by Antoine Pitrou : -- pull_requests: +19989 pull_request: https://github.com/python/cpython/pull/20793 ___ Python tracker ___

  1   2   >