Hi, So in conjunction with a pull of mine to rework some of the Piecewise framework [1], I'm trying to implement classes to represent Booleans (True,False,None) that subclass Basic, as reported in this issue [2]. As suggested in the issue, I started with classes named like BooleanTrue (so as to not clobber True), however, there doesn't seem to be any way to add these to the SingletonRegistry (the classes accessible by S.*) as S.True rather than S.BooleanTrue, which would be more convenient. Does anyone know of a way to do this or a way to modify the existing code to allow this?
As a second note, when I asked Aaron about this or IRC, he mentioned it may not be possible at all to have something with an attribute named None, as would be the case for something like S.None going to BooleanNone. If this is the case, could this be hacked in somehow (Aaron suggested possibly working with __getattr__), or would it be better to name it something different so this isn't an issue? If so, are there any suggestions for what it should be called? Thanks, Sean [1] https://github.com/sympy/sympy/pull/1009 [2] http://code.google.com/p/sympy/issues/detail?id=2531 -- 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.