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

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

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

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

[issue38222] pathlib Path objects should support __format__

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

[issue38222] pathlib Path objects should support __format__

2021-04-22 Thread Steve Dower
Steve Dower added the comment: New changeset e07d8098892e85ecc56969d2c9a5afb3ea33ce8f by Steve Dower in branch 'master': bpo-38222: Check specifically for a drive, not just a colon (GH-25540) https://github.com/python/cpython/commit/e07d8098892e85ecc56969d2c9a5afb3ea33ce8f

[issue38222] pathlib Path objects should support __format__

2021-04-22 Thread Steve Dower
Change by Steve Dower : -- pull_requests: -24260 ___ 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
Change by Steve Dower : -- pull_requests: +24261 pull_request: https://github.com/python/cpython/pull/25540 ___ Python tracker <https://bugs.python.org/issue38

[issue38222] pathlib Path objects should support __format__

2021-04-22 Thread Steve Dower
Change by Steve Dower : -- nosy: +steve.dower nosy_count: 5.0 -> 6.0 pull_requests: +24260 pull_request: https://github.com/python/cpython/pull/25540 ___ Python tracker <https://bugs.python.org/issu

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

2021-04-22 Thread Steve Dower
Change by Steve Dower : -- assignee: -> steve.dower versions: +Python 3.10, Python 3.8 ___ Python tracker <https://bugs.python.org/issue43607> ___ ___ Python-

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

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

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

2021-04-22 Thread Steve Dower
Steve Dower added the comment: Not rushing this one in, but this is a relatively straightforward addition that will definitely be handy in some situations. I didn't bother adding an enum for the SW_* constants, since I don't think they'll get anywhere near enough use to justify being in our

[issue35306] [Windows] OSError when testing whether pathlib.Path('*') exists

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

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

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

[issue35306] [Windows] OSError when testing whether pathlib.Path('*') exists

2021-04-22 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +24257 pull_request: https://github.com/python/cpython/pull/25538 ___ Python tracker <https://bugs.python.org/issue35

[issue35306] [Windows] OSError when testing whether pathlib.Path('*') exists

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

[issue35306] [Windows] OSError when testing whether pathlib.Path('*') exists

2021-04-22 Thread Steve Dower
Steve Dower added the comment: New changeset 4696f1285d83dd7b69f459c63e14080b1f87f797 by Steve Dower in branch 'master': bpo-35306: Avoid raising OSError from pathlib.Path.exists when passed an invalid filename (GH-25529) https://github.com/python/cpython/commit

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

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

[issue43915] Add PCbuild/blurb.bat

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

[issue43915] Add PCbuild/blurb.bat

2021-04-22 Thread Steve Dower
Steve Dower added the comment: New changeset a911bd15a19824c92af8e90b63af4a84a9670222 by Steve Dower in branch 'master': bpo-43915: Add PCbuild/blurb.bat to simplify Windows contributors (GH-25528) https://github.com/python/cpython/commit/a911bd15a19824c92af8e90b63af4a84a9670222

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

2021-04-22 Thread Steve Dower
Steve Dower added the comment: New changeset fe63a401a9b3ca1751b81b5d6ddb2beb7f3675c1 by Steve Dower in branch 'master': bpo-38822: Fixed os.stat failing on inaccessible directories. (GH-25527) https://github.com/python/cpython/commit/fe63a401a9b3ca1751b81b5d6ddb2beb7f3675c1

[issue35306] [Windows] OSError when testing whether pathlib.Path('*') exists

2021-04-22 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +24248 pull_request: https://github.com/python/cpython/pull/25529 ___ Python tracker <https://bugs.python.org/issue35

[issue43915] Add PCbuild/blurb.bat

2021-04-22 Thread Steve Dower
Steve Dower added the comment: Well, it's not so much the long command line, as having to remember which install of Python has blurb in it. This way, it's always the same one (and probably the copy that we installed into externals) -- ___ Python

[issue43915] Add PCbuild/blurb.bat

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

[issue43915] Add PCbuild/blurb.bat

2021-04-22 Thread Steve Dower
New submission from Steve Dower : I'm sick of writing long commands to invoke blurb, so add a batch file to do it. -- assignee: steve.dower components: Build, Windows messages: 391623 nosy: paul.moore, steve.dower, tim.golden, zach.ware priority: normal severity: normal status: open

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

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

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

