You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The output from this program differs between CPython and IronPython.
Steps to Reproduce
Run the above program
Expected behavior: Output should be [1, 2, 3].
Actual behavior: Output is <ListDescriptor object at 0x000000000000002B>.
Workarounds
You can work around this by explictly defining the __get__ method in ListDescriptor. However, we encountered this in third-party code that we would rather not modify if it could be avoided.
The text was updated successfully, but these errors were encountered:
This makes the first half of the test in test_descr.set_and_no_get pass.
The second part using metaclassses still fail.
I am pretty sure this is not the proper approach, but I don't know what
that would be.
See IronLanguages#1722.
danabr
added a commit
to danabr/ironpython3
that referenced
this issue
Aug 16, 2023
Prerequisites
Description
Consider the following program:
The output from this program differs between CPython and IronPython.
Steps to Reproduce
Expected behavior: Output should be
[1, 2, 3]
.Actual behavior: Output is
<ListDescriptor object at 0x000000000000002B>
.Workarounds
You can work around this by explictly defining the
__get__
method in ListDescriptor. However, we encountered this in third-party code that we would rather not modify if it could be avoided.The text was updated successfully, but these errors were encountered: