[issue38945] Remove newline characters from uu encoding methods

2020-03-20 Thread Larry Hastings
Larry Hastings added the comment: New changeset 8835f465fa94f114dcf865429c0410821d365dae by Ned Deily in branch '3.5': bpo-38945: UU Encoding: Don't let newline in filename corrupt the output format (GH-17418) (GH-17444) (#17445)

[issue40025] enum: _generate_next_value_ is not called if its definition occurs after calls to auto()

2020-03-20 Thread Ethan Onstott
Change by Ethan Onstott : -- keywords: +patch nosy: +Ethan Onstott nosy_count: 5.0 -> 6.0 pull_requests: +18458 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/19098 ___ Python tracker

[issue40012] Avoid Python 2 documentation to appear in Web search results

2020-03-20 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: See also the approach to use robots.txt https://github.com/python/pythondotorg/issues/1030 -- nosy: +xtreak ___ Python tracker

[issue21760] inspect documentation describes module type inaccurately

2020-03-20 Thread Furkan Önder
Change by Furkan Önder : -- keywords: +patch nosy: +furkanonder nosy_count: 3.0 -> 4.0 pull_requests: +18457 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/19097 ___ Python tracker

[issue40017] Please support CLOCK_TAI in the time module.

2020-03-20 Thread Russell Owen
Change by Russell Owen : -- keywords: +patch pull_requests: +18455 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19096 ___ Python tracker ___

[issue32173] linecache.py add lazycache to __all__ and use dict.clear to clear the cache

2020-03-20 Thread A.M. Kuchling
A.M. Kuchling added the comment: Patch has been applied. -- nosy: +akuchling resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue20459] No Argument Clinic documentation on how to specify a return converter

2020-03-20 Thread Furkan Önder
Furkan Önder added the comment: I couldn't understand your problem.Can you explain more? -- nosy: +furkanonder ___ Python tracker ___

[issue40022] 关于列表的基础算法问题

2020-03-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: Test01.py runs as expected with no exceptions. This issue appears to be based on a misunderstanding of one or both of two things: a) multiplying an empty list does nothing other than returning a new empty list. b) list.insert(index, value) treats the index

[issue40012] Avoid Python 2 documentation to appear in Web search results

2020-03-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: I completely agree with the goal. But I think that this is duplicate of at one previous issue either here or on the website tracker. -- nosy: +terry.reedy ___ Python tracker

[issue40011] Tkinter widget events become tuples

2020-03-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: IDLE uses tkinter extensively and runs fine on 3.0 to the upcoming 3.9. Events remain Events and event.type, event.widget, event.x, and so on continue to work as appropriate for the event type. As far as I know, the only directly tkinter-related changes

[issue40028] Math module method to find prime factors for non-negative int n

2020-03-20 Thread Tim Peters
Tim Peters added the comment: Good idea, but yet another that really belongs in an `imath` module (which doesn't yet exist). How ambitious should it be? Sympy supplies a `factorint()` function for this, which uses 4 approaches under the covers: perfect power, trial division, Pollard rho,

[issue40005] Getting different result in python 2.7 and 3.7.

2020-03-20 Thread Tim Peters
Change by Tim Peters : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue40005] Getting different result in python 2.7 and 3.7.

2020-03-20 Thread Eric V. Smith
Eric V. Smith added the comment: I agree it's not a bug. It's a known difference between Windows and Linux, due to fork() semantics. -- ___ Python tracker ___

[issue40005] Getting different result in python 2.7 and 3.7.

2020-03-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: Bharat, when responding by email, *please* delete from your response the the post you are responding to. Your response is added below that message, and including it is duplicate noise. Tim, you seem to be saying that this should be closed as 'not a bug'.

[issue40028] Math module method to find prime factors for non-negative int n

2020-03-20 Thread Mark Dickinson
Change by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40016] Clarify flag case in `re` module

2020-03-20 Thread Ram Rachum
Ram Rachum added the comment: I updated my PR to match. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22699] Module source files not found when cross-compiling

