[issue46092] Fix/update missing parameters in function signatures for Built-in Functions documentation.

2021-12-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: My understanding is that we're holding off on adding the slash notation to the main docs. The reason is that they are mostly unintelligible to the average user. -- nosy: +rhettinger ___ Python tracker

[issue46081] Document the msg argument for assertRaises

2021-12-15 Thread Eric V. Smith
Change by Eric V. Smith : -- resolution: -> wont fix ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46093] 2D array issue

2021-12-15 Thread Eric V. Smith
Eric V. Smith added the comment: problem_ary[:] creates a copy of problem_ary, so it's equal to: >>> problem_ary[:] [['a', 'b', 'c'], ['d', 'e', 'f'], ['g', 'h', 'i']] The [1] element of that is: >>> problem_ary[:][1] ['d', 'e', 'f'] So this is working as expected. I suggest you ask on

[issue46094] Missing unit test on unittest.TestResult to check for required arguments

2021-12-15 Thread dhruv
Change by dhruv : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46094] Missing unit test on unittest.TestResult to check for required arguments

2021-12-15 Thread dhruv
Change by dhruv : -- keywords: +patch pull_requests: +28351 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30132 ___ Python tracker ___

[issue46094] Missing unit test on unittest.TestResult to check for required arguments

2021-12-15 Thread dhruv
New submission from dhruv : stream, descriptions, and verbosity seem like they aren't needed at first glance but are required to work with multiple inheritance. A simple test can clarify this. -- components: Tests messages: 408674 nosy: DreamSh0t priority: normal severity: normal

[issue46081] Document the msg argument for assertRaises

2021-12-15 Thread Ram Rachum
Ram Rachum added the comment: I disagree but I guess I'm in the minority here, so I'll close this issue. -- stage: -> resolved status: open -> closed ___ Python tracker ___

[issue46081] Document the msg argument for assertRaises

2021-12-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: I concur with Eric that the current presentation is reasonable and better than adding boilerplate to every entry. It suffices that the docs cover the *msg* argument once and that each entry includes *msg* in its signature. Elsewhere in the docs we

[issue46093] 2D array issue

2021-12-15 Thread Ritvik S
New submission from Ritvik S : I had a problem running the following code. When I ran through what I thought python was supposed to do, I got a different answer than what python did. I think this is an error. Here is the code: problem_ary = [['a','b','c'],['d','e','f'],['g','h','i']]

[issue46085] OrderedDict iterator allocates di_result unnecessarily

2021-12-15 Thread Inada Naoki
Inada Naoki added the comment: Nice catch. > if ((kind & _odict_ITER_KEYS) && (kind &_odict_ITER_VALUES)) You can reduce one branch by ``` #define _odict_ITER_ITEMS (_odict_ITER_KEYS|_odict_ITER_VALUES) ... if (kind & _odict_ITER_ITEMS == _odict_ITER_ITEMS) ``` -- nosy:

[issue46082] type casting of bool

2021-12-15 Thread Josh Rosenberg
Josh Rosenberg added the comment: Agreed, this is not a bug. The behavior of the bool constructor is not a parser (unlike, say, int), it's a truthiness detector. Non-empty strings are always truthy, by design, so both "True" and "False" are truthy strings. There's no bug to address here.

[issue46068] Change use of warnings.warn to logging.warning in a few places

2021-12-15 Thread Andrei Kulakov
Andrei Kulakov added the comment: Raymond: Makes sense; I didn't know there was disagreement about this. I will keep this issue open for a week and then close. -- ___ Python tracker

[issue46006] [subinterpreter] _PyUnicode_EqualToASCIIId() issue with subinterpreters

2021-12-15 Thread Eric Snow
Eric Snow added the comment: If that seems okay, I'll work on a backport PR for 3.10. -- ___ Python tracker ___ ___

[issue46006] [subinterpreter] _PyUnicode_EqualToASCIIId() issue with subinterpreters

2021-12-15 Thread Eric Snow
Eric Snow added the comment: I've created a PR for moving the interned strings and identifiers to _PyRuntimeState until we are ready to move them back to the interpreter. -- ___ Python tracker

