[issue38222] pathlib Path objects should support __format__

2021-04-22 Thread Steve Dower
Change by Steve Dower : -- pull_requests: -24264 ___ Python tracker <https://bugs.python.org/issue38222> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38822] [Windows] Inconsistent os.stat behavior for directory with Access Denied

2021-04-22 Thread Steve Dower
Steve Dower added the comment: New changeset 9f0b3a9c8eedf694377d8638365fb9f385daa581 by Miss Islington (bot) in branch '3.8': bpo-38822: Check specifically for a drive, not just a colon (GH-25540) https://github.com/python/cpython/commit/9f0b3a9c8eedf694377d8638365fb9

[issue38822] [Windows] Inconsistent os.stat behavior for directory with Access Denied

2021-04-22 Thread Steve Dower
Steve Dower added the comment: New changeset 28575923a9ee40928a9d00a7ed997a6f6a09b8d1 by Miss Islington (bot) in branch '3.9': bpo-38822: Check specifically for a drive, not just a colon (GH-25540) https://github.com/python/cpython/commit/28575923a9ee40928a9d00a7ed997a

[issue43538] [Windows] support args and cwd in os.startfile()

2021-04-23 Thread Steve Dower
Steve Dower added the comment: New changeset 019e9e816882f5c43c4b833f81844b8299e815fd by Steve Dower in branch 'master': bpo-43538: Add extra arguments to os.startfile (GH-25538) https://github.com/python/cpython/commit/019e9e816882f5c43c4b833f81844b

[issue43538] [Windows] support args and cwd in os.startfile()

2021-04-23 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

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

2021-04-23 Thread Steve Dower
Steve Dower added the comment: New changeset 3513d55a617012002c3f82dbf3cec7ec1abd7090 by Steve Dower in branch 'master': bpo-43607: Fix urllib handling of Windows paths with \\?\ prefix (GH-25539) https://github.com/python/cpython/commit/3513d55a617012002c3f82dbf3cec7

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

2021-04-23 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue43284] sys.getwindowsversion().platform_version is incorrect

2021-04-23 Thread Steve Dower
Steve Dower added the comment: New changeset 52e9031fbd23c10668badc2a72ee5c203d6902c7 by Miss Islington (bot) in branch '3.9': bpo-43284: Update platform.win32_ver to use _syscmd_ver instead of sys.getwindowsversion() (GH-25500) https://github.com/python/cpyt

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

2021-04-23 Thread Steve Dower
Steve Dower added the comment: New changeset e92d1106291e5a7d4970372478f2882056b7eb3a by Miss Islington (bot) in branch '3.8': bpo-43607: Fix urllib handling of Windows paths with \\?\ prefix (GH-25539) https://github.com/python/cpython/commit/e92d1106291e5a7d4970372478f288

[issue43762] Add audit events for loading of sqlite3 extensions

2021-04-23 Thread Steve Dower
Steve Dower added the comment: Left some minor suggestions on the PR, but wanted to copy this comment here as well: I wonder if it's worth returning the connection object when it's created (through a new event in module.c) and then reference it in these events? That can then

[issue40432] Pegen regenerate project for Windows not working

2021-04-23 Thread Steve Dower
Steve Dower added the comment: Thanks for the PR, kj! Left a suggestion for you, but otherwise it should solve the problem nicely. -- ___ Python tracker <https://bugs.python.org/issue40

[issue43652] Upgrade Windows tcl/tk to 8.6.11

2021-04-23 Thread Steve Dower
Steve Dower added the comment: Thanks for finishing up that patch. And yes, we add a ".0" in case we need to patch the sources ourselves. -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Pyt

[issue43649] time.strftime('%z') doesn't return UTC offset in the form ±HHMM

2021-04-23 Thread Steve Dower
Steve Dower added the comment: I agree with Eryk, this is not an issue with the supported C runtime. mingw-w64 has supposedly been working on UCRT support (it may even be working already?), and that is what will be necessary. We certainly aren't going to try and runtime detect thi

