-
Notifications
You must be signed in to change notification settings - Fork 58
creating native objects #446
Unanswered
Kaptensanders
asked this question in
General
-
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
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment