diff Python/modsupport.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 2e874a5a912f
children 8e86a797e596
line wrap: on
line diff