Guido van Rossum 
								
							 
						 
						
							
							
							
							
								
							
							
								019db5d73e 
								
							 
						 
						
							
							
								
								Oops -- this contains frozen bytecode, but it was Python 1.4 bytecode!  
							
							
							
						 
						
							1997-07-19 21:54:24 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Guido van Rossum 
								
							 
						 
						
							
							
							
							
								
							
							
								9cc8a20cd2 
								
							 
						 
						
							
							
								
								Moved PyEval_{Acquire,Release}Thread() to within the same #ifdef  
							
							... 
							
							
							
							WITH_THREAD as PyEval_InitThreads().
Removed use of Py_SuppressPrintingFlag. 
							
						 
						
							1997-07-19 19:55:50 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Guido van Rossum 
								
							 
						 
						
							
							
							
							
								
							
							
								534ac094f9 
								
							 
						 
						
							
							
								
								Removed a bunch of extern declarations of functions that are now  
							
							... 
							
							
							
							properly declared in Python.h. 
							
						 
						
							1997-07-19 19:51:43 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Guido van Rossum 
								
							 
						 
						
							
							
							
							
								
							
							
								8fb26ede51 
								
							 
						 
						
							
							
								
								Make it return a _const_ char*.  
							
							
							
						 
						
							1997-07-19 19:48:41 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Guido van Rossum 
								
							 
						 
						
							
							
							
							
								
							
							
								f6ca6aa869 
								
							 
						 
						
							
							
								
								New build procedure.  
							
							
							
						 
						
							1997-07-19 19:39:57 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Guido van Rossum 
								
							 
						 
						
							
							
							
							
								
							
							
								3768fb1097 
								
							 
						 
						
							
							
								
								Tracking changes to Py_Main():  
							
							... 
							
							
							
							- Got rid of inspection of some environment variables.
- Got rid of Py_GetProgramName() and related logic.
- Print the version header *after* successful initialization. 
							
						 
						
							1997-07-19 19:24:41 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Guido van Rossum 
								
							 
						 
						
							
							
							
							
								
							
							
								ad6dfda9af 
								
							 
						 
						
							
							
								
								Moved some stuff here from main.c (part of a big restructuring - wait  
							
							... 
							
							
							
							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(). 
							
						 
						
							1997-07-19 19:17:22 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Guido van Rossum 
								
							 
						 
						
							
							
							
							
								
							
							
								0c88e1fd96 
								
							 
						 
						
							
							
								
								Remove confusing usage comments at end.  
							
							
							
						 
						
							1997-07-19 00:02:22 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Guido van Rossum 
								
							 
						 
						
							
							
							
							
								
							
							
								2fca21f762 
								
							 
						 
						
							
							
								
								PyEval_SaveThread() and PyEval_RestoreThread() now return/take a  
							
							... 
							
							
							
							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. 
							
						 
						
							1997-07-18 23:56:58 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Guido van Rossum 
								
							 
						 
						
							
							
							
							
								
							
							
								c12da6980f 
								
							 
						 
						
							
							
								
								Huge speedup by inlining some common integer operations:  
							
							... 
							
							
							
							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. 
							
						 
						
							1997-07-17 23:12:42 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Guido van Rossum 
								
							 
						 
						
							
							
							
							
								
							
							
								b65e85cb73 
								
							 
						 
						
							
							
								
								Fix problem discovered by Greg McFarlane: when an imported module  
							
							... 
							
							
							
							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__]. 
							
						 
						
							1997-07-10 18:00:45 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Guido van Rossum 
								
							 
						 
						
							
							
							
							
								
							
							
								db9e20f418 
								
							 
						 
						
							
							
								
								Fix bug reported by Just: anonymous arguments used for tuples should  
							
							... 
							
							
							
							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. 
							
						 
						
							1997-07-10 01:06:53 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Guido van Rossum 
								
							 
						 
						
							
							
							
							
								
							
							
								46ff1903a3 
								
							 
						 
						
							
							
								
								Add default case (standard conformance) to avoid piling up  
							
							... 
							
							
							
							system specific #ifdefs. 
							
						 
						
							1997-06-02 22:25:45 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Guido van Rossum 
								
							 
						 
						
							
							
							
							
								
							
							
								296b4751e1 
								
							 
						 
						
							
							
								
								Can't return 0 from void function...  
							
							
							
						 
						
							1997-05-23 00:19:20 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Guido van Rossum 
								
							 
						 
						
							
							
							
							
								
							
							
								c8b6df9004 
								
							 
						 
						
							
							
								
								PyObject_Compare can raise an exception now.  
							
							
							
						 
						
							1997-05-23 00:06:51 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Guido van Rossum 
								
							 
						 
						
							
							
							
							
								
							
							
								7e8d26d78c 
								
							 
						 
						
							
							
								
								PyFile_WriteString now returns an error indicator instead of calling  
							
							... 
							
							
							
							PyErr_Clear().  Add checking of those errors. 
							
						 
						
							1997-05-22 22:35:47 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Guido van Rossum 
								
							 
						 
						
							
							
							
							
								
							
							
								78a1ed3d70 
								
							 
						 
						
							
							
								
								Py_FlushLine and PyFile_WriteString now return error indicators  
							
							... 
							
							
							
							instead of calling PyErr_Clear().  Add checking of those errors. 
							
						 
						
							1997-05-22 22:35:04 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Guido van Rossum 
								
							 
						 
						
							
							
							
							
								
							
							
								be27026c09 
								
							 
						 
						
							
							
								
								Py_FlushLine and PyFile_WriteString now return error indicators  
							
							... 
							
							
							
							instead of calling PyErr_Clear().  Add checking of those errors. 
							
						 
						
							1997-05-22 22:26:18 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Guido van Rossum 
								
							 
						 
						
							
							
							
							
								
							
							
								64f9105fb7 
								
							 
						 
						
							
							
								
								DG/UX thread patches (Ross Andrus)  
							
							
							
						 
						
							1997-05-22 20:41:59 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Guido van Rossum 
								
							 
						 
						
							
							
							
							
								
							
							
								b2c8ec4b75 
								
							 
						 
						
							
							
								
								Set sys.executable to full path of python (from argv[0]).  
							
							
							
						 
						
							1997-05-22 20:41:20 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Guido van Rossum 
								
							 
						 
						
							
							
							
							
								
							
							
								23c9446d9a 
								
							 
						 
						
							
							
								
								Added a space in an error message  
							
							
							
						 
						
							1997-05-22 20:21:30 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Guido van Rossum 
								
							 
						 
						
							
							
							
							
								
							
							
								f9cba090f9 
								
							 
						 
						
							
							
								
								Don't use function prototypes in function definition headers.  
							
							
							
						 
						
							1997-05-20 22:23:34 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Guido van Rossum 
								
							 
						 
						
							
							
							
							
								
							
							
								2f75b29630 
								
							 
						 
						
							
							
								
								Indent the #error directives so a classic K&R cpp doesn't see them.  
							
							
							
						 
						
							1997-05-20 22:18:48 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Guido van Rossum 
								
							 
						 
						
							
							
							
							
								
							
							
								df4c308f5a 
								
							 
						 
						
							
							
								
								Plug leak of stack frame object in exception handling code.  
							
							... 
							
							
							
							Also delay DECREF calls until after the structures have been updated
