[issue44450] Generator expressions trace differently on Windows than on Mac

2021-06-18 Thread Ned Batchelder
New submission from Ned Batchelder : Here is a trace involving generator expressions. Using 3.10.0b3 on Mac, there are "line" events within the expression. Those events are missing on Windows. --- 8< --- import linecache, sys def trace(frame, event, arg): # T

[issue25946] configure should pick /usr/bin/g++ automatically if present

2021-06-18 Thread Irit Katriel
Irit Katriel added the comment: Closing as 2.7 is past EOL and distutils is deprecated. Please create a new issue if you have a current problem with this. -- nosy: +iritkatriel resolution: -> out of date stage: -> resolved status: open -> closed

[issue19832] XML version is ignored

2021-06-18 Thread Stefan Behnel
Stefan Behnel added the comment: After reading up a bit, version "X" should probably be rejected, whereas "1.[0-9]+" is meant to be allowed also by a 1.0 parser, according to the spec: https://www.w3.org/TR/REC-xml/#sec-prolog-dtd """ When an XML 1.0 processor encounters a document that spec

[issue7464] circular reference in HTTPResponse by urllib2

2021-06-18 Thread Irit Katriel
Irit Katriel added the comment: > It doesn't appear to be an issue in py3k. I agree, I can't find this code anywhere. Closing. -- nosy: +iritkatriel resolution: -> out of date stage: test needed -> resolved status: open -> closed ___ Python tracke

[issue44448] Suggestion: change existing error message for invalid function name

2021-06-18 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: But thanks a lot for the proposal! -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue44448] Suggestion: change existing error message for invalid function name

2021-06-18 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Unfortunately these are tokenizer errors and the tokenizer had no idea of what's a function, so introducing syntactic structure in the error is going to be quite error prone, as the tokenizer still sees whitespace and other stuff that the parser doesn

[issue19832] XML version is ignored

2021-06-18 Thread Irit Katriel
Irit Katriel added the comment: Reproduced in 3.11: >>> xml.sax.parseString(">> encoding='UTF-8'?>blah", xml.sax.ContentHandler()) >>> -- nosy: +iritkatriel versions: +Python 3.11 -Python 2.7 ___ Python tracker

[issue9419] RUNSHARED needs LDFLAGS

2021-06-18 Thread Irit Katriel
Irit Katriel added the comment: Closing as 2.7 is past EOL and distutils is deprecated. Please create a new issue, and include complete reproduction instructions, if you are seeing this problem on an up to date version (3.9+). -- nosy: +iritkatriel resolution: -> out of date stage:

[issue44449] Segfault in _PyTrash_begin when faulthandler tries to dump thread stacks

2021-06-18 Thread Duncan Grisby
New submission from Duncan Grisby : I am using Python 3.9.4 on CentOS 7. faulthandler is registered with SIGUSR1: faulthandler.register(signal.SIGUSR1) Sending SIGUSR1 normally correctly dumps the thread stacks, but occasionally it segfaults from the main thread instead: Thread 1 (Thread 0x7

[issue19214] shutil.make_archive should recognize extensions in filenames

2021-06-18 Thread Irit Katriel
Irit Katriel added the comment: I agree with William that it is better to do this in a helper function than to further complicate make_archive. -- nosy: +iritkatriel resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tra

[issue32696] Fix pickling exceptions with multiple arguments

2021-06-18 Thread Henk-Jaap Wagenaar
Henk-Jaap Wagenaar added the comment: It seems like the example in the OP now works (persist both arguments), but Irit's/Kirill's (create a msg) fails (I am running 3.9). -- nosy: +cryvate ___ Python tracker __

[issue17246] inspect.getargvalues fails if arg name is not bound to a value

2021-06-18 Thread Irit Katriel
Irit Katriel added the comment: Still the same in 3.11: >>> import inspect >>> def fun(x): ... del x ... return inspect.currentframe() ... >>> inspect.formatargvalues(*inspect.getargvalues(fun(10))) Traceback (most recent call last): File "", line 1, in File "C:\Users\User\src\cpy

[issue15066] make install error: ImportError: No module named _struct

2021-06-18 Thread Irit Katriel
Irit Katriel added the comment: Lib/site.py has changed a lot in the meantime compared to the patch that Antonio mentioned. Unless you are currently seeing this issue with 3.9+ I suggest we close this and let a new issue be opened if someone does see this problem on a current version.

[issue44032] Function locals and evaluation stack should be stored in a contiguous, per-thread stack

2021-06-18 Thread Mark Shannon
Mark Shannon added the comment: New changeset 0982ded179f280176868c1c4eccf77bf70687816 by Mark Shannon in branch 'main': bpo-44032: Move pointer to code object from frame-object to frame specials array. (GH-26771) https://github.com/python/cpython/commit/0982ded179f280176868c1c4eccf77bf70687

[issue20803] doc: clarify that struct.pack_into writes 0x00 for pad bytes

2021-06-18 Thread Irit Katriel
Change by Irit Katriel : -- assignee: -> docs@python components: +Documentation -Interpreter Core keywords: +easy nosy: +docs@python title: struct.pack_into writes 0x00 for pad bytes -> doc: clarify that struct.pack_into writes 0x00 for pad bytes versions: +Python 3.11 -Python 2.7 __

[issue32465] [urllib] proxy_bypass_registry - extra error handling required for ProxyOverride, Windows under proxy environment

2021-06-18 Thread Irit Katriel
Irit Katriel added the comment: There are currently no unit tests for proxy_bypass_registry, proxy_bypass, and nothing much for proxy_open. Those should be added as part of this work. -- keywords: +easy nosy: +iritkatriel versions: +Python 3.11 -Python 2.7 ___

[issue32696] Fix pickling exceptions with multiple arguments

2021-06-18 Thread Irit Katriel
Irit Katriel added the comment: This is still the same in 3.11: >>> import pickle >>> class CustomException(Exception): ... def __init__(self, arg1, arg2): ... msg = "Custom message {} {}".format(arg1, arg2) ... super().__init__(msg) ... >>> obj_dump = pickle.dumps(CustomEx

[issue31772] SourceLoader uses stale bytecode in case of equal mtime seconds

2021-06-18 Thread Irit Katriel
Irit Katriel added the comment: No, sorry it wasn't merged. Should it be? -- ___ Python tracker ___ ___ Python-bugs-list mailing li

<    1   2