Skip to content

suggestion: corelib only expose pymodules - #3165

Closed
youknowone wants to merge 1 commit into
RustPython:mainfrom
youknowone:corelib-pymodule
Closed

youknowone wants to merge 1 commit into
RustPython:mainfrom
youknowone:corelib-pymodule

Conversation

@youknowone

Copy link
Copy Markdown
Member

This is a sugestion about module public api.

What users should see in our module public api?
My suggestion is the same as Python.

So, if there is time.time() in Python, corelib::time::time() in Rust.

To achieve this, we need to expose inner pymodule to public api, not the outer one currently in vm::stdlib

@youknowone
youknowone marked this pull request as draft September 28, 2021 18:36
@coolreader18

Copy link
Copy Markdown
Member

An alternative is I guess to do pub use module::*; at the top of the file

@youknowone youknowone closed this Sep 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants