<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jun 9, 2014 at 7:50 AM, Paul Sokolovsky <span dir="ltr"><<a href="mailto:pmiscml@gmail.com" target="_blank">pmiscml@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
<div><div class="h5"><br>
On Mon, 09 Jun 2014 14:01:18 +0000<br>
Brett Cannon <<a href="mailto:bcannon@gmail.com">bcannon@gmail.com</a>> wrote:<br>
<br>
> On Sat Jun 07 2014 at 5:55:29 PM, Le Pa <<a href="mailto:lpanl09@gmail.com">lpanl09@gmail.com</a>> wrote:<br>
><br>
> > Hi,<br>
> ><br>
> > I am interested in learning how the cpython interpreter is designed<br>
> > and implemented,<br>
> > and also how the python debugger works internally. My ultimate<br>
> > purpose is to<br>
> > modify<br>
> > them for my distributed computing needs. Are there any<br>
> > documentations on these please? I have done some goggling but<br>
> > failed to find anything useful.<br>
> ><br>
> > Thanks you very much for your help!<br>
> ><br>
><br>
> The only documentation we have is (roughly) how the parser and<br>
> compiler work, not the interpreter. As for pdb, it's written in<br>
> Python so you can look at the source to see how that works without<br>
> much issue.<br>
<br>
</div></div>But doing attentive googling will turn out a lot of 3rd-party blog<br>
posts which discuss various implementation aspects of CPython (and even<br>
alternative implementations). Some random links:<br>
<br>
<a href="http://tech.blog.aknin.name/category/my-projects/pythons-innards/" target="_blank">http://tech.blog.aknin.name/category/my-projects/pythons-innards/</a><br>
<a href="http://eli.thegreenplace.net/2010/09/18/python-internals-symbol-tables-part-1/" target="_blank">http://eli.thegreenplace.net/2010/09/18/python-internals-symbol-tables-part-1/</a><br></blockquote><div><br></div><div>
FWIW I have a bunch of those, and the symbol table one is probably not the best for beginners. The whole category is here: <a href="http://eli.thegreenplace.net/category/programming/python/python-internals/">http://eli.thegreenplace.net/category/programming/python/python-internals/</a><br>
<br></div><div>Eli<br><br></div></div><br></div></div>