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

Parallel eval all result in the same processing #370

Closed
toddlerer opened this issue Jan 28, 2023 · 1 comment · Fixed by #371
Closed

Parallel eval all result in the same processing #370

toddlerer opened this issue Jan 28, 2023 · 1 comment · Fixed by #371
Labels
bug Something isn't working

Comments

@toddlerer
Copy link
Contributor

Describe the bug?

erg -c "print! 1" & erg -c "print! 2"

the result is

1
1

As a workaround, the problem is resolved by adding a hash value to the dumped pyc filename.

Reproducible code

No response

Expected result

No response

Actual result

No response

Additional context

No response

Erg version

Erg 0.6.3

Python version

Python3.11

OS

macOS 12 (Monterey)

@toddlerer toddlerer added the bug Something isn't working label Jan 28, 2023
@mtshiba
Copy link
Member

mtshiba commented Jan 28, 2023

In case of -c option, the name of the dumped pyc file will be stdin.pyc. Since the hash value of the same string will still be the same, it is necessary to add a random suffix to the filename.

mtshiba added a commit that referenced this issue Jan 28, 2023
@mtshiba mtshiba mentioned this issue Jan 28, 2023
mtshiba added a commit that referenced this issue Jan 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants