On 10.06.2012 21:47, Sergiu Ivanov wrote:
In abstract categories, objects are really just names. [...]
That's why Object doesn't have anything but a name. However, should
there arise a need for something else, it will be very easy to add
stuff to Object, of course.
Sure, I was not suggesting making the "payload" so general that it would
suffice to implement all concrete objects. My only point was that "name"
need not equate to "string" (and that we already have a class which is
used to identify objects).
You could still keep the "name" parameter, and in the __new__
method construct a Symbol of that name as payload. Note that this way you
could put in Dummy as payload as well, and get anonymous objects for free
(as far as I can tell)!
Oh, wow, that sounds much more lightweight that Symbol! Great, thank
you!
Glad to be of help.
--
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.