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

P errors on numbers #345

Closed
AMiller42 opened this issue Dec 6, 2021 · 1 comment · Fixed by #347
Closed

P errors on numbers #345

AMiller42 opened this issue Dec 6, 2021 · 1 comment · Fixed by #347
Labels
bug Something isn't working difficulty: easy Very simple and won't take very long at all. priority: high Issues with high priority

Comments

@AMiller42
Copy link
Member

When given two numbers as arguments, the P command errors.

Example: Try it Online!

Traceback:

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/usr/local/lib/python3.9/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/home/Vyxal/mysite/vyxal/main.py", line 146, in execute_vyxal
    exec(code)
  File "<string>", line 1, in <module>
  File "/home/Vyxal/mysite/vyxal/elements.py", line 3128, in strip
    return {
  File "/home/Vyxal/mysite/vyxal/elements.py", line 3130, in <lambda>
    vy_str(lhs).strip(vy_str(rhs), ctx)
TypeError: strip expected at most 1 argument, got 2
@cgccuser
Copy link
Member

cgccuser commented Dec 6, 2021

Trivial fix, the ctx should just be removed, I'll do it in a few minutes.

@cgccuser cgccuser linked a pull request Dec 6, 2021 that will close this issue
@cgccuser cgccuser added bug Something isn't working difficulty: easy Very simple and won't take very long at all. priority: high Issues with high priority labels Dec 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working difficulty: easy Very simple and won't take very long at all. priority: high Issues with high priority
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants