[Python-Dev] Guidelines for Logging Usage

Garth T Kidd garthk at gmail.com
Thu Oct 7 04:08:43 CEST 2004


> PEP 8 should also gain some text encouraging the use of the logging
> module in code and describing the dummy.junk convention.

Index: pep-0008.txt
===================================================================
RCS file: /cvsroot/python/python/nondist/peps/pep-0008.txt,v
retrieving revision 1.25
diff -c -r1.25 pep-0008.txt
*** pep-0008.txt        6 Aug 2004 18:47:26 -0000       1.25
--- pep-0008.txt        7 Oct 2004 02:07:02 -0000
***************
*** 600,605 ****
--- 600,608 ----
          No:  if greeting == True:
          Yes: if greeting:

+       - Use the print statement only where the user's objective is
+         to print. Use the logging method to deliver status information
+         to users on the fly. For more information, see PEP xxxx [6].

  References

***************
*** 614,619 ****
--- 617,624 ----
      [5] Barry's GNU Mailman style guide
          http://barry.warsaw.us/software/STYLEGUIDE.txt

+       [6] PEP xxxx, Guidelines for Logging Usage
+

  Copyright


More information about the Python-Dev mailing list