GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||
GeezerVison is showing github.com — bpo-37609: Add device path support in ntpath splitdrive by nsiregar · Pull Request #14841 · python/cpython Conversation
|
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Using the mod role here is not correct. Please see https://devguide.python.org/documenting/#id4.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I've updated it to use meth.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
It should be func.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I've updated it
Sorry, something went wrong.
There was an error while loading. Please reload this page.
e92813b to
eb4e996
Compare
|
Sorry for not seeing this earlier, I have a few general suggestions:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| return p[:0], p | ||
|
|
||
|
|
||
| def is_unc_path(path, sep): |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
These functions are clearly private (e.g. parameterized by sep and colon), so the function names should have a leading underscore.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
working on it |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
For an alternate and more complete implementation, see the splitdrive.py file that I attached to bpo-37609. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I managed to fix the issue elsewhere (in #91882), so I'm going to close this PR, but thank you very much for taking a look at it! :) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.