[Jython-checkins] jython: Add bytes type.

frank.wierzbicki jython-checkins at python.org
Tue Feb 14 03:04:38 CET 2012


http://hg.python.org/jython/rev/aba11643405e
changeset:   6304:aba11643405e
user:        Frank Wierzbicki <fwierzbicki at gmail.com>
date:        Mon Feb 13 18:04:23 2012 -0800
summary:
  Add bytes type.

files:
  src/org/python/core/__builtin__.java |  1 +
  1 files changed, 1 insertions(+), 0 deletions(-)


diff --git a/src/org/python/core/__builtin__.java b/src/org/python/core/__builtin__.java
--- a/src/org/python/core/__builtin__.java
+++ b/src/org/python/core/__builtin__.java
@@ -305,6 +305,7 @@
         dict.__setitem__("Ellipsis", Py.Ellipsis);
         dict.__setitem__("True", Py.True);
         dict.__setitem__("False", Py.False);
+        dict.__setitem__("bytes", PyString.TYPE);
 
         // Work in debug mode by default
         // Hopefully add -O option in the future to change this

-- 
Repository URL: http://hg.python.org/jython


More information about the Jython-checkins mailing list