WANT: bad code in python (for refactoring example)

Cecil Westerhof Cecil at decebal.nl
Thu Feb 16 06:00:36 EST 2017


On Thursday 16 Feb 2017 10:43 CET, alister wrote:

> On Wed, 15 Feb 2017 19:08:59 -0800, Paul Rubin wrote:
>
>> Antoon Pardon <antoon.pardon at rece.vub.ac.be> writes:
>>> On reason to use this is for some easy "logging"
>>
>> I think it's better to use the actual logging module. I generally
>> start a new program with print statements but convert them to
>> logging after there's enough code to want to be more organized
>> about it.
>
> my default python template file includes basic logging setup from
> the start (all 3 lines of it )

You should have shared your template, or at least those three lines.
:-P

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof



More information about the Python-list mailing list