Tag: Python
All the articles with the tag "Python".
Selecting more than one tag in the sidebar shows only posts that have every selected tag.
- #Contribution#x402#Python
x402: A skipHandler That Skipped the Payment Too
In x402's TypeScript, Python, and Go servers, a request whose hook returned skipHandler bypassed the before-handler settle. On upfront it returned 200 with no settlement; on escrow it broke capture. A PR that moves the skip after that settle, checked against real escrow programs on forked chains.
5 min read - #Contribution#Python#x402
x402: A V1 Payment Header That Crashed the Python Server
In the x402 Python SDK, the V2-only HTTP resource server passed a decoded V1 payment payload on to requirement matching, which read a field V1 doesn't have and returned 500. A PR that rejects V1 payloads before matching, so the client gets a 402.
3 min read - #Contribution#Python#CI/CD
web3-utils: A Version Gate That Couldn't Read Prereleases
stakefish/web3-utils.py's CI version gate compared versions by keeping only their numeric parts, so beta and rc numbers turned into patch numbers. It rejected valid promotions and let a downgrade through. A PR that switches to packaging.version.
3 min read - #Contribution#Python#Ethereum
web3-utils: An RPC Retry That web3 7 Quietly Broke
In stakefish/web3-utils.py, RPC timeout retries checked for ValueError, but web3 7 raises Web3RPCError. Reproducing it by mocking at the provider, then a review that showed the fix would also retry transaction submission, and the allowlist that followed.
Updated:8 min read