cls is the class that is being instantiated. It will usually be
Symbol, but if something subclasses Symbol, it will be that instead.
It is similar to self, except self is usually used for instances, not
classes.
Zero is the SymPy version of 0. If you type "0", that gives the Python
int(0). Zero prints as 0, and any time you combine another SymPy
operation with 0, it gets transformed to 0 (via sympify()). The
"Advanced Expression Manipulation" section of the tutorial explains
this in more detail.
Aaron Meurer
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
sympy+un...@googlegroups.com.
> To post to this group, send email to
sy...@googlegroups.com.
> Visit this group at
http://groups.google.com/group/sympy.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/sympy/52ea2793-3c7b-43ba-a816-02dd1f804c65%40googlegroups.com.
>
> For more options, visit
https://groups.google.com/d/optout.