Where's the source code for __builtin__?

Steven Bethard steven.bethard at gmail.com
Wed Apr 25 05:17:53 CEST 2007


Ben Finney wrote:
> John Machin <sjmachin at lexicon.net> writes:
>> 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.
>> What's the 2nd file (in alphabetical order) in the Python folder?
> 
> What is "the Python folder"?
> 
> Assuming you mean "the folder for the Python standard library
> modules":

Actually, he meant the folder named 'Python' in the checkout from the 
repository:

C:\...\python\2.X>dir Python

  Directory of C:\...\python\2.X\Python

03/21/2007  12:13 PM    <DIR>          .
03/21/2007  12:13 PM    <DIR>          ..
02/17/2007  03:11 PM               697 asdl.c
03/19/2007  04:31 PM           103,444 ast.c
02/17/2007  03:11 PM               865 atof.c
03/19/2007  04:31 PM            66,286 bltinmodule.c

Probably 'bltinmodule.c' is a good place to start.

STeVe



More information about the Python-list mailing list