Comment #2 on issue 1577 by asmeurer: match doesn't put every wild as a key http://code.google.com/p/sympy/issues/detail?id=1577
Well, you can see line 577 in ode.py for what I ended up doing: if r and r[c] != 0 and r[n] != 1: # See issue 1577 The .get method might make things a little simpler by avoiding having to structure the condition so that it breaks before raising KeyError. "but do you mean to do it if n cannot possibly be 1, or if n can be different from 1?" Maybe it is too early in the morning, but these sound like the same thing to me. Can you clarify? At any rate, it still seems to me that making r[n] == None or something would be better than not putting it in the dictionary at all. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sympy-issues" group. To post to this group, send email to sympy-issues@googlegroups.com To unsubscribe from this group, send email to sympy-issues+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sympy-issues?hl=en -~----------~----~----~----~------~----~------~--~---