2021-04-22 Thread Steve Dower
Steve Dower added the comment: I agree with Zach's comment on the PR - this topic needs an overhaul. All the information required is going to be out there somewhere, and those of us on this issue can help fill in any gaps, but someone will need to spend a bit of time on research and laying

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

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

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

2021-04-22 Thread Steve Dower
Steve Dower added the comment: New changeset 2a3f4899c63806439e5bcea0c30f7e6a6295a763 by Shreyan Avigyan in branch 'master': bpo-43284: Update platform.win32_ver to use _syscmd_ver instead of sys.getwindowsversion() (GH-25500) https://github.com/python/cpython/commit

[issue43756] About updating audit events when function gains new arguments

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

[issue26227] Windows: socket.gethostbyaddr(name) fails for non-ASCII hostname

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

[issue26227] Windows: socket.gethostbyaddr(name) fails for non-ASCII hostname

2021-04-21 Thread Steve Dower
Steve Dower added the comment: New changeset dc516ef8395d15da0ab225eb0dceb2e0581f51ca by Steve Dower in branch 'master': bpo-26227: Fixes decoding of host names on Windows from ANSI instead of UTF-8 (GH-25510) https://github.com/python/cpython/commit/dc516ef8395d15da0ab225eb0dceb2e0581f51ca

[issue43756] About updating audit events when function gains new arguments

2021-04-21 Thread Steve Dower
Steve Dower added the comment: New changeset a32f8fe7133aad4f3cf8946534e3b79a5f2659da by Saiyang Gou in branch 'master': bpo-43756: Add new audit event for new arguments added to glob.glob (GH-25239) https://github.com/python/cpython/commit/a32f8fe7133aad4f3cf8946534e3b79a5f2659da

[issue26227] Windows: socket.gethostbyaddr(name) fails for non-ASCII hostname

2021-04-21 Thread Steve Dower
Change by Steve Dower : -- assignee: -> steve.dower ___ Python tracker <https://bugs.python.org/issue26227> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue26227] Windows: socket.gethostbyaddr(name) fails for non-ASCII hostname

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

[issue43472] [security][subinterpreters] Add auditing hooks to subinterpreter module

2021-04-21 Thread Steve Dower
Change by Steve Dower : -- assignee: -> steve.dower resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.8, Python 3.9 ___ Python tracker <https://bugs.python

[issue43472] [security][subinterpreters] Add auditing hooks to subinterpreter module

2021-04-21 Thread Steve Dower
Steve Dower added the comment: New changeset 7b86e47617d81a4b14d929743425f448971e8c86 by Steve Dower in branch 'master': bpo-43472: Ensure PyInterpreterState_New audit events are raised when called through _xxsubinterpreters module (GH-25506) https://github.com/python/cpython/commit

[issue43472] [security][subinterpreters] Add auditing hooks to subinterpreter module

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

[issue43472] [security][subinterpreters] Add auditing hooks to subinterpreter module

2021-04-21 Thread Steve Dower
Steve Dower added the comment: I'll need Eric to confirm, but I think the best thing to do here is to not release the thread state in _xxsubinterpreters.interp_create, but let _Py_NewInterpreter() do it. That way the existing event will be raised in interpreter-level hooks, rather than only

[issue43902] ssl module: add getter for SSL_CTX* and SSL*

2021-04-21 Thread Steve Dower
Steve Dower added the comment: There's a working POC out there for modifying tuple elements that relies on the fact that id() returns real memory addresses, so I don't see it as a harmless thing. Also, Rust is only worrying about code that's put into its compiler, whereas Python has

[issue43902] ssl module: add getter for SSL_CTX* and SSL*

2021-04-21 Thread Steve Dower
Steve Dower added the comment: Could we have the address exposed in a way that can only be passed back into ctypes? Or alternatively, doesn't function if ctypes is missing? I don't like offering ways to get real memory addresses, especially for interesting objects. At the same time, I see

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

2021-04-20 Thread Steve Dower
Steve Dower added the comment: Opening a PR against the master branch would be ideal. (Make sure you forked from that branch too, or you may see lots of irrelevant changes, which will make it impossible to review.) -- ___ Python tracker <ht

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

2021-04-19 Thread Steve Dower
Steve Dower added the comment: > In that case, would you want to deprecate > sys.getwindowsversion().platform_version? Yeah, but I'm not so concerned about raising a warning on use. Just in the docs will be fine. We should also add a mention that it is extracting the value from eff

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

