[Python-checkins] peps (merge default -> default): merge
christian.heimes
python-checkins at python.org
Mon Oct 7 15:20:55 CEST 2013
http://hg.python.org/peps/rev/0939b63616e5
changeset: 5175:0939b63616e5
parent: 5174:c960bed22bf6
parent: 5173:6c5fdafff09e
user: Christian Heimes <christian at cheimes.de>
date: Mon Oct 07 15:20:46 2013 +0200
summary:
merge
files:
pep-0455.txt | 28 ++++++++++++++++++++++++++++
1 files changed, 28 insertions(+), 0 deletions(-)
diff --git a/pep-0455.txt b/pep-0455.txt
--- a/pep-0455.txt
+++ b/pep-0455.txt
@@ -228,6 +228,34 @@
memoization, for example ``pickle``, ``json``, ``copy``, ``cProfile``,
``doctest`` and ``_threading_local``.
+Other languages
+---------------
+
+C# / .Net
+^^^^^^^^^
+
+.Net has a generic ``Dictionary`` class where you can specify a custom
+``IEqualityComparer``: http://msdn.microsoft.com/en-us/library/xfhwa508.aspx
+
+Using it is the recommended way to write case-insensitive dictionaries:
+http://stackoverflow.com/questions/13230414/case-insensitive-access-for-generic-dictionary
+
+Java
+^^^^
+
+Java has a specialized ``CaseInsensitiveMap``:
+http://commons.apache.org/proper/commons-collections/apidocs/org/apache/commons/collections4/map/CaseInsensitiveMap.html
+
+It also has a separate ``IdentityHashMap``:
+http://docs.oracle.com/javase/6/docs/api/java/util/IdentityHashMap.html
+
+C++
+^^^
+
+The C++ Standard Template Library features an ``unordered_map``
+with customizable hash and equality functions:
+http://www.cplusplus.com/reference/unordered_map/unordered_map/
+
Copyright
=========
--
Repository URL: http://hg.python.org/peps
More information about the Python-checkins
mailing list