timsladic / python-on-a-chip

Automatically exported from code.google.com/p/python-on-a-chip
Other
0 stars 1 forks source link

Create issubclass() and isinstance() builtin functions #64

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
During issue #48, the C function class_inheritsFrom() was created to test 
that a given class inherited from the Exception class.  This same C function 
can be used to implement the issubclass() builtin.

The isinstance() builtin should be pretty easy, too.

More functions in the builtins consume heap, so these funcitons might be 
commented out by default.

Original issue reported on code.google.com by dwhall...@gmail.com on 18 Jan 2010 at 5:58

GoogleCodeExporter commented 8 years ago
Changing Milestone-r10 to Milestone-r09

Original comment by dwhall...@gmail.com on 7 Mar 2010 at 6:26

GoogleCodeExporter commented 8 years ago
Changed r09 to R09

Original comment by dwhall...@gmail.com on 12 Mar 2010 at 8:22

GoogleCodeExporter commented 8 years ago

Original comment by dwhall...@gmail.com on 13 Mar 2010 at 1:30

GoogleCodeExporter commented 8 years ago

Original comment by dwhall...@gmail.com on 11 Aug 2010 at 7:53