2021-04-19 Thread Steve Dower
Steve Dower added the comment: Python is a volunteer built project, so someone will need to volunteer to write the fix. Until there is a volunteer, there is no plan. (One of the core devs might volunteer, but there's no guarantee of that.) If we're going to launch cmd.exe, I'd prefer

[issue40432] Pegen regenerate project for Windows not working

2021-04-19 Thread Steve Dower
Steve Dower added the comment: That'll be a change to PCbuild/find_python.bat that needs to be backported then. It probably defaults to 3.7 in all branches right now, but since 3.9 is out we can update them all to that (it downloads on demand if necessary

[issue43866] Installation files of the Python

2021-04-19 Thread Steve Dower
Steve Dower added the comment: Yeah, it's a known limitation of the installer technology we're using. issue25166 is the same issue, so we'll track it there. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Windows AllUsers install

[issue38748] 32 bit ctypes stdcall callback fails to restore stack pointer

2021-04-19 Thread Steve Dower
Steve Dower added the comment: Even better, one that doesn't crash but safely returns a value that can be checked. (IIRC, we have a test that does this to ensure that structs smaller than 9 bytes are passed on the stack.) Half C/half Python is fine - the C bits would go into _ctypes_test.c

[issue43860] unittest increment tests executed

2021-04-17 Thread Steve Kelem
Steve Kelem added the comment: Technically, you're right, however each domain his its own notion of what "adequate coverage" means. Some projects use software code coverage. I deal with integrated circuit observability/controllability, and stocastic functional testing. Until

[issue38748] 32 bit ctypes stdcall callback fails to restore stack pointer

2021-04-16 Thread Steve Dower
Steve Dower added the comment: My previous post still stands. This requires a test and then (hopefully) a fix in ctypes or (potentially) a fix upstream in libffi. -- ___ Python tracker <https://bugs.python.org/issue38

[issue43860] unittest increment tests executed

2021-04-15 Thread Steve Kelem
New submission from Steve Kelem : The unittest module (and most other unittest modules) keep a count of the number of functional tests run, as defined by the number of times test is called. I would like the option to count the number of times that assert is called. I have to run

[issue14243] tempfile.NamedTemporaryFile not particularly useful on Windows

2021-04-12 Thread Steve Dower
Steve Dower added the comment: O_TEMPORARY is clearly not the right option here, and we should just move the unlink call into __exit__ and attempt it even if close() has been called. Windows's "delete on close" functionality is great, but if you haven't designed for its seman

[issue43492] Upgrade to SQLite 3.35.4 in macOS and Windows

2021-04-12 Thread Steve Dower
Steve Dower added the comment: It's been a busy month for the SQLite team... hope they're doing okay. Let's give this one a few weeks, just in case. -- ___ Python tracker <https://bugs.python.org/issue43

[issue41661] os.path.relpath does not document ValueError on Windows with different drives

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

[issue41661] os.path.relpath does not document ValueError on Windows with different drives

2021-04-12 Thread Steve Dower
Steve Dower added the comment: New changeset 67c0b3d89c4da9750fdb43fc66d3924681b22d2e by Zackery Spytz in branch 'master': bpo-41661: Document os.path.relpath() exception on Windows with different drives (GH-25346) https://github.com/python/cpython/commit

[issue43105] [Windows] Can't import extension modules resolved via relative paths in sys.path

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

Style qeustion: Multiple return values

2021-04-12 Thread Steve Keller
Just a short style question: When returning multiple return values, do you use parenthesis? E.g. would you write def foo(): return 1, 2 a, b = foo() or do you prefer def foo(): return (1, 2) (a, b) = foo() Steve -- https://mail.python.org/mailman/listinfo

[issue43105] [Windows] Can't import extension modules resolved via relative paths in sys.path

2021-04-09 Thread Steve Dower
Steve Dower added the comment: New changeset eed7686e9fe22a3eb5e1a1fc7d27c27fca070bd1 by Steve Dower in branch '3.8': bpo-43105: Importlib now resolves relative paths when creating module spec objects from file locations (GH-25121) https://github.com/python/cpython/commit

[issue43725] Create a release branch ABI stability regression test

2021-04-09 Thread Steve Dower
Steve Dower added the comment: Oh wow, that's terrible... yet another good reason not to export data values. But yeah, filtering on the name prefix should be fine. These aren't meant to be publicly accessible anyway. -- ___ Python tracker <ht

[issue39899] `pathlib.Path.expanduser()` does not call `os.path.expanduser()`

2021-04-09 Thread Steve Dower
Change by Steve Dower : -- stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue39899> ___ ___ Pyth

[issue40107] pathlib: make `_Accessor.open()` return a file object and not a file descriptor

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

[issue39899] `pathlib.Path.expanduser()` does not call `os.path.expanduser()`

2021-04-09 Thread Steve Dower
Steve Dower added the comment: New changeset ba1db571987c65672d9c06789e9852313ed2412a by Barney Gale in branch 'master': bpo-39899: Don't double-check directory name if we're requesting the current user's home directory in ntpath.expanduser() (GH-25277) https://github.com/python/cpython

[issue40107] pathlib: make `_Accessor.open()` return a file object and not a file descriptor

2021-04-09 Thread Steve Dower
Steve Dower added the comment: New changeset 11c3bd3f6d06649484b81a659c7bf02d6632e607 by Barney Gale in branch 'master': bpo-40107: Switch to using io.open() for pathlib.Path.open() (GH-25240) https://github.com/python/cpython/commit/11c3bd3f6d06649484b81a659c7bf02d6632e607 -- nosy

[issue43725] Create a release branch ABI stability regression test

2021-04-09 Thread Steve Dower
Steve Dower added the comment: I got a false positive on my PR at https://github.com/python/cpython/pull/25318/checks?check_run_id=2308871807 1 Changed variable: [C]'const unsigned char[45154] const _Py_M__importlib_bootstrap_external' was changed to 'const unsigned char[43681] const

[issue43105] [Windows] Can't import extension modules resolved via relative paths in sys.path

2021-04-09 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +24053 stage: backport needed -> patch review pull_request: https://github.com/python/cpython/pull/25318 ___ Python tracker <https://bugs.python.org/issu

[issue37609] support "UNC" device paths in ntpath.splitdrive

2021-04-09 Thread Steve Dower
Change by Steve Dower : -- assignee: steve.dower -> ___ Python tracker <https://bugs.python.org/issue37609> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue43745] ssl.OPENSSL_VERSION still reporting 1.1.1i on windows 3.8.9/3.9.4

2021-04-08 Thread Steve Dower
Steve Dower added the comment: I just purged the CDN again and it seems to be fine now. -- ___ Python tracker <https://bugs.python.org/issue43745> ___ ___ Pytho

[issue39899] `pathlib.Path.expanduser()` does not call `os.path.expanduser()`

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

[issue39899] `pathlib.Path.expanduser()` does not call `os.path.expanduser()`

2021-04-07 Thread Steve Dower
Steve Dower added the comment: New changeset 3f3d82b84823eb28abeedf317bbe107bbe7f6492 by Barney Gale in branch 'master': bpo-39899: os.path.expanduser(): don't guess other Windows users' home directories if the basename of the current user's home directory doesn't match their username. (GH

[issue37609] support "UNC" device paths in ntpath.splitdrive

2021-04-07 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +23997 pull_request: https://github.com/python/cpython/pull/25261 ___ Python tracker <https://bugs.python.org/issue37

[issue42999] `pathlib.Path.link_to()` documentation is misleading

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

[issue39659] pathlib calls `os.getcwd()` without using accessor

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

[issue39899] `pathlib.Path.expanduser()` does not call `os.path.expanduser()`

2021-04-07 Thread Steve Dower
Steve Dower added the comment: > Firstly, `os.path.expanduser()` is already documented to return the path > unchanged if the home directory can't be resolved: Ah, too bad. Doesn't prevent us from changing it, but hopefully it means that everyone using it is already checking the

[issue42999] `pathlib.Path.link_to()` documentation is misleading

2021-04-07 Thread Steve Dower
Steve Dower added the comment: New changeset 9f578734624d1c0172220556ca97898730144172 by Steve Dower in branch '3.8': bpo-42999: Expand and clarify pathlib.Path.link_to() documentation. (GH-24294) https://github.com/python/cpython/commit/9f578734624d1c0172220556ca97898730144172

[issue42999] `pathlib.Path.link_to()` documentation is misleading

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

[issue42999] `pathlib.Path.link_to()` documentation is misleading

2021-04-07 Thread Steve Dower
Steve Dower added the comment: New changeset 34f93002bac980176a670ce2a4038c3be84effed by Steve Dower in branch '3.9': bpo-42999: Expand and clarify pathlib.Path.link_to() documentation. (GH-24294) https://github.com/python/cpython/commit/34f93002bac980176a670ce2a4038c3be84effed

[issue39899] `pathlib.Path.expanduser()` does not call `os.path.expanduser()`

2021-04-07 Thread Steve Dower
Steve Dower added the comment: I think this is worth unifying, but I'm concerned about making expanduser() return the original path on Windows - "~name" is a valid filename/relative path, and so code that does mkdir(expanduser("~nonuser/dir")) could create garbage in t

[issue39659] pathlib calls `os.getcwd()` without using accessor

2021-04-07 Thread Steve Dower
Steve Dower added the comment: New changeset b05440c52b9814dbd47f679d47367e87855bd7b5 by Barney Gale in branch 'master': bpo-39659: Route calls from pathlib.Path to os.getcwd() via the path accessor (GH-18834) https://github.com/python/cpython/commit/b05440c52b9814dbd47f679d47367e87855bd7b5

[issue42999] `pathlib.Path.link_to()` documentation is misleading

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

[issue43105] [Windows] Can't import extension modules resolved via relative paths in sys.path

2021-04-07 Thread Steve Dower
Steve Dower added the comment: The 3.8 backport is much more complicated, as we don't have access to the PathSkipRoot function there. So we can't use the native function. There's probably another way to implement the fix for 3.8, but I'm leaving that for another day. Feel free to chime

[issue42999] `pathlib.Path.link_to()` documentation is misleading

2021-04-07 Thread Steve Dower
Steve Dower added the comment: New changeset 8aac1bea2eeac25a49f8912b67aacbedf9bc7934 by Barney Gale in branch 'master': bpo-42999: Expand and clarify pathlib.Path.link_to() documentation. (GH-24294) https://github.com/python/cpython/commit/8aac1bea2eeac25a49f8912b67aacbedf9bc7934

[issue39906] pathlib.Path: add `follow_symlinks` argument to `stat()` and `chmod()`

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

[issue39906] pathlib.Path: add `follow_symlinks` argument to `stat()` and `chmod()`

2021-04-07 Thread Steve Dower
Steve Dower added the comment: New changeset abf964942f97f6489360a75fd57b5e4f41c75f57 by Barney Gale in branch 'master': bpo-39906: Add follow_symlinks parameter to pathlib.Path.stat() and chmod() (GH-18864) https://github.com/python/cpython/commit/abf964942f97f6489360a75fd57b5e4f41c75f57

[issue43756] About updating audit events when function gains new arguments

2021-04-07 Thread Steve Dower
Steve Dower added the comment: To remove an event, it needs to be deprecated as any public facing feature would be deprecated. I'm not sure how we'd go about publicising it though. There's currently no way to raise a warning, so it'd just have to be very clearly advertised in documentation

[issue43105] [Windows] Can't import extension modules resolved via relative paths in sys.path

2021-04-07 Thread Steve Dower
Steve Dower added the comment: Just needs the 3.8 backport - will get to that later tonight. -- stage: patch review -> backport needed ___ Python tracker <https://bugs.python.org/issu

[issue39895] `pathlib.Path.touch()` calls `os.close()` without using accessor

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

[issue43105] [Windows] Can't import extension modules resolved via relative paths in sys.path

2021-04-07 Thread Steve Dower
Steve Dower added the comment: New changeset 0af99b44edf559305def22b2d68be685ce50d7f6 by Steve Dower in branch '3.9': bpo-43105: Importlib now resolves relative paths when creating module spec objects from file locations (GH-25121) https://github.com/python/cpython/commit

[issue40038] pathlib: remove partial support for preserving accessor when modifying a path

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

[issue43756] About updating audit events when function gains new arguments

2021-04-06 Thread Steve Dower
Steve Dower added the comment: Solution 1 is definitely out, as PyArg_ParseTuple is a very valid way to implement hooks but won't handle longer tuples. For Solution 2, we already have some events that use a slash to indicate "extra" information, so depending on context I'd

[issue43105] [Windows] Can't import extension modules resolved via relative paths in sys.path

2021-04-06 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +23975 pull_request: https://github.com/python/cpython/pull/25237 ___ Python tracker <https://bugs.python.org/issue43

[issue40038] pathlib: remove partial support for preserving accessor when modifying a path

2021-04-06 Thread Steve Dower
Steve Dower added the comment: New changeset 2219187cab6bca009c42b63b2f4c30b5b10c916d by Barney Gale in branch 'master': bpo-40038: pathlib: remove partial support for preserving accessor when modifying a path (GH-19342) https://github.com/python/cpython/commit

[issue39895] `pathlib.Path.touch()` calls `os.close()` without using accessor

2021-04-06 Thread Steve Dower
Steve Dower added the comment: New changeset 986da8effcd2e9e9334ae016928ef795fb93c373 by Barney Gale in branch 'master': bpo-39895: Move `pathlib.Path.touch()` implementation into the path accessor. (GH-18838) https://github.com/python/cpython/commit/986da8effcd2e9e9334ae016928ef795fb93c373

[issue43105] [Windows] Can't import extension modules resolved via relative paths in sys.path

2021-04-06 Thread Steve Dower
Steve Dower added the comment: New changeset 04732ca993fa077a8b9640cc77fb2f152339585a by Steve Dower in branch 'master': bpo-43105: Importlib now resolves relative paths when creating module spec objects from file locations (GH-25121) https://github.com/python/cpython/commit

[issue39924] pathlib handles missing `os.link`, `os.symlink` and `os.readlink` inconsistently

2021-04-06 Thread Steve Dower
Steve Dower added the comment: New changeset b57e045320d1d2a70eab236b7d31a3ebb75037c3 by Barney Gale in branch 'master': bpo-39924: handle missing os functions more consistently in pathlib (GH-19220) https://github.com/python/cpython/commit/b57e045320d1d2a70eab236b7d31a3ebb75037c3

[issue43567] regen.vcxproj cannot regenerate some necessary files

2021-04-06 Thread Steve Dower
Steve Dower added the comment: We're updating all files now, and doing it automatically on build (or manually with --regen). -- assignee: -> steve.dower resolution: -> fixed stage: patch review -> resolved status: open -> closed __

[issue43567] regen.vcxproj cannot regenerate some necessary files

2021-04-06 Thread Steve Dower
Steve Dower added the comment: New changeset 748283819043c60b1cb272c2cc9ab5b457afb03a by Steve Dower in branch 'master': bpo-43567: Improved generated code refresh on Windows (GH-25120) https://github.com/python/cpython/commit/748283819043c60b1cb272c2cc9ab5b457afb03a

[issue37609] support "UNC" device paths in ntpath.splitdrive

2021-04-06 Thread Steve Dower
Steve Dower added the comment: Once issue43105 is merged, I've got a fairly simple implementation for this using the (new) nt._path_splitroot native method, as well as improved tests that cover both the native and emulated calculations. -- assignee: -> steve.dower versions: +Pyt

[issue43745] ssl.OPENSSL_VERSION still reporting 1.1.1i on windows 3.8.9/3.9.4

2021-04-06 Thread Steve Dower
Steve Dower added the comment: > Are you able to also update the embeddable packages please? They've been updated, it's just the CDN hasn't purged those files. I need to add those files to the script. It should show up within 24 hours, if I don't start doing the script toni

[issue36384] ipaddress Should not reject IPv4 addresses with leading zeroes as ambiguously octal

2021-04-06 Thread Steve Dower
Steve Dower added the comment: > I don't think that adding a parameter for opt-in for security is a good > approach. I meant to have it set by default on 3.10, when we do not have to worry about breaking users. If it takes years for users to get to 3.10, we should reevaluate our r

[issue43745] ssl.OPENSSL_VERSION still reporting 1.1.1i on windows 3.8.9/3.9.4

2021-04-06 Thread Steve Dower
Steve Dower added the comment: A new 3.9.4 and 3.8.9 release is available for download from python.org. The Nuget and Windows Store packages will have to remain as the original versions, since those do not allow us to overwrite with the same version number. -- resolution: -> fi

[issue43745] ssl.OPENSSL_VERSION still reporting 1.1.1i on windows 3.8.9/3.9.4

2021-04-06 Thread Steve Dower
Steve Dower added the comment: New changeset 611aa39142f156508945ac312724474c493a6691 by Steve Dower in branch '3.9': bpo-43745: Actually updates Windows release to OpenSSL 1.1.1k. (GH-25213) https://github.com/python/cpython/commit/611aa39142f156508945ac312724474c493a6691

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