What shouldn't be a method functionI dislike excessive religion, so I don't hold to the view that everything should be a method function. Fortunately, Python lets me indulge this view. My rule of thumb is that any method function that doesn't use its
Of course there are some exceptions, such as:
For me, most of the functions that wind up being de-method-ized this
way are internal helper functions. If a bunch of public interface
functions turn out to not use |
These are my WanderingThoughts GettingAround This is part of CSpace, and is written by ChrisSiebenmann. * * * Atom feeds are available; see the bottom of most pages. Categories: links, linux, programming, python, snark, solaris, spam, sysadmin, tech, unix, web |