commit | 4dfe8a1131b551687659b9339eaee163a24f82f1 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Sat Apr 22 23:28:04 2006 +0000 |
committer | Guido van Rossum <guido@python.org> | Sat Apr 22 23:28:04 2006 +0000 |
tree | 79c967b9e355c0b0a070217a959abcd566aa6989 | |
parent | d603f645d99102627c7776ebeb2c3d52eb1d3b4a [diff] [blame] |
Here is a bytes type. It's very minimal but it's a start.
diff --git a/Objects/object.c b/Objects/object.c index a75c14e..9a451d2 100644 --- a/Objects/object.c +++ b/Objects/object.c
@@ -1881,6 +1881,9 @@ if (PyType_Ready(&PyBool_Type) < 0) Py_FatalError("Can't initialize 'bool'"); + if (PyType_Ready(&PyBytes_Type) < 0) + Py_FatalError("Can't initialize 'bytes'"); + if (PyType_Ready(&PyString_Type) < 0) Py_FatalError("Can't initialize 'str'");