On 25/04/2007 12:31 PM, Ben Finney wrote: > John Machin <[EMAIL PROTECTED]> 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.
You snipped the 2nd sentence of what the OP wrote: """ 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. """ He's looking through the *SOURCE* distribution. >> 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": Wrong assumption. You're expecting the source for builtin functions to be written in Python? > > $ ls -1 /usr/lib/python2.4/ | head -n 10 > aifc.py [snip] > atexit.pyc > > There are no files in that folder with 'builtin' in their name. And when you get to <source_distribution>/Python, you'll find that that's still the case :-) > I'm > don't know what point you're driving at. Astonishment that the OP missed it in his serial scan of file names, even though the name wouldn't be picked up by glob.glob('*builtin*') BTW there's this ancient gadget called 'grep' that can be used to find patterns in files, like 'nameofabuiltinfunction('; any semi-usable editor or IDE would have similar functionality. Cheers, John -- http://mail.python.org/mailman/listinfo/python-list