Comment #39 on issue 1757 by smichr: coding style
http://code.google.com/p/sympy/issues/detail?id=1757

grep for "self = " and you'll find some places where it happens in current sympy.

I would do it when I intend to modify self and return a new value. A trivial example, but in the spirit of the above:

def foo(self):
  self += 1
  if self%2:
    return True
  return False

I don't see the point of creating a new variable when the input one will do...unless you are debugging and would always like to see what was input.

/c

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" 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-issues?hl=en.

Reply via email to