Author: Armin Rigo <[email protected]>
Branch: space-newtext
Changeset: r90137:e2d28a5f4464
Date: 2017-02-15 08:35 +0100
http://bitbucket.org/pypy/pypy/changeset/e2d28a5f4464/
Log: fix comment: one of us is confused
diff --git a/pypy/interpreter/baseobjspace.py b/pypy/interpreter/baseobjspace.py
--- a/pypy/interpreter/baseobjspace.py
+++ b/pypy/interpreter/baseobjspace.py
@@ -803,11 +803,13 @@
return self.is_true(self.contains(w_container, w_item))
def setitem_str(self, w_obj, key, w_value):
- # key is a "text" (ie str in python2 and unicode in python3)
+ # key is a "text", i.e. a byte string (in python3 it
+ # represents a utf-8-encoded unicode)
return self.setitem(w_obj, self.newtext(key), w_value)
def finditem_str(self, w_obj, key):
- # key is a "text" (ie str in python2 and unicode in python3)
+ # key is a "text", i.e. a byte string (in python3 it
+ # represents a utf-8-encoded unicode)
return self.finditem(w_obj, self.newtext(key))
def finditem(self, w_obj, w_key):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit