Thanks Raúl,

T'was the latter two. 

-u

 

 

 

-----Original Message-----
From: Raúl Cumplido <[email protected]>
To: [email protected]
CC: tutor <[email protected]>
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,  <[email protected]> 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  -  [email protected]
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor



 
_______________________________________________
Tutor maillist  -  [email protected]
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to