> The back-end is a server-side CGI application that takes Python script > source code as input, executes the entire script (up to 200 executed > lines, to prevent infinite loops), and collects a full trace of all > variable values (i.e., data structures) after each line has been > executed. It then sends that full trace to the front-end in a > specially-encoded JSON format. The front-end then parses and visualizes > that trace and allows the user to single-step forwards AND backwards > through execution.
Алсо, вот этот код у меня корректно работает и трейсится, хоть и срёт алертами с "Error: ASSERTION FAILED":
1 def test(): 2 yield 1 3 yield 2 4 yield 3 5 6 for i in test(): 7 print i
Офигеть. КРУТО
Как оно работает? А если я туда хуиту с метаклассами кину?
кинь, яхз
ага, yield не осилил, значит какой-то свой парсер у них, а не надстройка над интерпретатором
неверно. https://github.com/pgbovine/OnlinePython...
> The back-end is a server-side CGI application that takes Python script
> source code as input, executes the entire script (up to 200 executed
> lines, to prevent infinite loops), and collects a full trace of all
> variable values (i.e., data structures) after each line has been
> executed. It then sends that full trace to the front-end in a
> specially-encoded JSON format. The front-end then parses and visualizes
> that trace and allows the user to single-step forwards AND backwards
> through execution.
Алсо, вот этот код у меня корректно работает и трейсится, хоть и срёт алертами с "Error: ASSERTION FAILED":
1 def test():
2 yield 1
3 yield 2
4 yield 3
5
6 for i in test():
7 print i