[issue46006] [subinterpreter] _PyUnicode_EqualToASCIIId() issue with subinterpreters

2021-12-15 Thread Eric Snow
Change by Eric Snow : -- pull_requests: +28350 pull_request: https://github.com/python/cpython/pull/30131 ___ Python tracker ___

[issue46070] _PyImport_FixupExtensionObject() regression causing a crash in subintepreters

2021-12-15 Thread STINNER Victor
STINNER Victor added the comment: Hum, maybe bug.py exposes a different kind of bug. The _asyncio extension uses a non-trivial initialize code which doesn't seem to handle well concurrent "import _asyncio". -- ___ Python tracker

[issue46091] IndendationError from multi-line indented statements

2021-12-15 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- Removed message: https://bugs.python.org/msg408657 ___ Python tracker ___ ___ Python-bugs-list

[issue46070] _PyImport_FixupExtensionObject() regression causing a crash in subintepreters

2021-12-15 Thread STINNER Victor
Change by STINNER Victor : -- title: broken subinterpreters -> _PyImport_FixupExtensionObject() regression causing a crash in subintepreters ___ Python tracker ___

[issue46070] broken subinterpreters

2021-12-15 Thread STINNER Victor
STINNER Victor added the comment: Using attached bug.py, it's possible to trigger the crash on the main branch. I modified the reproducer to use the "_asyncio" extension which still uses the old API PyModule_Create() with PyModuleDef.m_size = -1. -- Added file:

[issue46091] IndendationError from multi-line indented statements

2021-12-15 Thread Jeremy
Jeremy added the comment: Wow, this was a fast turnaround! I was going to spin some cycles on this, but would have not seen the solution in 50m. -- ___ Python tracker ___

[issue46070] broken subinterpreters

2021-12-15 Thread STINNER Victor
STINNER Victor added the comment: I can sometimes reproduce the crash on Windows with Python 3.9. Call stack (most recent to oldest frames): * PyObject_GC_UnTrack() - crash on _PyGCHead_SET_NEXT(prev, next) because prev is dangling pointer (0x1fe64dd5250), Visual Studio is unable to read

[issue46091] IndendationError from multi-line indented statements

2021-12-15 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: nevermind, I am convinced is a bug. I filed a PR for it -- stage: patch review -> ___ Python tracker ___

[issue46091] IndendationError from multi-line indented statements

2021-12-15 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +28349 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30130 ___ Python tracker

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

2021-12-15 Thread Daniel McDonald
Daniel McDonald added the comment: For reference, the bug reports with Debian and Ubuntu are at the following URLs: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1001774 https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1954963 -- ___

[issue46092] Fix/update missing parameters in function signatures for Built-in Functions documentation.

2021-12-15 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +AlexWaygood versions: +Python 3.11, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list

[issue45829] Remove C stack use by specializing BINARY_SUBSCR, STORE_SUBSCR, LOAD_ATTR, and STORE_ATTR

2021-12-15 Thread Brandt Bucher
Change by Brandt Bucher : -- pull_requests: +28348 pull_request: https://github.com/python/cpython/pull/30129 ___ Python tracker ___

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

2021-12-15 Thread Daniel McDonald
Daniel McDonald added the comment: Thank you, Christian, I apologize for missing your reply. That is great advice, and I will do so. -- ___ Python tracker ___

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

2021-12-15 Thread Daniel McDonald
Daniel McDonald added the comment: The use of tm_isdst=1 appears to trigger the overflow, and occurs when varying other aspects of the timetuple. Python's mktime wrapper can throw OverflowError in two places. The thrown error is the second location, following the call to glibc's mktime

[issue46091] IndendationError from multi-line indented statements

2021-12-15 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Actually, I am not sure if this is a bug, at least according to this comment: https://bugs.python.org/msg370812 What are your thoughts on this Guido? -- nosy: +gvanrossum ___ Python tracker

[issue46091] IndendationError from multi-line indented statements

2021-12-15 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Unfortunately I am not sure if this is going to be easier to retrofit for the reasons exposed in the issue. I will try to take a look, but if you have some cycles to spare, a PR would be welcomed. -- ___

