Author: Ronan Lamy <ronan.l...@gmail.com>
Branch: mappingproxy
Changeset: r86089:d751064b79e4
Date: 2016-08-08 18:45 +0100
http://bitbucket.org/pypy/pypy/changeset/d751064b79e4/

Log:    Update description of dictproxyobject.py

diff --git a/pypy/objspace/std/dictproxyobject.py 
b/pypy/objspace/std/dictproxyobject.py
--- a/pypy/objspace/std/dictproxyobject.py
+++ b/pypy/objspace/std/dictproxyobject.py
@@ -1,5 +1,8 @@
-# Read-only proxy for mappings. PyPy does not have a separate type for
-# type.__dict__, so PyDictProxy_New has to use a custom read-only mapping.
+"""
+Read-only proxy for mappings.
+
+Its main use is as the return type of cls.__dict__.
+"""
 
 from pypy.interpreter.baseobjspace import W_Root
 from pypy.interpreter.error import oefmt
@@ -18,7 +21,8 @@
                 space.isinstance_w(w_mapping, space.w_list) or
                 space.isinstance_w(w_mapping, space.w_tuple)):
             raise oefmt(space.w_TypeError,
-                        "mappingproxy() argument must be a mapping, not %T", 
w_mapping)
+                        "mappingproxy() argument must be a mapping, not %T",
+                        w_mapping)
         return W_DictProxyObject(w_mapping)
 
     def descr_init(self, space, __args__):
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to