[Tutor] looking for source code

Wesley Chun wesc@deirdre.org
Thu, 31 Jan 2002 22:36:57 -0800 (PST)


On Thu, 31 Jan 2002 alan.gauld@bt.com wrote:

> > where can i find the source code for map(), filter() , reduce()
> > ,property(),staticmethod() etc?
>
> > have these constructs been implemented in C ? so am not able
> > to find one?
>
> Yes, they are in C. As are many of the other modules, like sys...


karthik,

as kalle and alan have pointed out, yes, these are done in C.
you can read through them very easily too.  if you download the
source code tar ball, just look in the Python/bltinmodule.c file.
have fun!

-wesley

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

"Core Python Programming", Prentice Hall PTR, =A9 2001
    http://starship.python.net/crew/wesc/cpp/

    wesley.j.chun :: wesc@deirdre.org
    cyberweb.consulting : henderson, nv : cyberweb@rocketmail.com
    http://www.roadkill.com/~wesc/cyberweb/