[issue46092] Fix/update missing parameters in function signatures for Built-in Functions documentation.

2021-12-15 Thread Vivek Vashist
Vivek Vashist added the comment: PR: https://github.com/python/cpython/pull/30128 -- ___ Python tracker ___ ___ Python-bugs-list

[issue46092] Fix/update missing parameters in function signatures for Built-in Functions documentation.

2021-12-15 Thread Vivek Vashist
Change by Vivek Vashist : -- keywords: +patch pull_requests: +28347 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30128 ___ Python tracker ___

[issue46091] IndendationError from multi-line indented statements

2021-12-15 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: This is a side effect on the fix in: https://bugs.python.org/issue40847 -- ___ Python tracker ___

[issue46092] Fix/update missing parameters in function signatures for Built-in Functions documentation.

2021-12-15 Thread Vivek Vashist
New submission from Vivek Vashist : Previous issue: https://github.com/python/cpython/pull/30113#issuecomment-994642493 As noted/pointed by Alex - I went through all the Built-in Functions and updated/fixed the missing parameters. I'll raise a PR shortly. -- assignee: docs@python

[issue46089] Problems with AF_PACKET sockets

2021-12-15 Thread G. Allard
G. Allard added the comment: Next 3 steps must be (in decreasing priorities): - fix the code - write a mini-howto. It will be used for test purposes - write documentation (a Howto/tutorial) For the 3rd step, I would accept to join a team. -- ___

[issue46091] IndendationError from multi-line indented statements

2021-12-15 Thread Jeremy
New submission from Jeremy : At some point in 3.9 Python appears to have stopped accepting source that starts with an indent, then a '\', then the indented statement. From the lexical analysis [1] "Indentation cannot be split over multiple physical lines using backslashes; the whitespace up

[issue46088] Build hangs under Visual Studio in deepfreeze stage

2021-12-15 Thread Guido van Rossum
Change by Guido van Rossum : -- keywords: +patch pull_requests: +28346 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/30127 ___ Python tracker

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

2021-12-15 Thread Christian Heimes
Christian Heimes added the comment: time.mktime() is a thin wrapper around the libc function mktime(3). I can confirm that glibc's mktime() on Debian 11 with glibc 2.31 is failing and returning error code -1. Fedora 35 with glibc 2.34, Alpine with musl libc 1.2.2, and RHEL 8 with glibc 2.28

[issue46084] Python 3.9.6 scan_dir returns filenotfound on long paths, but os_walk does not

2021-12-15 Thread Jim Schwartz
Jim Schwartz added the comment: Please let me know if you are able to reproduce this issue. -- ___ Python tracker ___ ___

[issue45959] Teach pprint about dict views

2021-12-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: More accurate to say that it aspires to print in a single line ONLY if the content fits in the specified width. Otherwise, it prints vertically with appropriate indentation. Indeed, that is the entire purpose of the module; otherwise, we would just use

[issue46079] [doc] Broken URL in "Brief Tour of the Standard Library"

2021-12-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: This seems to be a temporary outage, expected to be restored in the first half of 2022. Source: https://www.usno.navy.mil/USNO/time/master-clock I'll look for an alternative time source that is currently online. -- assignee: docs@python ->

[issue46090] C extensions can't swap out live frames anymore

2021-12-15 Thread Brandt Bucher
New submission from Brandt Bucher : I'm specifically concerned about Greenlet here (since it's a dependency of pyperformance), but this discussion is equally relevant to any library like it that dynamically swaps out the currently executing frame. CPython 3.11 makes several major changes to

[issue46085] OrderedDict iterator allocates di_result unnecessarily

2021-12-15 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46086] Add ratio_min() function to the difflib library

2021-12-15 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: -> tim.peters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35844] Calling `Multiprocessing.Queue.close()` too quickly causes intermittent failure (BrokenPipeError)

2021-12-15 Thread jdogzz-g5
Change by jdogzz-g5 : -- nosy: +jdogzz-g5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46089] Problems with AF_PACKET sockets

2021-12-15 Thread Ethan Furman
Ethan Furman added the comment: Thank you for the thorough report. Do you feel comfortable writing that missing documentation? -- nosy: +ethan.furman ___ Python tracker ___

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

