镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Add support for Symbol() #481

Open
Open

Description

@wesgarland

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

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