K. Lange
1e044c140d
Support for __init_subclass__
2023-01-26 20:01:39 +09:00
K. Lange
617d30d804
Very initial rebuild of class creation
2023-01-25 22:10:13 +09:00
K. Lange
f9df8b22ef
initial support for __new__
2023-01-24 18:15:13 +09:00
K. Lange
d8a1861c23
format() and object.__format__()
2022-07-10 16:10:07 +09:00
K. Lange
c10a457242
Rudimentary __setattr__ support
2022-07-07 14:54:30 +09:00
K. Lange
41c77de753
Implement overridable hashing and speed up property access
2021-03-25 19:49:18 +09:00
K. Lange
84b7a37fab
Remove the distinction between a class's 'fields' and 'methods' and implement actual method resolution
2021-03-09 22:35:40 +09:00
K. Lange
00fce076fe
Add __qualname__ to classes
2021-02-25 10:03:52 +09:00
K Lange
8e1f5f0565
repr classes as <class 'module.Class'> like Python
...
- We were using "<type ...>" like Python2 does for built-ins?
But even Python 2 called user classes "<class ...>" - Python 3
calls both built-ins and user classes "class".
- Check if there's a __module__ name and use that as well, now
we look even more like Python!
2021-02-24 22:50:51 +09:00
K. Lange
4a9e3981fc
Add object.__hash__()
2021-02-14 15:04:09 +09:00
K. Lange
e7a8d0b8e5
Attach code object for class to the resulting class object
2021-02-05 20:34:18 +09:00
K. Lange
d44f080260
oops, leaked a pointer in a test
2021-01-14 23:19:59 +09:00
K. Lange
5568665ad6
Unverified implementation for __getattr__
2021-01-14 23:16:13 +09:00