FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

1990 py int to string fix by rmadsen-ks · Pull Request #1991 · pythonnet/pythonnet · GitHub

1990 py int to string fix - #1991

Closed
rmadsen-ks wants to merge 3 commits into
pythonnet:masterfrom
rmadsen-ks:1990-PyIntToStringFix
Closed

1990 py int to string fix#1991
rmadsen-ks wants to merge 3 commits into
pythonnet:masterfrom
rmadsen-ks:1990-PyIntToStringFix

Conversation

Copy link
Copy Markdown
Contributor

This fixes #1990: PyInt.ToString() has wrong results for values between 128 and 255

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
  • Ensure you have signed the .NET Foundation CLA
  • Add yourself to AUTHORS
  • Updated the CHANGELOG

Added a unit test to show a problem with String.Format / PyInt.ToString()
There was an issue with values between 128 and 256, possibly because of some bug inside BigInteger, which I did not fully understand.

Anyway, it seems that a simpler solution is to just use LongInteger when possible.

lostmsu commented Oct 28, 2022

Copy link
Copy Markdown
Member

It looks like the issue is actually in ToBigInteger?

lostmsu commented Oct 29, 2022

Copy link
Copy Markdown
Member

Superseded by #1993

lostmsu closed this Oct 29, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PyInt.ToString returns wrong strings for values between 128 and 256

2 participants


Back | FazBrowse Home | New Git URL