| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:8d79c2be-6bc8-c0a5-ef07-14911c4dd0e1 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | BAF4:2D5677:5EF3AC:832BD1:69694D56 |
| html-safe-nonce | 5f61e2f3bb9f0a1314f55cc24b748a0b848b578f0ffcc1d84af1def64adfa348 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQUY0OjJENTY3Nzo1RUYzQUM6ODMyQkQxOjY5Njk0RDU2IiwidmlzaXRvcl9pZCI6IjMyNzM3Nzc2NDU2MzAzNDQ1MzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2c65a0a73220380f1e4c01abe11bbcc0aba48cd25d8851d4d90fd067096cce1b |
| hovercard-subject-tag | pull_request:1597607297 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/111996/files |
| twitter:image | https://avatars.githubusercontent.com/u/2155800?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/2155800?s=400&v=4 |
| og:image:alt | Issue: gh-111495 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 54182691a21263b584d2e600b758e081b0ff1d10ffc0d2eefa51cf754b43b51d |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d69ac0477df0f87da03b8b06cebd187012d7a930 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/111996/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F111996%2Ffiles |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub SparkBuild and deploy intelligent apps | https://github.com/features/spark |
| GitHub ModelsManage and compare prompts | https://github.com/features/models |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| GitHub SponsorsFund open source developers | https://github.com/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/accelerator |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F111996%2Ffiles |
|
Sign up
| https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython |
| Reload | https://github.com/python/cpython/pull/111996/files |
| Reload | https://github.com/python/cpython/pull/111996/files |
| Reload | https://github.com/python/cpython/pull/111996/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/111996/files |
|
Notifications
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Fork
33.9k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Star
71.1k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Code
| https://github.com/python/cpython |
|
Issues
5k+
| https://github.com/python/cpython/issues |
|
Pull requests
2.1k
| https://github.com/python/cpython/pulls |
|
Actions
| https://github.com/python/cpython/actions |
|
Projects
31
| https://github.com/python/cpython/projects |
|
Security
Uh oh!
There was an error while loading. Please reload this page.
| https://github.com/python/cpython/security |
| Please reload this page | https://github.com/python/cpython/pull/111996/files |
|
Insights
| https://github.com/python/cpython/pulse |
|
Code
| https://github.com/python/cpython |
|
Issues
| https://github.com/python/cpython/issues |
|
Pull requests
| https://github.com/python/cpython/pulls |
|
Actions
| https://github.com/python/cpython/actions |
|
Projects
| https://github.com/python/cpython/projects |
|
Security
| https://github.com/python/cpython/security |
|
Insights
| https://github.com/python/cpython/pulse |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| vstinner | https://github.com/vstinner |
| python:main | https://github.com/python/cpython/tree/main |
| skirpichev:capi-number-tests | https://github.com/skirpichev/cpython/tree/capi-number-tests |
|
Conversation
85
| https://github.com/python/cpython/pull/111996 |
|
Commits
38
| https://github.com/python/cpython/pull/111996/commits |
|
Checks
0
| https://github.com/python/cpython/pull/111996/checks |
|
Files changed
| https://github.com/python/cpython/pull/111996/files |
| Please reload this page | https://github.com/python/cpython/pull/111996/files |
|
gh-111495: Add tests for PyNumber C API
| https://github.com/python/cpython/pull/111996/files#top |
|
Show all changes
38 commits
| https://github.com/python/cpython/pull/111996/files |
|
cbca658
gh-111495: Add tests for PyNumber C API
skirpichev Nov 5, 2023
| https://github.com/python/cpython/pull/111996/commits/cbca6588c5fdd2f9466b9011181e5c9d79b6050c |
|
0d95d57
Remove inaccessible code (PyLong_AsSsize_t raises OverflowError)
skirpichev Nov 10, 2023
| https://github.com/python/cpython/pull/111996/commits/0d95d578fca466ac10b014f7c127dc34dc8e6444 |
|
7b8adb4
Drop checks for broken float subclasses (like for PyNumber_Long in 31…
skirpichev Nov 11, 2023
| https://github.com/python/cpython/pull/111996/commits/7b8adb48673962c3274f66242979d40138826904 |
|
4665f25
+ tests with sets for intersection/union/etc
skirpichev Nov 13, 2023
| https://github.com/python/cpython/pull/111996/commits/4665f25652ce6fd51996b46a7aa18e7a49254b38 |
|
9e14905
Use macroses
skirpichev Nov 13, 2023
| https://github.com/python/cpython/pull/111996/commits/9e149056d74a90beebb43eddc4380dc9d8874ad5 |
|
c0f4051
Merge branch 'main' into capi-number-tests
skirpichev Nov 13, 2023
| https://github.com/python/cpython/pull/111996/commits/c0f40511805f8e063001e5f772c6066f2a71f5f1 |
|
3a7a4c4
Merge branch 'main' into capi-number-tests
skirpichev Nov 14, 2023
| https://github.com/python/cpython/pull/111996/commits/3a7a4c408560dcad1499c3f911688c077276b4b9 |
|
788e9c2
Ternary ops (currently only pow/ipow) don't use __r*__ dunders
skirpichev Nov 15, 2023
| https://github.com/python/cpython/pull/111996/commits/788e9c22ac83552e54f6a352f987338747195d1b |
|
8cf4429
More tests
skirpichev Nov 15, 2023
| https://github.com/python/cpython/pull/111996/commits/8cf4429accc9cc2016587ea84e0a6e98419cf960 |
|
91c68a7
Merge branch 'main' into capi-number-tests
skirpichev Nov 15, 2023
| https://github.com/python/cpython/pull/111996/commits/91c68a7fd420282e0ec4fa3592eb23ed8e26b87b |
|
9f6fd15
More tests
skirpichev Nov 15, 2023
| https://github.com/python/cpython/pull/111996/commits/9f6fd152006f9d42b3b6702a6948a688de217620 |
|
9f5b7a1
Use BINARY_FUNC macro for some remaining ops
skirpichev Nov 15, 2023
| https://github.com/python/cpython/pull/111996/commits/9f5b7a123e28e59fceb51f5623db535f620ab4aa |
|
2675738
Add UNARY_FUNC macro to define unary PyNumber_* functions
skirpichev Nov 15, 2023
| https://github.com/python/cpython/pull/111996/commits/2675738d7de884b30f44b919c8971d1814695149 |
|
2bc6bc7
Fix typo
skirpichev Nov 15, 2023
| https://github.com/python/cpython/pull/111996/commits/2bc6bc75348fd86ba61f0824e8e198e8aebbf7bc |
|
49d673b
Make last argument optional for PyNumber_Power/InPlacePower
skirpichev Nov 15, 2023
| https://github.com/python/cpython/pull/111996/commits/49d673babfb6f41d667d9d68101d564aec643ced |
|
b2dda89
More tests
skirpichev Nov 15, 2023
| https://github.com/python/cpython/pull/111996/commits/b2dda899ac0fead355769c447fadd9d0ab4076ff |
|
b86d2eb
Remove number_check() from _testcapi/abstract.c, move tests
skirpichev Nov 15, 2023
| https://github.com/python/cpython/pull/111996/commits/b86d2eb2f56e718dc5bb04c5fdcaf3088abd95fd |
|
0fbbba9
address review:
skirpichev Nov 16, 2023
| https://github.com/python/cpython/pull/111996/commits/0fbbba9a9ed1212e73bf8dcbbcc8b1a1cd8ea70a |
|
bcf0c20
Merge branch 'main' into capi-number-tests
skirpichev Nov 16, 2023
| https://github.com/python/cpython/pull/111996/commits/bcf0c2071f488fc94f96f6bd42f0314860ec50f4 |
|
9aae51b
some cleanup for support classes
skirpichev Nov 17, 2023
| https://github.com/python/cpython/pull/111996/commits/9aae51b11aa772b6d5fbb04dcfbad98c2211707a |
|
d052280
+ cleanup
skirpichev Nov 17, 2023
| https://github.com/python/cpython/pull/111996/commits/d052280e1a734f82bd69886444617e39f48cf971 |
|
c04679c
use instead generic tests for unary functions
skirpichev Nov 18, 2023
| https://github.com/python/cpython/pull/111996/commits/c04679c3b68c9957a0b1c2440c52838ac62a72c9 |
|
efe4aab
+1
skirpichev Nov 18, 2023
| https://github.com/python/cpython/pull/111996/commits/efe4aab18c18501060362e57ef49ec19d922543b |
|
4d96d35
use instead generic tests for binary functions + misc tests
skirpichev Nov 18, 2023
| https://github.com/python/cpython/pull/111996/commits/4d96d35a09f786ee1d952540ae6b971ab2bee8d3 |
|
b00365e
Merge branch 'main' into capi-number-tests
skirpichev Dec 2, 2023
| https://github.com/python/cpython/pull/111996/commits/b00365ef8d2419a039df91eb8d2ad068b779c381 |
|
74abc5d
+1
skirpichev Dec 3, 2023
| https://github.com/python/cpython/pull/111996/commits/74abc5d9980823f84d7d2ac06f6b5a7805698fdb |
|
d62b802
Merge branch 'main' into capi-number-tests
skirpichev Feb 21, 2024
| https://github.com/python/cpython/pull/111996/commits/d62b80252f2cb0b59fe6c9d71d16447fdcc8a1e1 |
|
7ba5bb0
Merge branch 'master' into capi-number-tests
skirpichev Mar 22, 2024
| https://github.com/python/cpython/pull/111996/commits/7ba5bb0667ad32e3da55dcbbb4c24ab1b4c3e228 |
|
76aac6f
Merge branch 'master' into capi-number-tests
skirpichev Mar 23, 2024
| https://github.com/python/cpython/pull/111996/commits/76aac6f5f0fa66bf48a1ea84570b88d9fc288c5c |
|
de8f7f3
Include only basic tests for unary/binary ops (with builtin types)
skirpichev Mar 26, 2024
| https://github.com/python/cpython/pull/111996/commits/de8f7f316ec6bf8bdc3704f6e1916062fce2a09f |
|
bd3435b
Merge branch 'master' into capi-number-tests
skirpichev Aug 9, 2024
| https://github.com/python/cpython/pull/111996/commits/bd3435bd8f95ae4f0ed4935af69f72453e554e92 |
|
ab08430
address review: sort imports
skirpichev Aug 9, 2024
| https://github.com/python/cpython/pull/111996/commits/ab0843054d8e72ab6f42d1e95fbee592f19a3733 |
|
0bccf1c
address review: split test_misc()
skirpichev Aug 9, 2024
| https://github.com/python/cpython/pull/111996/commits/0bccf1c2610186ad1c2c5680c53bd5af8f5bc3e6 |
|
abde55b
Update Lib/test/test_capi/test_number.py
skirpichev Aug 9, 2024
| https://github.com/python/cpython/pull/111996/commits/abde55bc46fa93da7c5cda9a79b6ffb51718361a |
|
f4be9c5
address review: use import_helper for _testbuffer
skirpichev Aug 9, 2024
| https://github.com/python/cpython/pull/111996/commits/f4be9c5816d367c7aa8e67eb8edd6f4961803075 |
|
86df16c
fix typo
skirpichev Aug 9, 2024
| https://github.com/python/cpython/pull/111996/commits/86df16cc82a0014b9d08ea2c5b91726f858ed91b |
|
c620c72
drop support classes with __trunc__ dunder
skirpichev Aug 9, 2024
| https://github.com/python/cpython/pull/111996/commits/c620c720d1201a0138aaae80711d89fa880be8a6 |
|
556b23b
address review: skip two test if no ndarray
skirpichev Aug 9, 2024
| https://github.com/python/cpython/pull/111996/commits/556b23bcc199f97803bb9ebcdcbeb601e83e35df |
|
Clear filters
| https://github.com/python/cpython/pull/111996/files |
| Please reload this page | https://github.com/python/cpython/pull/111996/files |
| Please reload this page | https://github.com/python/cpython/pull/111996/files |
|
test_abstract.py
| https://github.com/python/cpython/pull/111996/files#diff-671d403ebf880de19be4d32c34e35c3981662de686d73b128275628d88e32a94 |
|
test_number.py
| https://github.com/python/cpython/pull/111996/files#diff-6f79368fc5a35708b8b0e8aae0a0ba4f46176dadd4ad641d7dad4f7c3206a0f4 |
|
numbers.c
| https://github.com/python/cpython/pull/111996/files#diff-a27eced2b52b940bb7be51021d9c6ec9b7d5240432e398c16ab28f98e8aadc12 |
| Lib/test/test_capi/test_abstract.py | https://github.com/python/cpython/pull/111996/files#diff-671d403ebf880de19be4d32c34e35c3981662de686d73b128275628d88e32a94 |
|
View file
| https://github.com/skirpichev/cpython/blob/556b23bcc199f97803bb9ebcdcbeb601e83e35df/Lib/test/test_capi/test_abstract.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/111996/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/111996/files#diff-671d403ebf880de19be4d32c34e35c3981662de686d73b128275628d88e32a94 |
|
| https://github.com/python/cpython/pull/111996/files#diff-671d403ebf880de19be4d32c34e35c3981662de686d73b128275628d88e32a94 |
| Lib/test/test_capi/test_number.py | https://github.com/python/cpython/pull/111996/files#diff-6f79368fc5a35708b8b0e8aae0a0ba4f46176dadd4ad641d7dad4f7c3206a0f4 |
|
View file
| https://github.com/skirpichev/cpython/blob/556b23bcc199f97803bb9ebcdcbeb601e83e35df/Lib/test/test_capi/test_number.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/111996/{{ revealButtonHref }} |
| Please reload this page | https://github.com/python/cpython/pull/111996/files |
| vstinner | https://github.com/vstinner |
| Aug 9, 2024 | https://github.com/python/cpython/pull/111996/files#r1711163473 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/111996/files |
| skirpichev | https://github.com/skirpichev |
| Aug 9, 2024 | https://github.com/python/cpython/pull/111996/files#r1711203777 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/111996/files |
| Please reload this page | https://github.com/python/cpython/pull/111996/files |
| Please reload this page | https://github.com/python/cpython/pull/111996/files |
| Please reload this page | https://github.com/python/cpython/pull/111996/files |
| Please reload this page | https://github.com/python/cpython/pull/111996/files |
| Please reload this page | https://github.com/python/cpython/pull/111996/files |
| Please reload this page | https://github.com/python/cpython/pull/111996/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |