DLR-RM / DLR-RM/python-jsonconversion

Incompatibility with pypy interpreter

Ouverte
#2 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
enhancement
Langage dominant
Python
Étoiles
9
Forks
3
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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?

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.