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

2020-08-23 Thread Ruben Vorderman
Ruben Vorderman added the comment: > If you take this route, please don't write it directly against the CPython > C-API (as you would for a CPython stdlib module). Thanks for reminding me of this. I was planning to take the laziest route possible anyway, reusing as much code from cpython as

[issue36379] nb_inplace_pow is always called with an invalid argument

2020-08-23 Thread Josh Rosenberg
Josh Rosenberg added the comment: Zackery, should this be closed? Or is there something missing from the patch? -- ___ Python tracker ___ _

[issue41617] __builtin_bswap16 is used without checking it is supported

2020-08-23 Thread Ned Deily
Change by Ned Deily : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

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

2020-08-23 Thread Jeffrey Kintscher
Jeffrey Kintscher added the comment: hex.py works for me with CPython versions 3.5, 3.7, 3.8, and 3.9, and the master branch. -- ___ Python tracker ___ __

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

2020-08-23 Thread Matt Joiner
Matt Joiner added the comment: I do not think so. mypy has the same issue. The ByteString type does not include the methods shared by all its implementations. I already linked to this in https://bugs.python.org/msg375553. I also showed that mypy doesn't work in my last comment. --

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

2020-08-23 Thread Eric V. Smith
Eric V. Smith added the comment: This looks like a problem in pyright, not in CPython. -- ___ Python tracker ___ ___ Python-bugs-li

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

2020-08-23 Thread Matt Joiner
Matt Joiner added the comment: $ pyright hex.py stubPath /Users/anacrolix/src/dht-scraper/typings is not a valid directory. Assuming Python platform Darwin Searching for source files Found 1 source file /Users/anacrolix/src/dht-scraper/hex.py 3:9 - error: Cannot access member "hex" for type

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

2020-08-23 Thread Matt Joiner
Change by Matt Joiner : Added file: https://bugs.python.org/file49423/hex.py ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue24622] tokenize.py: missing EXACT_TOKEN_TYPES

2020-08-23 Thread Guido van Rossum
Guido van Rossum added the comment: Closing, this is out of date. EXACT_TOKEN_TYPES has been moved to token.py in 3.8 and is now automatically generated from Grammar/Tokens. 3.7 is too old to fix. -- nosy: +gvanrossum resolution: -> out of date stage: -> resolved status: open -> cl

[issue41513] High accuracy math.hypot()

2020-08-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'm ready to move forward on this one. Have improved the assertions, explanations, and variable names. Hve also added references to show that the foundations are firm. After tens of millions of trials, I haven't found a single misrounding. I can't pro

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

2020-08-23 Thread Raymond Hettinger
Change by Raymond Hettinger : -- Removed message: https://bugs.python.org/msg375827 ___ Python tracker ___ ___ Python-bugs-list mail

[issue37943] mimetypes.guess_extension() doesn’t get JPG right

2020-08-23 Thread Jens Troeger
Jens Troeger added the comment: @fbidu, oh I missed that, thank you! Shall I close the issue again, or what’s the common procedure in this case? -- ___ Python tracker ___

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

2020-08-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'm ready to more forward on this one. I've improved the assertions, explanations, and variable names. I also added references to show that the foundations are firm. After tens of millions of trials, I haven't found a single misrounding. I can't prove

[issue41622] Add support for emoji-data.txt and emoji-variation-sequences.txt to unicodedata

2020-08-23 Thread jack1142
New submission from jack1142 : `emoji-data.txt` and `emoji-variation-sequences.txt` files were formally pulled into the UCD as of Version 13.0 [1] so I think that unicodedata as a package providing access to UCD could support those as well. In particular: - `emoji-data.txt` lists character pro

[issue38302] __pow__ and __rpow__ are not reached when __ipow__ returns NotImplemented for **=

2020-08-23 Thread Brett Cannon
Brett Cannon added the comment: It turns out **= ONLY calls __ipow__ and neither __pow__ or __rpow__ as the data model says should be called. - Data Model: https://docs.python.org/3/reference/datamodel.html#object.__ipow__ - PyNumber_InPlacePower(): https://github.com/python/cpython/blob/80

[issue39640] fall back os.fdatasync() to fsync() on POSIX systems without fdatasync() support

2020-08-23 Thread George Melikov
George Melikov added the comment: PR rebased and ready to review. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue41621] defaultdict miss behave when using default_factory passed as kwargs

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

[issue41621] defaultdict miss behave when using default_factory passed as kwargs

2020-08-23 Thread Moshe Morad
New submission from Moshe Morad : How to reproduce >>> from collections import defaultdict >>> dd = defaultdict(default_factory=list) >>> dd defaultdict(None, {'default_factory': }) >>> print(dd.default_factory) None Analysis defdict_init(PyObject *self, PyObject *arg

[issue37426] getpass.getpass not working with on windows when ctrl+v is used to enter the string

2020-08-23 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: -Python 3.6, Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue14611] inspect.getargs fails on some anonymous tuples

2020-08-23 Thread Irit Katriel
Irit Katriel added the comment: I think this was fixed here: https://github.com/python/cpython/commit/3b23004112aefffa72a3763916d78f12b9e056fe and in any case it's a 2.7-only issue, so can this ticket be closed? -- nosy: +iritkatriel ___ Python tr

[issue32313] Wrong inspect.getsource for datetime

