Skip to content

Remove Python 2 compatibility code and modernize Python style#20

Merged
MattShannon merged 1 commit intomasterfrom
claude/modernize-python-style-ur34X
Mar 15, 2026
Merged

Remove Python 2 compatibility code and modernize Python style#20
MattShannon merged 1 commit intomasterfrom
claude/modernize-python-style-ur34X

Conversation

@MattShannon
Copy link
Copy Markdown
Owner

  • Remove div and idiv methods (Python 2 old-style division)
  • Remove explicit object inheritance from BandMat class
  • Replace bare except clauses with except (TypeError, ValueError)
  • Convert %-style string formatting to f-strings

https://claude.ai/code/session_017xmjvL47SYtX11EZjQ2uSJ

- Remove __div__ and __idiv__ methods (Python 2 old-style division)
- Remove explicit object inheritance from BandMat class
- Replace bare except clauses with except (TypeError, ValueError)
- Convert %-style string formatting to f-strings

https://claude.ai/code/session_017xmjvL47SYtX11EZjQ2uSJ
@MattShannon MattShannon merged commit afa21ee into master Mar 15, 2026
15 checks passed
@MattShannon MattShannon deleted the claude/modernize-python-style-ur34X branch March 15, 2026 11:49
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