DLR-RM / DLR-RM/python-jsonconversion

Incompatibility with pypy interpreter

未關閉
#2 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
enhancement
主要語言
Python
星號
9
分支
3
PR 合併指標
30 天內沒有已合併 PR

描述

When trying to use jsonconversion with the pypy interpreter (e.g. pypy3.6 /custom/patch/python-jsonconversion/test/test_jsonobjects.py) the following error occurs:

```
File "/home/basti/develop/python-jsonconversion/test/test_jsonobjects.py", line 12, in
from testing_utils import convert_with_assertion
File "/home/basti/develop/python-jsonconversion/test/testing_utils.py", line 17, in
from jsonconversion.encoder import JSONObjectEncoder
File "/home/basti/develop/python-jsonconversion/src/jsonconversion/encoder.py", line 13, in
from json.encoder import JSONEncoder, _make_iterencode, encode_basestring, encode_basestring_ascii, INFINITY
ImportError: cannot import name '_make_iterencode'
```

The '_make_iterencode' is a protected member os json.encoder. Is there a possibility to only use the public API of json.encoder?

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。