Open gitlab-importer opened 3 years ago
In Heptapod by @mattip on Jan 31, 2021, 06:30
You need to wrap your input with space.newdict()
in order to make {}
into a w_obj
In Heptapod by @LoHiaufung on Feb 1, 2021, 10:54
The test code is python code.
And the function _pack
is rpython code.
I compile all the pypy project, including the function _pack
in a pypy extension library, which name 'rpy_msg_pack
'.
The test code, is run by the compiled pypy interpreter. I input a python object '{}', when it runs into the rpython func _pack
, it should be w_obj
。
So I am very confused, why the error "TypeError: need type object" is raised.
In Heptapod by @LoHiaufung on Jan 30, 2021, 03:27
Hi, I am writing a msgpack in rpython, as an pypy extension.
Here is the code:
And here is the test code:
Then the code raise an exception:
It seems that the rpython code:
doesn't work. I am confused, can someone help me?