[issue41566] Include much faster DEFLATE implementations in Python's gzip and zlib libraries. (isa-l)

2020-08-17 Thread Ruben Vorderman
Ruben Vorderman added the comment: > That might be an option then. CPython could use the existing library if it is > available. Dynamic linking indeed seems like a great option here! Users who care about this will probably have the 'isal' and 'libdeflateO' packages installed on their machin

[issue41565] from os.path import join join('3', '{:3') return '{:3' in windows

2020-08-17 Thread song super
song super <2262720...@qq.com> added the comment: I mean,os.path.join('3', '{:3') return '{:3' in windows,However,os.path.join('3', '{:3') return '3/{:3'in linux,output result not '3'in windows,why? for example: >>> from os.path import join >>> join('3', '{:3') output:'{:3' >>> join('3', '{

[issue41513] Scale by power of two in math.hypot()

2020-08-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: Here's a much cheaper way to get correctly rounded results almost all of the time. It uses Serhiy's idea for scaling by a power of two, Tim's idea for Veltkamp-Dekker splitting, my variant of Neumaier summation, and the paper's differential correction.

[issue41560] pathlib.Path.glob fails on empty string

2020-08-17 Thread Alexander Heger
Alexander Heger added the comment: In my code, having been translated form use of `os.path` to `pathlib.Path` the change in behaviour caused errors and required significant refactoring. Why not just return the empty list if there is no match, as is done in other cases when there is no matc

[issue41523] functools.cached_property does not satisfy the property check

2020-08-17 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Pyth

[issue41571] Implement thread-related commands in pdb

2020-08-17 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Another possibility would be accept the reality of the switching delay (so all the other commands work without extra changes) and working to minimize it by setting sys.setswitchinterval() to something ridiculously low and then switching it back to the

[issue41523] functools.cached_property does not satisfy the property check

2020-08-17 Thread William Pickard
William Pickard added the comment: Another thing to note Raymond, as I stated before, example C is, from an external context, is a plain property object who's "fget" attribute is an instance of whatever "lru_cache" returns. isinstance won't be able to differentiate between example "a" and "c

[issue41571] Implement thread-related commands in pdb

2020-08-17 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: We may need to think as well how some commands interest when you are in a different thread context. For instance, stepping into something when you are in a different thread is equivalent to setting a breakpoints in the next thread instruction, so this

[issue41571] Implement thread-related commands in pdb

2020-08-17 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: * Displaying all threads is trivial. * Stopping all threads is trivial because of the GIL. When pdb runs in a thread all other threads cannot execute python code. They can execute native code bit there is not much we can do about it. * Switching thre

[issue41523] functools.cached_property does not satisfy the property check

2020-08-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: I recommend closing this. As Serhiy pointed out, they are profoundly different. Currently, a user can rely on the isinstance() check to differentiate them. So, changing the behavior would be a regression. AFAICT, a user would not be able to deduce anyt

[issue41573] Correct wrong sentences in General FAQ

2020-08-17 Thread wyz23x2
wyz23x2 added the comment: GH-21915 submitted. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue41573] Correct wrong sentences in General FAQ

2020-08-17 Thread wyz23x2
Change by wyz23x2 : -- keywords: +patch pull_requests: +21031 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21915 ___ Python tracker ___

[issue41573] Correct wrong sentences in General FAQ

2020-08-17 Thread wyz23x2
New submission from wyz23x2 : Release candidate is "rc" not "c"; Python 2.x is not supported anymore. -- assignee: docs@python components: Documentation messages: 375583 nosy: docs@python, wyz23x2 priority: normal severity: normal status: open title: Correct wrong sentences in General F

[issue41541] [PATCH] Make pty.spawn set window size

2020-08-17 Thread Soumendra Ganguly
Soumendra Ganguly added the comment: Further note: login_tty will also enable us to set slave termios from the parent process in pty.spawn. Due to the fact that reviewing patches can be overwhelming, v0.5 removes a lot of stuff and instead simply performs window resize by calling ioctl TIOCS

[issue41572] Documentation wording fix on Lib/asyncio/transports.py

2020-08-17 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 2.0 -> 3.0 pull_requests: +21030 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21914 ___ Python tracker _

[issue30493] Increase coverage of base64

2020-08-17 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch nosy: +ZackerySpytz nosy_count: 2.0 -> 3.0 pull_requests: +21029 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21913 ___ Python tracker

[issue41572] Documentation wording fix on Lib/asyncio/transports.py

2020-08-17 Thread Cleber Rosa
New submission from Cleber Rosa : The docstring on asyncio.transports.BaseTransport.close() is missing a verb. -- assignee: docs@python components: Documentation messages: 375581 nosy: cleber.gnu, docs@python priority: normal severity: normal status: open title: Documentation wording fi

[issue41571] Implement thread-related commands in pdb

2020-08-17 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- Removed message: https://bugs.python.org/msg375580 ___ Python tracker ___ ___ Python-bugs-list

[issue41571] Implement thread-related commands in pdb

2020-08-17 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- title: Allow pdb to switch to a different thread -> Implement thread-related commands in pdb ___ Python tracker ___ __

[issue41571] Allow pdb to switch to a different thread

2020-08-17 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : Unfortunately, the thread experience with pdb is not as good as it could be due to the lack of thread-related commands. In other debuggers like gdb, is common to be able to do some of the following operations: * list all threads * switch the context

[issue41571] Implement thread-related commands in pdb

2020-08-17 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I will start preparing some pull requests unless someone has any concerns about this -- ___ Python tracker ___ __

[issue41571] Allow pdb to switch to a different thread

2020-08-17 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- components: +Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue41555] re.sub replaces twice

2020-08-17 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue41560] pathlib.Path.glob fails on empty string

2020-08-17 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > This is not the desired or expected behaviour, which would be to just return > `path` if it exists. That's the expected behaviour if the call is successful (it does not violate any pre-condition. > This behaviour is also inconsistent with the docu

[issue1524081] logging using the SysLog handler fails if locale is set

2020-08-17 Thread Greg Price
Greg Price added the comment: For the record because this issue is mentioned in a comment in logging/handlers.py and people are sometimes confused by it today: > This happens because in that particular locale, > "INFO".lower() != "info" Since Python 3, this no longer happens: str.lower() and

[issue41568] test_zoneinfo leaked [84, 84, 84] references

2020-08-17 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +lukasz.langa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue41568] test_zoneinfo leaked [84, 84, 84] references

2020-08-17 Thread miss-islington
miss-islington added the comment: New changeset e3cafebb5cb2bc4df03afb03fa206a37d076d7ee by Miss Islington (bot) in branch '3.9': bpo-41568: Fix refleaks in zoneinfo subclasses (GH-21907) https://github.com/python/cpython/commit/e3cafebb5cb2bc4df03afb03fa206a37d076d7ee -- _

[issue40756] Second argument of LoggerAdapter.__init__ should default to None

2020-08-17 Thread Arturo Escaip
Arturo Escaip added the comment: Done. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue40756] Second argument of LoggerAdapter.__init__ should default to None

2020-08-17 Thread Arturo Escaip
Change by Arturo Escaip : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue41568] test_zoneinfo leaked [84, 84, 84] references

2020-08-17 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +21027 pull_request: https://github.com/python/cpython/pull/21912 ___ Python tracker _

[issue41568] test_zoneinfo leaked [84, 84, 84] references

2020-08-17 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset c3dd7e45cc5d36bbe2295c2840faabb5c75d83e4 by Paul Ganssle in branch 'master': bpo-41568: Fix refleaks in zoneinfo subclasses (GH-21907) https://github.com/python/cpython/commit/c3dd7e45cc5d36bbe2295c2840faabb5c75d83e4 -- ___

[issue41540] Test test_maxcontext_exact_arith (_decimal) consumes all memory on AIX

2020-08-17 Thread Stefan Krah
Stefan Krah added the comment: Well, I misunderstood this sentence then, so it's just for testing. :) > Our customers should use it or use ulimit -d. One will hit this issue also when following the MAX_PREC section in the FAQ, but that is a rare case: https://docs.python.org/3.10/library/de

[issue41100] Build failure on macOS 11 (beta)

2020-08-17 Thread Ned Deily
Ned Deily added the comment: New changeset a0ad82959652ff64c99231f457fd740b17330514 by Ned Deily in branch '3.7': bpo-41100: additional fixes for testing on macOS 11 Big Sur Intel https://github.com/python/cpython/commit/a0ad82959652ff64c99231f457fd740b17330514 -- _

[issue41540] Test test_maxcontext_exact_arith (_decimal) consumes all memory on AIX

