[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

[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

[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

[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

[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

[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 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

[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

[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, , PyBUF_SIMPLE) != 0 || PyObject_GetBuffer(b, , PyBUF_SIMPLE) != 0) { PyErr_Format(PyExc_TypeError, "can'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 --

[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 =

[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 ___

Re: port to PDOS (especially mainframe)

2021-03-23 Thread Paul Edwards
On Wednesday, March 24, 2021 at 1:02:48 AM UTC+11, Chris Angelico wrote: > > ../Objects/exceptions.c:2538: `ECONNREFUSED' undeclared (first use in this > > function) > > > Ah, this sounds like an issue with your lower-level networking > support. Does PDOS have BSD sockets? Does it have

[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

[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 --

[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 ___

[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

[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 ___

[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

[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

[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 --

[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 --

[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)

[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)

[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 ___

[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 : -- nosy: +pablogsal nosy_count: 12.0 -> 13.0 pull_requests: +23762 pull_request: https://github.com/python/cpython/pull/25004 ___ Python tracker

[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:

[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)

[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 ___

[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:

Re: convert script awk in python

2021-03-23 Thread Cameron Simpson
On 23Mar2021 16:37, Tomasz Rola wrote: >On Tue, Mar 23, 2021 at 10:40:01AM -0400, Avi Gross via Python-list wrote: >[...] >> I am a tod concerned as to where any of the variables x, y or z have been >> defined at this point. I have not seen a BEGIN {...} pattern/action or >> anywhere these have

[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

Re: [Python-ideas] Re: Looking for people interested in a Python register virtual machine project

2021-03-23 Thread Guido van Rossum
On Tue, Mar 23, 2021 at 12:40 PM Skip Montanaro wrote: > I've not attempted to make any changes to calling conventions. It > occurred to me that the LOAD_METHOD/CALL_METHOD pair could perhaps be > merged into a single opcode, but I haven't really thought about that. > Perhaps there's a good

[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

[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 ___

[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

Re: port to PDOS (especially mainframe)

2021-03-23 Thread Paul Edwards
On Tuesday, March 23, 2021 at 10:19:46 PM UTC+11, Paul Edwards wrote: > Objects/exceptions.c: ADD_ERRNO(ConnectionRefusedError, ECONNREFUSED); > > Those errno are non-standard (non-C90) and I assume > other platforms can't cope with that either. But I can't > see how other platforms are

[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

[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

[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:

[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 ___

[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:

[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

[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 ___

[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
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 --

Re: [Python-ideas] Looking for people interested in a Python register virtual machine project

2021-03-23 Thread Skip Montanaro
> a) You're working with CPython bleeding edge. > b) You find that (bleeding edge) adding extra chore. > c) Nobody told you to work on bleeding (nor boss, nor a maintainer who > said "I'll merge it once you've done"), > > Then: why do you complicate your task by working on bleeding edge? > Could

[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

[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/ --

[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

[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 ___

[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 --

[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

[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

[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 ___

[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 --

[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

[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

[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

[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 ___

[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 ___ ___

[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

[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

[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 ___

[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:

[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:

[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 ___

[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 --

Re: convert script awk in python

2021-03-23 Thread Tomasz Rola
On Tue, Mar 23, 2021 at 10:40:01AM -0400, Avi Gross via Python-list wrote: > Alberto, > [...] > I am a tod concerned as to where any of the variables x, y or z have been > defined at this point. I have not seen a BEGIN {...} pattern/action or > anywhere these have been initialized but they are

[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 ___

[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

Re: port to PDOS (especially mainframe)

2021-03-23 Thread Stestagg
On Tue, Mar 23, 2021 at 3:20 PM Michael Torrie wrote: > On 3/23/21 5:19 AM, Paul Edwards wrote: > > Thanks for the tip. I don't actually need it to be > > light. I just need it to be C90-compliant. > > I guess the point with MicroPython is that since it can build on all > sorts of

[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 ___

[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

[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

[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,

Re: port to PDOS (especially mainframe)

2021-03-23 Thread Michael Torrie
On 3/23/21 5:19 AM, Paul Edwards wrote: > Thanks for the tip. I don't actually need it to be > light. I just need it to be C90-compliant. I guess the point with MicroPython is that since it can build on all sorts of microcontrollers, a) it has a simpler build system and b) it is definitely

[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 ___

[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 ___

[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

[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

[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

[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

[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

[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

RE: convert script awk in python

2021-03-23 Thread Avi Gross via Python-list
Alberto, To convert any algorithm to python (or anything else) you have to understand it. Do you know what AWK is doing? And does the darn thing work already in awk? Why do you need to convert it? My suspicion is that it has errors and if so, it is NOT about converting at all. I will not solve

[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

[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

[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

Re: port to PDOS (especially mainframe)

2021-03-23 Thread Chris Angelico
On Tue, Mar 23, 2021 at 11:21 PM Paul Edwards wrote: > > On Tuesday, March 23, 2021 at 10:19:46 PM UTC+11, Paul Edwards wrote: > > My latest problem is this: > > > > Objects/exceptions.c: ADD_ERRNO(ConnectionRefusedError, ECONNREFUSED); > > Sorry, I forgot to include the actual error: > >

[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

[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

Re: port to PDOS (especially mainframe)

2021-03-23 Thread Paul Edwards
On Tuesday, March 23, 2021 at 10:19:46 PM UTC+11, Paul Edwards wrote: > My latest problem is this: > > Objects/exceptions.c: ADD_ERRNO(ConnectionRefusedError, ECONNREFUSED); Sorry, I forgot to include the actual error: ../Objects/exceptions.c:2538: `ECONNREFUSED' undeclared (first use in this

convert script awk in python

2021-03-23 Thread alberto
Hi to everyone I have an awk script that calculate minimum distances between points ## atom type frag - atom type surface #!/bin/bash FILE1=$1.lammpstrj if [ -f $FILE1 ]; then awk 'function sq(x) { return x * x; } function dist(x1, y1, z1, x2, y2, z2) { return sqrt(sq(x1 - x2) +

Re: port to PDOS (especially mainframe)

2021-03-23 Thread Paul Edwards
On Tuesday, March 23, 2021 at 9:44:03 PM UTC+11, Gisle Vanem wrote: > Why not try to port MicroPython instead? Much lighter. > I've ported it to MSDOS/djgpp with some success. Thanks for the tip. I don't actually need it to be light. I just need it to be C90-compliant. The assembler I

[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

[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 ___

[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,

Re: port to PDOS (especially mainframe)

2021-03-23 Thread Gisle Vanem
Edwards wrote: I don't wish to run configure, I want to hand-construct the makefile. PDOS is a very simple system, so I only want to produce a single executable, no DLLs etc. I don't need extensions to work or anything, all I need to be able to do is run asma. Why not try to port MicroPython

  1   2   >