2020-08-23 Thread Irit Katriel
Irit Katriel added the comment: The documentation for getfile says "This will fail with a TypeError if the object is a built-in module, class, or function." https://docs.python.org/3/library/inspect.html#inspect.getfile But it doesn't: >>> inspect.getfile(datetime.datetime) 'C:\\Users\\User\

[issue41620] Python Unittest does not return results object when the test is skipped

2020-08-23 Thread Iman Tabrizian
New submission from Iman Tabrizian : Result object is null when a test case is skipeed. -- messages: 375820 nosy: Tabrizian priority: normal pull_requests: 21054 severity: normal status: open title: Python Unittest does not return results object when the test is skipped versions: Python

[issue37426] getpass.getpass not working with on windows when ctrl+v is used to enter the string

2020-08-23 Thread Brian Rutledge
Brian Rutledge added the comment: In addition to Ctrl+V, Shift+Insert also doesn't work. This behavior is the same Command Prompt and PowerShell on Windows 10. Workarounds include: - Clicking `Edit > Paste` from the window menu - Enabling `Properties > Options > Use Ctrl+Shift+C/V as Copy/Pa

[issue41610] Any Raspberry Pi Zero Projects to try?

2020-08-23 Thread Mark Dickinson
Change by Mark Dickinson : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue41505] asyncio.gather of large streams with limited resources

2020-08-23 Thread Kevin Amado
Kevin Amado added the comment: Yeah definitely it must be workers I've experimented a lot about it and finally found something with an interface similar to asyncio.as_completed - You control concurrency with `workers` parameter - You upper-bound memory usage with `worker_greediness` parameter

[issue41619] Subprocesses created with DETACHED_PROCESS can pop up a console window

2020-08-23 Thread Eryk Sun
Eryk Sun added the comment: I suppose that, in addition to fixing the bug with si.dwFlags, code could be added to use DETACHED_PROCESS if GetConsoleCP() returns 0 (i.e. the launcher isn't attached to a console). -- ___ Python tracker

[issue41619] Subprocesses created with DETACHED_PROCESS can pop up a console window

2020-08-23 Thread Paul Moore
Paul Moore added the comment: Confirmed, CREATE_NO_WINDOW works - in my test I used it *with* DETACHED_PROCESS. Is it not a bug that the launcher doesn't respect the value of DETACHED_PROCESS when calling the Python interpreter, though? If nothing else, it means that there are differences b

[issue41609] pdb's whatis command reports method as function

2020-08-23 Thread Irit Katriel
Irit Katriel added the comment: It should really use inspect.* functions but I think that should be done separately from this fix. -- ___ Python tracker ___ _

[issue41619] Subprocesses created with DETACHED_PROCESS can pop up a console window

2020-08-23 Thread Eryk Sun
Eryk Sun added the comment: Creating the py.exe process with creationflags=DETACHED_PROCESS sets a special ConsoleHandle value in its ProcessParameters that makes the base API skip allocating a console session at process startup. However, the launcher itself spawns python.exe normally, witho

[issue41602] Python doesn't exit with proper resultcode on SIGINT in runpy (pymain_run_module)

2020-08-23 Thread Thomas Grainger
Change by Thomas Grainger : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue41608] IDLE: multiple space deletion by Backspace after non-spaces

2020-08-23 Thread E. Paine
E. Paine added the comment: I have updated the PR for the following two suggestions: > I would rather trailing blocks be deleted all at once > Anything after [the prompt] is an indent and should be treated as such Again, consider the following examples (apologies about the last ones: I have

[issue41619] Subprocesses created with DETACHED_PROCESS can pop up a console window

2020-08-23 Thread Bernat Gabor
Change by Bernat Gabor : -- nosy: +Bernat Gabor ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue41619] Subprocesses created with DETACHED_PROCESS can pop up a console window

2020-08-23 Thread Paul Moore
Paul Moore added the comment: Originally discovered in https://github.com/pypa/virtualenv/issues/1928 - see that issue for more context. -- ___ Python tracker ___ ___

[issue41619] Subprocesses created with DETACHED_PROCESS can pop up a console window

2020-08-23 Thread Paul Moore
New submission from Paul Moore : The following code pops up an extra console window when run on Windows 10, Python 3.8: from subprocess import DETACHED_PROCESS, Popen p = Popen(["py", "-c", "from time import sleep; sleep(5)"], creationflags=DETACHED_PROCESS) Adding CREATE_NO_WINDOW d

[issue41610] Any Raspberry Pi Zero Projects to try?

2020-08-23 Thread Mika Hawkins
Mika Hawkins added the comment: Hi supriyasingh, Actually, only python experts are here in this forum. Still, I am sharing what I found on Google follow the link given below https://eleggible.com/best-raspberry-pi-zero-projects/ but you have to ask this in the General section of any other

[issue41610] Any Raspberry Pi Zero Projects to try?

2020-08-23 Thread supriya singh
Change by supriya singh : -- status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue41618] [C API] How many slots of static types should be exposed in PyType_GetSlot()

2020-08-23 Thread hai shi
hai shi added the comment: related bpo: bpo-41073 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue41618] [C API] How many slots of static types should be exposed in PyType_GetSlot()

2020-08-23 Thread hai shi
New submission from hai shi : In order to resolve bpo41073, we want to extend `PyType_GetSlot()` to accept static types. But there have another question we should be considered: How many slots should be exposed in `PyType_GetSlot()`. petr's opinion from PR-21931:I would not want to expose the