Y
Hacker News
new
|
ask
|
show
|
jobs
by
erezsh
2401 days ago
From the tutorial:
class Index(Assembly): index(self): return
How is this valid Python?
2 comments
unwind
2401 days ago
Probably another case of code that is published, but never executed. The first block of code on the tutorials page has the missing def keyword. Feels like a human editing error to me.
link
kissgyorgy
2401 days ago
it's not.
link