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
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
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
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
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
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
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
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
Changes by Mike Auty :
--
nosy: +ikelos
___
Python tracker
<http://bugs.python.org/issue9561>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.pyth
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
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
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
Change by Mike Auty :
--
nosy: +ikelos
___
Python tracker
<https://bugs.python.org/issue11588>
___
___
Python-bugs-list mailing list
Unsubscribe:
13 matches
Mail list logo