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_SetPythonHome incorrectly documented py3.x (rev 74792) #51162

Closed
ideasman42 mannequin opened this issue Sep 15, 2009 · 2 comments
Closed

Py_SetPythonHome incorrectly documented py3.x (rev 74792) #51162

ideasman42 mannequin opened this issue Sep 15, 2009 · 2 comments
Assignees
Labels
docs Documentation in the Doc dir type-bug An unexpected behavior, bug, or error

Comments

@ideasman42
Copy link
Mannequin

ideasman42 mannequin commented Sep 15, 2009

BPO 6913
Nosy @birkenfeld, @benjaminp, @ideasman42
Files
  • Py_SetPythonHome_doc.diff
  • 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 = 'https://github.com/birkenfeld'
    closed_at = <Date 2009-09-15.03:36:46.603>
    created_at = <Date 2009-09-15.03:31:19.711>
    labels = ['type-bug', 'docs']
    title = 'Py_SetPythonHome incorrectly documented py3.x (rev 74792)'
    updated_at = <Date 2009-09-15.03:36:46.596>
    user = 'https://github.com/ideasman42'

    bugs.python.org fields:

    activity = <Date 2009-09-15.03:36:46.596>
    actor = 'benjamin.peterson'
    assignee = 'georg.brandl'
    closed = True
    closed_date = <Date 2009-09-15.03:36:46.603>
    closer = 'benjamin.peterson'
    components = ['Documentation']
    creation = <Date 2009-09-15.03:31:19.711>
    creator = 'ideasman42'
    dependencies = []
    files = ['14891']
    hgrepos = []
    issue_num = 6913
    keywords = ['patch']
    message_count = 2.0
    messages = ['92640', '92641']
    nosy_count = 3.0
    nosy_names = ['georg.brandl', 'benjamin.peterson', 'ideasman42']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = None
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue6913'
    versions = ['Python 3.2']

    @ideasman42
    Copy link
    Mannequin Author

    ideasman42 mannequin commented Sep 15, 2009

    Py_SetPythonHome takes a *wchar_t not a *char, this is obvious from
    looking at the header,

    However I tried using this function and couldn't get it working until I
    made the home variable a static string.

    when looking at the source this is obvious, but should be documented...

    void
    Py_SetPythonHome(wchar_t *home)
    {
    	default_home = home;
    }

    @ideasman42 ideasman42 mannequin assigned birkenfeld Sep 15, 2009
    @ideasman42 ideasman42 mannequin added docs Documentation in the Doc dir type-bug An unexpected behavior, bug, or error labels Sep 15, 2009
    @benjaminp
    Copy link
    Contributor

    Fixed in r74794 and r74795.

    @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

    2 participants