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

Explicit float and int conversion for builtin types#1904

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
filmor merged 3 commits intopythonnet:releasefromfilmor:float-int-cast
Aug 12, 2022

Conversation

filmor
Copy link
Member

Fixes#1896

@lostmsu
Copy link
Member

I suggest we also add:int(System.Boolean),float(System.Boolean), andfloat(System.*Int*)
Anything else you can think of?

filmor reacted with thumbs up emoji

@filmor
Copy link
MemberAuthor

There are probably more valid conversions (Boolean tobool works already due to__int__), but I wouldn't want to actually change behaviour now. The implemented conversions are sensible and fix a "regression".

Copy link
Member

@lostmsulostmsu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

See comment about new tests

@filmorfilmor merged commit0909021 intopythonnet:releaseAug 12, 2022
@filmorfilmor deleted the float-int-cast branchAugust 12, 2022 04:07
@filmorfilmor mentioned this pull requestAug 12, 2022
5 tasks
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@lostmsulostmsulostmsu approved these changes

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

Successfully merging this pull request may close these issues.

2 participants
@filmor@lostmsu

[8]ページ先頭

©2009-2025 Movatter.jp