2020-03-20 Thread Steve Dower
Steve Dower added the comment: > the multiarch approach allows you to install libraries and headers for many > architectures in the same installation/chroot That makes sense, but I'm not using it. So presumably I've added a configure option that I didn't need (either

[issue39988] Remove AugLoad and AugStore expression context from AST

2020-03-20 Thread Jack O'Connor
Jack O'Connor added the comment: Ah never mind, it looks like that's covered by https://bugs.python.org/issue3 -- ___ Python tracker ___

[issue39988] Remove AugLoad and AugStore expression context from AST

2020-03-20 Thread Jack O'Connor
Jack O'Connor added the comment: This change may have broken pyflakes on nightly Python. Is that expected or problematic? Error message: "pyflakes" failed during execution due to "module 'ast' has no attribute 'AugLoad'" Seen at:

[issue39975] Commands running in 3.7.6 Shell, but failing as script

2020-03-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: This tracker is for improving future versions of python. Questions about using current python belong on python-list or other help forums, such as stackoverflow. Reading the following will help you ask good questions.

[issue40028] Math module method to find prime factors for non-negative int n

2020-03-20 Thread Ross Rhodes
New submission from Ross Rhodes : Hello, Thoughts on a new function in the math module to find prime factors for non-negative integer, n? After a brief search, I haven't found previous enhancement tickets raised for this proposal, and I am not aware of any built-in method within either

[issue39971] Error in functional how-to example

2020-03-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: Looking around further, examples meant to be executable as is are given interactive prompts and needed doctest directives >>> gen #doctest: +ELLIPSIS I think that this example should get the same treatment. Non-executable examples are usually

[issue39971] Error in functional how-to example

2020-03-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: Working on PR. The example 1 further on has a stray meaningless ellipsis. for expr3 in sequence3 ... if condition3 Perhaps this was meant to follow the next line, but I will remove it. --

[issue39971] Error in functional how-to example

2020-03-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: In think examples should run and that '...' should be replaced by something like "' \n', ''". The blank string looks ahead to the next example, which adds ' if line != ""' to the comprehension. -- nosy: +terry.reedy stage: -> needs patch title:

[issue40025] enum: _generate_next_value_ is not called if its definition occurs after calls to auto()

2020-03-20 Thread Ethan Furman
Ethan Furman added the comment: Immediate solution is to raise an exception if `_generate_next_value_` is defined after members. Possible future solution is to save all member definitions until after class is defined. The exception-raising solution would require a check in `_EnumDict`

[issue22699] Module source files not found when cross-compiling

2020-03-20 Thread Matthias Klose
Matthias Klose added the comment: the multiarch approach allows you to install libraries and headers for many architectures in the same installation/chroot. This can then be used to cross-build stuff. you can check that on WSL with having Debian or Ubuntu installed. A short reference is

[issue39380] ftplib uses latin-1 as default encoding

2020-03-20 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: +1 from me as well. @SebastianGPedersen could you update the PR (constructor + doc changes)? -- ___ Python tracker ___

[issue39380] ftplib uses latin-1 as default encoding

2020-03-20 Thread Eric V. Smith
Eric V. Smith added the comment: I agree with Victor. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39939] Add str methods to remove prefixes or suffixes

2020-03-20 Thread Dennis Sweeney
Dennis Sweeney added the comment: Just posted it. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39966] mock 3.9 bug: Wrapped objects without __bool__ raise exception

2020-03-20 Thread Terry J. Reedy
Change by Terry J. Reedy : -- stage: -> test needed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39963] Subclassing slice objects

2020-03-20 Thread Terry J. Reedy
Change by Terry J. Reedy : -- stage: -> test needed type: -> enhancement versions: +Python 3.9 ___ Python tracker ___ ___

[issue39380] ftplib uses latin-1 as default encoding

2020-03-20 Thread STINNER Victor
STINNER Victor added the comment: I'm now fine with changing the default. But I would still prefer to have an encoding parameter in the constructor. Making these two changes at once now makes sense to me. -- ___ Python tracker

[issue39939] Add str methods to remove prefixes or suffixes

