access super class in __init__ #2448
-
Allô, I am working through an example for the Arcade game engine. It starts by extending the base game window class.
Here is the error message from Hy; line 33 is the call to super.init.
The Python code looks like this.
I assume that the call How does Hy express this Python idiom? What is the correct way to initialize the super class? Is there a document about translating Python to Hy? Merci. -- |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
There's the manual, and there's |
Beta Was this translation helpful? Give feedback.
super().__init__(a, b, c)
in Python is written(.__init__ (super) a b c)
in Hy.(super.__init__ a b c)
is different because you're not actually callingsuper
, just taking the__init__
attribute ofsuper
itself.There's the manual, and there's
hy2py
, but that's about it.