summaryrefslogtreecommitdiffstats
path: root/Doc/c-api/init.rst
Commit message (Collapse)AuthorAgeFilesLines
* Issue #5753: A new C API function, :cfunc:`PySys_SetArgvEx`, allowsAntoine Pitrou2010-05-211-5/+33
| | | | | | embedders of the interpreter to set sys.argv without also modifying sys.path. This helps fix `CVE-2008-5983 <http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-5983>`_.
* Fix description for Py_GetPath(); it sounded like it always returned sys.path.Georg Brandl2010-01-071-8/+9
|
* #7388: "python".capitalize() in the DocEzio Melotti2009-12-191-2/+2
|
* #7521: remove Py_GetBuildNumber(), which was removed in favor of ↵Georg Brandl2009-12-191-9/+0
| | | | Py_GetBuildInfo().
* Fix issue #1590864, multiple threads and fork() can cause deadlocks, byThomas Wouters2009-09-161-0/+16
| | | | | | | | | | | | | | | | | | | | | | acquiring the import lock around fork() calls. This prevents other threads from having that lock while the fork happens, and is the recommended way of dealing with such issues. There are two other locks we care about, the GIL and the Thread Local Storage lock. The GIL is obviously held when calling Python functions like os.fork(), and the TLS lock is explicitly reallocated instead, while also deleting now-orphaned TLS data. This only fixes calls to os.fork(), not extension modules or embedding programs calling C's fork() directly. Solving that requires a new set of API functions, and possibly a rewrite of the Python/thread_*.c mess. Add a warning explaining the problem to the documentation in the mean time. This also changes behaviour a little on AIX. Before, AIX (but only AIX) was getting the import lock reallocated, seemingly to avoid this very same problem. This is not the right approach, because the import lock is a re-entrant one, and reallocating would do the wrong thing when forking while holding the import lock. Will backport to 2.6, minus the tiny AIX behaviour change.
* Py_SetPythonHome uses static storage #6913Benjamin Peterson2009-09-151-0/+4
|
* #5840: dont claim we dont support TLS.Georg Brandl2009-04-271-4/+3
|
* Rewrite a sentence to be more in line with the rest of the documentation withJeroen Ruigrok van der Werven2009-04-251-7/+7
| | | | regard to person and audience.
* #5298: clarify docs about GIL by using more consistent wording.Georg Brandl2009-04-051-78/+79
|
* Fix 'the the' duplicationAndrew M. Kuchling2009-04-031-1/+1
|
* #5486: typos.Georg Brandl2009-03-131-1/+1
|
* #5015: document PythonHome API functions.Georg Brandl2009-02-051-0/+14
|
* #5144: document that PySys_SetArgv prepends the script directory (or the ↵Georg Brandl2009-02-051-7/+11
| | | | empty string) to sys.path.
* Fix call signature and markup.Georg Brandl2009-01-131-3/+3
|
* Issue 4293: Make Py_AddPendingCall() thread safeKristján Valur Jónsson2009-01-091-0/+44
| | | | Add test cases and documentation
* Remove trailing whitespace.Georg Brandl2009-01-031-2/+2
|
* PyGILState_Acquire -> PyGILState_EnsureBenjamin Peterson2008-10-101-3/+3
|
* Some cleanup in the docs.Georg Brandl2007-12-291-3/+3
|
* Add documentation for PySys_* functions.Georg Brandl2007-12-021-2/+0
| | | | Written by Charlie Shepherd for GHOP. Also fixes #1245.
* Document PyEval_* functions from ceval.c.Georg Brandl2007-12-011-0/+48
| | | | Credits to Michael Sloan from GHOP.
* Move the 2.6 reST doc tree in place.Georg Brandl2007-08-151-0/+936