[Tutor] accessing code for built in min()

Raúl Cumplido raulcumplido at gmail.com
Thu Jul 31 11:15:52 CEST 2014


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/cff56326/attachment.html>


More information about the Tutor mailing list