Skip to content

Navigation Menu

Sign in
Sign up

Add support for Symbol() #481

Open
Open
Assignees

Description

Describe your feature request here.

We need to be able to send Symbols from JS to Pythonmonkey. Key characteristics:

  • unique Symbols in JS make unique objects in Python
  • same Symbols in JS make same objects in Python
  • no requirement to create Symbols from Python although it would be cool
    • could just use python.eval('Symbol') under the hood?
  • some kind of introspection would be nice, eg a working toString() in Python

It's possible the that pypi SymbolType package could be of use here.

Code example

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Milestone

No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    AltStyle によって変換されたページ (->オリジナル) /