- Notifications
You must be signed in to change notification settings - Fork749
Disable implicit conversions that might lose information#1568
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
631b019
toc97e5ab
CompareUh oh!
There was an error while loading.Please reload this page.
PyInt -> int32.NET arrays and collections -> Python list (due to mutability)
2e8cd3f
tob2e6d4e
CompareThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
A few minor isssues
{ | ||
if (setError) | ||
{ | ||
Exceptions.SetError(ex.InnerException); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Should be justSetError(ex)
return true; | ||
} | ||
// shouldn't happen | ||
return false; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Fallback branch should be added.
… point typesarbitrary Python objects are no longer implicitly converted to .NET bool typethis is a continuation ofpythonnet#1568
… point typesarbitrary Python objects are no longer implicitly converted to .NET bool typethis is a continuation ofpythonnet#1568
… point typesarbitrary Python objects are no longer implicitly converted to .NET bool typethis is a continuation ofpythonnet#1568
… point typesarbitrary Python objects are no longer implicitly converted to .NET bool typethis is a continuation ofpythonnet#1568
… point typesarbitrary Python objects are no longer implicitly converted to .NET bool typethis is a continuation ofpythonnet#1568
… point typesarbitrary Python objects are no longer implicitly converted to .NET bool typethis is a continuation of#1568
Uh oh!
There was an error while loading.Please reload this page.
What does this implement/fix? Explain your changes.
This removes the following conversions:
PyInt
->int32
(when trying to convert toobject
only).NET arrays and collections -> Python
list
(due to mutability)Additionally,
PyObject
no longer implementsIEnumerable<PyObject>
, as not all python objects are iterable. Instead, a new classPyIterable
is added.Checklist
CHANGELOG