2020-03-20 Thread STINNER Victor
STINNER Victor added the comment: Where should I leave comments on the PEP? Do you plan to post it on python-dev soon? -- ___ Python tracker ___

[issue39360] python3.8 regression - ThreadPool join via __del__ hangs forever

2020-03-20 Thread Arkadiusz Miśkiewicz
Arkadiusz Miśkiewicz added the comment: So only this test (from first commit) should be added on master to check for further regressions in the area, right? -- ___ Python tracker

[issue40027] re.sub inconsistency beginning with 3.7

2020-03-20 Thread Wayne Davison
Wayne Davison added the comment: Another argument in favor of this being a bug, this does not exhibit the same doubling: txt = ' test' txt = re.sub(r'^\s*', '^', txt) That always substitutes once. -- ___ Python tracker

[issue39360] python3.8 regression - ThreadPool join via __del__ hangs forever

2020-03-20 Thread STINNER Victor
STINNER Victor added the comment: If you want to get a reliable behavior, don't rely on destructors. Python finalization is not determistic and destructors can be called while Python is not longer fully functional. Release ressources explicitly. For example, use multiprocessing.Pool with a

[issue40027] re.sub inconsistency beginning with 3.7

2020-03-20 Thread Wayne Davison
Wayne Davison added the comment: This is not the same thing because the match is anchored, so it is not adjacent to the prior match -- it is the same match. I think that r'\s*\Z' should behave the same way as r'\s*x' due to the anchor point. The current behavior is matching the same \Z

[issue22497] msiexec not creating msvcr90.dll with python -2.7.6.msi

2020-03-20 Thread Steve Dower
Change by Steve Dower : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue39360] python3.8 regression - ThreadPool join via __del__ hangs forever

2020-03-20 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Ok, so sadly it seems that we need to close this issue as is fixed in master but the backport is risky. -- stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue39360] python3.8 regression - ThreadPool join via __del__ hangs forever

2020-03-20 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39360] python3.8 regression - ThreadPool join via __del__ hangs forever

2020-03-20 Thread STINNER Victor
STINNER Victor added the comment: commit 4d96b4635aeff1b8ad41d41422ce808ce0b971c8 "bpo-39511: PyThreadState_Clear() calls on_delete (GH-18296)" "(...) The release_sentinel() function is now called when the C API is still fully working." This change is "safer" than the other one, but there is

[issue40027] re.sub inconsistency beginning with 3.7

2020-03-20 Thread Matthew Barnett
Matthew Barnett added the comment: Duplicate of Issue39687. See https://docs.python.org/3/library/re.html#re.sub and https://docs.python.org/3/whatsnew/3.7.html#changes-in-the-python-api. -- resolution: -> duplicate stage: -> resolved status: open -> closed

[issue22699] Module source files not found when cross-compiling

2020-03-20 Thread Steve Dower
Steve Dower added the comment: > I think the patch is wrong. why would you want to differentiate between > native and cross builds? Because the multiarch headers are incompatible with my SDK's headers, and because of the -I ordering they override mine. I tried swapping the order of calls

[issue39360] python3.8 regression - ThreadPool join via __del__ hangs forever

2020-03-20 Thread STINNER Victor
STINNER Victor added the comment: > Victor, are you OK if we backport both changes to 3.8? Let me look at commit 9ad58acbe8b90b4d0f2d2e139e38bb5aa32b7fb6: "bpo-19466: Py_Finalize() clears daemon threads earlier (GH-18848)" Calling _PyThreadState_DeleteExcept() in Py_FinalizeEx() is really

[issue39998] [C API] Remove PyEval_AcquireLock() and PyEval_ReleaseLock() functions

2020-03-20 Thread STINNER Victor
STINNER Victor added the comment: Oh no, PyEval_AcquireLock() and PyEval_ReleaseLock() are part of the limited C API (and so the stable ABI). Sadly, we have to keep them. I close the issue as rejected. > We cannot just remove functions from stable ABI. Alright, sadly it's part of the

[issue39998] [C API] Remove PyEval_AcquireLock() and PyEval_ReleaseLock() functions

