In <[EMAIL PROTECTED]>, g.franzkowiak wrote: > my interest is for the internals of the Python interpreter. > > I've used up to now FORTH for something and this indirect interpreter is > very smart. > --- ASM --------------------------------------------------------------- > > NEXT: LODSW ; WA <- [IP] > ; IP <- IP+2 > MOV T,WA ; T <- WA1 (CFA) > JMP [T] ; JMP [CFA] > > --- C ----------------------------------------------------------------- > > for (;;) > { > w = *ip++; > (**w) (); > } > > ------------------------------------------------------------------------- > > Where can I find informations like this for Python ?
I don't really grok the assembler code. The C code seems to assume that there is an infinitive number of function pointers stored at `*ip`!? The Python equivalent might be :: for w in ip: w() if `ip` is a (finite) sequence of functions or callables in general. Ciao, Marc 'BlackJack' Rintsch -- http://mail.python.org/mailman/listinfo/python-list