| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
The following causes different results in python and this branch:
from _ctypes import _SimpleCData
class c_short(_SimpleCData):
_type_ = "h"
print(c_short.__mul__(5))Python:
<class '__main__.c_short_Array_5'>
RustPython:
Traceback (most recent call last):
File "tmp.py", line 6, in <module>
print(c_short.__mul__(5))
TypeError: unexpected payload for __repr__
Note that on main the repr is simply incorrect (I haven't checked explicitly, but in previous testing, that is what I saw).
I don't think the cpython implementation PyCArrayType does anything special, so I assume this is a general rustpython compatibility.
Sorry, something went wrong.
|
That seems to no longer occur for that case, but I suppose there might have been a bug in that patch. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
@arihant2math could you review this PR?