Title: Update hashlib to Python 3.14.2 by Copilot · Pull Request #6862 · RustPython/RustPython · GitHub
Open Graph Title: Update hashlib to Python 3.14.2 by Copilot · Pull Request #6862 · RustPython/RustPython
X Title: Update hashlib to Python 3.14.2 by Copilot · Pull Request #6862 · RustPython/RustPython
Description: Updates hashlib module and tests to Python 3.14.2 compatibility.
Changes
Updated Lib/hashlib.py and Lib/test/test_hashlib.py from CPython v3.14.2 using update_lib tooling, preserving 10 RustPython TODO markers
Created _sha2 module (crates/stdlib/src/sha2.rs): Python 3.14 consolidated _sha256 and _sha512 into a single _sha2 module providing all SHA-2 family functions (sha224, sha256, sha384, sha512)
Added openssl_md_meth_names attribute to _hashlib module: Returns frozenset of available hash algorithms, required by Python 3.14's hashlib.py to populate algorithms_available
Test Status
82 tests run: 8 expected failures (matching TODO markers), 2 TODO tests skipped (urlfetch disabled), 15 platform/resource skips.
Original prompt
This section details on the original issue you should resolve
Open Graph Description: Updates hashlib module and tests to Python 3.14.2 compatibility. Changes Updated Lib/hashlib.py and Lib/test/test_hashlib.py from CPython v3.14.2 using update_lib tooling, preserving 10 RustPytho...
X Description: Updates hashlib module and tests to Python 3.14.2 compatibility. Changes Updated Lib/hashlib.py and Lib/test/test_hashlib.py from CPython v3.14.2 using update_lib tooling, preserving 10 RustPytho...
Opengraph URL: https://github.com/RustPython/RustPython/pull/6862
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:57aad84b-baa8-89ef-08ba-664c49fc30af |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D1CC:DB4DE:86B974:B49F1E:6A600B90 |
| html-safe-nonce | cfbf1b2a4e6d4b7bdc7051d2e0985cbe3a378bc3048cdac4df51f6eec70f55a3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMUNDOkRCNERFOjg2Qjk3NDpCNDlGMUU6NkE2MDBCOTAiLCJ2aXNpdG9yX2lkIjoiMzUzNTM2NTI4MTk4MTQyODY0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 479e6e7ff14721a8e47f7f4ddfb607620e1fc52288abde13c8947dc1317f2a37 |
| hovercard-subject-tag | pull_request:3206115545 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/RustPython/RustPython/pull/6862/files |
| twitter:image | https://avatars.githubusercontent.com/in/1143301?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/in/1143301?s=400&v=4 |
| og:image:alt | Updates hashlib module and tests to Python 3.14.2 compatibility. Changes Updated Lib/hashlib.py and Lib/test/test_hashlib.py from CPython v3.14.2 using update_lib tooling, preserving 10 RustPytho... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 48cb2ed2304f8ae5a4a05d6327faf70466c4c0d9dcbf7b9df76251ca9c669a90 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git |
| octolytics-dimension-user_id | 39710557 |
| octolytics-dimension-user_login | RustPython |
| octolytics-dimension-repository_id | 135201145 |
| octolytics-dimension-repository_nwo | RustPython/RustPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 135201145 |
| octolytics-dimension-repository_network_root_nwo | RustPython/RustPython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | cb0f10a384099e0765239a7cc220992cae52bdba |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width