Re: [Python-ideas] Symbolic expressions (or: partials and closures from the inside out)

2012-01-13 Thread Devin Jeanpierre
On Thu, Jan 12, 2012 at 3:45 PM, Nathan Rice nathan.alexander.r...@gmail.com wrote: I'm interested in fixing both issues. I believe both issues I've had could be solved by having a robust symbolic object. These objects would basically usable like ordinary objects, however upon any attribute

Re: [Python-ideas] Symbolic expressions (or: partials and closures from the inside out)

2012-01-13 Thread Nathan Rice
On Fri, Jan 13, 2012 at 8:45 AM, Devin Jeanpierre jeanpierr...@gmail.com wrote: On Thu, Jan 12, 2012 at 3:45 PM, Nathan Rice nathan.alexander.r...@gmail.com wrote: I'm interested in fixing both issues. I believe both issues I've had could be solved by having a robust symbolic object.  These

Re: [Python-ideas] Symbolic expressions (or: partials and closures from the inside out)

2012-01-12 Thread Chris Rebert
On Thu, Jan 12, 2012 at 3:03 PM, Terry Reedy tjre...@udel.edu wrote: On 1/12/2012 3:45 PM, Nathan Rice wrote: snip print isinstance(3, const) True A Contraints instance defines a set. 'const' is the set 'odd_ge_3' It would look better if you used standard syntax and do the inclusion check

Re: [Python-ideas] Symbolic expressions (or: partials and closures from the inside out)

2012-01-12 Thread Nathan Rice
I have been writing a lot of code lately that involves creating symbolic expressions of one form or another, which are then fully evaluated at a later time.  Examples of this include Elementwise, Python is designed for concrete, rather than symbolic computation. But the latter has been