Skip to content

object with name property cannot be accessed from python #861

@jmgurney

Description

@jmgurney

Attached is a program that attempted to use the WebMIDI API available only on Chrome. The input objects contain an attribute called name. You can see it via examination in the debugger of the port object (see line 57 of miditest.py). All the other object attributes work from python. port.name seems to translate to $$name, which isn't found, and attempting to use getattr(port, 'name') also fails. If I do direct JS to access the name attribute, it works fine.

This is using pyjs 0.8.2.

Warning: this tarball extracts to the current directory.

miditest.tar.gz

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions