On Thu, Jul 30, 2009 at 11:56 AM, Phillip M. Feldman
<pfeld...@verizon.net>wrote:

>
> I hate underscores, but Sum with a capital S seems reasonable.  When
> doing the import, one could choose to import SymPy.sum as Sum, but it
> would be more convenient to be able to do 'from SymPy import *' and
> get everything at one shot.


You can use the "from *" syntax and still have sum imported as Sum, if you
wish:
In [1]: from sympy import *

In [2]: Sum?
Type:           BasicMeta
Base Class:     <class 'sympy.core.basic.BasicMeta'>
String Form:    <class 'sympy.concrete.summations.Sum'>
Namespace:      Interactive
File:
/usr/lib/python2.6/site-packages/sympy/concrete/summations.py
Docstring:
    Represents unevaluated summation.


In [3]: from sympy import sum as Sum

In [4]: Sum?
Type:           function
Base Class:     <type 'function'>
String Form:    <function sum at 0x9368d14>
Namespace:      Interactive
File:
/usr/lib/python2.6/site-packages/sympy/concrete/summations.py
Definition:     Sum(*args, **kwargs)
Docstring:
    <no docstring>


Also, beware of capitalization, because it is significant.  So, the project
name may be SymPy, but the module is sympy.

-- 
James Pearson
--
The best way to predict the future is to invent it.
 - Alan Kay

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

Reply via email to