On Sun, May 27, 2012 at 10:30 PM, [email protected] <[email protected]> wrote: > In python2.5 set.union requires exactly two arguments. In other > versions it requires any positive number of arguments. Are you aware > of idiomatic way to do this in python2.5 > > set.union(set1, set2, set3) > > If not I will probably end up using reduce.
You could also introduce the appropriate code to sympy.core.compatibility if it makes it much easier for you, but I guess using reduce() in this case is completely ok. > > -- > You received this message because you are subscribed to the Google Groups > "sympy" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/sympy?hl=en. > -- Vladimir Perić -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sympy?hl=en.
