3 ms·
Yes and no. The regular python parser will barf on that unknown keyword, so you don't get an ast because the parser never gets there. Using import hooks, thi
by lvh 13y ago
Yes and no.
The regular python parser will barf on that unknown keyword, so you don't get an ast because the parser never gets there.
Using import hooks, this can be done in a regular interpreter. For example, that's how hy, a lisp in python, works!