-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Add .__base__ #4368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add .__base__ #4368
Conversation
Add CPython compatible attribute .__base__ for retrieving base Class
Thanks for the contribution. Independent of whether or not this would be a good thing to add, I think the correct implementation would be to put it in Also, it seems that |
That's OK. Hope you can implement it both base and bases. I have no confidence to modify the py/objtype.c:type_attr() |
about usefullness test code
cpython
micropython
|
Well, in the context of #4309, may be useful, but indeed, should be a real documented thing (i.e. |
agree with Paul, we can implement 'base' first than 'bases'since multi-inherit is not fully supported in MPY. |
Closing in favour of #5139 (adds |
8f9e2e3 added |
Add CPython compatible attribute .base for retrieving base Class