My understanding of the Python object model was that all attributes are stored in the __dict__ attribute. One can avoid creating __dict__ by specifying __slots__, a fixed list of strings of names of attributes.
SymPy only sort of follows this - I'm confused and am looking for explanation In [1]: Basic.__slots__ Out[1]: ['_mhash', '_args', '_assumptions'] In [2]: Mul.__slots__ Out[2]: [] Questions: 1. Doesn't this claim that Mul has no attributes? 2. Should _assumptions be on Basic or on Symbol? 3. Is there any fundamental way to determine all identifying information of a Python class? -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sympy. For more options, visit https://groups.google.com/groups/opt_out.
