Commit e035c704 authored by Kirill Smelkov's avatar Kirill Smelkov

X Bring y/bstr+x/gpystr to be at least usable

Asked by Kazuhiko: nexedi/pygolang!21 (comment 198526)
parent 17dbfbac
...@@ -2402,7 +2402,7 @@ cdef _pytype_replace_by_child(PyTypeObject *typ, PyTypeObject *typ_clone, ...@@ -2402,7 +2402,7 @@ cdef _pytype_replace_by_child(PyTypeObject *typ, PyTypeObject *typ_clone,
assert isinstance(x, type) assert isinstance(x, type)
xtyp = <PyTypeObject*>x xtyp = <PyTypeObject*>x
_xtyp = <_XPyTypeObject*>x _xtyp = <_XPyTypeObject*>x
fprintf(stderr, 'refreshing %s\n', xtyp.tp_name) #fprintf(stderr, 'refreshing %s\n', xtyp.tp_name)
assert (xtyp.tp_flags & Py_TPFLAGS_READY) != 0 assert (xtyp.tp_flags & Py_TPFLAGS_READY) != 0
xtyp.tp_flags &= ~Py_TPFLAGS_READY xtyp.tp_flags &= ~Py_TPFLAGS_READY
Py_CLEAR(_xtyp.tp_mro) Py_CLEAR(_xtyp.tp_mro)
......
...@@ -474,7 +474,6 @@ def main(): ...@@ -474,7 +474,6 @@ def main():
from six.moves import builtins from six.moves import builtins
for k in golang.__all__: for k in golang.__all__:
setattr(builtins, k, getattr(golang, k)) setattr(builtins, k, getattr(golang, k))
setattr(builtins, 'CCC', CCC)
# sys.version # sys.version
sys.version += (' [GPython %s] [runtime %s] [strings %s]' % (golang.__version__, gpy_runtime_ver, gpy_strings)) sys.version += (' [GPython %s] [runtime %s] [strings %s]' % (golang.__version__, gpy_runtime_ver, gpy_strings))
...@@ -596,7 +595,7 @@ class _IGetOpt: ...@@ -596,7 +595,7 @@ class _IGetOpt:
# for tests XXX continue by first writing test XXX # for tests XXX continue by first writing test XXX
1/0 #1/0
class _tEarlyStrSubclass(str): class _tEarlyStrSubclass(str):
pass pass
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment