[Python-checkins] peps: Add one more point about the benefits of a generic construct
antoine.pitrou
python-checkins at python.org
Sat Sep 14 22:11:59 CEST 2013
http://hg.python.org/peps/rev/893e09bea72f
changeset: 5115:893e09bea72f
user: Antoine Pitrou <solipsis at pitrou.net>
date: Sat Sep 14 22:11:52 2013 +0200
summary:
Add one more point about the benefits of a generic construct
files:
pep-0455.txt | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/pep-0455.txt b/pep-0455.txt
--- a/pep-0455.txt
+++ b/pep-0455.txt
@@ -170,6 +170,10 @@
is that it's nearly as cheap (code-wise and performance-wise) to provide
the generic construct, and it can fill more use cases.
+Even case-insensitive dicts can actually elicit different transformation
+functions: ``str.lower``, ``str.casefold`` or in some cases ``bytes.lower``
+when working with text encoded in a ASCII-compatible encoding.
+
Other constructor patterns
--------------------------
--
Repository URL: http://hg.python.org/peps
More information about the Python-checkins
mailing list