2020-08-17 Thread David Edelsohn
David Edelsohn added the comment: > About PSALLOC=early , I confirm that it perfectly fixes the issue. > I'm surprised, because it is unspeakably slow on this machine, These statements are not contradictory. No one is suggesting that Python always should run with PSALLOC=early. --

[issue41540] Test test_maxcontext_exact_arith (_decimal) consumes all memory on AIX

2020-08-17 Thread Stefan Krah
Stefan Krah added the comment: > That's probably due to a very small size of the Paging Space of the AIX > machine you used for testing. That is the case, the machine has 160GB of memory and 1GB of paging space. I guess it is configured specifically for not freezing. > About PSALLOC=early

[issue35024] Incorrect logging in importlib when '.pyc' file creation fails

2020-08-17 Thread Irit Katriel
Irit Katriel added the comment: This seems resolved, can it be closed? -- nosy: +iritkatriel ___ Python tracker ___ ___ Python-bugs

[issue41545] gc API requiring matching number of gc.disable - gc.enable calls

2020-08-17 Thread Yonatan Goldschmidt
Yonatan Goldschmidt added the comment: Hmm... I didn't think of overlapping lock periods. You are right, Dennis, a counter must be managed. -- ___ Python tracker ___

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

2020-08-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8aa163eea6b0fb4693f6c0a314d4f2ccada51d70 by Hai Shi in branch 'master': bpo-1635741: Explict GC collect after PyInterpreterState_Clear() (GH-21902) https://github.com/python/cpython/commit/8aa163eea6b0fb4693f6c0a314d4f2ccada51d70 -- _

[issue41553] encoded-word abused for header line folding causes RFC 2047 violation

2020-08-17 Thread R. David Murray
R. David Murray added the comment: Yes for the registry changes. I thought we had fixed the bug that was causing message-id to get encoded, but maybe it still exists in 3.7? I don't remember when we fixed it (and I may be remembering wrong!) As for X- "unstructured headers" getting trashed

[issue41570] Add DearPyGui to faq/gui.rst

2020-08-17 Thread Jonathan Hoffstadt
Change by Jonathan Hoffstadt : -- keywords: +patch pull_requests: +21026 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21911 ___ Python tracker _

[issue41570] Add DearPyGui to faq/gui.rst

2020-08-17 Thread Jonathan Hoffstadt
Change by Jonathan Hoffstadt : -- assignee: docs@python components: Documentation nosy: docs@python, jhoffstadt priority: normal severity: normal status: open title: Add DearPyGui to faq/gui.rst type: enhancement versions: Python 3.9 ___ Python track

[issue41546] pprint() gives exception when ran from pythonw

2020-08-17 Thread Steve Dower
Steve Dower added the comment: I'm inclined to agree that it should pass silently in this case, as if it were printing with print() rather than .write(). What better meaning is there for sys.stdout == None than "no output"? -- versions: +Python 3.10 -Python 3.8 _

[issue40756] Second argument of LoggerAdapter.__init__ should default to None

2020-08-17 Thread Irit Katriel
Irit Katriel added the comment: looks like this can be closed now? -- nosy: +iritkatriel ___ Python tracker ___ ___ Python-bugs-lis

[issue14134] xmlrpc.client.ServerProxy needs timeout parameter

2020-08-17 Thread Matt Prahl
Change by Matt Prahl : -- nosy: +mprahl nosy_count: 7.0 -> 8.0 pull_requests: +21025 pull_request: https://github.com/python/cpython/pull/21909 ___ Python tracker ___ _

[issue14134] xmlrpc.client.ServerProxy needs timeout parameter

2020-08-17 Thread Roundup Robot
Change by Roundup Robot : -- nosy: +python-dev nosy_count: 6.0 -> 7.0 pull_requests: +21024 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/21908 ___ Python tracker ___

[issue40994] Very confusing documenation for abc.Collections

2020-08-17 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40815] Multiprocessing docs don't describe thread-safety

2020-08-17 Thread Irit Katriel
Irit Katriel added the comment: Probably another example: issue41567 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue41568] test_zoneinfo leaked [84, 84, 84] references

2020-08-17 Thread Paul Ganssle
Change by Paul Ganssle : -- keywords: +patch pull_requests: +21023 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21907 ___ Python tracker ___ ___

[issue41526] Python 3.9.0rc1 "setup successful" dialog box overflow