[issue30555] _io._WindowsConsoleIO breaks in the face of fd redirection

2021-04-23 Thread Steve Dower
Steve Dower added the comment: New changeset 5e437fb872279960992c9a07f1a4c051b4948c53 by Segev Finer in branch 'master': bpo-30555: Fix WindowsConsoleIO fails in the presence of fd redirection (GH-1927) https://github.com/python/cpython/commit/5e437fb872279960992c9a07f1a4c0

[issue30555] _io._WindowsConsoleIO breaks in the face of fd redirection

2021-04-23 Thread Steve Dower
Steve Dower added the comment: Thanks for persisting with this change. Looks like backports will have to be manual, and I'm not going to get to them today myself, but if someone else wants to do it then feel free. I'm pretty sure this won't have any (negative) visible impa

[issue43762] Add audit events for loading of sqlite3 extensions

2021-04-26 Thread Steve Dower
Steve Dower added the comment: Yeah, along those lines. I believe the event is ".../result" in other places, just to be clear that it's not a function with that name. Also, don't forget to clean up when returning early from the connected event. We don't want to leak

[issue43757] pathlib: move 'resolve()' logic out of path flavour

2021-04-26 Thread Steve Dower
Steve Dower added the comment: I'm happy with the PR as it stands now. Anyone else have an opinion? -- nosy: +eryksun, steve.dower ___ Python tracker <https://bugs.python.org/is

[issue42998] pathlib.Path: add `username` argument to `home()`

2021-04-26 Thread Steve Dower
Steve Dower added the comment: I'm not convinced this is a good change, mainly for the reasons Serhiy mentioned (and others have mentioned when I've spoken with them privately). What would you do with your custom subclass if home() did not have this argument? -- nosy: +s

[issue40432] Pegen regenerate project for Windows not working

2021-04-26 Thread Steve Dower
Steve Dower added the comment: New changeset 425434dadc30d96dc1c0c628f954f9b6f5edd2c9 by Ken Jin in branch 'master': bpo-40432: Use python 3.8 or higher to compile CPython on Windows (#25389) https://github.com/python/cpython/commit/425434dadc30d96dc1c0c628f954f9

[issue42998] pathlib.Path: add `username` argument to `home()`

2021-04-26 Thread Steve Dower
Steve Dower added the comment: Yeah, that's all reasonable. But why wouldn't we go the other way and say "getting a user directory for a different user is not supported and all existing ways to do it are now deprecated"? I know you think that's not a relevant argu

[issue43762] Add audit events for loading of sqlite3 extensions

2021-04-26 Thread Steve Dower
Steve Dower added the comment: New changeset 7244c0060dc3ef909f34b0791c3e7490b0340d5e by Erlend Egeberg Aasland in branch 'master': bpo-43762: Add audit events for loading of sqlite3 extensions (GH-25246) https://github.com/python/cpython/commit/7244c0060dc3ef909f34b0791c3e74

[issue43762] Add audit events for loading of sqlite3 extensions

2021-04-26 Thread Steve Dower
Steve Dower added the comment: Thanks for the PR! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue40432] Pegen regenerate project for Windows not working

2021-04-26 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue24258] BZ2File objects do not have name attribute

2021-04-27 Thread Steve Stagg
Steve Stagg added the comment: Please may you add a test that uses "io.BytesIO()" as the filename argument. BytesIO() objects do not have a 'name' attribute -- nosy: +stestagg ___ Python tracker <https://bug

[issue43492] Upgrade to SQLite 3.35.5 in macOS and Windows

2021-04-27 Thread Steve Dower
Steve Dower added the comment: I've pushed the new sources and retriggered the PR (a bit messily, because I tagged/labelled the wrong version number initially, but it's there now). So if it all passes then we're good from my POV. -- ___

[issue43864] [Windows] test_importlib logs: DeprecationWarning: WindowsRegistryFinder.find_module() is deprecated and slated for removal in Python 3.12; use find_spec() instead

