GitHub CopilotWrite better code with AI | MCP RegistryIntegrate external tools | ActionsAutomate any workflow | CodespacesInstant dev environments | IssuesPlan and track work | Code ReviewManage code changes | Code QualityEnforce quality at merge | Why GitHub | Marketplace | View all features | Enterprises | Small and medium teams | Startups | View all use cases | View all industries | View all solutions | AI | Software Development | DevOps | Security | View all topics | Customer stories | Events & webinars | Ebooks & reports | Business insights | Trust center | Partners | View all resources
Tin mới
skirpichev:as_integer_ratio-docs
GitHub CopilotWrite better code with AI
GitHub Copilot appDirect agents from issue to merge
CodespacesInstant dev environments
Code ReviewManage code changes
Code QualityEnforce quality at merge
GitHub Advanced SecurityFind and fix vulnerabilities
Code securitySecure your code as you build
Secret protectionStop leaks before they start
GitHub SponsorsFund open source developers
Copilot for BusinessEnterprise-grade AI features
Premium SupportEnterprise-grade 24/7 support
as_integer_ratio docstring's #101825
bpo-33073: Adding as_integer_ratio to ints. #8750
bpo-37819: Add Fraction.as_integer_ratio() #15212
: mention, that as_integer_ratio() output is normalized
Update Doc/library/stdtypes.rst
Slightly adjust above suggestion and do same for the docstring
Learn more about hiding disruptive comments
The reason will be displayed to describe this comment to others. Learn more.
+1 (to cover bool, for instance)
Lets not test a patience of the reader with examples for this...
Apply suggestions from code review
Merge branch 'main' into as_integer_ratio-docs
Revert int.as_integer_ration() docstring/rst docs to the original patch
Amend d3de6030d4 (correct fractions.rst)
Amend 7892a40bf4 (same nitpick for float)
Merge branch 'main' into inlinecomp2
Improve docstring of Fraction.as_integer_ratio(), following