2021-12-15 Thread Daniel McDonald
Daniel McDonald added the comment: Thank you, Terry. I'm currently exploring modifications to the test Andrei made within a fork of CPython using Github Actions (ubuntu-latest). These modifications include debug prints in the CPython mktime call, and some parameter exploration. I expect to

[issue46084] Python 3.9.6 scan_dir returns filenotfound on long paths, but os_walk does not

2021-12-15 Thread Jim Schwartz
Jim Schwartz added the comment: my c drive and h drive are both internal drives and I run the python script from my user directory on my c drive. Not sure if that makes any difference. Just trying to think of things that might help you reproduce and fix this. --

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

2021-12-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thank you both. Status: Failures on Open Suse TW (Vyacheslav) and Ubuntu 20-04 (Daniel McDonald, Github Actions, and Azure Pipelines). Success on Windows (me), macOS (Catalina-me and 11.6.1-DM), Centos 7.9 and Ubuntu 18-04 (both DM) I verified that the

[issue32867] argparse assertion failure with multiline metavars

2021-12-15 Thread Irit Katriel
Irit Katriel added the comment: It works for me on 3.11: % ./python.exe b.py -h usage: 11 [-h] [-v] 123456 12345 12345 123 [123456 12345 12345 123 ...] positional arguments: 123456 12345 12345 123 installation targets options: -h, --help

[issue46006] [subinterpreter] _PyUnicode_EqualToASCIIId() issue with subinterpreters

2021-12-15 Thread Eric Snow
Eric Snow added the comment: FWIW, it makes sense to me for the interned strings to be per-interpreter eventually. Otherwise strings interned by an interpreter would persist after that interpreter is finalized, potentially leaking memory until the runtime is finalized. However, if we end up

[issue38119] resource tracker destroys shared memory segments when other processes should still have valid access

2021-12-15 Thread jdogzz-g5
Change by jdogzz-g5 : -- nosy: +jdogzz-g5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46006] [subinterpreter] _PyUnicode_EqualToASCIIId() issue with subinterpreters

2021-12-15 Thread Eric Snow
Eric Snow added the comment: It sounds like this bug is another case where we have made some objects per-interpreter but others are still global and this is causing problems. _PyUnicode_EqualToASCIIId() wouldn't have any problems if interpreters weren't sharing any objects (or were only

[issue44999] Argparse missing translates

2021-12-15 Thread Irit Katriel
Change by Irit Katriel : -- nosy: -lys.nikolaou type: performance -> behavior versions: +Python 3.10, Python 3.11 ___ Python tracker ___

[issue46089] Problems with AF_PACKET sockets

2021-12-15 Thread G. Allard
New submission from G. Allard : For educational purposes, I'm developing my own IP stack in Python. It's going well but I'm stuck at a low level. I need to implement the following (simple) task: - open an AF_PACKET socket (socket.socket) - bind it to a specific interface (socket.bind) Python

[issue22047] Deprecate unsupported nesting of argparse groups

2021-12-15 Thread Irit Katriel
Irit Katriel added the comment: Another issue due to nesting: issue38590. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue46084] Python 3.9.6 scan_dir returns filenotfound on long paths, but os_walk does not

2021-12-15 Thread Jim Schwartz
Jim Schwartz added the comment: when I run the following command: python "H:\Users\LindaJim\Documents\AWS Python Learning\test_dir_scan_dir.py" "C:\\" I get this output: ... Traceback (most recent call last): File "H:\Users\LindaJim\Documents\AWS Python Learning\test_dir_scan_dir.py",

[issue46088] Build hangs under Visual Studio in deepfreeze stage

2021-12-15 Thread Guido van Rossum
New submission from Guido van Rossum : I am trying to build under Visual Studio (the 2019 release) and I'm encountering the following weird issue. In the project file PCbuild\_freeze_module.vcxproj there's a command that runs the Tools\scripts\deepfreeze.py script to generate some code. The

[issue46084] Python 3.9.6 scan_dir returns filenotfound on long paths, but os_walk does not

