summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Rename roundup() to roundupsize(), as there's a macro roundup() in theGuido van Rossum1997-08-251-2/+2
| | | | | sys/types.h header on many systems that may get pulled in (through WANT_SIGFPE_HANDLER which pulls in signal.h).
* Removed some colons that shouldn't be there (probably leftovers fromGuido van Rossum1997-08-252-26/+52
| | | | docstring conversion).
* Arbitrary point checkpoint commit. Take no notice.Guido van Rossum1997-08-254-6/+248
|
* Examples of metaprogramming in pure Python.Guido van Rossum1997-08-232-0/+291
|
* Added a few more tests of exception class raisingBarry Warsaw1997-08-221-0/+8
|
* generated output for new testsBarry Warsaw1997-08-221-0/+2
|
* Added tests of the new builtin functions issubclass() and isinstance()Barry Warsaw1997-08-221-0/+36
|
* cmp_exception gets promoted (essentially) to the C API functionBarry Warsaw1997-08-221-59/+10
| | | | | | | | | | | PyErr_GivenExceptionMatches(). set_exc_info(): make sure to normalize exceptions. do_raise(): Use PyErr_NormalizeException() if type is a class. loop_subscript(): Use PyErr_ExceptionMatches() instead of raw pointer compare for PyExc_IndexError.
* Three new C API functions:Barry Warsaw1997-08-222-0/+111
| | | | | | | | | | | | | | | | | | | | | | | | | | - int PyErr_GivenExceptionMatches(obj1, obj2) Returns 1 if obj1 and obj2 are the same object, or if obj1 is an instance of type obj2, or of a class derived from obj2 - int PyErr_ExceptionMatches(obj) Higher level wrapper around PyErr_GivenExceptionMatches() which uses PyErr_Occurred() as obj1. This will be the more commonly called function. - void PyErr_NormalizeException(typeptr, valptr, tbptr) Normalizes exceptions, and places the normalized values in the arguments. If type is not a class, this does nothing. If type is a class, then it makes sure that value is an instance of the class by: 1. if instance is of the type, or a class derived from type, it does nothing. 2. otherwise it instantiates the class, using the value as an argument. If value is None, it uses an empty arg tuple, and if the value is a tuple, it uses just that.
* Two new built-in functions: issubclass() and isinstance(). Both takeBarry Warsaw1997-08-221-5/+59
| | | | | | | | | | | | classes as their second arguments. The former takes a class as the first argument and returns true iff first is second, or is a subclass of second. The latter takes any object as the first argument and returns true iff first is an instance of the second, or any subclass of second. Also, change all occurances of pointer compares against PyExc_IndexError with PyErr_ExceptionMatches() calls.
* Correct off-by-two-pixels error.Guido van Rossum1997-08-221-1/+1
|
* Add unsupported variable EXE which can be set to .exe on systems whereGuido van Rossum1997-08-221-1/+4
| | | | | | the executable must have that suffix. Note that there is no corresponding support in the top-level Makefile because I'm not sure that the install targets there make sense under these circumstances.
* Added configuration tests for presence of alarm(), pause(), and getpwent()Guido van Rossum1997-08-225-11/+24
|
* Oops, don't suppress echo of the rm command in l2hclean!Fred Drake1997-08-221-1/+1
|
* Simplify LaTeX2HTML targets && support re-use of output directories (whichFred Drake1997-08-221-17/+10
| | | | | | saves re-generation of images). Add l2hclean target.
* Reverse the search order for the Don Beaudry hook so that the firstGuido van Rossum1997-08-221-4/+3
| | | | class wins. Makes more sense.
* Changed description of SchedParams() in the following way:Fred Drake1997-08-222-4/+4
| | | | | | | | | | | \bar{Besocial} --> \var{besocial} ^--- note case ----^ The fixed version matches the signature. Changed "\bar{Besocial} gives ..." to "The \var{besocial} flag gives ..." to keep from starting the sentence with a lowercase token. (The \bar{} --> \var{} change was required to keep LaTeX happy.)
* Added missing "\end{funcdesc}" after FindFolder documentation.Fred Drake1997-08-222-0/+2
|
* Added new Py_IsInitalized() API function to test the 'initialized' flag.Guido van Rossum1997-08-223-0/+11
|
* Removed JF's dollar-Log-dollar RCS turd that caused compilation toBarry Warsaw1997-08-211-52/+0
| | | | | crash due to GvR's last check in message :-). Will try to convince JF to remove all this evilness.
* Remove redundant decl for PyOS_InputHook.Guido van Rossum1997-08-211-3/+0
|
* Completely disable the declarations for malloc() and friends. UseGuido van Rossum1997-08-211-2/+3
| | | | | #ifdef though, so if you still need these for a really backwards compiler you know what to do.
* Add warning about dumb SGI make.Guido van Rossum1997-08-211-0/+6
|
* Use lseek instead of ftell; compensate by adding BUFSIZEGuido van Rossum1997-08-211-2/+6
|
* Added /**/ around #end tagsGuido van Rossum1997-08-212-2/+5
|
* Must remove conflicting files from archiveGuido van Rossum1997-08-211-4/+6
| | | | | *before* adding signalmodule.o, because some ar programs are too smart for us...
* mention cPickle and cStringIOGuido van Rossum1997-08-212-0/+8
|
* the usualGuido van Rossum1997-08-211-191/+198
|
* Fix some badly botched prototypes for PyRun* c.s.Guido van Rossum1997-08-212-6/+6
|
* Added reopGuido van Rossum1997-08-211-0/+2
|
* Added missing newline to warning msgGuido van Rossum1997-08-211-1/+1
|
* Richard Jones: I think we can be confident in using 'CC="-AaGuido van Rossum1997-08-211-0/+7
| | | | -D_HPUX_SOURCE"' on HP 9.x and 10.x platforms.
* Got rid of HP-UX comments (which seem to be out of date -- one shouldGuido van Rossum1997-08-201-9/+8
| | | | | | use -Ae). Added Cray T3E comments.
* Globally renamed join() to joinpath() to avoid compilation error on Cray.Guido van Rossum1997-08-201-22/+22
|
* Renamed strndup to pystrndup, to avoid conflicting prototypeGuido van Rossum1997-08-201-5/+9
| | | | in GNU libc on some platforms.
* Interpret three slashes in file: URL as local file (for Netscape onGuido van Rossum1997-08-201-4/+4
| | | | Windows/Mac).
* When we have signalmodule.o, remove intrcheck.o as well as sigcheck.o.Guido van Rossum1997-08-201-3/+4
|
* Use a counter instead of a Boolean to check for initialized; n callsGuido van Rossum1997-08-202-5/+7
| | | | to Py_Initialize will be undone by n calls to Py_Uninitialize.
* Make sure the objects returned by __getinitargs__() are kept alive (inGuido van Rossum1997-08-201-0/+18
| | | | | | the memo) to avoid a certain kind of nasty crash. (Not easily reproducable because it requires a later call to __getinitargs__() to return a tuple that happens to be allocated at the same address.)
* Use 'buildno1' instead of '@buildno' for temp file since DJGPP's bashGuido van Rossum1997-08-201-2/+2
| | | | doesn't seem to grok @buildno.
* Need to define AR since it is used, and not all Makes define it by default.Guido van Rossum1997-08-191-0/+1
|
* Removed support_print docs.Jack Jansen1997-08-191-2/+0
|
* Docs on new tcl/tk, new build tree layoutJack Jansen1997-08-191-55/+26
|
* Very sketchy preliminary docs on new applescripting functionality.Jack Jansen1997-08-191-32/+53
|
* Added reopJack Jansen1997-08-191-0/+2
|
* MkPluginAliases now knows about fat PythonCore (and all resource filesJack Jansen1997-08-198-163/+164
| | | | got binhexed again)
* PythonCore is now a fat shared library, the plugin modules aren't fat,Jack Jansen1997-08-1921-4829/+4847
| | | | | | | | unfortunately, this turned out to be too difficult. Plugins.prj now builds all plugin modules, and all the interdependencies between the projects are correct. One exception: plugins don't attempt to build PythonCore (PythonFAT and PythonApplet do).
* Moved assert.h to ../Parser directoryGuido van Rossum1997-08-191-49/+0
|
* Alas, the thread support for Tk didn't work. Withdraw it, until IGuido van Rossum1997-08-191-0/+4
| | | | figure out how to do this right.
* Made lookdict nearly twice as fast, resulting in a 5% overallGuido van Rossum1997-08-181-11/+13
| | | | improvement of pystone. Vladimir Marangozov.