2020-03-20 Thread STINNER Victor
STINNER Victor added the comment: (Trashcan is somehow off-topic here, but let me comment anyway ;-)) > See for example _PyTrash_deposit_object. I know that this one is kept for ABI backward compatibility... but the TRASHCAN API is excluded from the limited API. So I'm not sure that it is

[issue40027] re.sub inconsistency beginning with 3.7

2020-03-20 Thread Wayne Davison
New submission from Wayne Davison : There is an inconsistency in re.sub() when substituting at the end of a string using a prior match with a '*' qualifier: the substitution now occurs twice. For example: txt = re.sub(r'\s*\Z', "\n", txt) This should work like txt.rstrip() + "\n", but

[issue39998] [C API] Remove PyEval_AcquireLock() and PyEval_ReleaseLock() functions

2020-03-20 Thread STINNER Victor
STINNER Victor added the comment: Hum, I found multiple projects using PyEval_AcquireLock() and PyEval_ReleaseLock(). Many of them look abandonned. But a few were modified earlier than 1 year old. -- ntripcaster2: Latest commit on Jun 2019

[issue22699] Module source files not found when cross-compiling

2020-03-20 Thread Matthias Klose
Matthias Klose added the comment: I think the patch is wrong. why would you want to differentiate between native and cross builds? There should be a generic way to pick up those for both cross and native builds. -- ___ Python tracker

[issue22699] Module source files not found when cross-compiling

2020-03-20 Thread Steve Dower
Steve Dower added the comment: The values that are used are (apparently) correct, but most of sysconfig is not. That's very confusing, and makes it difficult to debug. I'm glad I get to maintain the *other* monster (MSBuild) :) I would much rather sysconfig had a single variable pointing

[issue22699] Module source files not found when cross-compiling

2020-03-20 Thread Steve Dower
Steve Dower added the comment: So it's possible that my first few attempts didn't have a matched build of Python on the host - the cross-build certainly relies on mixing the installed runtime with the source stdlib, so that could have been an early cause of issues. I can only suspect that

[issue39998] [C API] Remove PyEval_AcquireLock() and PyEval_ReleaseLock() functions

2020-03-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See for example _PyTrash_deposit_object. -- ___ Python tracker ___ ___ Python-bugs-list

[issue22699] Module source files not found when cross-compiling

2020-03-20 Thread Xavier de Gaye
Xavier de Gaye added the comment: > Is that epic line automatically generated? When cross compiling it is generated by the configure script and configure replaces the right hand side of "PYTHON_FOR_BUILD=@PYTHON_FOR_BUILD@" of Makefile.pre.in with the generated value into Makefile.pre. I

[issue39998] [C API] Remove PyEval_AcquireLock() and PyEval_ReleaseLock() functions

2020-03-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: We cannot just remove functions from stable ABI. We can undocument them, remove their declaration from header files, but we can't remove the implementation. Just make them always failing. -- nosy: +serhiy.storchaka

[issue39939] Add str methods to remove prefixes or suffixes

2020-03-20 Thread STINNER Victor
STINNER Victor added the comment: > https://github.com/python/peps/pull/1332 Thank you. And good luck for handling incoming discussions on the PEP ;-) -- ___ Python tracker

[issue39946] Remove _PyThreadState_GetFrame

2020-03-20 Thread STINNER Victor
STINNER Victor added the comment: I removed the function. FYI I asked Armin Rigo, the author of _PyThreadState_GetFrame, if PyPy uses it: no, it doesn't. Moreover, psyco project is outdated, only supports Python 2.6 and older, and is superseded by PyPy. -- resolution: -> fixed

[issue39946] Remove _PyThreadState_GetFrame

2020-03-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset 6723e933c4d90a408cf3818362a0e4de6d84c932 by Victor Stinner in branch 'master': bpo-39946: Remove _PyThreadState_GetFrame (GH-19094) https://github.com/python/cpython/commit/6723e933c4d90a408cf3818362a0e4de6d84c932 --

[issue39998] [C API] Remove PyEval_AcquireLock() and PyEval_ReleaseLock() functions

