[issue32442] file_open unc

2022-02-05 Thread Mike Auty
Change by Mike Auty : -- title: Result of pathlib.Path.resolve() with UNC path is not very useful -> file_open unc ___ Python tracker <https://bugs.python.org/issu

[issue32442] Result of pathlib Path.resolve() with UNC path is not very useful

2022-02-05 Thread Mike Auty
Mike Auty added the comment: Sorry for the spam, thought I was in a different text box. 5:( -- nosy: +ikelos title: file_open unc -> Result of pathlib Path.resolve() with UNC path is not very useful ___ Python tracker <https://bugs.pyth

[issue46654] file_open doesn't handle UNC paths produced by pathlib's resolve() (but can handle UNC paths with additional slashes)

2022-02-05 Thread Mike Auty
New submission from Mike Auty : I've found open to have difficulty with a resolved pathlib path: Example code of: import pathlib path = "Z:\\test.py" with open(path) as fp: print("Stock open: works") data = fp.read() with open(pathlib.Pa

[issue46654] file_open doesn't handle UNC paths produced by pathlib's resolve() (but can handle UNC paths with additional slashes)

2022-02-05 Thread Mike Auty
Mike Auty added the comment: > Why are you adding `.as_uri()`? The API we provide accepts URIs, so whilst the example seems a little contrived, the code itself expects a URI and then calls open (making use of the ability to add open handlers). > Builtin open() calls C open(). As

[issue46654] file_open doesn't handle UNC paths produced by pathlib's resolve() (but can handle UNC paths with additional slashes)

2022-02-05 Thread Mike Auty
Mike Auty added the comment: My bad, sorry, I realized I was conflating open with urllib.request.urlopen. I believe the issue still exists though, sorry for the confusion. -- ___ Python tracker <https://bugs.python.org/issue46

[issue46654] file_open doesn't handle UNC paths produced by pathlib's resolve() (but can handle UNC paths with additional slashes)

2022-02-05 Thread Mike Auty
Mike Auty added the comment: Here's the revised code sample: import pathlib import urllib.request path = "Z:\\test.py" print(f"Stock open: {pathlib.Path(path).as_uri()}") with urllib.request.urlopen(pathlib.Path(path).as_uri()) as f

[issue46654] file_open doesn't handle UNC paths produced by pathlib's resolve() (but can handle UNC paths with additional slashes)

2022-02-05 Thread Mike Auty
Mike Auty added the comment: I can confirm that url2pathname work with either number of slashes, and that open_file appears to have had the file: removed. However, in even if the check in open_file were bypassed, it calls open_local_file, which then strips any host before calling

[issue46654] urllib.request.urlopen doesn't handle UNC paths produced by pathlib's resolve() (but can handle UNC paths with additional slashes)

2022-02-05 Thread Mike Auty
Change by Mike Auty : -- title: file_open doesn't handle UNC paths produced by pathlib's resolve() (but can handle UNC paths with additional slashes) -> urllib.request.urlopen doesn't handle UNC paths produced by pathlib's resolve() (but can handle UNC paths w

[issue9561] distutils: set encoding to utf-8 for input and output files

2010-10-31 Thread Mike Auty
Changes by Mike Auty : -- nosy: +ikelos ___ Python tracker <http://bugs.python.org/issue9561> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue3861] distutils CCompiler._compile doesn't require lang keyword argument

2008-09-13 Thread Mike Auty
New submission from Mike Auty <[EMAIL PROTECTED]>: I'm testing out Python-2.6b3 and attempted to build wxpython-2.8.8.1. It creates a subclassed CCompiler (MyUnixCCompiler), which overrides the _compile function, with the following signature: _compile(self, obj, src, e

[issue3861] distutils CCompiler._compile doesn't require lang keyword argument

2008-09-14 Thread Mike Auty
Mike Auty <[EMAIL PROTECTED]> added the comment: Sorry, scratch that, it turned out to be a patch added by a local packager. I don't seem to be able to close my own bug, but for anyone who's triaging this, please mark this as CLOSED/INVALID or similar. Sorry for t

[issue3861] distutils CCompiler._compile doesn't require lang keyword argument

2008-09-14 Thread Mike Auty
Mike Auty <[EMAIL PROTECTED]> added the comment: You're absolutely right, it was a Gentoo patching issue. Thanks very much for the link to the bug, I would never have found it myself! 5:) I'm off to go try and convince them it's a bad ide

[issue11588] Add "necessarily inclusive" groups to argparse

2019-04-22 Thread Mike Auty
Change by Mike Auty : -- nosy: +ikelos ___ Python tracker <https://bugs.python.org/issue11588> ___ ___ Python-bugs-list mailing list Unsubscribe: