Re: [sympy] How to name variables with commas?

2012-01-07 Thread Aaron Meurer
No worries. Let us know if you have any other questions. Aaron Meurer On Sat, Jan 7, 2012 at 1:33 AM, Kevin Hunter wrote: > Mea culpa.  I see now the difference you were trying to impart: Symbol (the > class) vs symbols (the function).  Pardon me as I misstep more than a few > times while learn

Re: [sympy] How to name variables with commas?

2012-01-07 Thread Kevin Hunter
Mea culpa. I see now the difference you were trying to impart: Symbol (the class) vs symbols (the function). Pardon me as I misstep more than a few times while learning Sympy. -- You received this message because you are subscribed to the Google Groups "sympy" group. To view this discussion

Re: [sympy] How to name variables with commas?

2012-01-07 Thread Aaron Meurer
It works in 0.7.1: In [1]: Symbol('x, y') Out[1]: x, y In [2]: type(Symbol('x, y')) Out[2]: sympy.core.symbol.Symbol In [10]: Symbol("Car[2010, 'prius', 2008]") Out[10]: Car[2010, 'prius', 2008] In [11]: type(Symbol("Car[2010, 'prius', 2008]")) Out[11]: sympy.core.symbol.Symbol By the way, cha

Re: [sympy] How to name variables with commas?

2012-01-06 Thread Kevin Hunter
Err, is this perhaps a bug that has been fixed since the 0.7.1 release? When I do that, vname can't have commas, else it creates multiple variables: - *# For a mnemonic, here is an example variable from a model with which I'm* *# working. The variable format is [year, tech, vintage]. * *>>

Re: [sympy] How to name variables with commas?

2012-01-06 Thread Aaron Meurer
On Fri, Jan 6, 2012 at 12:09 PM, Kevin Hunter wrote: > Hullo Sympy Group, > > I'm wrapping some Sympy variables into a group via a class object.  The > object is attached to another object, and from here, I'm able to collect the > name of the group (via __setattr__).  Thus, I can have constructs l

[sympy] How to name variables with commas?

2012-01-06 Thread Kevin Hunter
Hullo Sympy Group, I'm wrapping some Sympy variables into a group via a class object. The object is attached to another object, and from here, I'm able to collect the name of the group (via *__setattr__*). Thus, I can have constructs like this: - *M.X = Var()# Var is the wrapper