Skip to content

Remove Python 2 support code#45

Merged
RhysU merged 1 commit intomasterfrom
claude/remove-python2-support-VcvWB
Jan 11, 2026
Merged

Remove Python 2 support code#45
RhysU merged 1 commit intomasterfrom
claude/remove-python2-support-VcvWB

Conversation

@RhysU
Copy link
Copy Markdown
Owner

@RhysU RhysU commented Jan 11, 2026

Python 2 has been end-of-life since January 2020. This commit removes all Python 2 compatibility code, including:

  • Python 2 compatibility macros (PyString_FromString, PyInt_FromSize_t)
  • Conditional compilation blocks checking PY_MAJOR_VERSION
  • Python 2-specific module initialization (initar function)
  • Python 2 GETSTATE macro implementation

The code now assumes PY_MAJOR_VERSION >= 3 and uses only Python 3 APIs.

Python 2 has been end-of-life since January 2020. This commit removes all
Python 2 compatibility code, including:

- Python 2 compatibility macros (PyString_FromString, PyInt_FromSize_t)
- Conditional compilation blocks checking PY_MAJOR_VERSION
- Python 2-specific module initialization (initar function)
- Python 2 GETSTATE macro implementation

The code now assumes PY_MAJOR_VERSION >= 3 and uses only Python 3 APIs.
@RhysU RhysU merged commit 995c959 into master Jan 11, 2026
14 checks passed
@RhysU RhysU deleted the claude/remove-python2-support-VcvWB branch January 11, 2026 06:14
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.

2 participants