comparison Python/pythonmain.c @ 8402:0cb0394c2edc legacy-trunk

A bunch of functions are now properly implemented in abstract.c, and the code here becomes much simpler. In particular: abs(), divmod(), pow(), int(), long(), float(), len(), tuple(), list(). Also make sure that no use of a function pointer gotten from a tp_as_sequence or tp_as_mapping structure is made without checking it for NULL first. A few other cosmetic things, such as properly reindenting slice().
author Guido van Rossum <guido@python.org>
date Fri, 22 May 1998 00:51:39 +0000
parents 85140b354890
children
comparison
equal deleted inserted replaced
8401:70f93e0c580e 8402:0cb0394c2edc