Author: Richard Plangger <planri...@gmail.com>
Branch: 
Changeset: r85446:dea2cb868b71
Date: 2016-06-29 12:18 +0200
http://bitbucket.org/pypy/pypy/changeset/dea2cb868b71/

Log:    enhance the documentation about sets in rpython (related to my
        question on IRC)

diff --git a/rpython/doc/rpython.rst b/rpython/doc/rpython.rst
--- a/rpython/doc/rpython.rst
+++ b/rpython/doc/rpython.rst
@@ -135,6 +135,12 @@
   hash functions and custom equality will not be honored.
   Use ``rpython.rlib.objectmodel.r_dict`` for custom hash functions.
 
+**sets**
+
+  sets are not directly supported in RPython. Instead you should use a
+  plain dict and fill the values with None. Values in that dict
+  will not consume space.
+
 **list comprehensions**
 
   May be used to create allocated, initialized arrays.
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to