X Tutup
The Wayback Machine - https://web.archive.org/web/20251113073111/https://github.com/python/cpython/pull/92369
Skip to content

Conversation

@landfillbaby
Copy link
Contributor

@landfillbaby landfillbaby commented May 6, 2022

they've been in zlib since v1.2.9, so why not use them? also use PyLong_FromUnsignedLong directly to avoid useless clinic error checks
feel free to squash this with an edited commit message

@bedevere-bot
Copy link

Every change to Python requires a NEWS entry.

Please, add it using the blurb_it Web app or the blurb command-line tool.

@landfillbaby
Copy link
Contributor Author

not sure about the small buffers thing... maybe i should leave that part in

@landfillbaby landfillbaby force-pushed the main branch 4 times, most recently from 3041f38 to b475212 Compare May 6, 2022 13:31
@landfillbaby
Copy link
Contributor Author

should there be macro like ZLIB_COMPAT or something to force the pre-v1.2.9 behaviour?

@landfillbaby landfillbaby changed the title use crc32_z and adler32_z use crc32_z and adler32_z if available at compile time May 6, 2022
@rhettinger
Copy link
Contributor

Personally, I find the existing code to be simpler and don't see any advantage to adding an unnecessary #ifdef code path. That makes the code harder to read and harder to achieve test coverage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

X Tutup