From: Larry Hastings Date: Sun, 24 Nov 2013 12:23:35 +0000 (-0800) Subject: Clinic: Add warning for untested (and unused in CPython!) format units. X-Git-Tag: v3.4.0b1~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2f9a9aaf213f9fea109c5d4828d1bbff4b3a0b2b;p=python Clinic: Add warning for untested (and unused in CPython!) format units. --- diff --git a/Tools/clinic/clinic.py b/Tools/clinic/clinic.py index 3c40e06550..cac90e1bdb 100755 --- a/Tools/clinic/clinic.py +++ b/Tools/clinic/clinic.py @@ -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