BIP69: fix Python 3 compatibility in examples #1957

pull crisseee wants to merge 1 commits into bitcoin:master from crisseee:master changing 1 files +3 −2
  1. crisseee commented at 7:12 pm on September 6, 2025: none
    Replace deprecated cmp= parameter with key=cmp_to_key() in sorting functions. The cmp parameter was removed in Python 3, causing TypeError when running the example code
  2. BIP69: fix Python 3 compatibility in examples 6ef560c6b1
  3. jonatack commented at 10:26 pm on September 6, 2025: member
    Thank you @crisseee; closing here for now as this is a duplicate of #1943 (your review of that PR may be helpful).
  4. jonatack added the label Proposed BIP modification on Sep 6, 2025
  5. jonatack closed this on Sep 6, 2025

  6. crisseee commented at 8:40 am on September 7, 2025: none
    Ohhhhh, thanks!

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bips. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2025-09-13 09:10 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me