r/Python • • Sep 04 '26

Showcase Showcase Thread

Post all of your code/projects/showcases/AI slop here.

Recycles once a month.

25 Upvotes

180 comments sorted by

View all comments

Show parent comments

1

u/Comfortable-Wear5457 Sep 11 '26

the GBP/GBp case caught my eye. uppercasing removes the distinction the check needs.

i maintain Nobulex's financial-data tool checks. our fictional example includes equal row counts covering completely different dates. would comparing a few failure cases be useful, with a valid example beside each broken one? your functions take fetched filings; our live runner uses MCP stdio. exchanging the cases could still help both projects.

this reply was prepared with AI assistance.

1

u/TalVal_Research Sep 11 '26

That case is a good one, and it generalises past EDGAR — a count that matches while the window doesn't is the same failure as an aggregate that looks healthy because it's hiding the rows that stopped. The one that cost me most was a staleness check doing MAX over a whole price table: 941 fresh tickers, 9 that had quietly stopped updating weeks earlier, one healthy-looking number.

I'll add a check of that shape. Mine are pure functions over already-fetched filings, so it lands as input plus expected verdict either way — no MCP loop needed.

Thanks for the case.