Skip to content

Segregate I/O, Files, and Filesystem builtins#1338

Merged
rocky merged 2 commits intomasterfrom
file-module
May 2, 2021
Merged

Segregate I/O, Files, and Filesystem builtins#1338
rocky merged 2 commits intomasterfrom
file-module

Conversation

@rocky
Copy link
Copy Markdown
Member

@rocky rocky commented May 1, 2021

No description provided.

@rocky rocky requested a review from mmatera May 1, 2021 12:31
@rocky rocky force-pushed the file-module branch 3 times, most recently from cc02447 to 385904e Compare May 1, 2021 12:38
Comment thread mathics/builtin/__init__.py Outdated
builtins_by_module = {}

for subdir in ("drawing", "numbers", "specialfns",):
disable_file_module_names = ["files_io.files", "files_io.importexport"] if ENABLE_FILES_MODULE else []
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I do not get this line: why you put things in a list of disabled, if that modules are enabled?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

You are absolutely correct - this is backwards! Fixing now...

(It was an artifact of not properly transforming more complicated code...)

@mmatera
Copy link
Copy Markdown
Contributor

mmatera commented May 1, 2021

Apart from that, it seems to be OK

@rocky
Copy link
Copy Markdown
Member Author

rocky commented May 1, 2021

Apart from that, it seems to be OK

Thanks again for checking over. Should be fixed in b05c648 and I've moved more of the Main Loop objects from expression here and started documenting this better.

So please doublecheck that I haven't botched things further in doing this. Thanks.

Also move Main Loop objects and document Main Loop better.
@rocky rocky merged commit d937268 into master May 2, 2021
@rocky rocky deleted the file-module branch May 12, 2021 10:40
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