2021-04-27 Thread Steve Dower
Steve Dower added the comment: New changeset e3bf179642a3445fb079454f382b93d0177f5012 by Shreyan Avigyan in branch 'master': bpo-43864: Silence deprecation warning in test_importlib.test_module_found and test_importlib.test_module_not_found (GH-25656) https://github.com/pyth

[issue43864] [Windows] test_importlib logs: DeprecationWarning: WindowsRegistryFinder.find_module() is deprecated and slated for removal in Python 3.12; use find_spec() instead

2021-04-27 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed status: open -> closed ___ Python tracker <https://bugs.python.org/issue43864> ___ ___ Python-bugs-list

[issue43492] Upgrade to SQLite 3.35.5 in macOS and Windows

2021-04-27 Thread Steve Dower
Steve Dower added the comment: New changeset bf0c7c0147b73738cac63eb27ef48430284ff121 by Erlend Egeberg Aasland in branch 'master': bpo-43492: Upgrade Windows installer to use SQLite 3.35.5 (GH-25641) https://github.com/python/cpython/commit/bf0c7c0147b73738cac63eb27ef484

[issue43492] Upgrade to SQLite 3.35.5 in macOS and Windows

2021-04-27 Thread Steve Dower
Steve Dower added the comment: New changeset 7f7cfc41185b651be9cb4d2759c40c3abf738485 by Erlend Egeberg Aasland in branch '3.8': [3.8] bpo-43492: Upgrade Windows installer to use SQLite 3.35.5 (GH-25641) https://github.com/python/cpython/commit/7f7cfc41185b651be9cb4d2759c40c

[issue43492] Upgrade to SQLite 3.35.5 in macOS and Windows

2021-04-27 Thread Steve Dower
Steve Dower added the comment: New changeset 5cadcec5ecf6f95cc771e509ad98c3e3533b32bb by Erlend Egeberg Aasland in branch '3.9': [3.9] bpo-43492: Upgrade Windows installer to use SQLite 3.35.5 (GH-25641) https://github.com/python/cpython/commit/5cadcec5ecf6f95cc771e509ad98c3

[issue43492] Upgrade to SQLite 3.35.5 in macOS and Windows

2021-04-27 Thread Steve Dower
Steve Dower added the comment: Thanks for the backports! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.8, Python 3.9 ___ Python tracker <https://bugs.python.or

[issue42957] os.readlink produces wrong result on windows

2021-04-27 Thread Steve Dower
Change by Steve Dower : -- pull_requests: -24359 ___ Python tracker <https://bugs.python.org/issue42957> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42957] os.readlink produces wrong result on windows

2021-04-27 Thread Steve Dower
Change by Steve Dower : -- pull_requests: -24360 ___ Python tracker <https://bugs.python.org/issue42957> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43955] Test Failures on Windows 10

2021-04-27 Thread Steve Dower
Steve Dower added the comment: I think the test failures cascade, and some state is not being cleaned up. I'm trying to work through them now, but if someone else is as well, do say so and I'll find something else to do. -- ___ Pyth

[issue43955] Windows: Running the Python test suite sequentially is interrupted by (Pdb) prompt

2021-04-27 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +24366 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25675 ___ Python tracker <https://bugs.python.org/issu

[issue43961] [Windows] test_logging.test_namer_rotator_inheritance() logs a logging error

2021-04-27 Thread Steve Dower
Steve Dower added the comment: What does os.rename do on Linux? Does it just overwrite existing files by default? -- ___ Python tracker <https://bugs.python.org/issue43

[issue43955] Windows: Running the Python test suite sequentially is interrupted by (Pdb) prompt

2021-04-28 Thread Steve Dower
Steve Dower added the comment: New changeset c1a9535989cc7323099725503519a17f79d083f5 by Steve Dower in branch 'master': bpo-43955: Handle the case where the distutils warning has already been triggered (GH-25675) https://github.com/python/cpyt

[issue43757] pathlib: move 'resolve()' logic out of path flavour

2021-04-28 Thread Steve Dower
Steve Dower added the comment: New changeset baecfbd849dbf42360d3a84af6cc13160838f24d by Barney Gale in branch 'master': bpo-43757: Make pathlib use os.path.realpath() to resolve symlinks in a path (GH-25264) https://github.com/python/cpython/commit/baecfbd849dbf42360d3a84af6cc13

[issue43757] pathlib: move 'resolve()' logic out of path flavour

2021-04-28 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue43847] [Windows] ntpath.realpath() of bytes root directory may raise TypeError in some cases

2021-04-28 Thread Steve Dower
Change by Steve Dower : -- keywords: +easy ___ Python tracker <https://bugs.python.org/issue43847> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39232] asyncio crashes when tearing down the proactor event loop

2021-04-28 Thread Steve Dower
Steve Dower added the comment: I'm also seeing (and annoyed by) this. Do we need to do anything more than suppress the error? If we're just failing to notify the event loop that we're closing because the loop is gone, does the notification even matter? -- nos

[issue43976] Introduce mechanism to allow Python distributors to add custom site install schemes

2021-04-29 Thread Steve Dower
Steve Dower added the comment: Any reason this couldn't be in sitecustomize.py? Either by poking values into sysconfig directly (for back-compat) or we train sysconfig to look inside sitecustomize for a well-known name. -- nosy: +steve.

[issue43968] os.path.realpath() unexpected breaking change: resolves subst'd paths to real paths

2021-04-29 Thread Steve Dower
Steve Dower added the comment: I think Eryk's point is that the behaviour is correct, and it's unfortunate that certain tools use realpath() when they don't actually mean it (I've been bitten by this too with pytest). Presumably you want to replace r

[issue42800] Traceback objects allow accessing frame objects without triggering audit hooks

2021-04-29 Thread Steve Dower
Steve Dower added the comment: New changeset 9a2c2a9ec3140b6c54c9ef9d994311f114128ee3 by Ryan Hileman in branch 'master': bpo-42800: add audit hooks for f_code and tb_frame (GH-24182) https://github.com/python/cpython/commit/9a2c2a9ec3140b6c54c9ef9d994311

[issue42800] Traceback objects allow accessing frame objects without triggering audit hooks

2021-04-29 Thread Steve Dower
Steve Dower added the comment: Sure, I can do that. -- ___ Python tracker <https://bugs.python.org/issue42800> ___ ___ Python-bugs-list mailing list Unsub

[issue42800] Traceback objects allow accessing frame objects without triggering audit hooks

2021-04-29 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +24427 pull_request: https://github.com/python/cpython/pull/25736 ___ Python tracker <https://bugs.python.org/issue42

[issue42800] Traceback objects allow accessing frame objects without triggering audit hooks

2021-04-29 Thread Steve Dower
Steve Dower added the comment: New changeset 87655e2cf58c543914ea05ebe5a0377441da1ef2 by Steve Dower in branch 'master': bpo-42800: Rename AUDIT_READ to PY_AUDIT_READ (GH-25736) https://github.com/python/cpython/commit/87655e2cf58c543914ea05ebe5a037

[issue42800] Traceback objects allow accessing frame objects without triggering audit hooks

2021-04-29 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +24428 pull_request: https://github.com/python/cpython/pull/25737 ___ Python tracker <https://bugs.python.org/issue42

[issue42800] Traceback objects allow accessing frame objects without triggering audit hooks

2021-04-29 Thread Steve Dower
Steve Dower added the comment: The 3.9 backport is a bit different from what's in master, so would appreciate someone double-check it. It should go back to 3.8 just fine. -- ___ Python tracker <https://bugs.python.org/is

[issue43968] os.path.realpath() unexpected breaking change: resolves subst'd paths to real paths

2021-05-02 Thread Steve Dower
Steve Dower added the comment: > The problem is with Python debugger and third-party tools - we can't make > changes there. You can report the issue to them, though. They may not realise that they're using realpath() in scenarios when their users do not want links to be res

