Skip to content

Conversation

@jonatanklosko
Copy link
Member

Closes #20.

README.md Outdated
Pythonx provides a Python module named `pythonx` with extra interoperability
features.

### `pythonx.send(pid, tag, object)`
Copy link
Contributor

@josevalim josevalim Dec 21, 2025

Choose a reason for hiding this comment

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

I wonder if our API should be:

pythonx.send(pid, (pythonx.atom("foo"), object))

?

Copy link
Member Author

Choose a reason for hiding this comment

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

The tuple itself would need to be wrapped in pythonx.tuple, but that seems a bit too much. Also, I can see someone expecting that returning pythonx.atom("foo") from eval would automatically decode.

Alternatively, we can skip the tag for now and expand on this later.

@jonatanklosko jonatanklosko merged commit 1398ea9 into main Dec 22, 2025
9 checks passed
@jonatanklosko jonatanklosko deleted the jk-send branch December 22, 2025 11:44
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.

Ability to send a message from Python back to Elixir

3 participants