Matthew Wilson wrote:

Thanks for the feedback.  I think I should have used a more obvious
string in my original example and a more descriptive parameter name.

So, pretend that instead of
    c="today"

I wrote record_date="defaults to today's date".
I know my way is unorthodox,

Which is fine. Just do not by surprised when a fake default fakes out pylint, which by its nature, must embody the orthodoxy of its author ;-) To win general acceptance, that in turn must match the orthodoxy of the general audience.


 but I think it is a little bit more obvious
to the reader than

    record_date=None

The None is a signal to use a default value, but that is only apparent
after reading the code.

Thanks again for the comments.

Matt

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to