Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
python
cpython
Repository navigation
Code
Issues
5k+
(5k+)
Pull requests
2.7k
(2.7k)
Actions
Projects
Security and quality
Insights
More
items
Commits
Breadcrumbs
History for
cpython
Doc
c-api
complex.rst
on
main
User selector
All users
Datepicker
All time
Commit history
Commits on Oct 13, 2026
Python 3.16.0a1
savannahostrowski
committed
22d79d9
View commit details
Copy full SHA for 22d79d9
View code at this point
Browse repository at this point
Commits on Sep 11, 2026
gh-155526: Don't check errno in abs(complex) (#155527)
Show description for e5d4fa2
3 people
authored
e5d4fa2
View commit details
Copy full SHA for e5d4fa2
View code at this point
Browse repository at this point
Commits on Jun 4, 2026
Fix 2 broken links in documentation (#150892)
Show description for cb064e7
hroncok
and
StanFromIreland
authored
cb064e7
View commit details
Copy full SHA for cb064e7
View code at this point
Browse repository at this point
Commits on Nov 3, 2025
Fix minor typos and wording in C API docs (#140955)
encukou
authored
3f2b83e
View commit details
Copy full SHA for 3f2b83e
View code at this point
Browse repository at this point
Commits on Oct 14, 2025
Python 3.15.0a1
hugovk
committed
aeff92d
View commit details
Copy full SHA for aeff92d
View code at this point
Browse repository at this point
Commits on Aug 11, 2025
gh-128813: cleanup C-API docs for PyComplexObject (GH-137579)
Show description for bc4996c
skirpichev
authored
bc4996c
View commit details
Copy full SHA for bc4996c
View code at this point
Browse repository at this point
Commits on Aug 8, 2025
gh-128813: deprecate cval field of the PyComplexObject struct (#137271)
Show description for 9743d06
3 people
authored
9743d06
View commit details
Copy full SHA for 9743d06
View code at this point
Browse repository at this point
Commits on Aug 1, 2025
gh-128813: soft-deprecate _Py_c_*() functions (GH-137261)
skirpichev
authored
9ced5c4
View commit details
Copy full SHA for 9ced5c4
View code at this point
Browse repository at this point
Commits on Apr 22, 2025
gh-128813: hide mixed-mode functions for complex arithmetic from C-API (#131703)
skirpichev
authored
79f7c67
View commit details
Copy full SHA for 79f7c67
View code at this point
Browse repository at this point
Commits on Nov 26, 2024
gh-69639: Add mixed-mode rules for complex arithmetic (C-like) (GH-124829)
Show description for 987311d
skirpichev
authored
987311d
View commit details
Copy full SHA for 987311d
View code at this point
Browse repository at this point
Commits on Sep 18, 2024
gh-119771: Set errno on overflows in _Py_c_pow() (#120256)
Show description for 8a284e1
skirpichev
authored
8a284e1
View commit details
Copy full SHA for 8a284e1
View code at this point
Browse repository at this point
Commits on Jul 17, 2024
gh-121834: Improve `complex` C-API docs (#121835)
Show description for 72dccd6
3 people
authored
72dccd6
View commit details
Copy full SHA for 72dccd6
View code at this point
Browse repository at this point
Commits on Jan 15, 2024
gh-109598: make PyComplex_RealAsDouble/ImagAsDouble use __complex__ (GH-109647)
Show description for 0f2fa61
skirpichev
authored
0f2fa61
View commit details
Copy full SHA for 0f2fa61
View code at this point
Browse repository at this point
Commits on Jul 27, 2023
gh-107298: Fix more Sphinx warnings in the C API doc (#107329)
Show description for 8d61a71
vstinner
authored
8d61a71
View commit details
Copy full SHA for 8d61a71
View code at this point
Browse repository at this point
Commits on Jul 21, 2023
gh-106919: Use role :c:macro: for referencing the C "constants" (GH-106920)
serhiy-storchaka
authored
fcc816d
View commit details
Copy full SHA for fcc816d
View code at this point
Browse repository at this point
Commits on Jun 30, 2023
gh-101100: Docs: Fix references to several numeric dunders (#106278)
Show description for a8ae739
F3eQnxN3RriK
and
AlexWaygood
authored
a8ae739
View commit details
Copy full SHA for a8ae739
View code at this point
Browse repository at this point
Commits on May 4, 2023
GH-97950: Use new-style index directive ('object') (#104158)
Show description for 6ab4636
AA-Turner
authored
6ab4636
View commit details
Copy full SHA for 6ab4636
View code at this point
Browse repository at this point
Commits on Oct 5, 2022
gh-93738: Documentation C syntax (:c:type:<C type> -> :c:expr:<C type>) (#97768)
Show description for 0031e62
AA-Turner
and
ambv
authored
0031e62
View commit details
Copy full SHA for 0031e62
View code at this point
Browse repository at this point
Commits on Jun 16, 2021
bpo-44426: Use of 'complex' as a C variable name confuses Sphinx; change it to 'num'. (GH-26744)
mdickinson
authored
7247f6f
View commit details
Copy full SHA for 7247f6f
View code at this point
Browse repository at this point
Commits on Jan 6, 2021
bpo-42528: Improve the docs of most Py*_Check{,Exact} API calls (GH-23602)
Show description for 315fc52
antocuni
authored
315fc52
View commit details
Copy full SHA for 315fc52
View code at this point
Browse repository at this point
Commits on Jun 1, 2019
bpo-20092. Use __index__ in constructors of int, float and complex. (GH-13108)
serhiy-storchaka
authored
bdbad71
View commit details
Copy full SHA for bdbad71
View code at this point
Browse repository at this point
Commits on May 17, 2019
Doc: Replace the deprecated highlightlang directive by highlight. (#13377)
Show description for cbb6484
matrixise
authored and
kushaldas
committed
cbb6484
View commit details
Copy full SHA for cbb6484
View code at this point
Browse repository at this point
Commits on Dec 18, 2011
Issue #13522: Fix _Py_co_pow() documentation
Show description for b99bb20
Victor Stinner
committed
b99bb20
View commit details
Copy full SHA for b99bb20
View code at this point
Browse repository at this point
Issue #13522: document error return values of some float and complex C API functions.
pitrou
committed
07b1c87
View commit details
Copy full SHA for 07b1c87
View code at this point
Browse repository at this point
Commits on Oct 17, 2010
#9204: remove mentions of removed types in the types module.
birkenfeld
committed
2aff335
View commit details
Copy full SHA for 2aff335
View code at this point
Browse repository at this point
Commits on Oct 6, 2010
Migrate to Sphinx 1.0 C language constructs.
birkenfeld
committed
60203b4
View commit details
Copy full SHA for 60203b4
View code at this point
Browse repository at this point
Commits on Jan 20, 2008
Split C API docs in Py3k branch.
birkenfeld
committed
54a3faa
View commit details
Copy full SHA for 54a3faa
View code at this point
Browse repository at this point
Loading
You can’t perform that action at this time.