Andy, The period is an invalid character for Python variables. The period is reserved for accessing attributes and methods of Python objects.
Jason moorepants.info +01 530-601-9791 On Mon, Dec 29, 2014 at 5:48 PM, Andrew Spielberg <aespielb...@gmail.com> wrote: > Hi guys, > > I have a variable with a period in it (say, 'base.length'). I now wish to > sympify an expression, say: > > 2*base.length > > This throws an exception, > > AttributeError: 'Symbol' object has no attribute 'length' > > due to the period. Is there a way I can have the sympify read the dot as > just part of a variable name here? > > -Andy S. > > -- > You received this message because you are subscribed to the Google Groups > "sympy" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sympy+unsubscr...@googlegroups.com. > To post to this group, send email to sympy@googlegroups.com. > Visit this group at http://groups.google.com/group/sympy. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sympy/CAM6e1JdM%3Dz_vcQkQo%3DLcSVO7oxznXhrVt0U2xQw5GMe8os_R1A%40mail.gmail.com > <https://groups.google.com/d/msgid/sympy/CAM6e1JdM%3Dz_vcQkQo%3DLcSVO7oxznXhrVt0U2xQw5GMe8os_R1A%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscr...@googlegroups.com. To post to this group, send email to sympy@googlegroups.com. Visit this group at http://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CAP7f1AizO6eQJd4QwaUFWQssfsnDstKh1v%3DuKo74HF2xgqBL5A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.