Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Disabledfloat andbool implicit conversions#1584

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

Merged

Conversation

lostmsu
Copy link
Member

What does this implement/fix? Explain your changes.

Disabled using__float__ during implicit conversions to .NET floating-point types. Explicit conversion is possible in Python withfloat(val) and .NET with(double)dynamicPyObj.

Arbitrary Python objects are no longer implicitly converted to .NETbool type.

Does this close any currently open issues?

this is a continuation of#1568

related to#1539

Checklist

Check all those that are applicable and complete.

  • Make sure to include one or more tests for your change
  • If an enhancement PR, please create docs and at best an example
  • Updated theCHANGELOG

@lostmsulostmsu added this to the3.0.0 milestoneOct 2, 2021
@lostmsulostmsuforce-pushed theno-implicit-float-or-bool branch 3 times, most recently from26add1e to682fcceCompareOctober 2, 2021 18:07
@lostmsulostmsu requested a review fromfilmorOctober 2, 2021 18:12
… point typesarbitrary Python objects are no longer implicitly converted to .NET bool typethis is a continuation ofpythonnet#1568
@lostmsulostmsuforce-pushed theno-implicit-float-or-bool branch from682fcce to93d4840CompareOctober 2, 2021 18:14
@lostmsulostmsu merged commitc9626df intopythonnet:masterOct 5, 2021
@lostmsulostmsu deleted the no-implicit-float-or-bool branchOctober 5, 2021 16:26
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@filmorfilmorAwaiting requested review from filmor

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
3.0.0
Development

Successfully merging this pull request may close these issues.

1 participant
@lostmsu

[8]ページ先頭

©2009-2025 Movatter.jp