[Python-checkins] peps: Mention possibility of (limited!) type-checking of converter definitions.

stefan.krah python-checkins at python.org
Thu Mar 14 13:05:28 CET 2013


http://hg.python.org/peps/rev/3256d33dbb4e
changeset: 4798:3256d33dbb4e
user: Stefan Krah <skrah at bytereef.org>
date: Thu Mar 14 13:04:59 2013 +0100
summary:
 Mention possibility of (limited!) type-checking of converter definitions.
files:
 pep-0437.txt | 4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/pep-0437.txt b/pep-0437.txt
--- a/pep-0437.txt
+++ b/pep-0437.txt
@@ -108,6 +108,10 @@
 Additional declarations may be placed into .c files. Duplicate declarations
 are allowed as long as the function types are identical.
 
+It is encouraged to declare custom converter types a second time right
+above the converter function definition. The preprocessor will then catch
+any mismatch between the declarations.
+
 
 TBD: Make a list of fantasy types like *rw_buffer*.
 
-- 
Repository URL: http://hg.python.org/peps


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /