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
{{ message }}
Repository navigation
PyFloats should not be implicitly rounded to integers #1342
Surprisingly, the above code invokes the method with the integer 5. I expect this to raise an error instead, even if the value passed was 5.0. I expect a method with an integer argument to behave like list indexing in Python, which refuses any float value:
Activity
disable implicit conversion from PyFloat to .NET integer types (fixes p…
disable implicit conversion from PyFloat to .NET integer types (fixes p…
disable implicit conversion from PyFloat to .NET integer types (fixes p…
tminka commentedon Jan 5, 2021
There is a similar problem with array indexing. The below test cases (extending
test_array.py) fail by not raising an error:disable implicit conversion from PyFloat to .NET integer types (fixes p…