2021-12-15 Thread Jim Schwartz
Jim Schwartz added the comment: the issue is with the scandir script, not the os_walk script. I tried to upload the scandir python script before, but I guess it didn't upload. When I was running the two scripts, I used an input of C:\\ as the input parameter. Hope that helps. --

[issue46070] broken subinterpreters

2021-12-15 Thread Ben Steffensmeier
Ben Steffensmeier added the comment: We have been seeing intermittent crashes on jep that we tracked down to the same change (d0d29655ff). I have created a sample program using _testcapi that crashes about 50% of the time when run on Windows with Python 3.9.9. We have not been able to

[issue46084] Python 3.9.6 scan_dir returns filenotfound on long paths, but os_walk does not

2021-12-15 Thread Eryk Sun
Eryk Sun added the comment: > but errors in DirEntry.is_dir() and DirEntry.is_symlink() > are always ignored In Windows, is_symlink() won't fail due to a long path, since that information comes from the directory listing, but is_dir() might fail for a long path if it's a symlink to a

[issue46070] broken subinterpreters

2021-12-15 Thread Nathan Jensen
Change by Nathan Jensen : -- nosy: +ndjensen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46087] format library documentation error

2021-12-15 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +eric.smith resolution: -> not a bug stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue46087] format library documentation error

2021-12-15 Thread Arthur Milchior
Arthur Milchior added the comment: ipypthon3 does not print the loop content. python3 does. I only tested with ipython. I beg your pardon. I didn't know about this difference in behavior -- nosy: -eric.smith title: Zip library documentation error -> format library documentation

[issue46087] Zip library documentation error

2021-12-15 Thread Eric V. Smith
Eric V. Smith added the comment: Good point, Serhiy. I also don't see how the proposed change is related to any zip documentation (which is in the title of this issue). I suggest closing this. -- nosy: +eric.smith ___ Python tracker

[issue46086] Add ratio_min() function to the difflib library

2021-12-15 Thread Alex Waygood
Change by Alex Waygood : -- nosy: -AlexWaygood ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46086] Add ratio_min() function to the difflib library

2021-12-15 Thread Alex Waygood
Alex Waygood added the comment: I am removing 3.10 from the "versions" field, since additions to the standard library are only considered for unreleased versions of Python. -- nosy: +AlexWaygood, tim.peters versions: -Python 3.10 ___ Python

[issue46087] Zip library documentation error

2021-12-15 Thread Eric V. Smith
Change by Eric V. Smith : -- versions: -Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue46087] Zip library documentation error

2021-12-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Since it is a REPL example, no print() is needed. In REPL any expression statement prints the repr of its result. For example: >>> for x in range(1, 5): ... f'{x}**2 = {x**2}' ... '1**2 = 1' '2**2 = 4' '3**2 = 9' '4**2 = 16' There are many such

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

2021-12-15 Thread Andrei Kulakov
Change by Andrei Kulakov : -- resolution: works for me -> stage: resolved -> needs patch status: closed -> open versions: +Python 3.10, Python 3.11 -Python 3.7, Python 3.8 ___ Python tracker

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

2021-12-15 Thread Andrei Kulakov
Andrei Kulakov added the comment: Confirmed on Ubuntu buildbot: https://github.com/python/cpython/runs/4537544103?check_suite_focus=true -- ___ Python tracker ___

[issue46084] Python 3.9.6 scan_dir returns filenotfound on long paths, but os_walk does not

2021-12-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: os.walk() has been implemented via os.scandir(), but by default it ignores OSErrors raised by os.scandir(), DirEntry.is_dir() and DirEntry.is_symlink(). You can get errors raised by os.scandir() if specify the onerror argument, but errors in

[issue46084] Python 3.9.6 scan_dir returns filenotfound on long paths, but os_walk does not

2021-12-15 Thread Eryk Sun
Eryk Sun added the comment: If I had long paths enabled, then next(os.walk(p, onerror=print)) would not have printed the error that I showed in the example and would not have immediately raised StopIteration. Instead it would have returned a (dirpath, dirnames, filenames) result for

[issue46087] Zip library documentation error

2021-12-15 Thread Arthur Milchior
Change by Arthur Milchior : -- keywords: +patch pull_requests: +28345 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30126 ___ Python tracker ___

[issue46087] Zip library documentation error

2021-12-15 Thread Arthur Milchior
New submission from Arthur Milchior : I don't have permission to assign the issue, but I intend to post the change in a few minutes as a PR Copied from Richard Hyde's email to doc mailing list. One of the examples of string formatting doesn't work. This applies to prior versions of Python

[issue46084] Python 3.9.6 scan_dir returns filenotfound on long paths, but os_walk does not

2021-12-15 Thread Jim Schwartz
Jim Schwartz added the comment: do you have this registry entry set to 1: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem\LongPathsEnabled set to 1. It works if you do. What version of windows do you have? I have version 21H2 (OS Build 19044.1387). I don't have windows 11

[issue46086] Add ratio_min() function to the difflib library

2021-12-15 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 1.0 -> 2.0 pull_requests: +28344 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30125 ___ Python tracker

[issue46086] Add ratio_min() function to the difflib library

2021-12-15 Thread Giacomo
New submission from Giacomo : Here I propose a new function, namely .ratio_min(self,m). .ratio_min(self,m) is an extension of the difflib's function .ratio(self). Equivalently to .ratio(self), .ratio_min(self,m) returns a measure of two sequences' similarity (float in [0,1]). In addition to

[issue46084] Python 3.9.6 scan_dir returns filenotfound on long paths, but os_walk does not

2021-12-15 Thread Eryk Sun
Eryk Sun added the comment: It works as expected for me: >>> len(p) 261 >>> print(p) C:\Temp\Jim\Documents\jschw_uiowtv3_old\AppData\Local\Google\Chrome\User

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

2021-12-15 Thread Andrei Kulakov
Change by Andrei Kulakov : -- pull_requests: +28343 pull_request: https://github.com/python/cpython/pull/30124 ___ Python tracker ___

[issue41682] [Windows] test_asyncio: Proactor test_sendfile_close_peer_in_the_middle_of_receiving failure

2021-12-15 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46006] [subinterpreter] _PyUnicode_EqualToASCIIId() issue with subinterpreters

2021-12-15 Thread STINNER Victor
STINNER Victor added the comment: Mark: "As Victor points out, there is no bug in 3.9 because interned strings are common across all interpreter. We should revert that behavior." The rationale for having per-interpreter interned strings and per-interpreter _Py_IDENTIFIER() string objects

[issue46084] Python 3.9.6 scan_dir returns filenotfound on long paths, but os_walk does not

2021-12-15 Thread Jim Schwartz
Jim Schwartz added the comment: yes, I do. C:\Users\Jim\Documents\jschw_uiowtv3_old\AppData\Local\Google\Chrome\User

[issue46072] Unify handling of stats in the CPython VM

2021-12-15 Thread Christian Heimes
Christian Heimes added the comment: Could you please add the new option to Doc/using/configure.rst ? -- nosy: +christian.heimes ___ Python tracker ___

[issue46085] OrderedDict iterator allocates di_result unnecessarily

2021-12-15 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +rhettinger versions: -Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue46084] Python 3.9.6 scan_dir returns filenotfound on long paths, but os_walk does not

2021-12-15 Thread Eryk Sun
Eryk Sun added the comment: > Python 3.9.6 scan_dir returns filenotfound on long paths, > but os_walk does not. This would be surprising. os.walk() has been implemented via os.scandir() since Python 3.5. Do you have a concrete example of the directory structure to test? > I see that many

[issue46085] OrderedDict iterator allocates di_result unnecessarily

2021-12-15 Thread Kevin Shweh
New submission from Kevin Shweh : The OrderedDict iterator caches a di_result tuple for use with iter(od.items()). It's *supposed* to only do that for the items() case, but the code does if (kind & (_odict_ITER_KEYS | _odict_ITER_VALUES)) to test for this case. This is the wrong test.

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

2021-12-15 Thread Daniel McDonald
Daniel McDonald added the comment: I'd like to politely request this issue be reopened. We recently observed a similar, if not the same, OverflowError during continuous integration using Github Actions on ubuntu-latest (20.04). We can produce the error using pure Python without pytz. We

