Clinic: Add warning for untested (and unused in CPython!) format units.

This commit is contained in:
Larry Hastings 2013-11-24 04:23:35 -08:00
parent 472a65a710
commit 2f9a9aaf21
1 changed files with 1 additions and 0 deletions

View File

@ -1656,6 +1656,7 @@ def converter_init(self, *, encoding=None, types="str",
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