Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Plug a leak in code_dealloc() (and reordered the deallocs to match the | Guido van Rossum | 1997-07-25 | 1 | -3/+2 |
| | | | | | | order of the variables in the declarations). Also removed an entry in the TODO list that's done. | ||||
* | Removed some variables that are used to exchange data between import.c and | Guido van Rossum | 1997-07-21 | 3 | -14/+6 |
| | | | | | | | | importdl.c: the MAXSUFFIXSIZE macro is now defined in importdl.h, and the modules dictionary is now passed using PyImport_GetModuleDict(). Also undefine USE_SHLIB for AIX -- in AIX 4.2 and up, dlfcn.h exists but we don't want to use it. | ||||
* | frozenmain.c is now also in the library, | Guido van Rossum | 1997-07-19 | 2 | -6/+2 |
| | | | | with entry point Py_FrozenMain(). | ||||
* | Oops -- this contains frozen bytecode, but it was Python 1.4 bytecode! | Guido van Rossum | 1997-07-19 | 1 | -7/+7 |
| | |||||
* | Moved PyEval_{Acquire,Release}Thread() to within the same #ifdef | Guido van Rossum | 1997-07-19 | 1 | -21/+23 |
| | | | | | | WITH_THREAD as PyEval_InitThreads(). Removed use of Py_SuppressPrintingFlag. | ||||
* | Removed a bunch of extern declarations of functions that are now | Guido van Rossum | 1997-07-19 | 1 | -7/+0 |
| | | | | properly declared in Python.h. | ||||
* | Make it return a _const_ char*. | Guido van Rossum | 1997-07-19 | 3 | -5/+2 |
| | |||||
* | New build procedure. | Guido van Rossum | 1997-07-19 | 1 | -9/+9 |
| | |||||
* | Tracking changes to Py_Main(): | Guido van Rossum | 1997-07-19 | 1 | -18/+4 |
| | | | | | | | | - Got rid of inspection of some environment variables. - Got rid of Py_GetProgramName() and related logic. - Print the version header *after* successful initialization. | ||||
* | Moved some stuff here from main.c (part of a big restructuring - wait | Guido van Rossum | 1997-07-19 | 1 | -1/+26 |
| | | | | | | | | | | | | | for more!). - The global flags that can be set from environment variables are now set in Py_Initialize (except the silly Py_SuppressPrint, which no longer exists). This saves duplicate code in frozenmain.c and main.c. - Py_GetProgramName() is now here; added Py_SetProgramName(). An embedding program should no longer provide Py_GetProgramName(), instead it should call Py_SetProgramName() *before* calling Py_Initialize(). | ||||
* | Remove confusing usage comments at end. | Guido van Rossum | 1997-07-19 | 1 | -28/+0 |
| | |||||
* | PyEval_SaveThread() and PyEval_RestoreThread() now return/take a | Guido van Rossum | 1997-07-18 | 1 | -6/+28 |
| | | | | | | | | | | | | | | | | PyThreadState pointer instead of a (frame) PyObject pointer. This makes much more sense. It is backward incompatible, but that's no problem, because (a) the heaviest users are the Py_{BEGIN,END}_ ALLOW_THREADS macros here, which have been fixed too; (b) there are very few direct users; (c) those who use it are there will probably appreciate the change. Also, added new functions PyEval_AcquireThread() and PyEval_ReleaseThread() which allows the threads created by the thread module as well threads created by others (!) to set/reset the current thread, and at the same time acquire/release the interpreter lock. Much saner. | ||||
* | Huge speedup by inlining some common integer operations: | Guido van Rossum | 1997-07-17 | 1 | -5/+75 |
| | | | | | | | int+int, int-int, int <compareop> int, and list[int]. (Unfortunately, int*int is way too much code to inline.) Also corrected a NULL that should have been a zero. | ||||
* | Fix problem discovered by Greg McFarlane: when an imported module | Guido van Rossum | 1997-07-10 | 1 | -0/+7 |
| | | | | | | | | | replaces its own entry in sys.module, reference count errors ensue; even if there is no reference count problem, it would be preferable for the import to yield the new thing in sys.modules anyway (if only because that's what later imports will yield). This opens the road to an official hack to implement a __getattr__ like feature for modules: stick an instance in sys.modules[__name__]. | ||||
* | Fix bug reported by Just: anonymous arguments used for tuples should | Guido van Rossum | 1997-07-10 | 1 | -1/+3 |
| | | | | | | have a unique name, otherwise they get squished by locals2fast (or fast2locals, I dunno) when the debugger is invoked before they have been transferred to real locals. | ||||
* | Add default case (standard conformance) to avoid piling up | Guido van Rossum | 1997-06-02 | 1 | -4/+4 |
| | | | | system specific #ifdefs. | ||||
* | Can't return 0 from void function... | Guido van Rossum | 1997-05-23 | 1 | -1/+1 |
| | |||||
* | PyObject_Compare can raise an exception now. | Guido van Rossum | 1997-05-23 | 3 | -5/+23 |
| | |||||
* | PyFile_WriteString now returns an error indicator instead of calling | Guido van Rossum | 1997-05-22 | 2 | -16/+32 |
| | | | | PyErr_Clear(). Add checking of those errors. | ||||
* | Py_FlushLine and PyFile_WriteString now return error indicators | Guido van Rossum | 1997-05-22 | 1 | -30/+41 |
| | | | | instead of calling PyErr_Clear(). Add checking of those errors. | ||||
* | Py_FlushLine and PyFile_WriteString now return error indicators | Guido van Rossum | 1997-05-22 | 1 | -12/+24 |
| | | | | instead of calling PyErr_Clear(). Add checking of those errors. | ||||
* | DG/UX thread patches (Ross Andrus) | Guido van Rossum | 1997-05-22 | 2 | -3/+12 |
| | |||||
* | Set sys.executable to full path of python (from argv[0]). | Guido van Rossum | 1997-05-22 | 1 | -0/+4 |
| | |||||
* | Added a space in an error message | Guido van Rossum | 1997-05-22 | 1 | -1/+1 |
| | |||||
* | Don't use function prototypes in function definition headers. | Guido van Rossum | 1997-05-20 | 1 | -4/+8 |
| | |||||
* | Indent the #error directives so a classic K&R cpp doesn't see them. | Guido van Rossum | 1997-05-20 | 1 | -3/+3 |
| | |||||
* | Plug leak of stack frame object in exception handling code. | Guido van Rossum | 1997-05-20 | 1 | -9/+26 |
| | | | | | Also delay DECREF calls until after the structures have been updated (for reentrancy awareness). | ||||
* | Logic for enabling mac-specific signal handling fixed (Jack) | Guido van Rossum | 1997-05-20 | 1 | -1/+1 |
| | |||||
* | Use #ifdef in stead of #if (Jack) | Guido van Rossum | 1997-05-20 | 1 | -1/+1 |
| | |||||
* | Add pthred-std define for Linux. | Guido van Rossum | 1997-05-15 | 1 | -0/+2 |
| | |||||
* | One last rename glitch: import_modules -> _PyImport_Modules. | Guido van Rossum | 1997-05-14 | 3 | -17/+17 |
| | |||||
* | Support for various versions of the pthread draft. | Guido van Rossum | 1997-05-13 | 1 | -12/+64 |
| | |||||
* | (int) cast for strlen() to keep picky compilers happy. | Guido van Rossum | 1997-05-13 | 1 | -1/+1 |
| | |||||
* | Oops -- missed FloatingPointError in renaming. | Guido van Rossum | 1997-05-09 | 1 | -2/+2 |
| | |||||
* | Get rid of obsolete support for access statement. | Guido van Rossum | 1997-05-09 | 1 | -67/+0 |
| | |||||
* | Oops, missed some renamings. | Guido van Rossum | 1997-05-07 | 3 | -8/+5 |
| | |||||
* | Instead of importing graminit.h whenever one of the three grammar 'root' | Guido van Rossum | 1997-05-07 | 5 | -18/+27 |
| | | | | symbols is needed, define these in Python.h with a Py_ prefix. | ||||
* | New dir() function -- | Guido van Rossum | 1997-05-06 | 1 | -22/+48 |
| | | | | | | - uses abstract interface where possible - uses __members__ and __methods__ - returns [] when an object has no info available | ||||
* | Keep MS compiler happy: use (int)strlen() when comparing; make sure | Guido van Rossum | 1997-05-06 | 1 | -2/+8 |
| | | | | not to use kill(). | ||||
* | Used operators from abstract.h where possible (arithmetic operators, | Guido van Rossum | 1997-05-06 | 1 | -420/+30 |
| | | | | | | get/set/del item). This removes a pile of duplication. There's no abstract operator for 'not' but I removed the function call for it anyway -- it's a little faster in-line. | ||||
* | Checkin of Jack's buffer mods. | Guido van Rossum | 1997-05-05 | 1 | -25/+89 |
| | | | | Not really checked, but didn't fail any tests either... | ||||
* | Fix old typo PyArgs_VaParse -> PyArg_VaParse. | Guido van Rossum | 1997-05-05 | 1 | -2/+2 |
| | | | | (Redoing the checking without merging in Jack's buffer mods.) | ||||
* | Massive changes for separate thread state management. | Guido van Rossum | 1997-05-05 | 8 | -231/+630 |
| | | | | | All per-thread globals are moved into a struct which is manipulated separately. | ||||
* | Only use PyCode_Addr2Line to get tb_lineno when Py_OptimizeFlag is set. | Guido van Rossum | 1997-05-05 | 1 | -2/+3 |
| | |||||
* | Remove 2 out of 3 __FreeBSD__ tests. | Guido van Rossum | 1997-05-05 | 1 | -2/+2 |
| | | | | | These are no longer needed as of FreeBSD 2.0.5, according to Thomas Gellekum <tg@ihf.rwth-aachen.de>. | ||||
* | Add detach call so threads are GC'ed. | Guido van Rossum | 1997-04-30 | 1 | -0/+2 |
| | |||||
* | Avoid some potential (though unlikely) sprintf buffer overflows. | Guido van Rossum | 1997-04-30 | 1 | -3/+6 |
| | |||||
* | Avoid sprintf buffer overflow if more than 9999 arguments. | Guido van Rossum | 1997-04-30 | 1 | -1/+1 |
| | |||||
* | Ugly hack for SGI IRIX 6.2. Apparently _POSIX_THREADS is defined even | Guido van Rossum | 1997-04-29 | 1 | -0/+6 |
| | | | | | when the pthread package is not installed. configure knows better, so #undef _POSIX_THREADS when pthread.h does not exist. | ||||
* | Oops, forgot one: inittab. | Guido van Rossum | 1997-04-29 | 1 | -2/+2 |
| |