[issue43434] sqlite3.Connection(...) bypasses 'sqlite3.connect' audit hooks

2021-05-02 Thread Steve Dower
Steve Dower added the comment: Yes, let's move it into the init function. -- ___ Python tracker <https://bugs.python.org/issue43434> ___ ___ Python-bugs-l

[issue43983] Can't install Python v3.9.4 / 0x80070643 / windows 10 64bit

2021-05-02 Thread Steve Dower
Steve Dower added the comment: Hi Marwan If you look in your %TEMP% directory for the log file you attached, you'll find some more similar log files. Could you attach those as well? One of them will have the actual issue in it. -- ___ P

[issue43434] sqlite3.Connection(...) bypasses 'sqlite3.connect' audit hooks

2021-05-02 Thread Steve Dower
Steve Dower added the comment: New changeset c96cc089f60d2bf7e003c27413c3239ee9de2990 by Erlend Egeberg Aasland in branch 'master': bpo-43434: Move sqlite3.connect audit events to sqlite3.Connection.__init__ (GH-25818) https://github.com/python/cpyt

[issue43434] sqlite3.Connection(...) bypasses 'sqlite3.connect' audit hooks

2021-05-02 Thread Steve Dower
Steve Dower added the comment: We could get this one in after beta 1 anyway, but sure, it's in. The backports are going to have to be manual, I suspect... -- stage: patch review -> backport needed ___ Python tracker <https://bugs

[issue43983] Can't install Python v3.9.4 / 0x80070643 / windows 10 64bit

2021-05-02 Thread Steve Dower
Steve Dower added the comment: This is the full error message (and sorry I just saw that you put it on pastebin in the first post). MSI (s) (18:04) [13:13:04:342]: SECREPAIR: Hash Database: C:\Windows\Installer\SourceHash{1C17C2CE-B315-4C1C-885A-E37181C7368E} MSI (s) (18:04) [13:13:04:342

[issue43434] sqlite3.Connection(...) bypasses 'sqlite3.connect' audit hooks

2021-05-02 Thread Steve Dower
Steve Dower added the comment: Thanks, Erlend! Appreciate how quickly you got onto that, and the quality of your work. -- ___ Python tracker <https://bugs.python.org/issue43

[issue43434] sqlite3.Connection(...) bypasses 'sqlite3.connect' audit hooks

2021-05-02 Thread Steve Dower
Steve Dower added the comment: New changeset cbb7b9ed4a6069a2cb2e2f809926c2cfa332a493 by Erlend Egeberg Aasland in branch 'master': bpo-43434: Clean up sqlite3.connect() after GH-25818 (GH-25823) https://github.com/python/cpython/commit/cbb7b9ed4a6069a2cb2e2f809926c2

[issue43434] sqlite3.Connection(...) bypasses 'sqlite3.connect' audit hooks

2021-05-02 Thread Steve Dower
Steve Dower added the comment: New changeset ad73d1657ca3591b1dd1d15bb80ce83ca7fc3223 by Erlend Egeberg Aasland in branch '3.9': bpo-43434: Move sqlite3.connect audit event to sqlite3.Connection.__init__ (GH-25818) https://github.com/python/cpyt

[issue43434] sqlite3.Connection(...) bypasses 'sqlite3.connect' audit hooks

2021-05-02 Thread Steve Dower
Steve Dower added the comment: New changeset 10665ac37313560fe87460cf4a5c26677049bf62 by Erlend Egeberg Aasland in branch '3.8': bpo-43434: Move sqlite3.connect audit events to sqlite3.Connection.__init__ (GH-25818) https://github.com/python/cpyt

[issue43434] sqlite3.Connection(...) bypasses 'sqlite3.connect' audit hooks

2021-05-02 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue42800] Traceback objects allow accessing frame objects without triggering audit hooks

2021-05-03 Thread Steve Dower
Steve Dower added the comment: New changeset bb2f3ff7a8f0c3565ccc1946dba7e09a3f7dc209 by Steve Dower in branch '3.9': bpo-42800: Add audit events for f_code and tb_frame (GH-24182) https://github.com/python/cpython/commit/bb2f3ff7a8f0c3565ccc1946dba7e0

