On 04/09/2014 14:37, Steven D'Aprano wrote:

We often recommend using print as an easy and effective debugging tool. But
we don't (well, I don't) recommend leaving those print statements in the
code once the problem is debugged.


I've given up completely with print for debugging. I start with the logging module and change one line to effectively switch it off. Admittedly that's easy for me as I'm only writing code for my own use, I'm fairly sure that some of the bigger applications simply couldn't take the performance hit.

--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

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

Reply via email to