[issue43602] Include Decimal's in numbers.Real

2021-03-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: We don't have a choice here. Operations between decimals and floats raise a TypeError. So, we can't register Decimal as a Real; otherwise, static type checking wouldn't be able to flag the following as invalid: def add(a: Real, b: Real) -> Real:

[issue43602] Include Decimal's in numbers.Real

2021-03-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: We don't have a choice here. Operations between decimals and floats raise a TypeError. So, we can't register Decimal as a Real; otherwise, static type checking wouldn't be able to flag the following as invalid: def add(a: Real, b: Real) -> Real:

[issue43602] Include Decimal's in numbers.Real

2021-03-23 Thread Raymond Hettinger
Change by Raymond Hettinger : -- Removed message: https://bugs.python.org/msg389373 ___ Python tracker ___ ___ Python-bugs-list mail

[issue43601] Tools/c-analyzer/check-c-globals.py run throw exception err

2021-03-23 Thread Ammar Askar
Change by Ammar Askar : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue41064] Specialise syntax error of **dict in f-string field

2021-03-23 Thread Eric V. Smith
Eric V. Smith added the comment: The parens are added in fstring_compile_expr at https://github.com/python/cpython/blob/9feae41c4f04ca27fd2c865807a5caeb50bf4fc4/Parser/string_parser.c#L391 I don't recall if this is really only a "skip leading whitespace" problem, or if there's some other rea

[issue43602] Include Decimal's in numbers.Real

2021-03-23 Thread Sergey B Kirpichev
Sergey B Kirpichev added the comment: > Operations between decimals and floats raise a TypeError. I saw this) And as I said, I assume, the reason is: there is no lossless conversion to float's (and vice verse). If so (point 2), neither multiple-precision type (e.g. gmpy2.mpfr) can subclass

[issue32592] Drop support of Windows Vista and Windows 7

2021-03-23 Thread Mitja kocjančič
Mitja kocjančič added the comment: I have to agree with msg389225, I use windows 7 on my dev machine as well as I use some programs and devices that unfortionatly do not work on windows 10 so update is not possible, now it would be realy anoying that I would loose python support as well since

[issue32592] Drop support of Windows Vista and Windows 7

2021-03-23 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: As far as I understand, commit [1] explicitly prevents CPython from running on Windows 7, and it's included into 3.9. So it seems to be too late to complain, despite that, according to Wikipedia, more than 15% of all Windows PCs are still running Windows 7

[issue43466] ssl/hashlib: Add configure option to set or auto-detect rpath to OpenSSL libs

2021-03-23 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +23748 pull_request: https://github.com/python/cpython/pull/24989 ___ Python tracker ___

[issue43466] ssl/hashlib: Add configure option to set or auto-detect rpath to OpenSSL libs

2021-03-23 Thread Christian Heimes
Christian Heimes added the comment: GH-24989 adds -Wl,--exclude-libs just for libssl.a and libcrypto.a IFF support for -Wl,--exclude-libs,ALL is detected by configure. This puts the symbols from the OpenSSL archive files into the LOCAL segment of ELF binaries. The PR does not set -Wl,--exclu

[issue43602] Include Decimal's in numbers.Real

2021-03-23 Thread Mark Dickinson
Mark Dickinson added the comment: > I assume, the reason is: there is no lossless conversion to float's (and vice > verse). No, I don't think that's the reason (and in fact we _do_ have lossless conversion of floats to Decimal instances). IMO, the reasons are: - it's not obvious what the *t

[issue43601] Tools/c-analyzer/check-c-globals.py run throw exception err

2021-03-23 Thread junyixie
junyixie added the comment: found in must-reslove.sh function run_capi() { ./python Tools/c-analyzer/c-analyzer.py capi \ --no-progress \ --group-by kind \ --func --inline --macro \ --no-show-empty \ --ignore '' \ $@ } -- resolution:

[issue43547] support ZIP files with zeroed out fields (e.g. for reproducible builds)

2021-03-23 Thread Christian Heimes
Christian Heimes added the comment: The __getattr__ hack is not needed. You can reset the flags in a different, more straight forward way: class ReproducibleZipInfo(ZipInfo): __slots__ = () def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self._

[issue43511] tkinter with Tk 8.6.11 is slow on macOS

