Re: assignments - want a PEP

2005-03-31 Thread Kay Schluehr
Bengt Richter wrote: > you can do what you like, pretty much. I.e., > > cas = CAS() > cas.a# like your plain a, where you said "that's it" > > > cas.a, cas.b = cas.Expr(), cas.Expr() > (cas.a + cas.b)/cas.c > > Etc. Hmmm... feels like a good idea if extended to use propert

Re: assignments - want a PEP

2005-03-31 Thread Bengt Richter
On 31 Mar 2005 14:48:00 -0800, "Kay Schluehr" <[EMAIL PROTECTED]> wrote: >>From time to time I still use my old Mathematica system. The >Mathematica language has some nice properties. The one I like best is >the possibility to create symbols from nothing. Translated into the >Python realm followin

assignments - want a PEP

2005-03-31 Thread Kay Schluehr
>From time to time I still use my old Mathematica system. The Mathematica language has some nice properties. The one I like best is the possibility to create symbols from nothing. Translated into the Python realm following creations are possible: >>> a a That's it. Just make an 'a' as a pure symb

Re: assignments - want a PEP

2005-03-31 Thread Paul Rubin
"Kay Schluehr" <[EMAIL PROTECTED]> writes: > >>> a = Symbol() > >>> a > a Use a = Symbol('a') instead and it should solve most of the problems you mention. What's supposed to happen anyway, in your proposal, after a = Symbol() b = a print b ? -- http://mail.python.org/mailman/listi

assignments - want a PEP

2005-03-31 Thread Kay Schluehr
>From time to time I still use my old Mathematica system. The Mathematica language has some nice properties. The one I like best is the possibility to create symbols from nothing. Translated into the Python realm following creations are possible: >>> a a That's it. Just make an 'a' as a pure symb