2020-08-17 Thread Peter Lovett
Peter Lovett added the comment: :-) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue41569] json.JSONEncoder.default should be called for dict keys as well

2020-08-17 Thread David Byrne
New submission from David Byrne : Sub-classing and overriding json.JSONEncoder.default allows users to create custom serialisation for objects that can’t otherwise be serialized. However, this method is only called for dictionary values such that dictionary supported keys (i.e. hashable types)

[issue41183] Workaround or fix for SSL ".._KEY_TOO_SMALL" test failures

2020-08-17 Thread Larry Hastings
Larry Hastings added the comment: > Does testing with the environment variable OPENSSL_CONF=/non-existing-file > workaround the remaining issues? Sadly, no. I get the same failures whether or not that environment variable is set. And I confirmed that the environment variable survives Pytho

[issue41025] C implementation of ZoneInfo cannot be subclassed

2020-08-17 Thread Paul Ganssle
Paul Ganssle added the comment: There are two refleaks here. One is a reference leaking to the weak cache in `__init_subclass__` (one leak every time a subclass is created), and the other is that when `subclass.clear_cache()` is called, it sets `ZONEINFO_STRONG_CACHE = NULL`, thus causing a

[issue41545] gc API requiring matching number of gc.disable - gc.enable calls

2020-08-17 Thread Dennis Sweeney
Dennis Sweeney added the comment: FWIW I forgot the gc.disable() line in the contextmanager, but what I said still applies. -- ___ Python tracker ___

[issue41545] gc API requiring matching number of gc.disable - gc.enable calls

2020-08-17 Thread Dennis Sweeney
Dennis Sweeney added the comment: The save-a-boolean-for-each-context-manager approach has an issue if used with concurrent generators, where the lifetimes of two generator objects might be overlapping but not completely nested, as shown below. The same issue should arise when using multiple

[issue41567] multiprocessing.Pool from concurrent threads failure on 3.9.0rc1

2020-08-17 Thread Irit Katriel
Irit Katriel added the comment: I think this is no a bug, on the basis that multiprocessing.Pool is not thread-safe. -- ___ Python tracker ___ ___

[issue41526] Python 3.9.0rc1 "setup successful" dialog box overflow

2020-08-17 Thread Steve Dower
Steve Dower added the comment: Thanks for the report! This should be in the next 3.9 RC. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue41564] Cannot access member "hex" for type "ByteString"

2020-08-17 Thread Eric V. Smith
Eric V. Smith added the comment: We need to know how to trigger the problem you're seeing. You need to provide code we can run that shows the error you're seeing. -- ___ Python tracker _

[issue41566] Include much faster DEFLATE implementations in Python's gzip and zlib libraries. (isa-l)

2020-08-17 Thread jack1142
Change by jack1142 : -- nosy: +jack1142 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue41564] Cannot access member "hex" for type "ByteString"

2020-08-17 Thread Matt Joiner
Matt Joiner added the comment: https://github.com/python/cpython/blob/48b069a003ba6c684a9ba78493fbbec5e89f10b8/Lib/_collections_abc.py#L953 https://github.com/python/cpython/blob/0e95bbf08571e98f4b688524efc2dcf20d315d91/Lib/typing.py#L1612 -- status: pending -> open _

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

2020-08-17 Thread hai shi
Change by hai shi : -- pull_requests: +21022 pull_request: https://github.com/python/cpython/pull/21902 ___ Python tracker ___ ___

[issue40782] AbstactEventLoop.run_in_executor is listed as an async method, but should actually return a Future

2020-08-17 Thread Guido van Rossum
Change by Guido van Rossum : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue40782] AbstactEventLoop.run_in_executor is listed as an async method, but should actually return a Future

2020-08-17 Thread miss-islington
miss-islington added the comment: New changeset d6bdf6d52f0400df1bd1dce24aaad9514015c755 by Miss Islington (bot) in branch '3.9': bpo-40782: Change asyncio.AbstractEventLoop.run_in_executor to be a method not a coroutine (GH-21852) https://github.com/python/cpython/commit/d6bdf6d52f0400df1bd

[issue40782] AbstactEventLoop.run_in_executor is listed as an async method, but should actually return a Future

2020-08-17 Thread miss-islington
miss-islington added the comment: New changeset 1baa8b14ee23ef3040923f53565c8d1bafd28117 by Miss Islington (bot) in branch '3.8': bpo-40782: Change asyncio.AbstractEventLoop.run_in_executor to be a method not a coroutine (GH-21852) https://github.com/python/cpython/commit/1baa8b14ee23ef30409

