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

WIP module load, and builtin create once #635

Closed
wants to merge 1 commit into from

Conversation

rocky
Copy link
Member

@rocky rocky commented Nov 21, 2022

This will be closed soon See #648

That PR tries to do that as well as move code out of the Defintions object creation.

In has become apparent that it is too much work to try to do both things in one PR. So this and the follow-on PRs that are based on this need to be reworked.

@mmatera This doesn't work, but it's closer to the idea.

What I am seeing pytests are not working, e.g. test/format/test_{asy,format,svg}.py and test/builtin/test_comparison.py

If you can get it to work great. If not, I will narrow the difference next weekend. Many of the bugs so far have been imports pointing to the old (mathics.builtin) location.

However, format problems, I think have to do with some sort of magic that occurs that is noted in master when the definitions object does an import mathics.format

Copy link
Contributor

@TiagoCavalcante TiagoCavalcante left a comment

Choose a reason for hiding this comment

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

LGTM

mathics/builtin/base.py Outdated Show resolved Hide resolved
@rocky rocky force-pushed the create-system_builtin-once branch 2 times, most recently from d8eeb84 to 6436065 Compare November 21, 2022 19:53
This isn't working but this is the idea.

Another PR will contain some of the independent bugs found in this process
@rocky rocky changed the title WIP - module load, and builtin create once Module load, and builtin create once Dec 3, 2022
@rocky rocky changed the title Module load, and builtin create once WIP module load, and builtin create once Dec 3, 2022
@rocky rocky marked this pull request as draft December 3, 2022 20:33
@rocky rocky closed this Oct 20, 2024
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