Skip to content

Conversation

@ThomasWaldmann
Copy link
Member

No description provided.

@ThomasWaldmann ThomasWaldmann force-pushed the remove-remainders-of-py2-support branch 3 times, most recently from 70403a1 to 8d393d2 Compare January 20, 2026 22:27
In Python 2.x u'...' (unicode string) meant the same as '...' in Python 3.
In Python 2.x '...' ([byte] string) meant the same as b'...' in Python 3.

We do not support Python 2.x, so the u prefix is not useful anymore.
We use items(), keys(), values() and they all return iterators.
Coercion unicode<->str was a Python2 thing.

Python3 always requires explicit conversion now,
which is clearer and way less problematic.
was only needed for py2/py3 compatibility.
not used anymore.
@ThomasWaldmann ThomasWaldmann force-pushed the remove-remainders-of-py2-support branch from 8d393d2 to f8cacfd Compare January 20, 2026 22:29
@ThomasWaldmann ThomasWaldmann merged commit 7a4fc40 into discorporate:master Jan 20, 2026
5 checks passed
@ThomasWaldmann ThomasWaldmann deleted the remove-remainders-of-py2-support branch January 20, 2026 22:32
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.

1 participant