On 19 February 2014 17:01, Mukesh Yadav <mak....@gmail.com> wrote: >> > I can change the class code and parameter as it is small script. >> >> I would think that this is terrible practice. >> > > Would love to more about it.
Passing multiple arguments to the function seems to be the cleanest approach, as it separates out variables in the class from those in a specific usage of it. Not only is this pretty standard in Python, reworking the class every time for a new script makes no sense to me. Whether the multiple arguments are passed as such, or as keyword arguments is a matter of design, and a bit of preference. Regards, Gora _______________________________________________ BangPypers mailing list BangPypers@python.org https://mail.python.org/mailman/listinfo/bangpypers