Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

creating native objects #446

Unanswered
Kaptensanders asked this question in General
Discussion options

Hi all, I'm trying to do the following,

# simple object that does not use any pyscript features
class myObject():
 foo = 1
@pyscript_compile 
def doSomeHeavyLifting ():
 a = myObject()

This renders a TypeError: 'EvalLocalVar' object is not callable. Reasonable and in line with doc.
@pyscript_compile cannot be used for classes
Has anyone figured out a clever way around this?

/Anders

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant

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