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

Py_SetPath: Path components separated by colons #65886

Closed
fwalch mannequin opened this issue Jun 7, 2014 · 3 comments
Closed

Py_SetPath: Path components separated by colons #65886

fwalch mannequin opened this issue Jun 7, 2014 · 3 comments
Labels
docs Documentation in the Doc dir type-bug An unexpected behavior, bug, or error

Comments

@fwalch
Copy link
Mannequin

fwalch mannequin commented Jun 7, 2014

BPO 21687
Nosy @eryksun

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 2014-10-11.13:08:29.385>
created_at = <Date 2014-06-07.15:18:12.482>
labels = ['type-bug', 'docs']
title = 'Py_SetPath: Path components separated by colons'
updated_at = <Date 2014-10-11.13:08:29.383>
user = 'https://bugs.python.org/fwalch'

bugs.python.org fields:

activity = <Date 2014-10-11.13:08:29.383>
actor = 'python-dev'
assignee = 'docs@python'
closed = True
closed_date = <Date 2014-10-11.13:08:29.385>
closer = 'python-dev'
components = ['Documentation']
creation = <Date 2014-06-07.15:18:12.482>
creator = 'fwalch'
dependencies = []
files = []
hgrepos = []
issue_num = 21687
keywords = []
message_count = 3.0
messages = ['219944', '219953', '229086']
nosy_count = 4.0
nosy_names = ['docs@python', 'python-dev', 'eryksun', 'fwalch']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue21687'
versions = ['Python 3.2', 'Python 3.3', 'Python 3.4', 'Python 3.5']

@fwalch
Copy link
Mannequin Author

fwalch mannequin commented Jun 7, 2014

The documentation for Py_SetPath [1] states:

The path components should be separated by semicolons.

I believe this should not say "semicolons", but "colons"; the default path as output by Py_GetPath is separated by colons.

[1] https://docs.python.org/3/c-api/init.html#c.Py_SetPath

@fwalch fwalch mannequin assigned docspython Jun 7, 2014
@fwalch fwalch mannequin added docs Documentation in the Doc dir type-bug An unexpected behavior, bug, or error labels Jun 7, 2014
@eryksun
Copy link
Contributor

eryksun commented Jun 7, 2014

A Windows path uses ":" after the drive letter, e.g. "C:\\Windows", so the delimiter is a semicolon on Windows. Other platforms use a colon.

CPython uses DELIM, which is defined in osdefs.h. This header isn't included by Python.h.

http://hg.python.org/cpython/file/c0e311e010fc/Include/osdefs.h

@python-dev
Copy link
Mannequin

python-dev mannequin commented Oct 11, 2014

New changeset 2d150c01bf7e by Georg Brandl in branch '3.4':
Closes bpo-21687: delimiter in Py_SetPath is platform dependent
https://hg.python.org/cpython/rev/2d150c01bf7e

@python-dev python-dev mannequin closed this as completed Oct 11, 2014
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
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 type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant