Skip to content

Remove Python 2 dunder methods - #789

Merged
amoffat merged 1 commit into
amoffat:developfrom
jorenham:remove-py2-remnants
Jul 22, 2026
Merged

amoffat merged 1 commit into
amoffat:developfrom
jorenham:remove-py2-remnants

Conversation

@jorenham

@jorenham jorenham commented Jul 22, 2026 •

Copy link
Copy Markdown
Contributor

__nonzero__ and __long__ are not a thing anymore :)

BTW, removing the __bool__ methods entirely is also an option, because then it'll just fallback to checking __len__ for truthiness checks.

@amoffat

amoffat commented Jul 22, 2026

Copy link
Copy Markdown
Owner

sh is showing its age 😄

@amoffat
amoffat merged commit ff626ad into amoffat:develop Jul 22, 2026
23 checks passed
@jorenham
jorenham deleted the remove-py2-remnants branch July 22, 2026 21:43
@jorenham

Copy link
Copy Markdown
Contributor Author

sh is showing its age 😄

And that's awesome. There are way too many abandoned open source projects. So thanks for keeping sh alive for this long (punintended :P).

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