Comment #37 on issue 1757 by ronan.l...@gmail.com: coding style
http://code.google.com/p/sympy/issues/detail?id=1757

What do you mean "don't modify self in a method"?

More precisely, it's "don't rebind the first argument of a method (usually 'self' or 'cls') inside the method".
It means that code like the following should be avoided:

class Something:
    def do_stuff(self):
        ...
        self = blah()


--
You received this message because you are subscribed to the Google Groups 
"sympy-patches" group.
To post to this group, send email to sympy-patc...@googlegroups.com.
To unsubscribe from this group, send email to 
sympy-patches+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy-patches?hl=en.

Reply via email to