(for reentrancy awareness). 
							
						 
						
							1997-05-20 17:06:11 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Guido van Rossum 
								
							 
						 
						
							
							
							
							
								
							
							
								df0d00e29b 
								
							 
						 
						
							
							
								
								Logic for enabling mac-specific signal handling fixed (Jack)  
							
							
							
						 
						
							1997-05-20 15:57:49 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Guido van Rossum 
								
							 
						 
						
							
							
							
							
								
							
							
								1254d79dfa 
								
							 
						 
						
							
							
								
								Use #ifdef in stead of #if (Jack)  
							
							
							
						 
						
							1997-05-20 15:57:25 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Guido van Rossum 
								
							 
						 
						
							
							
							
							
								
							
							
								c8fba8ee14 
								
							 
						 
						
							
							
								
								Add pthred-std define for Linux.  
							
							
							
						 
						
							1997-05-15 12:24:53 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Guido van Rossum 
								
							 
						 
						
							
							
							
							
								
							
							
								af5dfb4ceb 
								
							 
						 
						
							
							
								
								One last rename glitch: import_modules -> _PyImport_Modules.  
							
							
							
						 
						
							1997-05-14 17:36:12 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Guido van Rossum 
								
							 
						 
						
							
							
							
							
								
							
							
								d6353e2c0e 
								
							 
						 
						
							
							
								
								Support for various versions of the pthread draft.  
							
							
							
						 
						
							1997-05-13 17:51:13 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Guido van Rossum 
								
							 
						 
						
							
							
							
							
								
							
							
								5f15b96c36 
								
							 
						 
						
							
							
								
								(int) cast for strlen() to keep picky compilers happy.  
							
							
							
						 
						
							1997-05-13 17:50:01 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Guido van Rossum 
								
							 
						 
						
							
							
							
							
								
							
							
								b6a7f77c9f 
								
							 
						 
						
							
							
								
								Oops -- missed FloatingPointError in renaming.  
							
							
							
						 
						
							1997-05-09 03:03:23 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Guido van Rossum 
								
							 
						 
						
							
							
							
							
								
							
							
								9a0f04d4cd 
								
							 
						 
						
							
							
								
								Get rid of obsolete support for access statement.  
							
							
							
						 
						
							1997-05-09 00:58:02 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Guido van Rossum 
								
							 
						 
						
							
							
							
							
								
							
							
								ee2373b930 
								
							 
						 
						
							
							
								
								Oops, missed some renamings.  
							
							
							
						 
						
							1997-05-07 23:51:07 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Guido van Rossum 
								
							 
						 
						
							
							
							
							
								
							
							
								b05a5c7698 
								
							 
						 
						
							
							
								
								Instead of importing graminit.h whenever one of the three grammar 'root'  
							
							... 
							
							
							
							symbols is needed, define these in Python.h with a Py_ prefix. 
							
						 
						
							1997-05-07 17:46:13 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Guido van Rossum 
								
							 
						 
						
							
							
							
							
								
							
							
								666b17a280 
								
							 
						 
						
							
							
								
								New dir() function --  
							
							... 
							
							
							
							- uses abstract interface where possible
