[pypy-commit] pypy py3.5: dict.fromkeys(): rename the arguments for app-level

arigo pypy.commits at gmail.com
Mon Feb 6 13:37:45 EST 2017


Author: Armin Rigo <arigo at tunes.org>
Branch: py3.5
Changeset: r89980:463f5af4fbf5
Date: 2017-02-06 19:36 +0100
http://bitbucket.org/pypy/pypy/changeset/463f5af4fbf5/

Log:	dict.fromkeys(): rename the arguments for app-level

diff --git a/pypy/objspace/std/dictmultiobject.py b/pypy/objspace/std/dictmultiobject.py
--- a/pypy/objspace/std/dictmultiobject.py
+++ b/pypy/objspace/std/dictmultiobject.py
@@ -122,7 +122,9 @@
         return w_obj
 
     @staticmethod
-    def descr_fromkeys(space, w_type, w_keys, w_fill=None):
+    def descr_fromkeys(space, w_type, w_iterable, w_value=None):
+        w_keys = w_iterable  # \
+        w_fill = w_value     # / rename the arguments for app-level
         if w_fill is None:
             w_fill = space.w_None
         if space.is_w(w_type, space.w_dict):


More information about the pypy-commit mailing list