-
Notifications
You must be signed in to change notification settings - Fork 28
Comparing changes
Open a pull request
base repository: dhondta/python-codext
base: copilot/add-playfair-encoding
head repository: dhondta/python-codext
compare: main
- 8 commits
- 8 files changed
- 3 contributors
Commits on Jul 19, 2026
-
Merge pull request #38 from dhondta/copilot/add-playfair-encoding
Add Playfair cipher codec
Configuration menu - View commit details
-
Copy full SHA for 9b3919e - Browse repository at this point
Copy the full SHA 9b3919eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4ba756f - Browse repository at this point
Copy the full SHA 4ba756fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 06d84db - Browse repository at this point
Copy the full SHA 06d84dbView commit details -
Fixed the base10 codec bypassing the generic base conversion path
The n == 10 fast-path returned through str(int)/int(str)/i2s before reaching the generic divmod path, so base10 (and its int/integer/dec/decimal aliases) both missed the leading-zero handling added for the other big-integer bases and had two more latent round-trip bugs: - leading null bytes were dropped, e.g. b'\x00abc' -> '6382179' -> b'abc'; - i2s() does hex(i)[2:].rstrip("eL"), so any value whose integer ends in a 0x?e byte lost that nibble on decode: b'd\xc6\xfe' -> '6604542' -> b'\x06Lo'; - str()/int() hit CPython's integer string-conversion digit limit, raising ValueError on inputs larger than ~1780 bytes. Keep the fast-path only for a non-standard 10-character charset and let the digits charset use the generic loop, which already handles all three cases.Configuration menu - View commit details
-
Copy full SHA for efeee08 - Browse repository at this point
Copy the full SHA efeee08View commit details -
Fixed KeyError on bare crc16 and crc codecs
The width-16 and crc-a variant tables were the only ones without a '' default entry, so encode(data, "crc16") and bare "crc" raised KeyError: '' instead of resolving like every other width. Default them to CRC-16/ARC and CRC-A respectively (both already present as named aliases).
Configuration menu - View commit details
-
Copy full SHA for 1ad4370 - Browse repository at this point
Copy the full SHA 1ad4370View commit details
Commits on Jul 21, 2026
-
Merge pull request #47 from gaoflow/fix-crc-bare-name-defaults
Fixed KeyError on bare crc16 and crc codecs
Configuration menu - View commit details
-
Copy full SHA for 4c234d3 - Browse repository at this point
Copy the full SHA 4c234d3View commit details -
Merge pull request #46 from gaoflow/fix-base10-fast-path
Fix base10 dropping leading zeros and corrupting some values on decode
Configuration menu - View commit details
-
Copy full SHA for 47482c2 - Browse repository at this point
Copy the full SHA 47482c2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 994014e - Browse repository at this point
Copy the full SHA 994014eView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff copilot/add-playfair-encoding...main