You may be interested in this issue as well https://github.com/sympy/sympy/issues/11378
Aaron Meurer On Saturday, September 24, 2016, latot <[email protected]> wrote: > Hi, thx for the info, searching in the modules of Sympy i found how access > to that parts: > > from sympy.sets.fancysets import * > > Thx. > > El domingo, 25 de septiembre de 2016, 0:29:59 (UTC-3), latot escribió: >> >> Hi all, well as you know S have constants like Reals, UniversalSet, >> EmptySet, etc... I need some way to can use it directly (eval some str and >> get it), this is because srepr don't return the full expression: >> >> from sympy import * >> S.Reals >> (-oo, oo) >> srepr(S.Reals) >> 'Reals(-oo, oo, S.true, S.true)' >> eval(srepr(S.Reals)) >> Traceback (most recent call last): >> File "<stdin>", line 1, in <module> >> File "<string>", line 1, in <module> >> NameError: name 'Reals' is not defined >> >> Are some function to return the full expression? like 'S.Reals(-oo, oo, >> S.true, S.true)' >> I'm not an expert in python, so this maybe can be fixed with an import, >> but i don't know which... >> >> Thx. Cya. >> > -- > 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 [email protected] > <javascript:_e(%7B%7D,'cvml','sympy%[email protected]');>. > To post to this group, send email to [email protected] > <javascript:_e(%7B%7D,'cvml','[email protected]');>. > Visit this group at https://groups.google.com/group/sympy. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/sympy/5e2d8b22-41e9-4f72-8f26-631e85a28001%40googlegroups.com > <https://groups.google.com/d/msgid/sympy/5e2d8b22-41e9-4f72-8f26-631e85a28001%40googlegroups.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 [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CAKgW%3D6KWrhacvLaVq7NG8TsBB%3Dinj0meNV0JeV7oAQVC-seS7w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
