summaryrefslogtreecommitdiff
path: root/Include/sysmodule.h
AgeCommit message (Collapse)AuthorLines
2010-05-21Merged revisions 81398 via svnmerge fromAntoine Pitrou-0/+1
svn+ssh://pythondev@svn.python.org/python/trunk ........ r81398 | antoine.pitrou | 2010-05-21 19:12:38 +0200 (ven., 21 mai 2010) | 6 lines Issue #5753: A new C API function, :cfunc:`PySys_SetArgvEx`, allows 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>`_. ........
2008-04-12Re-implement the 'warnings' module in C. This allows for usage of theBrett Cannon-0/+1
'warnings' code in places where it was previously not possible (e.g., the parser). It could also potentially lead to a speed-up in interpreter start-up if the C version of the code (_warnings) is imported over the use of the Python version in key places. Closes issue #1631171.
2002-09-15Use Py_GCC_ATTRIBUTE instead of __attribute__. Compilers other than GCCNeil Schemenauer-2/+2
might use __attribute__ in other ways (e.g. CodeWarrior).
2002-08-12Excise DL_EXPORT from Include.Mark Hammond-11/+11
Thanks to Skip Montanaro and Kalle Svensson for the patches.
2001-10-23Add function attributes that allow GCC to check the arguments of printf-likeNeil Schemenauer-2/+4
functions.
2000-12-15Add declarations for PySys_ResetWarnOptions() andGuido van Rossum-0/+3
PySys_AddWarnOption().
2000-09-01REMOVED all CWI, CNRI and BeOpen copyright markings.Guido van Rossum-9/+0
This should match the situation in the 1.6b1 tree.
2000-07-22ANSIfications: fix empty arglists, and remove the checks forThomas Wouters-6/+0
'HAVE_STDARG_PROTOTYPES' (consider it true, remove false branch)
2000-07-09ANSI-fication and Py_PROTO extermination.Fred Drake-11/+11
2000-06-30Change copyright notice - 2nd try.Guido van Rossum-6/+0
2000-06-30Change copyright notice.Guido van Rossum-21/+6
1998-12-04Add DL_IMPORT(returntype) for all officially exported functions.Guido van Rossum-9/+9
1998-05-12AddGuido van Rossum-0/+9
PySys_WriteStdout(format, ...) PySys_WriteStderr(format, ...)
1997-08-02Mass checkin (more to follow for other directories).Guido van Rossum-1/+0
Introduce truly separate (sub)interpreter objects. For now, these must be used by separate threads, created from C. See Demo/pysvr for an example of how to use this. This also rationalizes Python's initialization and finalization behavior: Py_Initialize() -- initialize the whole interpreter Py_Finalize() -- finalize the whole interpreter tstate = Py_NewInterpreter() -- create a new (sub)interpreter Py_EndInterpreter(tstate) -- delete a new (sub)interpreter There are also new interfaces relating to threads and the interpreter lock, which can be used to create new threads, and sometimes have to be used to manipulate the interpreter lock when creating or deleting sub-interpreters. These are only defined when WITH_THREAD is defined: PyEval_AcquireLock() -- acquire the interpreter lock PyEval_ReleaseLock() -- release the interpreter lock PyEval_AcquireThread(tstate) -- acquire the lock and make the thread current PyEval_ReleaseThread(tstate) -- release the lock and make NULL current Other administrative changes: - The header file bltinmodule.h is deleted. - The init functions for Import, Sys and Builtin are now internal and declared in pythonrun.h. - Py_Setup() and Py_Cleanup() are no longer declared. - The interpreter state and thread state structures are now linked together in a chain (the chain of interpreters is a static variable in pythonrun.c). - Some members of the interpreter and thread structures have new, shorter, more consistent, names. - Added declarations for _PyImport_{Find,Fixup}Extension() to import.h.
1996-10-25New permission notice, includes CNRI.Guido van Rossum-12/+19
1996-05-22Added PySys_SetPath.Guido van Rossum-0/+1
1996-01-22Added prototype for PySys_SetArgvJack Jansen-0/+1
1995-02-27make the type a parameter of the DL_IMPORT macro, for Borland CGuido van Rossum-2/+2
1995-01-12The great renaming, phase two: all header files have been updated toGuido van Rossum-6/+6
use the new names exclusively, and the linker will see the new names. Files that import "Python.h" also only see the new names. Files that import "allobjects.h" will continue to be able to use the old names, due to the inclusion (in allobjects.h) of "rename2.h".
1995-01-09sys.check_interval=x -> sys.setcheckinterval(x)Guido van Rossum-0/+1
1995-01-04Added 1995 copyright.Guido van Rossum-2/+2
object.h: made sizes and refcnts signed ints. stringobject.h: make getstrsize() signed int. methodobject.h: add METH_VARARGS and METH_FREENAME flag bit definitions.
1994-08-18Changes for dynamic linking under NTGuido van Rossum-1/+1
1994-08-01Merge alpha100 branch back to main trunkGuido van Rossum-1/+1
1993-07-28* Added support for X11 modules.Guido van Rossum-0/+11
* Makefile: change location of FORMS library. * posixmodule.c: turn #if 0 into #ifdef MSDOS (stuff in unistd.h or not) * Almost all .h files: added CPP magic to avoid duplicate inclusions and to support inclusion from C++.
1993-03-29* Changed all copyright messages to include 1993.Guido van Rossum-2/+2
* Stubs for faster implementation of local variables (not yet finished) * Added function name to code object. Print it for code and function objects. THIS MAKES THE .PYC FILE FORMAT INCOMPATIBLE (the version number has changed accordingly) * Print address of self for built-in methods * New internal functions getattro and setattro (getattr/setattr with string object arg) * Replaced "dictobject" with more powerful "mappingobject" * New per-type functio tp_hash to implement arbitrary object hashing, and hashobject() to interface to it * Added built-in functions hash(v) and hasattr(v, 'name') * classobject: made some functions static that accidentally weren't; added __hash__ special instance method to implement hash() * Added proper comparison for built-in methods and functions
1992-04-05Copyright for 1992 addedGuido van Rossum-1/+1
1992-03-23Added definitions of sys_trace and sys_profileGuido van Rossum-0/+2
1991-02-19Added copyright notice.Guido van Rossum-0/+24
1990-12-20"Compiling" versionGuido van Rossum-1/+1
1990-10-14Initial revisionGuido van Rossum-0/+6