[issue46006] [subinterpreter] _PyUnicode_EqualToASCIIId() issue with subinterpreters

2021-12-15 Thread Mark Shannon
Mark Shannon added the comment: The problem here is that different sub-interpreters have different strings for the same Python string. Unless sub-interpreters are fully independent, and they cannot be due to limitations imposed by the stable API, then all sub-interpreters must share the

[issue46072] Unify handling of stats in the CPython VM

2021-12-15 Thread Mark Shannon
Mark Shannon added the comment: New changeset 342b93f9f28746abb7b221a61d5a9b26ccbb395a by Mark Shannon in branch 'main': bpo-46072: Add --with-pystats configure option to simplify gathering of VM stats (GH-30116)

[issue41682] [Windows] test_asyncio: Proactor test_sendfile_close_peer_in_the_middle_of_receiving failure

2021-12-15 Thread Ken Jin
Ken Jin added the comment: Happened to a PR I was reviewing today: https://github.com/python/cpython/runs/4535247255?check_suite_focus=true -- keywords: -patch nosy: +kj versions: +Python 3.11 ___ Python tracker

[issue46006] [subinterpreter] _PyUnicode_EqualToASCIIId() issue with subinterpreters

2021-12-15 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-46070: I don't know if it's related. -- ___ Python tracker ___ ___ Python-bugs-list

[issue46006] [subinterpreter] _PyUnicode_EqualToASCIIId() issue with subinterpreters

2021-12-15 Thread STINNER Victor
STINNER Victor added the comment: These bug prevent the Fedora infra team from upgrading the Koji builders to Fedora 35. Koji runs on mod_wsgi which is affected by the bug: https://bugzilla.redhat.com/show_bug.cgi?id=2030621#c1 -- ___ Python

[issue46084] Python 3.9.6 scan_dir returns filenotfound on long paths, but os_walk does not

2021-12-15 Thread Jim Schwartz
Jim Schwartz added the comment: Here's the second file that works just fine under python 3.9 (by the way, I am using Windows 64-bit). I didn't test this on later python versions, however, nor did I test it on 32-bit versions. I see that many people on the internet have said to change the

[issue44525] Implement CALL_FUNCTION adaptive interpreter optimizations

2021-12-15 Thread Mark Shannon
Mark Shannon added the comment: New changeset 3a60bfef49b3324660a615a8e6d10710e5f669d9 by Mark Shannon in branch 'main': bpo-44525: Specialize for calls to type and other builtin classes with 1 argument. (GH-29942)

[issue46080] argparse.BooleanOptionalAction with default=argparse.SUPPRESS and help specified raises exception

2021-12-15 Thread Irit Katriel
Change by Irit Katriel : -- title: argparse.BooleanOptionalAction with default=argparse.SUPPRESS and help specified crashes -> argparse.BooleanOptionalAction with default=argparse.SUPPRESS and help specified raises exception ___ Python tracker

[issue46084] Python 3.9.6 scan_dir returns filenotfound on long paths, but os_walk does not

2021-12-15 Thread Jim Schwartz
New submission from Jim Schwartz : Python 3.9.6 scan_dir returns filenotfound on long paths, but os_walk does not. I've enclosed sample scripts that compare the two and have returned the results. the windows 10 registry entry to extend the path names fixes this issue

[issue40533] [subinterpreters] Don't share Python objects between interpreters

2021-12-15 Thread STINNER Victor
STINNER Victor added the comment: Until all Python stdlib C extensions and all third-party C extensions will be modified to no longer use and define static types and will stop shared Python objects between two interpreters, we can no longer micro-optimize the comparison of two interned

[issue46006] [subinterpreter] _PyUnicode_EqualToASCIIId() issue with subinterpreters

2021-12-15 Thread STINNER Victor
STINNER Victor added the comment: I created PR 30123 to fix _PyUnicode_EqualToASCIIId() and type update_slot() functions. I added comments explaining why we can no longer optimize the comparison of two interned string objects. -- ___ Python

[issue46006] [subinterpreter] _PyUnicode_EqualToASCIIId() issue with subinterpreters

2021-12-15 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +28342 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30123 ___ Python tracker ___

  1   2   >