This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Py_SetPythonHome incorrectly documented py3.x (rev 74792)
Type: behavior Stage:
Components: Documentation Versions: Python 3.2
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: georg.brandl Nosy List: benjamin.peterson, georg.brandl, ideasman42
Priority: normal Keywords: patch

Created on 2009-09-15 03:31 by ideasman42, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
Py_SetPythonHome_doc.diff ideasman42, 2009-09-15 03:31
Messages (2)
msg92640 - (view) Author: Campbell Barton (ideasman42) * Date: 2009-09-15 03:31
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;
}
msg92641 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2009-09-15 03:36
Fixed in r74794 and r74795.
History
Date User Action Args
2022-04-11 14:56:53adminsetgithub: 51162
2009-09-15 03:36:46benjamin.petersonsetstatus: open -> closed

nosy: + benjamin.peterson
messages: + msg92641

resolution: fixed
2009-09-15 03:31:19ideasman42create