Skip to content

access super class in __init__ #2448

Answered by Kodiologist
ghost asked this question in Q&A
Discussion options

You must be logged in to vote

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 calling super, just taking the __init__ attribute of super itself.

Is there a document about translating Python to Hy?

There's the manual, and there's hy2py, but that's about it.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ghost
Comment options

Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant