Exactly.  So sum() is not in any Python file, because it's written in
C and part of the standard Python built-ins.  If you wanted to see the
C source, you could download the Python source code and look for it
there.  But it probably wouldn't be very enlightening, unless you are
interested in writing a module in C.

Aaron Meurer

On Tue, Mar 6, 2012 at 9:47 AM, Sean Vig <[email protected]> wrote:
> If you are using ipython, you can use the introspection feature, for example
> 'sum?', which displays a bunch of information about the function or class,
> including the docstring. Extra details can be found using 'sum??'.
>
> As a side note, sum() is a built-in python function, and we do not override
> it. There is summation(), which is the sympy function for evaluating sums.
>
> Sean
>
>
> On Tue, Mar 6, 2012 at 10:28, prateek papriwal <[email protected]>
> wrote:
>>
>> suppose if i want to know  sum() function is located in which python file
>> ? how to know this
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "sympy" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/sympy?hl=en.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/sympy?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to