2020-03-20 Thread STINNER Victor
STINNER Victor added the comment: PyEval_AcquireLock() is declared with Py_DEPRECATED(3.2) since Python 3.7 PyEval_ReleaseLock() is not declared with Py_DEPRECATED(), but PyEval_ReleaseLock() cannot be used without PyEval_AcquireLock(). -- ___

[issue39946] Remove _PyThreadState_GetFrame

2020-03-20 Thread STINNER Victor
Change by STINNER Victor : -- title: Is it time to remove _PyThreadState_GetFrame() hook? -> Remove _PyThreadState_GetFrame ___ Python tracker ___

[issue39946] Is it time to remove _PyThreadState_GetFrame() hook?

2020-03-20 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +18454 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19094 ___ Python tracker ___

[issue39946] Is it time to remove _PyThreadState_GetFrame() hook?

2020-03-20 Thread STINNER Victor
STINNER Victor added the comment: It looks safe to remove this feature. I failed to find any recent user of _PyThreadState_GetFrame. Moreover, _PyRuntime.getframe and _PyThreadState_GetFrame have been moved to the internal C API in Python 3.7. This C API was not accessible by third-party

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

2020-03-20 Thread STINNER Victor
STINNER Victor added the comment: I changed my mind. I managed to implement bpo-39984 without needing my PR 19063, so I closed it. -- ___ Python tracker ___

[issue40026] Create render_*_diff variants to the *_diff functions in difflib

2020-03-20 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40026] Create render_*_diff variants to the *_diff functions in difflib

2020-03-20 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +tim.peters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39946] Is it time to remove _PyThreadState_GetFrame() hook?

2020-03-20 Thread STINNER Victor
STINNER Victor added the comment: I added PyThreadState_GetFrame() function in bpo-39947: commit fd1e1a18fa3befe5b6eeac32e0561e15c7e5164b. -- ___ Python tracker ___

[issue39947] Make the PyThreadState structure opaque (move it to the internal C API)

2020-03-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset fd1e1a18fa3befe5b6eeac32e0561e15c7e5164b by Victor Stinner in branch 'master': bpo-39947: Add PyThreadState_GetFrame() function (GH-19092) https://github.com/python/cpython/commit/fd1e1a18fa3befe5b6eeac32e0561e15c7e5164b --

[issue27807] Prevent site-packages .pth files from causing test_site failure: test_site.test_startup_imports() failure

2020-03-20 Thread STINNER Victor
STINNER Victor added the comment: The issue is now fixed in 3.7, 3.8 and master branches. Thanks Chris Angelico for the bug report. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.7, Python 3.8, Python 3.9 -Python 3.6

[issue27807] Prevent site-packages .pth files from causing test_site failure: test_site.test_startup_imports() failure

2020-03-20 Thread miss-islington
miss-islington added the comment: New changeset 6056b7b84f2f77e2c3b49a18cfebe061fc23a08a by Miss Islington (bot) in branch '3.7': [3.8] bpo-27807: Skip test_site.test_startup_imports() if pth file (GH-19060) (GH-19090)

[issue39939] Add str methods to remove prefixes or suffixes

2020-03-20 Thread Dennis Sweeney
Dennis Sweeney added the comment: https://github.com/python/peps/pull/1332 -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue33608] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2020-03-20 Thread STINNER Victor
STINNER Victor added the comment: I partially reimplemented commit ef4ac967e2f3a9a18330cc6abe14adb4bc3d0465 in the following issues: * bpo-39984: Move some ceval fields from _PyRuntime.ceval to PyInterpreterState.ceval * bpo-40010: Inefficient signal handling in multithreaded applications *

[issue40026] Create render_*_diff variants to the *_diff functions in difflib

2020-03-20 Thread Daniel
New submission from Daniel : Currently difflib offers no way to synthesize a diff output without having to assemble the original and modified strings and then asking difflib to calculate the diff. It would be nice if I could just call a `render_unified_diff(a, b, grouped_opcodes)` and get a

[issue40010] Inefficient signal handling in multithreaded applications

