On 2015-11-12 10:29, Jori Mäntysalo wrote: > On Thu, 12 Nov 2015, Daniel Krenn wrote: > >>> Solution: From hasse_diagram.py do not raise just "no meet for x=1 y=2" >>> but exception with value more complicated than a string. >> >> Something else: why is there a need for "x=" and "y=" (do these names >> mean anything in this context)? IMHO, "no meet for 1 and 2" seems to be >> fine. > > Yep, there is no meaning for x= y= -string. But that's another story. > >> Can you explain your motivation and a bit more about returning x and y >> as well (together with a string already containing the representation >> strings of x and y); e.g. in >> ValueError("No meet for x=%s y=%s"%(x,y), x, y) > > It sounds stupid to first generate a string and then parse it, even if > the string is very simple.
True. Does this mean that you want to use x and y in the calling function (e.g. catch the exception there and raise a different exception explaining what is going on using x and y)? -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.