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

fixes required for deeper pymathics modules #1031

Merged
merged 5 commits into from
Aug 5, 2024

Conversation

mmatera
Copy link
Contributor

@mmatera mmatera commented Apr 7, 2024

This PR seems to fix the issue with Pymathics Natlang documentation (Mathics3/pymathics-natlang#19 (comment))

@@ -138,7 +139,7 @@ def gather_sections(chapter, module, builtins_by_module, section_class=None) ->
# converting the entries into `set`s.
#
visited = set()
for symbol_instance in builtins_by_module[module.__name__]:
for symbol_instance in builtins_by_module.get(module.__name__,[]):
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, the main change in this file is this line. To move the other functions is just to improve the organization of the code.

@mmatera
Copy link
Contributor Author

mmatera commented Apr 7, 2024

This is how the documentation looks with the current changes:

imagen

imagen

Of course, the docstrings for the guides must be completed.

@mmatera mmatera marked this pull request as ready for review April 7, 2024 21:40
@rocky
Copy link
Member

rocky commented Aug 5, 2024

I am okay with this, although as you say, functionally there is no difference.

@rocky rocky merged commit 64ca65d into master Aug 5, 2024
10 checks passed
@rocky rocky deleted the fixes_for_the_new_module_organization branch August 5, 2024 21:21
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