2021-03-23 Thread Thomas Wamm
Thomas Wamm added the comment: Summary: "poor tkinter performance correlates with failed self-tests" I'm an amateur hobbyist noobie programmer, so sophisticated testing is a challenge for me. I raised this issue because I noticed Python graphics thru tkinter is especially slow on MacOS, and

[issue43511] tkinter with Tk 8.6.11 is slow on macOS

2021-03-23 Thread Thomas Wamm
Thomas Wamm added the comment: Failed tkinter tests were already noted in Issue 42507. No mention of failures correlating with much slower testing. -- ___ Python tracker ___ _

[issue32592] Drop support of Windows Vista and Windows 7

2021-03-23 Thread Mitja kocjančič
Mitja kocjančič added the comment: doh, thats unfortunate I was too late to complain, and now its all gone oh well, I guess people will not roll back commits now, I hoped windows 7 supported could be kept at least til python4 (or when microsoft completly abandons win7 (when the API will chang

[issue43602] Include Decimal's in numbers.Real

2021-03-23 Thread Sergey B Kirpichev
Sergey B Kirpichev added the comment: On Tue, Mar 23, 2021 at 10:21:50AM +, Mark Dickinson wrote: > Mark Dickinson added the comment: > > I assume, the reason is: there is no lossless conversion to float's (and > > vice verse). > and in fact we _do_ have lossless conversion of floats to D

[issue43602] Include Decimal's in numbers.Real

2021-03-23 Thread Mark Dickinson
Mark Dickinson added the comment: > Seems so, for a static typing. But Python is a dynamically typed > language, isn't? I think we're talking at cross purposes. Static and dynamic typing have nothing to do with this. What do you think the result of `1.0 + Decimal(1)` should be, and more im

[issue15352] importlib.h should be regenerated when the marshaling code changes

2021-03-23 Thread aaa dsghsu
Change by aaa dsghsu : Added file: https://bugs.python.org/file49901/442723 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue43603] safgf

2021-03-23 Thread aaa dsghsu
Change by aaa dsghsu : -- components: C API files: 442724 nosy: aaadsghsu priority: normal severity: normal status: open title: safgf type: performance versions: Python 3.6 Added file: https://bugs.python.org/file49902/442724 ___ Python tracker

[issue43603] safgf

2021-03-23 Thread aaa dsghsu
Change by aaa dsghsu : Added file: https://bugs.python.org/file49903/442723 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue43603] safgf

2021-03-23 Thread aaa dsghsu
Change by aaa dsghsu : Added file: https://bugs.python.org/file49904/131970 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue37405] socket.getsockname() returns string instead of tuple

2021-03-23 Thread Brent Gardner
Brent Gardner added the comment: This test was overlooked, and line 2052 should now be removed per the discussion here: https://github.com/python/cpython/pull/14392#issuecomment-506133908 In short, getsockname() used to return `(interface, socket.AF_CAN)`, in which the socket.AF_CAN element

[issue43603] safgf

2021-03-23 Thread aaa dsghsu
Change by aaa dsghsu : Removed file: https://bugs.python.org/file49903/442723 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue43511] tkinter with Tk 8.6.11 is slow on macOS

2021-03-23 Thread E. Paine
E. Paine added the comment: This *appears* to be a Tk issue. I ran a benchmark (see attached) which repeatedly performed canvas actions. The first test ("clearing") clears the canvas, creates a rectangle, then calls both `update` and `update_idletasks`. The second test ("not clearing") is th

[issue14527] How to link with a non-system libffi?

2021-03-23 Thread Rupert Nash
Rupert Nash added the comment: Due to some major changes in setup.py around libffi, I've had to re-implement my patch - please see Github. I'd appreciate any comments so we can get this merged. Thanks! -- ___ Python tracker

[issue18304] ElementTree -- provide a way to ignore namespace in tags and searches

2021-03-23 Thread Lars Hammarstrand
Lars Hammarstrand added the comment: Any update regarding this? We switched to lxml to make life easier but it would be useful if this functionality also was implemented in the standard library. Wishlist: 1. Flag to ignore all namespaces during find(). 2. Ability to set default namespace t

[issue43603] spam

2021-03-23 Thread Mark Dickinson
Change by Mark Dickinson : -- resolution: -> not a bug stage: -> resolved status: open -> closed title: safgf -> spam type: performance -> ___ Python tracker ___ ___

[issue37405] socket.getsockname() returns string instead of tuple

2021-03-23 Thread Brent Gardner
Change by Brent Gardner : -- pull_requests: +23749 pull_request: https://github.com/python/cpython/pull/24991 ___ Python tracker ___ ___

[issue43604] Fix tempfile.mktemp()

2021-03-23 Thread David Lukeš
New submission from David Lukeš : I recently came across a non-testing use case for `tempfile.mktemp()` where I struggle to find a viable alternative -- temporary named pipes (FIFOs): ``` import os import tempfile import subprocess as sp fifo_path = tempfile.mktemp() os.mkfifo(fifo_path, 0o600

[issue43547] support ZIP files with zeroed out fields (e.g. for reproducible builds)

2021-03-23 Thread Felix C. Stegerman
Felix C. Stegerman added the comment: > The __getattr__ hack is not needed. You can reset the flags in a different, > more straight forward way As mentioned, ZipFile._open_to_write() will modify the ZipInfo's .external_attr when it is set to 0. > I just found another specific example in _op

[issue43573] [types] Document __spec__ for types.ModuleType

2021-03-23 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +23750 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24992 ___ Python tracker _

[issue43573] [types] Document __spec__ for types.ModuleType

2021-03-23 Thread miss-islington
Change by miss-islington : -- pull_requests: +23751 pull_request: https://github.com/python/cpython/pull/24993 ___ Python tracker ___ __

[issue43604] Fix tempfile.mktemp()

2021-03-23 Thread David Lukeš
David Lukeš added the comment: > A secure `mktemp` could be as simple as ... Though in practice, I'd rather be inclined to make the change in `tempfile._RandomNameSequence`, so as to get the same behavior across the entire module, instead of special-casing `mktemp`. As Guido van Rossum points

[issue43573] [types] Document __spec__ for types.ModuleType

2021-03-23 Thread Brett Cannon
Change by Brett Cannon : -- pull_requests: +23752 pull_request: https://github.com/python/cpython/pull/24994 ___ Python tracker ___

[issue41718] test.regrtest has way too many imports

2021-03-23 Thread STINNER Victor
STINNER Victor added the comment: New changeset d72e8d487553c103bf2742e229f8266b515fd951 by Victor Stinner in branch 'master': bpo-41718: subprocess imports grp and pwd on demand (GH-24987) https://github.com/python/cpython/commit/d72e8d487553c103bf2742e229f8266b515fd951 -- ___

[issue35930] Raising an exception raised in a "future" instance will create reference cycles

2021-03-23 Thread Jesús Cea Avión
Change by Jesús Cea Avión : -- keywords: +patch pull_requests: +23753 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24995 ___ Python tracker ___ _

[issue35930] Raising an exception raised in a "future" instance will create reference cycles

2021-03-23 Thread Jesús Cea Avión
Change by Jesús Cea Avión : -- assignee: -> jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue35930] Raising an exception raised in a "future" instance will create reference cycles

2021-03-23 Thread Jesús Cea Avión
Change by Jesús Cea Avión : -- versions: +Python 3.10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue41718] test.regrtest has way too many imports

2021-03-23 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +23754 pull_request: https://github.com/python/cpython/pull/24996 ___ Python tracker ___ __

[issue25716] typeobject.c call_method & call_maybe can leak references on 'func'

2021-03-23 Thread Irit Katriel
Irit Katriel added the comment: I believe this issue is out of date. There are no longer such functions as call_method and call_maybe. There are vectorcall_method and vectorcall_maybe, but they don't have that check for (args == NULL). -- nosy: +iritkatriel resolution: -> out of dat

[issue43605] Issue of scopes unclear in documentation, or wrongly implemented

2021-03-23 Thread Bruno Loff
New submission from Bruno Loff : Python 3.9.2 seems to be giving me some unexpected difficulty evaluating generators inside evals. Here is the example: ```python def func(l): def get(i): return l[i] print(sum(get(i) for i in range(len(l # works as expected, prints 10

[issue43573] [types] Document __spec__ for types.ModuleType

2021-03-23 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue37612] os.link(..., follow_symlinks=True) broken on Linux

2021-03-23 Thread Thomas Kluyver
Change by Thomas Kluyver : -- nosy: +takluyver nosy_count: 4.0 -> 5.0 pull_requests: +23755 pull_request: https://github.com/python/cpython/pull/24997 ___ Python tracker ___ __

[issue32592] Drop support of Windows Vista and Windows 7

2021-03-23 Thread C.A.M. Gerlach
C.A.M. Gerlach added the comment: In my limited understanding, all PR #15951 does is set a compiler macro to allow use of Win API calls present on >=Win8 instead of >=Win7. If Win8-only calls are not used, then presumably it should still build and run on Windows 7, presumably with the flag f

[issue43520] Make Fraction(string) handle non-ascii slashes

2021-03-23 Thread Carl Anderson
Carl Anderson added the comment: >The proposal I like is for a unicode numeric normalization functions that >return the ascii equivalent to exist. @Gregory P. Smith this makes sense to me. That does feel like the cleanest solution. I'm currently doing s = s.replace("⁄","/") but it would be g

[issue43602] Include Decimal's in numbers.Real

2021-03-23 Thread Sergey B Kirpichev
Sergey B Kirpichev added the comment: On Tue, Mar 23, 2021 at 01:03:47PM +, Mark Dickinson wrote: > What do you think the result of `1.0 + Decimal(1)` should be, and > more importantly why? Possible options are: > > - Decimal('2') > - 2.0 (a float) > - a `TypeError` (as now) > - some kind

[issue41718] test.regrtest has way too many imports

2021-03-23 Thread STINNER Victor
STINNER Victor added the comment: New changeset bd9154a495434464283f74b660160f89930cd791 by Victor Stinner in branch 'master': bpo-41718: runpy now imports pkgutil in functions (GH-24996) https://github.com/python/cpython/commit/bd9154a495434464283f74b660160f89930cd791 -- _

[issue41718] test.regrtest has way too many imports

2021-03-23 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +23756 pull_request: https://github.com/python/cpython/pull/24998 ___ Python tracker ___ __

[issue43604] Fix tempfile.mktemp()

2021-03-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: You can use TemporaryDirectory. with tempfile.TemporaryDirectory() as dir: fifo_path = os.path.join(dir, "fifo") os.mkfifo(fifo_path, 0o600) ... -- nosy: +serhiy.storchaka ___ Python tracker

[issue43606] initial huge window && no widgets visible

2021-03-23 Thread FRANK BENNETT
New submission from FRANK BENNETT : with any PySimpleGUI, tkinter, tk, *.py The initial window is huge & with a size no widgets are visible fwb@fw:/s/opt/cpython$ uname -r 5.4.0-67-generic fwb@fw:/s/opt/cpython$ cat /etc/issue Ubuntu 20.04.2 LTS \n \l fwb@fw:/s/opt/cpython$ ./python -V Pytho

[issue41718] test.regrtest has way too many imports

2021-03-23 Thread STINNER Victor
STINNER Victor added the comment: New changeset cd27af70d58161c59072e27a10e0e63dcbf0bccb by Victor Stinner in branch 'master': bpo-41718: Update runpy startup time What's New (GH-24998) https://github.com/python/cpython/commit/cd27af70d58161c59072e27a10e0e63dcbf0bccb -- ___

[issue39572] [typing] TypedDict's 'total' argument is undocumented

2021-03-23 Thread Roundup Robot
Change by Roundup Robot : -- nosy: +python-dev nosy_count: 6.0 -> 7.0 pull_requests: +23757 pull_request: https://github.com/python/cpython/pull/24999 ___ Python tracker ___ __

[issue31907] doc: Clarify error message when attempting to call function via str.format()

2021-03-23 Thread Irit Katriel
Irit Katriel added the comment: I would suggest the following change in https://docs.python.org/3/library/string.html#format-string-syntax replace the sentence: The syntax is related to that of formatted string literals, but there are differences. by: The syntax is related to that of form

[issue41718] test.regrtest has way too many imports

2021-03-23 Thread STINNER Victor
STINNER Victor added the comment: Ok, the most important changes have been merged. Thanks everyone who helped on this large project! See also my summary email on python-dev: https://mail.python.org/archives/list/python-...@python.org/thread/I3OQTA3F66NQUN7CH2NHC5XZTO24QCIK/ -- resolut

[issue43604] Fix tempfile.mktemp()

2021-03-23 Thread David Lukeš
David Lukeš added the comment: > You can use TemporaryDirectory. That was actually the first approach I tried :) I even thought this could be used to make `mktemp` safe -- just create the name in a `TemporaryDirectory`. However, after reading through the mailing list thread, I realized this j

[issue43244] Move PyArena C API to the internal C API

2021-03-23 Thread STINNER Victor
STINNER Victor added the comment: New changeset 94faa0724f8cbae6867c491c8e465e35f4fdbfbb by Victor Stinner in branch 'master': bpo-43244: Remove ast.h, asdl.h, Python-ast.h headers (GH-24933) https://github.com/python/cpython/commit/94faa0724f8cbae6867c491c8e465e35f4fdbfbb -- _

[issue43244] Move PyArena C API to the internal C API

2021-03-23 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +23758 pull_request: https://github.com/python/cpython/pull/25000 ___ Python tracker ___ __

[issue43244] Move PyArena C API to the internal C API

2021-03-23 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +23759 pull_request: https://github.com/python/cpython/pull/25001 ___ Python tracker ___ __

[issue43606] PySimpleGUI: initial huge window & no widgets visible

2021-03-23 Thread E. Paine
E. Paine added the comment: I have removed the Windows component as the issue reported seems to be on Ubuntu (but I don't like removing others from the nosy, so have left that alone). Tkinter does no initial window configuration created through either `Tk()` or `Toplevel()` as this is all h

[issue43606] PySimpleGUI: initial huge window & no widgets visible

2021-03-23 Thread E. Paine
Change by E. Paine : -- nosy: -pau ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/m

[issue43466] ssl/hashlib: Add configure option to set or auto-detect rpath to OpenSSL libs

2021-03-23 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +23760 pull_request: https://github.com/python/cpython/pull/25002 ___ Python tracker ___

[issue43602] Include Decimal's in numbers.Real

2021-03-23 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: +tim.peters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue43535] Make str.join auto-convert inputs to strings.

2021-03-23 Thread Jacob Nilsson
Jacob Nilsson added the comment: For what my opinion is worth, I agree with Grégory's suggestion because the ',' part of ','.join(...) is almost as unintuitive as the problems Raymond's suggestions are trying to fix. I was going to suggest a builtin to work on both str and bytes, like join(s

[issue43535] Make str.join auto-convert inputs to strings.

2021-03-23 Thread Raymond Hettinger
Change by Raymond Hettinger : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue20364] Rename & explain sqlite3.Cursor.execute 'parameters' param

2021-03-23 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- keywords: +patch nosy: +erlendaasland nosy_count: 6.0 -> 7.0 pull_requests: +23761 pull_request: https://github.com/python/cpython/pull/25003 ___ Python tracker _

[issue20364] Rename & explain sqlite3.Cursor.execute 'parameters' param

2021-03-23 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Terry, I've created GH-25003 based on your suggested changes. -- ___ Python tracker ___ _

[issue43595] Can not add a metclass that inherits both ABCMeta & ABC to a Union

2021-03-23 Thread Jacob Nilsson
Jacob Nilsson added the comment: Hi, I tried both code snippets, and they work for me with the output: typing.Union[str, abc.ABC] For your second code snippet. Tested on 3.7.6 (IPython though) on a Windows machine, can test it on Linux tomorrow. -- nosy: +ajoino __

[issue32592] Drop support of Windows Vista and Windows 7

2021-03-23 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: > If Win8-only calls are not used, then presumably it should still build and > run on Windows 7, presumably with the flag flipped back to Win7. And if there > are Win8-only calls used and the flag is set to Win7+, I assume that the MSVC > compiler will catc

[issue31861] add aiter() and anext() functions

2021-03-23 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset f0a6fde8827d5d4f7a1c741ab1a8b206b66ffd57 by Joshua Bronson in branch 'master': bpo-31861: Add aiter and anext to builtins (#23847) https://github.com/python/cpython/commit/f0a6fde8827d5d4f7a1c741ab1a8b206b66ffd57 -- nosy: +gvanrossum

[issue31861] add aiter() and anext() functions

2021-03-23 Thread Guido van Rossum
Change by Guido van Rossum : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue43607] urllib's request.pathname2url not compatible with extended-length Windows file paths

2021-03-23 Thread D Levine
New submission from D Levine : Windows file paths are limited to 256 characters, and one of Windows's prescribed methods to address this is to prepend "\\?\" before a Windows absolute path (see: https://docs.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation) urllib.reques

[issue43607] urllib's request.pathname2url not compatible with extended-length Windows file paths

2021-03-23 Thread D Levine
Change by D Levine : -- type: crash -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue31861] add aiter() and anext() functions

2021-03-23 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +pablogsal nosy_count: 12.0 -> 13.0 pull_requests: +23762 pull_request: https://github.com/python/cpython/pull/25004 ___ Python tracker _

[issue43244] Move PyArena C API to the internal C API

2021-03-23 Thread STINNER Victor
STINNER Victor added the comment: New changeset a81fca6ec8e0f748f8eafa12fb12cf9e12df465c by Victor Stinner in branch 'master': bpo-43244: Add pycore_compile.h header file (GH-25000) https://github.com/python/cpython/commit/a81fca6ec8e0f748f8eafa12fb12cf9e12df465c -- ___

[issue31861] add aiter() and anext() functions

2021-03-23 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +23763 pull_request: https://github.com/python/cpython/pull/25005 ___ Python tracker ___ ___

[issue31861] add aiter() and anext() functions

2021-03-23 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset d9692027f41ee7600fe401c066617ebfc8bac930 by Pablo Galindo in branch 'master': bpo-31861: Complete the C-API docs for PyObject_GetAiter and PyAiter_Check (GH-25004) https://github.com/python/cpython/commit/d9692027f41ee7600fe401c066617ebf

[issue43452] Microoptimize PyType_Lookup for cache hits

2021-03-23 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset a054f6b2b1d9f75edfb5ec2247bbf60f07491977 by Pablo Galindo in branch 'master': bpo-43452: Document the PyType_Lookup optimizations in the What's New for 3.10 (GH-24949) https://github.com/python/cpython/commit/a054f6b2b1d9f75edfb5ec2247bb

[issue43244] Move PyArena C API to the internal C API

2021-03-23 Thread STINNER Victor
STINNER Victor added the comment: New changeset 57364ce34e0492fbc8b0a6b8c882f384bb489457 by Victor Stinner in branch 'master': bpo-43244: Remove parser_interface.h header file (GH-25001) https://github.com/python/cpython/commit/57364ce34e0492fbc8b0a6b8c882f384bb489457 -- __

[issue31861] add aiter() and anext() functions

2021-03-23 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 919d42d477093154a30b55d9d79f023dbbe5614a by Pablo Galindo in branch 'master': bpo-31861: Fix possible crash in PyAnextAwaitable_New (GH-25005) https://github.com/python/cpython/commit/919d42d477093154a30b55d9d79f023dbbe5614a --

[issue41064] Specialise syntax error of **dict in f-string field

2021-03-23 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +23764 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25006 ___ Python tracker __

[issue41064] Specialise syntax error of **dict in f-string field

2021-03-23 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > I don't recall if this is really only a "skip leading whitespace" problem, or > if there's some other reason they're required. IIRC, this forces the expression inside to be parsed as an expression. This helps the quite a lot the parser. For instance

[issue43244] Move PyArena C API to the internal C API

2021-03-23 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +23765 pull_request: https://github.com/python/cpython/pull/25007 ___ Python tracker ___ __

[issue31861] add aiter() and anext() functions

2021-03-23 Thread STINNER Victor
STINNER Victor added the comment: I reopen the issue. The commit f0a6fde8827d5d4f7a1c741ab1a8b206b66ffd57 introduced a reference leak: $ ./python -m test -R 3:3 test_asyncgen 0:00:00 load avg: 4.75 Run tests sequentially 0:00:00 load avg: 4.75 [1/1] test_asyncgen beginning 6 repetitions 1234

[issue31861] add aiter() and anext() functions

2021-03-23 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +23766 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/25008 ___ Python tracker ___ ___

[issue43244] Move PyArena C API to the internal C API

2021-03-23 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8370e07e1e5b626e78ddc7aadbfaf248976c4454 by Victor Stinner in branch 'master': bpo-43244: Remove the pyarena.h header (GH-25007) https://github.com/python/cpython/commit/8370e07e1e5b626e78ddc7aadbfaf248976c4454 --

[issue43244] Move PyArena C API to the internal C API

2021-03-23 Thread STINNER Victor
STINNER Victor added the comment: Ok, the whole C API related to parser, compiler, AST, ASDL and PyArena moved to the internal C API. So we will have more freedom to evolve it! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___

[issue31861] add aiter() and anext() functions

2021-03-23 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Fixed by PR25008 -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue43606] PySimpleGUI: initial huge window & no widgets visible

2021-03-23 Thread FRANK BENNETT
FRANK BENNETT added the comment: How about the following - title ok but no label visible ? # t8.py import tkinter as tk class Application(tk.Tk): def __init__(self): tk.Tk.__init__(self) self.geometry('500x500') self.title('Your first App') first_label = t

[issue31861] add aiter() and anext() functions

2021-03-23 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset a02683ac38183fa3a45c32319dfd329c5e622f0e by Pablo Galindo in branch 'master': bpo-31861: Fix reference leak in builtin_anext_impl() (GH-25008) https://github.com/python/cpython/commit/a02683ac38183fa3a45c32319dfd329c5e622f0e --

[issue43608] `bytes_concat` and Buffer cleanup

2021-03-23 Thread Sebastian Berg
New submission from Sebastian Berg : `pybytes_concate` currently uses the following code to get the data: va.len = -1; vb.len = -1; if (PyObject_GetBuffer(a, &va, PyBUF_SIMPLE) != 0 || PyObject_GetBuffer(b, &vb, PyBUF_SIMPLE) != 0) { PyErr_Format(PyExc_TypeError, "ca

[issue43609] ast.unparse-ing a FunctionType gives ambiguous result

2021-03-23 Thread midori
New submission from midori : Hi all, this is probably my first issue here, so don't blame me if I do something wrong lol The ast.FunctionType gives syntax like (a, b) -> c for function types, this is ok, and also since Python 3.10 we can use X | Y to denote unions, this is ok. So Given the f

[issue43607] urllib's request.pathname2url not compatible with extended-length Windows file paths

2021-03-23 Thread Eryk Sun
Eryk Sun added the comment: RFC8089 doesn't specify "a mechanism for translating namespaced paths ["\\?\" and "\\.\"] to or from file URIs", and the Windows shell doesn't support them. So what's the practical benefit of supporting them in nturl2path? > Windows file paths are limited to 256 c

[issue43610] Ctrl C makes interpreter exit

2021-03-23 Thread Xinmeng Xia
New submission from Xinmeng Xia : Python interpreter will exit when using Ctrl C to interrupt some Python module functions with read operations. e.g. sndhdr.what(0), pdb.find_function('abs/'*10,False), mimetypes.read_mime_types(0). This is not the expected behavior. Ctrl C is to raise

[issue43607] urllib's request.pathname2url not compatible with extended-length Windows file paths

2021-03-23 Thread D Levine
D Levine added the comment: I really meant 255 characters not 256 because I was leaving three for ":/". I suppose the most reasonable behavior is to strip out the "\\?\" before attempting the conversion as the path is sensible and parsable without that, as opposed to the current behavior whic

[issue43607] urllib's request.pathname2url not compatible with extended-length Windows file paths

2021-03-23 Thread Eryk Sun
Eryk Sun added the comment: > I suppose the most reasonable behavior is to strip out the "\\?\" before > attempting the conversion as the path is sensible and parsable without Okay, so you're not looking to preserve the fact that it's a \\?\ verbatim path in the URI. You just want to automa

[issue43607] urllib's request.pathname2url not compatible with extended-length Windows file paths

2021-03-23 Thread D Levine
D Levine added the comment: I think that would make the most sense, yes. -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue43610] Ctrl C makes interpreter exit

2021-03-23 Thread Eryk Sun
Eryk Sun added the comment: > Python interpreter will exit when using Ctrl C to interrupt > some Python module functions with read operations. The REPL exits when stdin is closed. open() allows the filename to be an existing file descriptor without requiring a parameter such as "file_is_fd"

[issue43611] Function tcflow() in module termios can not be interupted when the second argument is 0

2021-03-23 Thread Xinmeng Xia
New submission from Xinmeng Xia : In Ubuntu 16.04, termios.tcflow(1, 0) cannot be interrupted by Ctrl C, Ctrl D, Ctrl Z. It work well on mac OS. (Ctrl C can interrupt it on Mac OS). Reproduce: 1. type 'python3' in command console; 2. type ‘import termios; termios.tcflow(1, 0)’ 3. try “ctrl C

[issue43612] zlib.compress should have a wbits argument

2021-03-23 Thread Ruben Vorderman
New submission from Ruben Vorderman : zlib.compress can now only be used to output zlib blocks. Arguably `zlib.compress(my_data, level, wbits=-15)` is even more useful as it gives you a raw deflate block. That is quite interesting if you are writing your own file format and want to use compres

  1   2   >