Skip to content
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

Added help function support for modules #166

Merged
merged 2 commits into from
Jun 8, 2024
Merged

Added help function support for modules #166

merged 2 commits into from
Jun 8, 2024

Conversation

Vardan2009
Copy link
Contributor

Closes #164

This adds support for printing module contents by the help(obj) function

But, I'm not sure about these lines in the code:

if (type(f).__name__ == "BuiltInClass") or (type(f).__name__ == "BuiltInFunction"): continue
if k == "null" or k == "false" or k == "true": continue

@Almas-Ali
Copy link
Member

Hey, @angelcaru can you review this??

@angelcaru
Copy link
Contributor

To avoid that funny-looking code, we could have a special method on SymbolTables like set_builtin or something and have this function look for that. Otherwise, LGTM

@Almas-Ali Almas-Ali merged commit 97b5272 into radon-project:master Jun 8, 2024
1 check passed
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.

Direct calling imported module in help() is not working.
3 participants