Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

os.path.isabs documentation error #46227

Closed
giampaolo opened this issue Jan 25, 2008 · 2 comments
Closed

os.path.isabs documentation error #46227

giampaolo opened this issue Jan 25, 2008 · 2 comments
Labels
docs Documentation in the Doc dir

Comments

@giampaolo
Copy link
Contributor

BPO 1933
Nosy @giampaolo

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2008-01-26.01:48:48.980>
created_at = <Date 2008-01-25.21:53:10.630>
labels = ['docs']
title = 'os.path.isabs documentation error'
updated_at = <Date 2008-01-26.01:48:48.979>
user = 'https://github.com/giampaolo'

bugs.python.org fields:

activity = <Date 2008-01-26.01:48:48.979>
actor = 'mark.dickinson'
assignee = 'none'
closed = True
closed_date = <Date 2008-01-26.01:48:48.980>
closer = 'mark.dickinson'
components = ['Documentation']
creation = <Date 2008-01-25.21:53:10.630>
creator = 'giampaolo.rodola'
dependencies = []
files = []
hgrepos = []
issue_num = 1933
keywords = []
message_count = 2.0
messages = ['61691', '61694']
nosy_count = 1.0
nosy_names = ['giampaolo.rodola']
pr_nums = []
priority = 'normal'
resolution = 'duplicate'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue1933'
versions = ['Python 2.6', 'Python 2.5', 'Python 2.4', 'Python 3.0']

@giampaolo
Copy link
Contributor Author

The current os.path.isabs documentation says:

isabs(path)
Return True if path is an absolute pathname (begins with a slash).

The "begins with a slash" part is incorrect since certain systems use a
different pathname notation.
For example, on Macintosh (where os.sep == ":") this is an absolute
pathname:

hardDriveName:folderName1:folderName2:fileName.ext

...and this is a relative one:

:folderName1:fileName.ext

Moreover, on Windows os.path.isabs('\\') returns True since '\\' is an
alias for the current drive letter (e.g. C:\\) hence, independently from
what said before, the documentation should include also the "backslash"
term.
I think it would be better removing the "(begins with a slash)" part at all.

@giampaolo giampaolo added the docs Documentation in the Doc dir label Jan 25, 2008
@giampaolo
Copy link
Contributor Author

Sorry but I had problem with my browser and I submitted the report twice:
http://bugs.python.org/issue1934
Could someone please close this one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir
Projects
None yet
Development

No branches or pull requests

2 participants