[issue43976] Allow Python distributors to add custom site install schemes

2021-05-03 Thread Steve Dower
Steve Dower added the comment: > Making sysconfig look at sitecustomize seems like the wrong approach. I mean, you're literally customizing the site, so having it be done from sitecustomize doesn't seem terribly wrong. But I agree, I'd rather see the code in sitecustomi

[issue43976] Allow Python distributors to add custom site install schemes

2021-05-03 Thread Steve Dower
Steve Dower added the comment: Yes, I saw some of the latest changes in the PR. My biggest concern is with the bare "import _vendor_config", which I'd prefer to have restricted to a fixed location, rather than being influenced by environment variables and other options. We

[issue42800] Traceback objects allow accessing frame objects without triggering audit hooks

2021-05-03 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue44027] Python 3.9 UWP does not create key in PythonCore

2021-05-04 Thread Steve Dower
Steve Dower added the comment: Correct. It does, however, write to the lookaside space, which Windows will map back if you access it. So reading HKLM\Software\Python\PythonCore\3.9 will return all the values that would be there. It's only enumeration that doesn't work. I've r

[issue43976] Allow Python distributors to add custom site install schemes

2021-05-04 Thread Steve Dower
Steve Dower added the comment: The best option for restricting the import while still having it be a Python import is to find the file (if it's present in the expected location under sys.whatever), and then use importlib to import it: https://docs.python.org/3/library/importlib

[issue43976] Allow Python distributors to add custom site install schemes

2021-05-04 Thread Steve Dower
Steve Dower added the comment: > I'd rather not have a new option here ... Perhaps what I'm suggesting here is that I don't see any reason for "sudo pip install ..." into a distro-installed Python to ever need to work, and would be quite happy for it to just fail

[issue43976] Allow Python distributors to add custom site install schemes

2021-05-04 Thread Steve Dower
Steve Dower added the comment: Would "pip install --user ..." in a Docker container also work, though? Presumably all the filesystem paths are being redirected anyway, so is there a difference? (My assumption is that "--user" would essentially become the default if

[issue43976] Allow Python distributors to add custom site install schemes

2021-05-04 Thread Steve Dower
Steve Dower added the comment: > "pip install as root" will need to continue to work and thus distros > need to get a way to make sure that it doesn't corrupt the system > installed packages Excuse my ignorance, but does "as root" imply that there's

[issue43976] Allow Python distributors to add custom site install schemes

2021-05-05 Thread Steve Dower
Steve Dower added the comment: >> The best option for restricting the import while still having it be a Python >> import is to find the file (if it's present in the expected location under >> sys.whatever), and then use importlib to import it: >> http

[issue44051] Virtualalloc wrong return type

2021-05-05 Thread Steve Dower
Steve Dower added the comment: The return type of a ctypes function is set by whoever is accessing it. If that is you, then you should do: ctypes.windll.kernel32.VirtualAlloc.restype = ctypes.c_void_p If it's not you, can you point out which code is getting this wrong? ctypes defaul

[issue44061] Regression in pkgutil: iter_modules stopped taking Path argument in python 3.8.10 and 3.9.5

2021-05-06 Thread Steve Dower
Steve Dower added the comment: Looks like it was always getting lucky in the past, as sys.path requires strings, and the "path" argument here is an alternative to it. The cache was definitely not working as intended. So while it's not clearly documented anywhere (other t

[issue44061] Regression in pkgutil: iter_modules stopped taking Path argument in python 3.8.10 and 3.9.5

2021-05-06 Thread Steve Dower
Steve Dower added the comment: To be clear, I'll get to this when I can, but if someone else wants to write the fix I'm happy to review and merge. Don't wait for me to do this one just because I'm assigned. -- versions: +Python 3.11 __

[issue44061] Regression in pkgutil: iter_modules stopped taking Path argument in python 3.8.10 and 3.9.5

2021-05-06 Thread Steve Dower
Steve Dower added the comment: > I can reproduce it on latest master running on Linux. Interesting. Perhaps my actual change was to cause it to raise an error earlier (outside of a handler)? Which would mean that the Path object was always failing before, just silently. Arguably we sho

[issue44070] Regression with relative paths in sys.path in python 3.8.10

2021-05-07 Thread Steve Dower
Steve Dower added the comment: It's almost certainly due to that change, though I'd be interested to see a more realistic repro. For the repro shown, you really ought to be clearing the importer cache as well when you remove a search path (as implied by chdir with a relati

[issue44070] __file__ is now fully qualified in 3.8 and 3.9

2021-05-07 Thread Steve Dower
Steve Dower added the comment: Yeah, you're probably right. That effect was not noticed when implementing it. We should update the fix in 3.9 and 3.8 to limit it to .pyd's on Windows to protect against the security risks, but leave other import types loaded with relative paths

[issue44075] Add a PEP578 audit hook for Asyncio loop stalls

2021-05-08 Thread Steve Dower
Steve Dower added the comment: Fundamentally I don't have an issue with the audit hook. My only concern would be if there's anything that an application may do to _respond_ to a stall (e.g. is this valuable for applying backpressure? etc.) If it's purely diagnostic, and

[issue44076] issue with list in Python 3.8.5

2021-05-10 Thread Steve Dower
Change by Steve Dower : -- nosy: -steve.dower ___ Python tracker <https://bugs.python.org/issue44076> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43804] "Building C and C++ Extensions on Windows" docs are very out-of-date

2021-05-10 Thread Steve Dower
Steve Dower added the comment: I still don't think the patch goes anywhere near far enough to be useful. Most likely we should preface that section with a "we recommend using a third-party build backend for your package, such as ... and refer to packaging.python.org for

[issue44070] __file__ is now fully qualified in 3.8 and 3.9

2021-05-10 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +24675 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26025 ___ Python tracker <https://bugs.python.org/issu

[issue44070] __file__ is now fully qualified in 3.8 and 3.9

2021-05-10 Thread Steve Dower
Steve Dower added the comment: New changeset 23822e2c654e950bcfa563e27b99bcb46187ac8b by Steve Dower in branch '3.9': bpo-44070: No longer eagerly makes import filenames absolute, except for extension modules (GH-26025) https://github.com/python/cpyt

[issue44070] __file__ is now fully qualified in 3.8 and 3.9

2021-05-10 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +24678 pull_request: https://github.com/python/cpython/pull/26028 ___ Python tracker <https://bugs.python.org/issue44

[issue44070] __file__ is now fully qualified in 3.8 and 3.9

2021-05-10 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +24679 pull_request: https://github.com/python/cpython/pull/26029 ___ Python tracker <https://bugs.python.org/issue44

[issue44070] __file__ is now fully qualified in 3.8 and 3.9

2021-05-10 Thread Steve Dower
Steve Dower added the comment: New changeset b4884083aed9bfec22c4da0e0223ad6a04a4bef2 by Steve Dower in branch '3.9': bpo-44070: Clarify NEWS message to specify the version when the behaviour was introduced (GH-26029) https://github.com/python/cpyt

[issue44061] Regression in pkgutil: iter_modules stopped taking Path argument in python 3.8.10 and 3.9.5

2021-05-11 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +24692 pull_request: https://github.com/python/cpython/pull/26052 ___ Python tracker <https://bugs.python.org/issue44

[issue44061] Regression in pkgutil: iter_modules stopped taking Path argument in python 3.8.10 and 3.9.5

2021-05-11 Thread Steve Dower
Steve Dower added the comment: Thanks for the patch! I don't think this meets the 3.8 bar now, but if Łukasz wants it then it should be easy. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___

[issue44070] __file__ is now fully qualified in 3.8 and 3.9

2021-05-12 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue44147] [WinError 193] %1 is not a valid Win32 application

2021-05-17 Thread Steve Dower
Steve Dower added the comment: >> Usually this error occurs due to PATH conflicts. > > Python 3.8 and above does not use PATH when importing extension modules For this issue, the PATH conflict would be that "pip" and "python" refer to different Python inst

[issue44147] [WinError 193] %1 is not a valid Win32 application

2021-05-17 Thread Steve Dower
Steve Dower added the comment: I didn't mean to change it. Maybe bpo did it automatically? There are a few ways to get multiple Python installs that could lead to launching the wrong one through PATH. --user is one of the least likely. -- status: open ->

[issue44184] crash on windows invoking flake8

2021-05-20 Thread Steve Stagg
Change by Steve Stagg : -- nosy: +stestagg ___ Python tracker <https://bugs.python.org/issue44184> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44184] crash on windows invoking flake8

2021-05-20 Thread Steve Stagg
Steve Stagg added the comment: I've found that it's reproducible if you run flake8 on a file that just contains: `a.b` whereas: `a` and `a(b)` don't seem to trigger the error. The object being cleaned up when the segfault appears, seems to be a subcl

[issue44184] crash on windows invoking flake8

2021-05-20 Thread Steve Stagg
Steve Stagg added the comment: I got the same result from a bisect: 11159d2c9d6616497ef4cc62953a5c3cc8454afb -- ___ Python tracker <https://bugs.python.org/issue44

[issue44184] crash on windows invoking flake8

2021-05-20 Thread Steve Stagg
Steve Stagg added the comment: So, for me, the single line from 11159d that causes the problem is this: pprint.py: import dataclasses as _dataclasses Obviously importing dataclasses here is having some side-effect -- ___ Python tracker <ht

[issue44184] crash on windows invoking flake8

2021-05-20 Thread Steve Dower
Steve Dower added the comment: > I've found that it's reproducible if you run flake8 on a file that just > contains: `a.b` ISTR there were some changes made to assigning attributes on AST classes recently? I forget who did them, but I remember discussing it during the s

[issue44236] Define SOABI, LIBRARY, LDLIBRARY and LIBPL on Windows

2021-05-25 Thread Steve Dower
New submission from Steve Dower : Python on Windows currently has no values in sysconfig to locate the lib files for building. Though these are very predictable (for now), it would be nice to have them in the same place as for other platforms. I propose defining the following config vars in

[issue44236] Define SOABI, LIBRARY, LDLIBRARY and LIBPL on Windows

2021-05-25 Thread Steve Dower
Steve Dower added the comment: Should actually be: LIBPL=Path(sysconfig.get_config_var("installed_base")) / "libs" -- ___ Python tracker <https://bug

[issue44233] Provide Windows Terminal Fragment Extension

2021-05-25 Thread Steve Dower
Steve Dower added the comment: Thanks! This is a great idea. I'd prioritise adding support to the Store app first, as that's easier to manage (we're not having to modify files owned by other apps outside of our install directory). But no reason we couldn't extend the

[issue43921] test_ssl fails on Windows buildbots

2021-05-25 Thread Steve Dower
Steve Dower added the comment: I can't reproduce these on my own (Windows) machine either. Looking at the output, I think the tests are just going to be inherently flakey. It's not testing the specific scenario directly enough, and relying heavily on implicit synchronization. W

[issue43921] test_ssl fails on Windows buildbots

2021-05-25 Thread Steve Dower
Steve Dower added the comment: > But 3.9 and 3.8 are not failing on test_ssl, so do something has clearly > changed. Are the failing tests new? They're flakey in the sense that they're not failing reliably, when they clearly should be :) If something changed about how

[issue44265] Create an MSI Package

2021-06-01 Thread Steve Dower
Steve Dower added the comment: Thanks, Eric. Anyone may feel free to create and release their own MSI distro of CPython. I don't even mind if you use the binaries from our releases, as those are signed and your users will be able to know that they aren't modified (it's a li

<    5   6   7   8   9   10   11   12   13   14   >