What difference does it make if it's an identity or not?  My first
instinct would be to make it a separate class (you can still make it a
flag and use __new__).

Aaron Meurer


On Jun 10, 2012, at 3:44 PM, Sergiu Ivanov <[email protected]> wrote:

> And here comes part two of the show :-( How do I store a Boolean flag
> in .args?  Or should I make it an assumption? (wild eyes).
>
> What I need is as follows.  I have a class Morphism, which can be set
> to be an identity by specifying a flag at initialisation.  This sounds
> a lot like something assumption-related, but my experience with
> assumptions is so very limited that I'm not sure.
>
> If this should really be a part of assumptions, could you please
> suggest an example which I could follow?  I know there are the "old"
> and the "new" assumptions, but which one is which completely evades my
> grasp.
>
> Sergiu
>
> --
> 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