2020-03-20 Thread STINNER Victor
Change by STINNER Victor : -- title: Inefficient sigal handling in multithreaded applications -> Inefficient signal handling in multithreaded applications ___ Python tracker

[issue27807] Prevent site-packages .pth files from causing test_site failure: test_site.test_startup_imports() failure

2020-03-20 Thread miss-islington
Change by miss-islington : -- pull_requests: +18453 pull_request: https://github.com/python/cpython/pull/19093 ___ Python tracker ___

[issue27807] Prevent site-packages .pth files from causing test_site failure: test_site.test_startup_imports() failure

2020-03-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset ba26bf30940f4347fedcf8ebc374c6e2dc375afa by Victor Stinner in branch '3.8': [3.8] bpo-27807: Skip test_site.test_startup_imports() if pth file (GH-19060) (GH-19090)

[issue40010] Inefficient sigal handling in multithreaded applications

2020-03-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset d83168854e19d0381fa57db25fca6c622917624f by Victor Stinner in branch 'master': bpo-40010: Optimize pending calls in multithreaded applications (GH-19091) https://github.com/python/cpython/commit/d83168854e19d0381fa57db25fca6c622917624f

[issue40025] enum: _generate_next_value_ is not called if its definition occurs after calls to auto()

2020-03-20 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +barry, eli.bendersky, ethan.furman ___ Python tracker ___ ___ Python-bugs-list

[issue39947] Make the PyThreadState structure opaque (move it to the internal C API)

2020-03-20 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +18452 pull_request: https://github.com/python/cpython/pull/19092 ___ Python tracker ___

[issue40010] Inefficient sigal handling in multithreaded applications

2020-03-20 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +18451 pull_request: https://github.com/python/cpython/pull/19091 ___ Python tracker ___

[issue27807] Prevent site-packages .pth files from causing test_site failure: test_site.test_startup_imports() failure

2020-03-20 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +18450 pull_request: https://github.com/python/cpython/pull/19090 ___ Python tracker ___

[issue27807] Prevent site-packages .pth files from causing test_site failure: test_site.test_startup_imports() failure

2020-03-20 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +18449 pull_request: https://github.com/python/cpython/pull/19089 ___ Python tracker

[issue40010] Inefficient sigal handling in multithreaded applications

2020-03-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset d2a8e5b42c5e9c4e745a0589043a8aebb49f8ca2 by Victor Stinner in branch 'master': bpo-40010: COMPUTE_EVAL_BREAKER() checks for subinterpreter (GH-19087) https://github.com/python/cpython/commit/d2a8e5b42c5e9c4e745a0589043a8aebb49f8ca2 --

[issue40025] enum: _generate_next_value_ is not called if its definition occurs after calls to auto()

2020-03-20 Thread Luis E.
Change by Luis E. : -- components: -Documentation ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40025] enum: _generate_next_value_ is not called if its definition occurs after calls to auto()

2020-03-20 Thread Luis E.
New submission from Luis E. : I ran into this issue when attempting to add a custom _generate_next_value_ method to an existing Enum. Adding the method definition to the bottom of the class causes it to not be called at all: from enum import Enum, auto class E(Enum): A = auto()

[issue40020] growable_comment_array_add leaks, causes crash

2020-03-20 Thread Dong-hee Na
Change by Dong-hee Na : -- versions: +Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39939] Add str methods to remove prefixes or suffixes

2020-03-20 Thread Walter Dörwald
Walter Dörwald added the comment: IMHO the names don't fit Pythons current naming scheme, so what about naming them "lchop" and "rchop"? -- nosy: +doerwalter ___ Python tracker

[issue39966] mock 3.9 bug: Wrapped objects without __bool__ raise exception

2020-03-20 Thread Amir Mohamadi
Amir Mohamadi added the comment: I'd like to work on it. Should I add tests to 'Lib/unittest/test/testmock/testmock.py'?? -- nosy: +Amir ___ Python tracker ___

[issue22699] Module source files not found when cross-compiling

