vm::obj -> vm::builtins and expose types right under builtins rather than each objxxx submodules#2281
Conversation
ec4f98a to
537e49a
Compare
|
@coolreader18 I want quick review for this PR. this is a huge source of conflict. this is making |
There was a problem hiding this comment.
I think overall this is a good idea, though I feel like one namespace for everything might not be great. Maybe we could have pub mod foo; and just export PyFoo, PyFooRef under builtins/mod.rs and then we could still keep utility functions related to foo/foo-like objects under builtins::foo. Specifically thinking about stuff like objiter, objsequence, though maybe those should go in something like CPython's abstract.c.
|
I think exporting PyFoo, PyFooRef is better than |
|
They had different behaviors. I will make objtype::isinstance to trait method of TypeProtocol |


No description provided.