[issue41568] test_zoneinfo leaked [84, 84, 84] references

2020-08-17 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- assignee: -> p-ganssle priority: normal -> release blocker versions: +Python 3.10, Python 3.9 ___ Python tracker ___ _

[issue41568] test_zoneinfo leaked [84, 84, 84] references

2020-08-17 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : OK (skipped=26) .. test_zoneinfo leaked [84, 84, 84] references, sum=252 test_zoneinfo leaked [41, 41, 41] memory blocks, sum=123 1 test failed again: test_zoneinfo == Tests result: FAILURE then FAILURE == Example failure: https://buildbot.py

[issue41566] Include much faster DEFLATE implementations in Python's gzip and zlib libraries. (isa-l)

2020-08-17 Thread Stefan Behnel
Stefan Behnel added the comment: > libdeflate and isa-l use different compression ratio's for the levels. I don't see why these would need to translate 1:1. The zlib module is a Python API wrapper, it can do its own mapping here, or use the libraries selectively only for some compression lev

[issue40782] AbstactEventLoop.run_in_executor is listed as an async method, but should actually return a Future

2020-08-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +21020 pull_request: https://github.com/python/cpython/pull/21903 ___ Python tracker ___ __

[issue40782] AbstactEventLoop.run_in_executor is listed as an async method, but should actually return a Future

2020-08-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +21021 pull_request: https://github.com/python/cpython/pull/21904 ___ Python tracker ___ __

[issue40782] AbstactEventLoop.run_in_executor is listed as an async method, but should actually return a Future

2020-08-17 Thread miss-islington
miss-islington added the comment: New changeset 29f84294d88ec493c2de9d6e8dbc12fae3778771 by James Weaver in branch 'master': bpo-40782: Change asyncio.AbstractEventLoop.run_in_executor to be a method not a coroutine (GH-21852) https://github.com/python/cpython/commit/29f84294d88ec493c2de9d6e

[issue41566] Include much faster DEFLATE implementations in Python's gzip and zlib libraries. (isa-l)

2020-08-17 Thread Ruben Vorderman
Ruben Vorderman added the comment: nasm or yasm will work. I only have experience building it with nasm. But yes that is indeed a dependency. Personally I do not see the problem with adding nasm as a build dependency, as it opens up possibilities for even more performance optimizations in py

[issue41566] Include much faster DEFLATE implementations in Python's gzip and zlib libraries. (isa-l)

2020-08-17 Thread Stefan Behnel
Stefan Behnel added the comment: What about building the library? The readme says it needs nasm? That's not a standard dependency for the CPython build currently, which relies solely on a C compiler. -- ___ Python tracker

[issue41566] Include much faster DEFLATE implementations in Python's gzip and zlib libraries. (isa-l)

2020-08-17 Thread Stefan Behnel
Stefan Behnel added the comment: > This has to be in a PEP No, the bug tracker seems fine for this. -- nosy: +scoder resolution: not a bug -> stage: resolved -> needs patch status: closed -> open type: -> performance ___ Python tracker

[issue41567] multiprocessing.Pool from concurrent threads failure on 3.9.0rc1

2020-08-17 Thread Irit Katriel
Irit Katriel added the comment: I see the same in Python 3.10 on windows 10. If I change the relative imports to absolute imports in a couple of functions in multiprocessing.context as below, the attached (pool_error_on_3.9.py) script not longer raises the exception. def SimpleQueue(sel

[issue41292] Dead link in Windows FAQ

2020-08-17 Thread Nathaniel Manista
Change by Nathaniel Manista : -- nosy: +Nathaniel Manista ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue30757] pyinstaller can be added to docs, py2exe ref can be updated

2020-08-17 Thread Nathaniel Manista
Change by Nathaniel Manista : -- nosy: +Nathaniel Manista ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue41545] gc API requiring matching number of gc.disable - gc.enable calls