- uses __members__ and __methods__
- returns [] when an object has no info available 
							
						 
						
							1997-05-06 16:36:57 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Guido van Rossum 
								
							 
						 
						
							
							
							
							
								
							
							
								478e718aca 
								
							 
						 
						
							
							
								
								Keep MS compiler happy: use (int)strlen() when comparing; make sure  
							
							... 
							
							
							
							not to use kill(). 
							
						 
						
							1997-05-06 15:24:59 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Guido van Rossum 
								
							 
						 
						
							
							
							
							
								
							
							
								fc49073cd0 
								
							 
						 
						
							
							
								
								Used operators from abstract.h where possible (arithmetic operators,  
							
							... 
							
							
							
							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. 
							
						 
						
							1997-05-06 15:06:49 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Guido van Rossum 
								
							 
						 
						
							
							
							
							
								
							
							
								fdf95dd525 
								
							 
						 
						
							
							
								
								Checkin of Jack's buffer mods.  
							
							... 
							
							
							
							Not really checked, but didn't fail any tests either... 
							
						 
						
							1997-05-05 22:15:02 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Guido van Rossum 
								
							 
						 
						
							
							
							
							
								
							
							
								13454c3f9c 
								
							 
						 
						
							
							
								
								Fix old typo PyArgs_VaParse -> PyArg_VaParse.  
							
							... 
							
							
							
							(Redoing the checking without merging in Jack's buffer mods.) 
							
						 
						
							1997-05-05 21:57:29 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Guido van Rossum 
								
							 
						 
						
							
							
							
							
								
							
							
								a027efa5bf 
								
							 
						 
						
							
							
								
								Massive changes for separate thread state management.  
							
							... 
							
							
							
							All per-thread globals are moved into a struct which is manipulated
separately. 
							
						 
						
							1997-05-05 20:56:21 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Guido van Rossum 
								
							 
						 
						
							
							
							
							
								
							
							
								73237c54b4 
								
							 
						 
						
							
							
								
								Only use PyCode_Addr2Line to get tb_lineno when Py_OptimizeFlag is set.  
							
							
							
						 
						
							1997-05-05 20:53:25 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Guido van Rossum 
								
							 
						 
						
							
							
							
							
								
							
							
								9218b70bdc 
								
							 
						 
						
							
							
								
								Remove 2 out of 3 __FreeBSD__ tests.  
							
							... 
							
							
							
							These are no longer needed as of FreeBSD 2.0.5, according to
Thomas Gellekum <tg@ihf.rwth-aachen.de>. 
							
						 
						
							1997-05-05 15:03:26 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Guido van Rossum 
								
							 
						 
						
							
							
							
							
								
							
							
								f4806c2a85 
								
							 
						 
						
							
							
								
								Add detach call so threads are GC'ed.  
							
							
							
						 
						
							1997-04-30 19:59:22 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Guido van Rossum 
								
							 
						 
						
							
							
							
							
								
							
							
								bc2472db8e 
								
							 
						 
						
							
							
								
								Avoid some potential (though unlikely) sprintf buffer overflows.  
							
							
							
						 
						
							1997-04-30 19:07:54 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Guido van Rossum 
								
							 
						 
						
							
							
							
							
								
							
							
								15e33a4c42 
								
							 
						 
						
							
							
								
								Avoid sprintf buffer overflow if more than 9999 arguments.  
							
							
							
						 
						
							1997-04-30 19:00:27 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Guido van Rossum 
								
							 
						 
						
							
							
							
							
								
							
							
								d11bfdd9f5 
								
							 
						 
						
							
							
								
								Ugly hack for SGI IRIX 6.2.  Apparently _POSIX_THREADS is defined even  
							
							... 
							
							
							
							when the pthread package is not installed.  configure knows better, so
#undef _POSIX_THREADS when pthread.h does not exist. 
							
						 
						
							1997-04-29 21:48:34 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Guido van Rossum 
								
							 
						 
						
							
							
							
							
								
							
							
								bb5c6f8529 
								
							 
						 
						
							
							
								
								Oops, forgot one: inittab.  
							
							
							
						 
						
							1997-04-29 20:42:30 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Guido van Rossum 
								
							 
						 
						
							
							
							
							
								
							
							
								0bac33b420 
								
							 
						 
						
							
							
								
								Oops, forgot one: inittab.  
							
							
							
						 
						
							1997-04-29 20:24:10 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Guido van Rossum 
								
							 
						 
						
							
							
							
							
								
							
							
								79f25d9a7b 
								
							 
						 
						
							
							
								
								Quickly renamed the remaining files -- this directory is done.  
							
							
							
						 
						
							1997-04-29 20:08:16 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Guido van Rossum 
								
							 
						 
						
							
							
							
							
								
							
							
								65bf9f265e 
								
							 
						 
						
							
							
								
								Quickly renamed.  
							
							
							
						 
						
							1997-04-29 18:33:38 +00:00