Skip to content

fix: stdio.write may be monkeypatched at runtime to be a class method #148

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

Merged
merged 1 commit into from
Jul 26, 2023

Conversation

Xmader
Copy link
Member

@Xmader Xmader commented Jul 26, 2023

In Google Colab,
PythonMonkey nightly v0.2.1.dev8+19f04e5

!pip install --extra-index-url https://nightly.pythonmonkey.io/ --pre pythonmonkey
import pythonmonkey as pm
[/usr/local/lib/python3.10/dist-packages/pythonmonkey/require.py](https://localhost:8080/#) in <module>
     61 globalThis.python.print  = print
     62 globalThis.python.stdout.write = sys.stdout.write
---> 63 globalThis.python.stderr.write = sys.stderr.write
     64 globalThis.python.stdout.read = sys.stdout.read
     65 globalThis.python.stderr.read = sys.stderr.read

TypeError: pythonmonkey cannot yet convert python objects of type: method

TypeError: pythonmonkey cannot yet convert python objects of type: method
@Xmader Xmader merged commit ae133ef into main Jul 26, 2023
@Xmader Xmader deleted the Xmader/fix/stdio-class-method branch July 26, 2023 22:07
@Xmader Xmader added this to the v0.2.1 milestone Jul 26, 2023
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