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

2020-08-19 Thread Ruben Vorderman
Ruben Vorderman added the comment: > Within the stdlib, I'd focus only on using things that can be used in a 100% > api compatible way with the existing modules. > Otherwise creating a new module and putting it up on PyPI to expose the > functionality from the libraries you want makes sense

[issue41574] Python[11231:143796] WARNING: running implicitly; please run panels using NSSavePanel rather than NSApplication.

2020-08-19 Thread Prudent
Prudent added the comment: It is also very weird to me. I checked the python version used in VS code, the version in use was 3.8. But it seems the used Tcl/Tk package still linked to the system-embedded Tck/Tk 8.5.9 on macOS. I found this description from "https://www.python.org/download/ma

[issue25229] distutils doesn't add "-Wl, " prefix to "-R" on Linux if the C compiler isn't named 'gcc'

2020-08-19 Thread Kenta Tsubouchi
Kenta Tsubouchi added the comment: This patch seems good for proprietary compilers in linux. Because such compilers need gcc-style link option. So I'll make PR. -- nosy: +ketsubouchi type: -> enhancement versions: -Python 2.7, Python 3.2, Python 3.3, Python 3.4, Python 3.5, Python 3

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

2020-08-19 Thread Jeffrey Kintscher
Change by Jeffrey Kintscher : -- nosy: +Jeffrey.Kintscher status: pending -> open ___ Python tracker ___ ___ Python-bugs-list mailin

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

2020-08-19 Thread Jeffrey Kintscher
Change by Jeffrey Kintscher : -- nosy: +Jeffrey.Kintscher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

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

2020-08-19 Thread Tim Peters
Tim Peters added the comment: Just FYI, if the "differential correction" step seems obscure to anyone, here's some insight, following a chain of mathematical equivalent respellings: result + x / (2 * result) = result + (sumsq - result**2) / (2 * result) = result + (sumsq - result**2) / result

[issue41585] policy.max_line_length is incorrectly assumed to never be None

2020-08-19 Thread Jeffrey Kintscher
Change by Jeffrey Kintscher : -- nosy: +Jeffrey.Kintscher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue41593] pathlib PermissionError problem

2020-08-19 Thread Jeffrey Kintscher
Change by Jeffrey Kintscher : -- nosy: +Jeffrey.Kintscher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue34215] streams.py:IncompleteReadError message is unclear when expected is None

2020-08-19 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +21038 pull_request: https://github.com/python/cpython/pull/21925 ___ Python tracker ___ __

[issue34215] streams.py:IncompleteReadError message is unclear when expected is None

2020-08-19 Thread Zackery Spytz
Change by Zackery Spytz : -- components: +asyncio nosy: +ZackerySpytz title: streams.py:IncompleteReadError is message is unclear when expected is None -> streams.py:IncompleteReadError message is unclear when expected is None versions: +Python 3.10 -Python 3.9 ___

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

2020-08-19 Thread Gregory P. Smith
Gregory P. Smith added the comment: fwiw, no PEP is needed for things like this. it'd just be an alternative library implementing the core of the zlib and/or gzip modules behind the scenes. normally this kind of thing would be done using a check for the availability of the library in config

[issue2889] curses for windows (alternative patch)

2020-08-19 Thread Maarten
Maarten added the comment: Current ncurses master is buildable on Visual Studio, using msys2. It should be possible to create a vcxproject and integrate it in the Visual Studio build. -- nosy: +maarten ___ Python tracker

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

2020-08-19 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: -21037 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue41595] curses' window.chgat does not change color when specifying curses.A_COLOR

2020-08-19 Thread Jeffrey Kintscher
Change by Jeffrey Kintscher : -- nosy: +Jeffrey.Kintscher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue41595] curses' window.chgat does not change color when specifying curses.A_COLOR

2020-08-19 Thread Maarten
Maarten added the comment: Equivalent c script of chgat.py Compile with: gcc chgat.c -lncurses -o chgat -- Added file: https://bugs.python.org/file49408/chgat.c ___ Python tracker __

[issue41595] curses' window.chgat does not change color when specifying curses.A_COLOR

2020-08-19 Thread Maarten
New submission from Maarten : Or'ing curses.A_COLOR in the `attr` argument of curses.window.chgat ends of with the line not showing. Actual Problem: The text is invisible/hidden/not shown. Using only the attribute curses.A_BLINK is fine. Expected: The color of the line is changed +the text st

[issue41594] Intermittent failures of loop.subprocess_exec() to capture output

2020-08-19 Thread Kyle Meyer
New submission from Kyle Meyer : I've been debugging an intermittent test failure in code that calls `loop.subprocess_exec` with an `asyncio.SubprocessProtocol` subclass. Here's a minimal example that I hope captures the issue. It's based closely off of the `DateProtocol` [example][1] in the as

[issue41590] "zip()" very slowly for this

2020-08-19 Thread Steven D'Aprano
Steven D'Aprano added the comment: If you know about timeit, why aren't you using it? In any case, I have just ran your nested_lists.py file, and on my computer, the last version with zip is the fastest version: 0 transpose1_0(lT) Time = 1.0627508163452149e-05 7 zip(*lT) Time = 1.551151275

[issue18233] SSLSocket.getpeercertchain()

2020-08-19 Thread JustAnotherArchivist
Change by JustAnotherArchivist : -- nosy: +JustAnotherArchivist ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

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

2020-08-19 Thread Julia Frances
Julia Frances added the comment: welcome to python.org in this website there are many ways to do python coding. You need to follow the guide and the rules on how to do python coding. -- hgrepos: +392 keywords: +patch message_count: 8.0 -> 9.0 nosy: +jfrances21 nosy_count: 3.0 -> 4.0 p

[issue41593] pathlib PermissionError problem

2020-08-19 Thread leonyxz
New submission from leonyxz : python 3.x FreeBSD 11.3-RELEASE-p12 with custom settings mentioned later. On vanilla configuration of FreeBSD there is no issue. Installation of FreeBSD in question has mac_bsdextended turned on (https://www.freebsd.org/cgi/man.cgi?query=mac_bsdextended&sektion=4&a

[issue41550] SimpleQueues put blocks if feeded with strings greater than 2**16-13 chars

2020-08-19 Thread Irit Katriel
Irit Katriel added the comment: The get and put functions of Queue have the optional 'block' and 'timeout' args that you need, and SimpleQueue doesn't. -- ___ Python tracker

[issue41550] SimpleQueues put blocks if feeded with strings greater than 2**16-13 chars

2020-08-19 Thread Raphael Grewe
Raphael Grewe added the comment: I used SimpleQueue on purpose because I only need the functions get and put. Of course I could also use Queue but that would be just a workaround for me. -- ___ Python tracker _

[issue41590] "zip()" very slowly for this

2020-08-19 Thread Vedran Čačić
Vedran Čačić added the comment: Third, where did you get the idea that transposing a "matrix" consisting of lists of varying length is a sensible operation? Your reference (Wikipedia) tells nothing about that case. I've never seen [[],[1]] called "a matrix". -- __

[issue41590] "zip()" very slowly for this

2020-08-19 Thread Vedran Čačić
Vedran Čačić added the comment: First, what you wrote with if...else is _not_ "if clause". It's a conditional expression. You'll recognize them easily if you remember that "if clause" in comprehensions never has an "else", while conditional expression always does. Second, speed is just one of

[issue41590] "zip()" very slowly for this

2020-08-19 Thread email0.ya
email0.ya added the comment: Above is a link to part of the tutorial. An example with a for statement at the beginning is good. I am not saying that it needs to be replaced with something. The above example reads: "A list comprehension consists of brackets containing an expression followed by

[issue41502] Option for Colored Logging in http.server Module

2020-08-19 Thread Mika Hawkins
Mika Hawkins added the comment: Yes I totally agree that it would be useful if the http.server module had an option for colored logging, That would be extremly helpful/useful. Thank you for putting that in... -- nosy: +Mika_Hawkins ___ Python trac

[issue41592] Make _SubParsersAction public

2020-08-19 Thread Eric Pederson
New submission from Eric Pederson : ArgumentParser.add_subparsers() returns a _SubParsersAction. This requires user code using type annotations to use a protected type which causes type checkers like PyCharm to complain. For example: def add_subparser(name: str, subparser: _SubParsersAction

[issue40204] Docs build error with Sphinx 3.0 due to invalid C declaration

2020-08-19 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +21036 pull_request: https://github.com/python/cpython/pull/21924 ___ Python tracker ___ __

[issue41587] Potential memory leak while using shared memory

2020-08-19 Thread 李超然
李超然 added the comment: Thank you Tim Peters for replying to me. I tried your demo and it is a proof exactly I want. It did prove that there is no memory issue. And I tried to modify my own code and showed the same result. I will close this issue. -- resolution: -> not a bug stage: -

[issue41584] Clarify documentation for binary arithmetic operation subclass __r*__ precedence

2020-08-19 Thread Brett Cannon
Brett Cannon added the comment: Right, there is a `lhs.__rsub__ is not rhs.__rsub__` check which needs to be clearly communicated in that note. -- ___ Python tracker ___

[issue41587] Potential memory leak while using shared memory

2020-08-19 Thread Tim Peters
Tim Peters added the comment: There's no evidence of a Python issue here, so I recommend closing this. It's not the Python bug tracker's job to try to make sense of platform-specific reporting tools, which, as already explained, can display exceedingly confusing numbers. We (the Python proje

[issue41590] "zip()" very slowly for this

2020-08-19 Thread Steven D'Aprano
Steven D'Aprano added the comment: What are you actually reporting? What part of the documentation do you think should be changed, why should it be changed, and what should it be changed to? It is normal for different algorithms to perform with different speed. I'm not sure what the purpose

[issue41591] Comprehensions documentation

2020-08-19 Thread Walid Taha
New submission from Walid Taha : The documentation for list comprehensions contains the following phrase: "As we saw in the previous section, the nested listcomp is evaluated in the context of the for that follows it, so this example is equivalent to:" This should be corrected, as it currentl

[issue41589] Strange behavior with sparse.dok_matrix decimal is cast to integer

2020-08-19 Thread Eric V. Smith
Eric V. Smith added the comment: This seems like a scipy or numpy issue, not a Python bug. You might have better luck asking about this behavior on a scipy or numpy forum of some kind, or maybe on Stackoverflow. -- nosy: +eric.smith ___ Python tra

[issue26332] OSError: exception: access violation writing <...> (Windows 10 x64, Python 3.5.1)

2020-08-19 Thread Irit Katriel
Irit Katriel added the comment: Access violation is a very general error which means that a bad pointer was dereferenced in c++. This can happen in many ways. You need to provide a way to reproduce this error in order to make this an actual bug report. In your case, it is happening when you

[issue41590] "zip()" very slowly for this

2020-08-19 Thread email0.ya
New submission from email0.ya : https://docs.python.org/3.9/tutorial/datastructures.html Nested List Comprehensions -- assignee: docs@python components: Documentation files: nested_lists.py messages: 375662 nosy: docs@python, email0.ya priority: normal severity: normal status: open titl

[issue40204] Docs build error with Sphinx 3.0 due to invalid C declaration

2020-08-19 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8f88190af529543c84d5dc78f19abbfd73335cf4 by Victor Stinner in branch '3.9': [3.9] bpo-40204: Allow pre-Sphinx 3 syntax in the doc (GH-21844) (GH-21901) https://github.com/python/cpython/commit/8f88190af529543c84d5dc78f19abbfd73335cf4 -

[issue41589] Strange behavior with sparse.dok_matrix decimal is cast to integer

2020-08-19 Thread browser.365
New submission from browser.365 : import numpy as np from scipy import sparse import decimal D = decimal.Decimal Al = sparse.dok_matrix((10, 10), dtype=np.dtype(D)) Al.astype(D) Al[1,1] = D('0.1') print(Al[1,1]) print(type(Al[1,1])) Al[0,0] = D('0') print(Al[0,0]) print(type(Al[0,0])) z =

[issue41587] Potential memory leak while using shared memory

2020-08-19 Thread Eric V. Smith
Eric V. Smith added the comment: Okay. We'll see if someone else can provide more info. -- ___ Python tracker ___ ___ Python-bugs-l

[issue41587] Potential memory leak while using shared memory

2020-08-19 Thread 李超然
李超然 added the comment: Sorry, I don't know what I can do about it. In my perspective, I think there is a memory leak because monitor software have provided proof for me to believe that. I have provided a script to reproduce this issue. I think that is enough for developers to conduct other t

[issue41025] C implementation of ZoneInfo cannot be subclassed

2020-08-19 Thread STINNER Victor
STINNER Victor added the comment: > test_zoneinfo leaked [84, 84, 84] references, sum=252 Reported as bpo-41568 and fixed there. -- ___ Python tracker ___ ___

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

2020-08-19 Thread STINNER Victor
STINNER Victor added the comment: https://buildbot.python.org/all/#/builders/84 is back to green, I close the issue. -- nosy: +vstinner resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue41587] Potential memory leak while using shared memory

2020-08-19 Thread Eric V. Smith
Eric V. Smith added the comment: Sorry, I don't have any particular suggestion other than accounting for all virtual, shared, and physical memory of all types, and seeing how they're being used and allocated per-process by the various tools. There are probably guides for this on the internet

[issue40553] Python 3.8.2 Mac freezing/not responding when saving new programs

2020-08-19 Thread Alexander Boeckmann
Alexander Boeckmann added the comment: Hey! I have the exact same thing as described happening! Python freezes when I try to save new files which sucks. I'm on Catalina: 10.15.6 IDLE: 3.8.5 Brand new MacBook Air As said earlier the only way out is to force quit. Would taking a video help? I'l

[issue41585] policy.max_line_length is incorrectly assumed to never be None

2020-08-19 Thread Irit Katriel
Irit Katriel added the comment: Are you able to post a script that reproduces the issue? -- nosy: +iritkatriel ___ Python tracker ___ _

[issue41587] Potential memory leak while using shared memory

2020-08-19 Thread 李超然
李超然 added the comment: Okay. I know this is complicated. So how can I make sure this is not an issue? Can you provide some steps or a bash script to prove that the memory increment issue does not exist? I'm now not being persuaded because I don't know how to prove there is no issue about the

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

2020-08-19 Thread Tim Peters
Tim Peters added the comment: Here's an amusing cautionary tale: when looking at correct-rounding failures for the fsum approach, I was baffled until I realized it was actually the _decimal_ method that was failing. Simplest example I have is 9 instances of b=4.999, which is 1

[issue41587] Potential memory leak while using shared memory

2020-08-19 Thread Eric V. Smith
Eric V. Smith added the comment: You'll have to play with it. I'm just saying that it's a very complicated subject, and not as simple as asking how much memory an individual process is using. For example, see https://www.howtogeek.com/659529/how-to-check-memory-usage-from-the-linux-terminal/

[issue41587] Potential memory leak while using shared memory

2020-08-19 Thread 李超然
李超然 added the comment: You mean if I have a machine that has 16GB RAM, and the maximum shared memory size is 8GB. I then create two processes to write to this shared memory, and the system won't run out of memory. Is it right? I can try this experiment later on. But I can not understand this.

[issue41587] Potential memory leak while using shared memory

2020-08-19 Thread Eric V. Smith
Eric V. Smith added the comment: It's likely that the same memory is being counted by both processes, to the output is misleading. Shared memory is notoriously difficult to allocate per-process. For example, it's definitely true that the shared memory is consuming virtual address space in bo

[issue41588] Potential Memory leak with concurrent.futures.ThreadPoolExecutor's map

2020-08-19 Thread Or Yahalom
New submission from Or Yahalom : I've been debugging a high memory consumption in one of my scripts and traced it back to the `concurrent.futures.ThreadPoolExecutor`. When further investigating and playing around, I found out that when using `concurrent.futures.ThreadPoolExecutor` with the ma

[issue41584] Clarify documentation for binary arithmetic operation subclass __r*__ precedence

2020-08-19 Thread Vedran Čačić
Vedran Čačić added the comment: Sorry, of course I meant C()-A(). The point is that the class A _doesn't_ have to implement __rsub__. -- ___ Python tracker ___ ___

[issue41584] Clarify documentation for binary arithmetic operation subclass __r*__ precedence

2020-08-19 Thread Vedran Čačić
Vedran Čačić added the comment: Yes, there is a corner case here. If A derives from B and B derives from C, A doesn't implement __rsub__ and B does, A()-C() will call B's __rsub__. -- nosy: +veky ___ Python tracker

[issue41574] Python[11231:143796] WARNING: running implicitly; please run panels using NSSavePanel rather than NSApplication.

2020-08-19 Thread Ronald Oussoren
Ronald Oussoren added the comment: Weird. Maybe VS Code uses a different Python installation? You can add "import sys; print(sys.prefix)" to your script to check. -- ___ Python tracker _

[issue41574] Python[11231:143796] WARNING: running implicitly; please run panels using NSSavePanel rather than NSApplication.

2020-08-19 Thread Prudent
Prudent added the comment: Sorry, maybe I missed to share a critical point that I wrote Python codes using “VS Code” software, rather than IDEL. That warning only showed in VS Code software when I ran it. After I re-opened my code in IDEL and ran it again. No any warnings or errors existed at

[issue41587] Potential memory leak while using shared memory

2020-08-19 Thread 李超然
New submission from 李超然 : We find an issue while using shared memory. When opening another process to overwrite the shared memory, the memory of this process will increase to about the size of this shared memory. So when several processes try to read or write the shared memory, there will be N

[issue41574] Python[11231:143796] WARNING: running implicitly; please run panels using NSSavePanel rather than NSApplication.

2020-08-19 Thread Ronald Oussoren
Ronald Oussoren added the comment: the version of Tk in /System is not relevant, as I wrote the Tkinter in the Python.org installer uses a copy of Tcl/Tk that's installed by the Python.org installer (somewhere in /Library/Frameworks/Python.framework). This can be checked using the otool(1) c

[issue34410] itertools.tee not thread-safe; can segfault interpreter when wrapped iterator releases GIL

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

[issue39345] Py_Initialize Hangs on Windows 10

2020-08-19 Thread Fieschi
Fieschi added the comment: Personally, I have the same problem of Py_Initialize() hanging indefinitely. Here is the context in which it happens : I am developing an application in Java, in which I use the library jep (https://github.com/ninia/jep), that enables me to get a Python interpreter

[issue41584] Clarify documentation for binary arithmetic operation subclass __r*__ precedence

2020-08-19 Thread Eric Wieser
Change by Eric Wieser : -- nosy: +Eric Wieser ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue41586] Allow to set pipe size on subprocess.Popen.

2020-08-19 Thread Ruben Vorderman
Change by Ruben Vorderman : -- keywords: +patch pull_requests: +21035 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21921 ___ Python tracker ___