Where's the source code for __builtin__?

Dustan DustanGroups at gmail.com
Wed Apr 25 22:03:30 EDT 2007


On Apr 24, 7:52 pm, John Machin <sjmac... at lexicon.net> wrote:
> On 25/04/2007 9:32 AM, Dustan wrote:
>
> > I've been paging through the source code for various C modules in
> > python, and wanted to find the source of some of the builtin
> > functions. I searched through the Modules, Objects, Python, and Parser
> > folder, searched docs.python.org, searched the archived messages of
> > this group, searched the web, and got absolutely nowhere in finding a
> > __builtin__.c, or anything that contains the builtin source code.
>
> > Help?
>
> What's the 2nd file (in alphabetical order) in the Python folder?

ast.c? But that doesn't help much...

But wait! There's another file... # 4 in the Python folder, which,
naturally following the explicit nature of python, is given the name
"bltinmodule.c".

I don't know how I managed to get more 'a' files than you did,
though... Anyway, thanks for pointing me to the right folder.




More information about the Python-list mailing list