[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

[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

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

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

[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

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

[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

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

[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

[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

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

[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

[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

[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

[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

[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

[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

[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

[issue44426] Docs fail to build with Sphinx 4 due to Invalid C declaration

2021-06-18 Thread Mark Dickinson
Change by Mark Dickinson : -- assignee: docs@python -> mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue44451] test_entry_points_by_index (test.test_importlib.test_metadata_api.APITests) fails on Fedora 33 and 34

2021-06-18 Thread Miro Hrončok
New submission from Miro Hrončok : Hello. When we attempted to upgrade to Python 3.10.0b3 on Fedora 33 and 34, we see the following test failure: == ERROR: test_entry_points_by_index (test.test_importlib.test_metadata_api.A

[issue40928] OS X: malloc(): set default diagnostics to DEBUG_WRITE_ON_CRASH

2021-06-18 Thread Jack DeVries
Change by Jack DeVries : -- keywords: +patch nosy: +jack__d nosy_count: 4.0 -> 5.0 pull_requests: +25368 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26783 ___ Python tracker _

[issue44451] test_entry_points_by_index (test.test_importlib.test_metadata_api.APITests) fails on Fedora 33 and 34

2021-06-18 Thread Miro Hrončok
Miro Hrončok added the comment: Also reproduced on the main branch. -- versions: +Python 3.11 ___ Python tracker ___ ___ Python-bugs

[issue40928] OS X: malloc(): set default diagnostics to DEBUG_WRITE_ON_CRASH

2021-06-18 Thread Jack DeVries
Jack DeVries added the comment: >From my pr, "This is a bandaid to help people save time debugging this >non-bug. I don't think this solution is very strong; I'm just hoping to move >the discussion forward on the bpo, and hoping for a hint on how to suppress >these warnings all together or c

[issue44451] test_entry_points_by_index (test.test_importlib.test_metadata_api.APITests) fails on Fedora 33 and 34

2021-06-18 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This seems to have been reported also at https://bugs.python.org/issue44246#msg395202 -- nosy: +xtreak ___ Python tracker ___

[issue44451] test_entry_points_by_index (test.test_importlib.test_metadata_api.APITests) fails on Fedora 33 and 34

2021-06-18 Thread Miro Hrončok
Miro Hrončok added the comment: Also reproducible without --enable-shared. [cpython (main)]$ ./configure && make [cpython (main)]$ ./python --version Python 3.11.0a0 [cpython (main)]$ ./python -m test test_importlib 0:00:00 load avg: 5.40 Run tests sequentially 0:00:00 load avg: 5.40 [1/1] tes

[issue44246] 3.10 beta 1: breaking change in importlib.metadata entry points

2021-06-18 Thread Miro Hrončok
Miro Hrončok added the comment: The test_entry_points_by_index test also fails on Fedora. See issue44451. -- nosy: +hroncok ___ Python tracker ___ _

[issue44451] test_entry_points_by_index (test.test_importlib.test_metadata_api.APITests) fails on Fedora 33 and 34

2021-06-18 Thread Miro Hrončok
Miro Hrončok added the comment: I get the DeprecationWarning the tests assumes when not running via the test: $ cat distinfo_pkg-1.0.0.dist-info/entry_points.txt [entries] main = mod:main ns:sub = mod:main $ ./python Python 3.11.0a0 (heads/main:0982ded179, Jun 18 2021, 14:14:16) [GCC 10.3.1

[issue44452] Allow paths to be joined without worrying about a leading slash

2021-06-18 Thread Zbyszek Jędrzejewski-Szmek
New submission from Zbyszek Jędrzejewski-Szmek : pathlib.Path.__truediv__(), i.e. pathlib.Path.joinpath() is surprising when the second argument starts with a slash. >>> pathlib.Path('/foo') / '/bar' >>> PosixPath('/bar') I know that this follows the precedent set by os.path.join(), and probab

[issue44451] test_entry_points_by_index (test.test_importlib.test_metadata_api.APITests) fails on Fedora 33 and 34

2021-06-18 Thread Miro Hrončok
Miro Hrončok added the comment: I've added warnings.resetwarnings() to the test. it makes it pass. It says: Warning -- warnings.filters was modified by test_importlib Before: (140568295281984, [('default', None, , '__main__', 0), ('ignore', None, , None, 0), ('ignore', None, , None, 0), (

[issue44451] test_entry_points_by_index (test.test_importlib.test_metadata_api.APITests) fails on Fedora 33 and 34

2021-06-18 Thread Miro Hrončok
Miro Hrončok added the comment: Adding the reset to the context manager: with warnings.catch_warnings(record=True) as caught: warnings.resetwarnings() eps[0] Or even better explicitly: with warnings.catch_warnings(record=True) as caught: war

[issue19402] AbstractBasicAuthHandler

2021-06-18 Thread Irit Katriel
Irit Katriel added the comment: I think Perry means HTTPBasicAuthHandler.http_error_401, which seems to still be missing a reset_retry_count() call. https://github.com/python/cpython/blob/0982ded179f280176868c1c4eccf77bf70687816/Lib/urllib/request.py#L1050 -- nosy: +iritkatriel versi

[issue44451] test_entry_points_by_index (test.test_importlib.test_metadata_api.APITests) fails on Fedora 33 and 34

2021-06-18 Thread Miro Hrončok
Change by Miro Hrončok : -- components: +Tests -Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44451] test_entry_points_by_index (test.test_importlib.test_metadata_api.APITests) fails on Fedora 33 and 34

2021-06-18 Thread Miro Hrončok
Change by Miro Hrončok : -- keywords: +patch pull_requests: +25369 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26784 ___ Python tracker ___

[issue44451] test_entry_points_by_index (test.test_importlib.test_metadata_api.APITests) fails on Fedora 33 and 34

2021-06-18 Thread Jason R. Coombs
Jason R. Coombs added the comment: Other tests reset the filters? Good observation. I’d missed that detail. If it’s easier to submit a PR to importlib_metadata, feel free to do that as I’ll want the change in both places. -- components: +Library (Lib) -Tests stage: patch review -> _

[issue44451] test_entry_points_by_index (test.test_importlib.test_metadata_api.APITests) fails on Fedora 33 and 34

2021-06-18 Thread Miro Hrončok
Miro Hrončok added the comment: Submitted to both. https://github.com/python/cpython/pull/26784 https://github.com/python/importlib_metadata/pull/325 -- components: +Tests -Library (Lib) ___ Python tracker _

[issue26231] HTTPResponse.close() should consume all remaining data in body if any

2021-06-18 Thread Irit Katriel
Irit Katriel added the comment: > If close() does not consume the remaining data, the user would have to do it > after invoking close(), regardless of how large the data is. Martin's point was that you can abandon the connection and create a new one if you choose not to consume all the data

[issue44453] Documented return type of sysconfig.get_path() is wrong

2021-06-18 Thread Jelle Zijlstra
New submission from Jelle Zijlstra : https://docs.python.org/3/library/sysconfig.html#sysconfig.get_path says it returns None if the name is not found, but the implementation (https://github.com/python/cpython/blame/main/Lib/sysconfig.py) uses [] and will raise KeyError instead. Noticed by @

[issue44453] Documented return type of sysconfig.get_path() is wrong

2021-06-18 Thread Jelle Zijlstra
Change by Jelle Zijlstra : -- keywords: +patch pull_requests: +25370 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26785 ___ Python tracker ___ _

[issue40928] OS X: malloc(): set default diagnostics to DEBUG_WRITE_ON_CRASH

2021-06-18 Thread Jack DeVries
Change by Jack DeVries : -- pull_requests: +25371 pull_request: https://github.com/python/cpython/pull/26786 ___ Python tracker ___

[issue26236] urllib2 initiate irregular call to gethostbyaddr

2021-06-18 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.11 -Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40928] OS X: malloc(): set default diagnostics to DEBUG_WRITE_ON_CRASH

2021-06-18 Thread Jack DeVries
Jack DeVries added the comment: Alternatively, my latest PR implements what @ronaldoussoren suggested: capping OS X memory allocations at 4TB. -- ___ Python tracker ___ _

[issue27824] update ConfigParser docs regarding in-line comments

2021-06-18 Thread Irit Katriel
Irit Katriel added the comment: This is explained in the example now, just above https://docs.python.org/3.10/library/configparser.html#interpolation-of-values It was changed here: https://github.com/python/cpython/commit/b25a791802a1915097e02bfba04e27a41ae55ebf -- nosy: +iritkatriel

[issue26608] RLock undocumented behavior in case of multiple acquire

2021-06-18 Thread Irit Katriel
Irit Katriel added the comment: The RLock documentation is a bit more verbose than it needs to be (for instance, there is no reason to specify the "no args" case separately from the "blocking=True" case (since True is the default value of blocking). The issue of balancing acquire/release cal

[issue32536] ast and tokenize disagree about line number

2021-06-18 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.11 -Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32581] A bug of the write funtion of ConfigParser.py

2021-06-18 Thread Irit Katriel
Irit Katriel added the comment: I trued this on 3.11/Windows and 3.10/Linux and could not reproduce the issue. The Password remained "" in both cases. -- nosy: +iritkatriel resolution: -> out of date stage: -> resolved status: open -> closed ___

[issue28412] os.path.splitdrive documentation out of date

2021-06-18 Thread Irit Katriel
Irit Katriel added the comment: This was updated in the Python 3 docs: https://docs.python.org/3/library/os.path.html#os.path.splitdrive The 2.7 docs are no longer maintained. -- nosy: +iritkatriel resolution: -> out of date stage: -> resolved status: open -> closed ___

[issue34773] sqlite3 module inconsistently returning only some rows from a table

2021-06-18 Thread Irit Katriel
Irit Katriel added the comment: The python bug tracker is not the right place to ask for help debugging your application, it's for reporting bugs in python. If you have evidence of an issue in python, please create a new issue with full reproduction instructions so that we can look into it.

[issue31398] TypeError: gdbm key must be string, not unicode

2021-06-18 Thread Irit Katriel
Irit Katriel added the comment: This seems like a python 2-only issue, if nobody objects I will close it in a couple of weeks. -- nosy: +iritkatriel resolution: -> out of date status: open -> pending ___ Python tracker

[issue27752] [doc] CSV DictReader default dialect name 'excel' is misleading, as MS Excel doesn't actually use ', ' as a separator.

2021-06-18 Thread Irit Katriel
Change by Irit Katriel : -- assignee: -> docs@python components: +Documentation nosy: +docs@python title: CSV DictReader default dialect name 'excel' is misleading, as MS Excel doesn't actually use ',' as a separator. -> [doc] CSV DictReader default dialect name 'excel' is misleading

[issue28877] Cannot compile _ssl.o on HP-UX

2021-06-18 Thread Irit Katriel
Irit Katriel added the comment: Python 2.7 is past EOL. Please create a new issue if you are still having this problem on 3.9+. -- nosy: +iritkatriel resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue31398] TypeError: gdbm key must be string, not unicode

2021-06-18 Thread STINNER Victor
STINNER Victor added the comment: IMO you can close it immediately. Fixing Python 2.7 is not going to happen ever. -- status: pending -> open ___ Python tracker ___ __

[issue30563] [Cygwin] multiprocessing module with pool object issue

2021-06-18 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python

[issue31398] TypeError: gdbm key must be string, not unicode

2021-06-18 Thread Irit Katriel
Change by Irit Katriel : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue33367] Multiprocessing Pool workers initiated with maxtasksperchild do not execute when sharing logging

2021-06-18 Thread Irit Katriel
Irit Katriel added the comment: Closing as this is a Python 2.7-only issue and 2.7 is no longer maintained. -- nosy: +iritkatriel resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue34371] File reading gets stuck if you read at eof on macos

2021-06-18 Thread Irit Katriel
Change by Irit Katriel : -- stage: -> resolved status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue31743] Proportional Width Font on Generated Python Docs PDFs

2021-06-18 Thread Paul Du Bois
Paul Du Bois added the comment: For what it's worth, I also see proportional-width fonts when looking at the docs in Android Chrome. For example, the binary tree in https://docs.python.org/3/library/heapq.html is mangled. -- nosy: +paul.dubois ___

[issue31743] Proportional Width Font on Generated Python Docs PDFs and in mobile browser

2021-06-18 Thread Paul Du Bois
Change by Paul Du Bois : -- title: Proportional Width Font on Generated Python Docs PDFs -> Proportional Width Font on Generated Python Docs PDFs and in mobile browser ___ Python tracker

[issue44447] Syntax Error not as detailed as shown

2021-06-18 Thread Jelle Zijlstra
Change by Jelle Zijlstra : -- components: +Parser -Regular Expressions nosy: +lys.nikolaou, pablogsal type: performance -> behavior ___ Python tracker ___ _

[issue44454] How to find canon printer default wifi password

2021-06-18 Thread fix offline printers
New submission from fix offline printers : You cannot use the Canon Printer for printing purpose until and unless you do not have Canon Printer Password. However, Canon Printer password troubleshooting can be done in short span of time by following technical steps. Therefore, Canon Printer De

[issue44454] Spam

2021-06-18 Thread Zachary Ware
Change by Zachary Ware : -- nosy: -fixofflineprinters resolution: -> not a bug stage: -> resolved status: open -> closed title: How to find canon printer default wifi password -> Spam ___ Python tracker __

[issue44454] Spam

2021-06-18 Thread Zachary Ware
Change by Zachary Ware : -- Removed message: https://bugs.python.org/msg396077 ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue35714] Document that the null character '\0' terminates a struct format spec

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

[issue40412] [subinterpreters] inittab_copy not set to NULL after free, can lead to crashes when running multiple interpreters in a single process

2021-06-18 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.5, Python 3.6, Python 3.7 ___ Python tracker ___ _

[issue44447] Syntax Error not as detailed as shown

2021-06-18 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Indeed, as Andre mentions your example is different because in you case the call is interpreted as a generator comprehension, not as a function call. -- resolution: -> not a bug stage: -> resolved status: open -> closed _

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

2021-06-18 Thread Brett Cannon
Brett Cannon added the comment: No idea, I was just trying to understand what the link was meant to point at. :) -- ___ Python tracker ___

[issue44246] 3.10 beta 1: breaking change in importlib.metadata entry points

2021-06-18 Thread HEY GOOGLE
HEY GOOGLE added the comment: Addes aggreement -- components: +Build nosy: +hectorizdaone type: -> security ___ Python tracker ___ ___

[issue39947] [C API] Make the PyThreadState structure opaque (move it to the internal C API)

2021-06-18 Thread Irit Katriel
Change by Irit Katriel : -- nosy: +iritkatriel nosy_count: 4.0 -> 5.0 pull_requests: +25372 pull_request: https://github.com/python/cpython/pull/26788 ___ Python tracker ___ __

[issue44310] Document that lru_cache uses hard references

2021-06-18 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +25373 pull_request: https://github.com/python/cpython/pull/26789 ___ Python tracker ___ ___

[issue44451] test_entry_points_by_index (test.test_importlib.test_metadata_api.APITests) fails on Fedora 33 and 34

2021-06-18 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset df1502e47fc1e0cf1e7d460ae04530c3e2e4a7c6 by Miro Hrončok in branch 'main': bpo-44451: Reset DeprecationWarning filters in test_importlib.test_entry_points_by_index (GH-26784) https://github.com/python/cpython/commit/df1502e47fc1e0cf1e7d460ae045

[issue44451] test_entry_points_by_index (test.test_importlib.test_metadata_api.APITests) fails on Fedora 33 and 34

2021-06-18 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +25374 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26790 ___ Python tracker _

[issue43945] [Enum] standardize format() behavior

2021-06-18 Thread Ethan Furman
Ethan Furman added the comment: New changeset f60b07ab6c943fce084772c3c7731ab3bbd213ff by Ethan Furman in branch 'main': bpo-43945: [Enum] reduce scope of new format() behavior (GH-26752) https://github.com/python/cpython/commit/f60b07ab6c943fce084772c3c7731ab3bbd213ff -- _

[issue43945] [Enum] standardize format() behavior

2021-06-18 Thread Ethan Furman
Change by Ethan Furman : -- pull_requests: +25375 pull_request: https://github.com/python/cpython/pull/26791 ___ Python tracker ___

[issue44451] test_entry_points_by_index (test.test_importlib.test_metadata_api.APITests) fails on Fedora 33 and 34

2021-06-18 Thread Jason R. Coombs
Jason R. Coombs added the comment: Big thanks Miro for the detailed work on this matter. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue44451] test_entry_points_by_index (test.test_importlib.test_metadata_api.APITests) fails on Fedora 33 and 34

2021-06-18 Thread miss-islington
miss-islington added the comment: New changeset bf55a799e0c19285b094d71f794c301c1afaa28d by Miss Islington (bot) in branch '3.10': bpo-44451: Reset DeprecationWarning filters in test_importlib.test_entry_points_by_index (GH-26784) https://github.com/python/cpython/commit/bf55a799e0c19285b094

[issue44368] Invalid mapping patterns give confusing SyntaxErrors

2021-06-18 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +25376 pull_request: https://github.com/python/cpython/pull/26792 ___ Python tracker ___ ___

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

2021-06-18 Thread Irit Katriel
Irit Katriel added the comment: The discussion is leading to yes, but the patch needs some more work on the test. (The link was pointing at me being past my bedtime when I pasted it :-) -- ___ Python tracker _

[issue44455] compileall should exit nonzero for nonexistent directories

2021-06-18 Thread Aaron Meurer
New submission from Aaron Meurer : $ ./python.exe -m compileall doesntexist Listing 'doesntexist'... Can't list 'doesntexist' $ echo $? 0 It's standard for a command line tool that processes files to exit nonzero when given a directory that doesn't exist. -- messages: 396087 nosy: asm

[issue18182] xml.dom.createElement() does not take implicit namespaces into account

2021-06-18 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-b

[issue44456] Improve syntax error for mixing keyword/positional in max patterns

2021-06-18 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : This got me confused for a sec when doing some live demo: >>> match x: ...case A(y=1, foo): File "", line 2 case A(y=1, foo): ^ SyntaxError: invalid syntax I propose to improve this to: >>> match x: ...case A(y=1, fo

[issue44456] Improve syntax error for mixing keyword/positional in max patterns

2021-06-18 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +25377 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26793 ___ Python tracker __

[issue20513] Python 2.7. Script interruption on logoff from 0 session under Win2003 and earlier

2021-06-18 Thread Irit Katriel
Irit Katriel added the comment: The patch doesn't look anything like the current code. Is this issue still relevant? -- nosy: +iritkatriel ___ Python tracker ___

[issue44456] Improve syntax error for mixing keyword/positional in max patterns

2021-06-18 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Btw, I noticed this is allowed: >>> match x: ...case A(foo, t=3): ...... ... but this is not: >>> match x: ...case A(foo=3, t): Is that on pourpose? -- ___ Python tracker

[issue44456] Improve syntax error for mixing keyword/positional in max patterns

2021-06-18 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: If this is supposed to mirror function calls, maybe the error should be:: >>> match a: ...case A(foo=3, t): File "", line 2 case A(foo=3, t): ^ SyntaxError: positional patterns follow keyword patterns -- ___

[issue44368] Invalid mapping patterns give confusing SyntaxErrors

2021-06-18 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset a8c418d5ed1103106db547aa576b82c6031985a4 by Pablo Galindo in branch '3.10': [3.10] bpo-44368: Improve syntax errors with invalid as pattern targets (GH-26632) (GH-26792) https://github.com/python/cpython/commit/a8c418d5ed1103106db547aa57

[issue43329] Multiprocessing Manager Client Not Reconnecting

2021-06-18 Thread Ethan Furman
Ethan Furman added the comment: Michael Boon wrote: --- > The [above] issue is pretty serious and it is preventing me from using a > system I wrote on a larger scale. That statement suggests you were able to get this working on a small scale -- is that correct? What does the

[issue43329] Multiprocessing Manager Client Not Reconnecting

2021-06-18 Thread Michael L. Boom
Michael L. Boom added the comment: I don't think I even got this working on the small scale. The unit test in the bug report is about as small as it gets and it doesn't work. The issue still exists in Python 3.9.5. -- ___ Python tracker

[issue44404] tkinter's after() AttributeError with functools.partial (no attribute __name__)

2021-06-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: The docstring for .after says the 2nd argument must be a 'function'. Whether this issue is a bugfix or enhancement request depends whether one interprets 'function' as 'callable' or something narrower that only includes objects that necessarily have __name_

[issue43945] [Enum] standardize format() behavior

2021-06-18 Thread Ethan Furman
Ethan Furman added the comment: New changeset 1b4addf3cbd0ef424939681ee67c802328d567ba by Ethan Furman in branch '3.10': [3.10] bpo-43945: [Enum] reduce scope of new format() behavior (GH-26752) https://github.com/python/cpython/commit/1b4addf3cbd0ef424939681ee67c802328d567ba -- _

[issue6029] FAIL: test_longdouble (ctypes.test.test_callbacks.Callbacks) [SPARC/64-bit]

2021-06-18 Thread Irit Katriel
Irit Katriel added the comment: The patch doesn't look anything like the current code. Is this issue still relevant? -- nosy: +iritkatriel ___ Python tracker ___ _

[issue43945] [Enum] standardize format() behavior

2021-06-18 Thread Ethan Furman
Change by Ethan Furman : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue37832] Python requires /dev/urandom on HURD: _Py_HashRandomization_Init: failed to get random numbers

2021-06-18 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python

[issue44457] Finish format() change started in issue43945

2021-06-18 Thread Ethan Furman
New submission from Ethan Furman : Finish the work started in issue43945 -- in 3.12 `format()` now uses the enum member itself instead of its `value`; e.g.: >>> class Color(int, Enum): ... RED = 1 >>> f"{Color.RED}" 'RED' >>> f"{Color.RED:d}" '1' -- assign

[issue44457] Finish format() change started in issue43945

2021-06-18 Thread Ethan Furman
Change by Ethan Furman : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue30379] multiprocessing Array create for ctypes.c_char, TypeError unless 1 char string arg used

2021-06-18 Thread Irit Katriel
Irit Katriel added the comment: I'm assuming Davin's alternative solved your problem. If not, please check that you're still seeing it version 3.9+ and create a new issue. -- nosy: +iritkatriel resolution: -> not a bug stage: -> resolved status: open -> closed _

[issue44456] Improve syntax error for mixing keyword/positional in max patterns

2021-06-18 Thread Brandt Bucher
Brandt Bucher added the comment: Yep, it's intentional. And yep, I like the new error message better. :) -- ___ Python tracker ___ ___

[issue44446] linecache.getline TypeError when formatting tracebacks in stacks containing an async list comprehension

2021-06-18 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Mark, can you take a look at this? -- nosy: +pablogsal versions: +Python 3.11 -Python 3.10 ___ Python tracker ___

[issue44446] linecache.getline TypeError when formatting tracebacks in stacks containing an async list comprehension

2021-06-18 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- priority: normal -> release blocker ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue27752] [doc] CSV DictReader default dialect name 'excel' is misleading, as MS Excel doesn't actually use ', ' as a separator.

2021-06-18 Thread Jack DeVries
Change by Jack DeVries : -- keywords: +patch nosy: +jack__d nosy_count: 3.0 -> 4.0 pull_requests: +25378 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26795 ___ Python tracker _

[issue44413] OverflowError: mktime argument out of range after 2019

2021-06-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: An exception is not a 'crash', as defined for this tracker. 3.8 only gets security fixes. A 3.9 or 3.10 test is needed and Windows does not have pytz. -- nosy: +belopolsky, lemburg, p-ganssle, terry.reedy type: crash -> behavior ___

[issue27752] [doc] CSV DictReader default dialect name 'excel' is misleading, as MS Excel doesn't actually use ', ' as a separator.

2021-06-18 Thread Jack DeVries
Jack DeVries added the comment: If you need semicolon delimiters, can't you just pass ``delimiter=';'`` to the reader or writer? I don't think there's a need for a separate dialect class for that, since dialect classes should only provide a baseline for the most broad use cases. Users have p

  1   2   >