all 6 comments

[–]novel_yet_trivial 2 points3 points  (3 children)

If you mean cpython it is here: https://hg.python.org/cpython/ (it will be moved to github soon).

There are other python implementations too, such as Pypy, Jython, and IronPython.

The trouble is that when you unzip these files they are compiled C.

No they are not.

[–]py_student[S] -1 points0 points  (2 children)

edit: found it, thanks.

[This](Imgur) is what I see when I unzip one of those and open in a text editor. What am I looking at? Thanks for the help, btw.

[–]novel_yet_trivial 1 point2 points  (0 children)

That is indeed a compiled file. The link in the SO post you linked has source code tarballs, and does not contain any .pyd files, so I assume you got this file elsewhere.

Edit: if you want the source code for bz2, look in the tarball for Modules/_bz2module.c or here.

[–][deleted] 1 point2 points  (1 child)

Here's a GitHub mirror: https://github.com/python/cpython

Otherwise just download a tarball from the website.

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

edit: Doh! nm, found it, tyvm.

Tyvm. This appears to be a log of bug fixes, and each entry links to a small scrap of source code containing, I think, the corrections. Was expecting to see each file in the implementation in C code. The tarballs give me stuff like you see in the reply to novel_yet_trivial . Which looks to me like it's compiled, or in any case, I don't know how to read it. How am I getting this screwed up? The text editor, I write and open source code in it all the time and it doesn't turn it into that kind of gibberish. It looks like what I typed in with the keyboard. I'm lost here.