]> granicus.if.org Git - python/commitdiff
Clinic: Add warning for untested (and unused in CPython!) format units.
authorLarry Hastings <larry@hastings.org>
Sun, 24 Nov 2013 12:23:35 +0000 (04:23 -0800)
committerLarry Hastings <larry@hastings.org>
Sun, 24 Nov 2013 12:23:35 +0000 (04:23 -0800)
Tools/clinic/clinic.py

index 3c40e065504700cf3992b63aab15140306aee6ca..cac90e1bdb90f38c6073b6712e4624ea2a4ea41a 100755 (executable)
@@ -1656,6 +1656,7 @@ class str_converter(CConverter):
                 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