Commit Graph

9 Commits

Author SHA1 Message Date
Windel Bouwman
a0edc4203f Check that raise command raises exception type 2018-08-26 00:30:01 +02:00
Adam Kelly
481186a097 Finish clean-up of type creation. 2018-08-24 15:13:06 +01:00
Adam Kelly
4b322fe5aa Improve rest of attribute protocol interface. 2018-08-24 10:16:45 +01:00
Adam Kelly
1884948bb7 Cleanup object type. 2018-08-20 19:54:19 +01:00
Adam Kelly
61d7c26787 Simplify construction of list and type. 2018-08-20 19:54:19 +01:00
Adam Kelly
25dc93915a Add method descriptors and __mro__. 2018-08-19 20:54:45 +01:00
Adam Kelly
ca7b792497 Get both forms of type to work properly.
Includes basic ability to traverse method resolution order (mro), but
not to derive mro or read parents from class definitions.

New and init called when creating types and instances.
__call__ works on types and instances.
Descriptors have have priority over instance variables.
2018-08-18 11:54:00 +01:00
Adam Kelly
4b52f72316 load_attr to use class based attribute getting. 2018-08-12 18:57:56 +01:00
Adam Kelly
cb3bd23cb1 Add modules for class and function objects. 2018-08-12 18:27:03 +01:00