[Tutor] accessing code for built in min()
ugajin at talktalk.net
ugajin at talktalk.net
Thu Jul 31 12:39:20 CEST 2014
Thanks Raúl,
T'was the latter two.
-u
-----Original Message-----
From: Raúl Cumplido <raulcumplido at gmail.com>
To: ugajin at talktalk.net
CC: tutor <Tutor at python.org>
Sent: Thu, 31 Jul 2014 10:36
Subject: Re: [Tutor] accessing code for built in min()
Are you asking for the source code? For the CPython implementation, PyPy, IronPython, Jhyton?
For the CPython implementation you can go to the repository:
http://hg.python.org/cpython/branches
Builtin implementations in C (for 2.7 version) are in the file:
http://hg.python.org/cpython/file/818989a48e96/Python/bltinmodule.c
If you want to take a look on the min builtin:
http://hg.python.org/cpython/file/818989a48e96/Python/bltinmodule.c#l1435
Thanks,
Raúl
On Thu, Jul 31, 2014 at 9:51 AM, <ugajin at talktalk.net> wrote:
How do I look at the code for a python built in function e.g. min()?
Thanks
I am running 2.7.8 on OSX
_______________________________________________
Tutor maillist - Tutor at python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20140731/7f1ca02a/attachment.html>
More information about the Tutor
mailing list