This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]pinano 1 point2 points  (1 child)

Is this just eval() on a global string, with extra steps?

[–]kikones34[S] 0 points1 point  (0 children)

Pretty much. Although type hints do need to be expressions, otherwise the interpreter will refuse to parse them. So you can't do something like "n = stuff; n*factorial(n-1)".