[Python-checkins] cpython: Clinic: Add warning for untested (and unused in CPython!) format units.

larry.hastings python-checkins at python.org
Sun Nov 24 13:24:10 CET 2013


http://hg.python.org/cpython/rev/3f7a00a61c67
changeset:   87499:3f7a00a61c67
user:        Larry Hastings <larry at hastings.org>
date:        Sun Nov 24 04:23:35 2013 -0800
summary:
  Clinic: Add warning for untested (and unused in CPython!) format units.

files:
  Tools/clinic/clinic.py |  1 +
  1 files changed, 1 insertions(+), 0 deletions(-)


diff --git a/Tools/clinic/clinic.py b/Tools/clinic/clinic.py
--- a/Tools/clinic/clinic.py
+++ b/Tools/clinic/clinic.py
@@ -1656,6 +1656,7 @@
                 format_unit = 'et#'
 
             if format_unit.endswith('#'):
+                print("Warning: code using format unit ", repr(format_unit), "probably doesn't work properly.")
                 # TODO set pointer to NULL
                 # TODO add cleanup for buffer
                 pass

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list