2020-08-17 Thread Yonatan Goldschmidt
Yonatan Goldschmidt added the comment: > This is exactly the motivation for context managers, no? I attached no_gc.py, > which works when nested and should additionally be thread-safe. My solution was roughly the same (also a context manager, but a bit simplified because I didn't need thread

[issue41567] multiprocessing.Pool from concurrent threads failure on 3.9.0rc1

2020-08-17 Thread Carl Drougge
New submission from Carl Drougge : If several threads try to start a multiprocessing.Pool at the same time when no pool has been started before this often fails with an exception like this (the exact import varies): Exception in thread Thread-2: Traceback (most recent call last): File "/tmp

[issue41032] locale.setlocale example incorrect

2020-08-17 Thread MarcoBakera
MarcoBakera added the comment: I have only reported the bug and do not know exactly how to proceed. I don't think there's anything wrong with taking over the bug. -- ___ Python tracker _

[issue41563] .python_history file causes considerable slowdown

2020-08-17 Thread bytecookie
bytecookie added the comment: > it is your responsibility to set a maximum history length. No, sorry. The problem is not the history file, is the massive slow down it causes. And if you have to utilize a process monitoring tool to find out that the history file is the cause, its not a matter

[issue41563] .python_history file causes considerable slowdown

2020-08-17 Thread Steven D'Aprano
Steven D'Aprano added the comment: > My history file is only 500 lines. *slaps forehead* Of course it is, I'm running a customer history hook that has a limit of 500 lines in the history file. It looks to me that by default the history feature is set to unlimited lines, so I guess that imp

[issue41563] .python_history file causes considerable slowdown

2020-08-17 Thread Steven D'Aprano
Steven D'Aprano added the comment: How very odd. I use the Python interactive interpreter extensively, and have done so for years. My history file is only 500 lines. Did you happen to inspect the file before deleting it to see if it contained something odd? What does this print for you?

[issue41540] Test test_maxcontext_exact_arith (_decimal) consumes all memory on AIX

2020-08-17 Thread Tony Reix
Tony Reix added the comment: Hi Stefan, In your message https://bugs.python.org/issue41540#msg375462 , you said: "However, instead of freezing the machine, the process gets a proper SIGKILL almost instantly." That's probably due to a very small size of the Paging Space of the AIX machine you

[issue41566] Include much faster DEFLATE implementations in Python's gzip and zlib libraries. (isa-l)

2020-08-17 Thread Ruben Vorderman
Ruben Vorderman added the comment: This has to be in a PEP. I am sorry I missplaced it on the bugtracker. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker __

[issue41565] from os.path import join join('3', '{:3') return '{:3' in windows

2020-08-17 Thread Eryk Sun
Eryk Sun added the comment: > I'm not sure if "}" could ever be valid drive letter The Windows file API is designed in a way to support almost any Unicode BMP character in a DOS drive designation. For example, the following creates "{:" as a substitute drive for "C:\\Temp": >>> DefineDo

[issue41546] pprint() gives exception when ran from pythonw

2020-08-17 Thread Vedran Čačić
Vedran Čačić added the comment: The big part of the justification for making print a function in Py3 is that it can be painlessly replaced with other functions, such as (example given by BDFL) pprint.pprint. I think we should do what we can to make the replacement as painless as possible. --

[issue41566] Include much faster DEFLATE implementations in Python's gzip and zlib libraries. (isa-l)

2020-08-17 Thread Ruben Vorderman
New submission from Ruben Vorderman : The gzip file format is quite ubiquitous and so is its first (?) free/libre implementation zlib with the gzip command line tool. This uses the DEFLATE algorithm. Lately some faster algorithms (most notable zstd) have popped up which have better speed and

[issue41100] Build failure on macOS 11 (beta)

2020-08-17 Thread Mika Hawkins
Mika Hawkins added the comment: Hi, What you can do is to verify builds on older macOS versions and you can also support building using non-system libffi on macOS. Hope this hhelps... Regards, Mika Hawkins -- nosy: +Mika_Hawkins ___ Python tracke

[issue41565] from os.path import join join('3', '{:3') return '{:3' in windows

2020-08-17 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'm fairly sure this is intended behaviour, see . The second arguments is "{:3", the colon means this is interpreted as the the relative path "3" on drive "}:". I'm not sure if "}" could ever b

[issue41025] C implementation of ZoneInfo cannot be subclassed

2020-08-17 Thread STINNER Victor
STINNER Victor added the comment: > New changeset 87d8287865e5c9f137f6b5cf8c34c2c509eb5e9d by Paul Ganssle in > branch 'master': > bpo-41025: Fix subclassing for zoneinfo.ZoneInfo (GH-20965) This change introduced a reference leak. 3.9 and master branch are affected. $ make && ./python -m te