2020-03-20 Thread Steve Dower
Steve Dower added the comment: Is that epic line automatically generated? It didn't work for me for some reason (was trying to launch the built Python, not the host). Even so, I got to the point of filling in all those values manually while testing sysconfig, and while I'm 100% sure

[issue40024] Add _PyModule_AddType private helper function

2020-03-20 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch pull_requests: +18448 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19088 ___ Python tracker ___

[issue40024] Add _PyModule_AddType private helper function

2020-03-20 Thread Dong-hee Na
New submission from Dong-hee Na : See: https://github.com/python/cpython/pull/19084#discussion_r395486583 -- assignee: corona10 components: C API messages: 364661 nosy: corona10, vstinner priority: normal severity: normal status: open title: Add _PyModule_AddType private helper

[issue40010] Inefficient sigal handling in multithreaded applications

2020-03-20 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +18447 pull_request: https://github.com/python/cpython/pull/19087 ___ Python tracker ___

[issue40019] test_gdb should better detect when Python is optimized

2020-03-20 Thread STINNER Victor
STINNER Victor added the comment: The fix works as expected: test_gdb passed on PR 19077. Well, likely because a few tests have been skipped. I don't think that in test_gdb can do better than skipping the test if gdb fails to read debug information. --

[issue40010] Inefficient sigal handling in multithreaded applications

2020-03-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset da2914db4b6f786a1e9f0b424efeeb6ca9418912 by Victor Stinner in branch 'master': bpo-40010: Pass tstate to ceval GIL functions (GH-19077) https://github.com/python/cpython/commit/da2914db4b6f786a1e9f0b424efeeb6ca9418912 --

[issue22699] Module source files not found when cross-compiling

2020-03-20 Thread Xavier de Gaye
Xavier de Gaye added the comment: Steve wrote: > In my build, I've set PYTHON_FOR_BUILD=python3.8 This will not work, PYTHON_FOR_BUILD when cross-compiling is set by configure as: PYTHON_FOR_BUILD='_PYTHON_PROJECT_BASE=$(abs_builddir) _PYTHON_HOST_PLATFORM=$(_PYTHON_HOST_PLATFORM)

[issue39939] Add str methods to remove prefixes or suffixes

2020-03-20 Thread STINNER Victor
STINNER Victor added the comment: The PEP is a good start. Can you try to convert it to a PR on https://github.com/python/peps/ ? It seems like the next available PEP number is 616. I would prefer to leave comments on a PR. -- ___ Python tracker

[issue40011] Tkinter widget events are of type Tuple

2020-03-20 Thread Ned Deily
Change by Ned Deily : -- nosy: +gpolo, serhiy.storchaka type: crash -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing

[issue40011] Tkinter widget events are of type Tuple

2020-03-20 Thread Ned Deily
Change by Ned Deily : -- Removed message: https://bugs.python.org/msg364593 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue40011] Tkinter widget events are of type Tuple

2020-03-20 Thread Ned Deily
Change by Ned Deily : -- Removed message: https://bugs.python.org/msg364586 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-03-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8334f30a74abcf7e469b901afc307887aa85a888 by Hai Shi in branch 'master': bpo-1635741: Port _weakref extension module to multiphase initialization (PEP 489) (GH-19084)

[issue39797] shutdown() in socketserver.BaseServer should be in a different thread from serve_forever()

2020-03-20 Thread Ned Deily
Ned Deily added the comment: Thank you for your PR! -- nosy: +ned.deily resolution: -> fixed stage: patch review -> resolved status: open -> closed type: enhancement -> versions: -Python 3.5, Python 3.6 ___ Python tracker

[issue39797] shutdown() in socketserver.BaseServer should be in a different thread from serve_forever()

2020-03-20 Thread miss-islington
miss-islington added the comment: New changeset 64937d308c71a5c95627b0a0d0574d164c0cf30a by Miss Islington (bot) in branch '3.7': bpo-39797 Changes to socketserver.BaseServer's shutdown() method. (GH-18929) https://github.com/python/cpython/commit/64937d308c71a5c95627b0a0d0574d164c0cf30a

  1   2   >