Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

FYI that code sample is broken, it should be `(int(many()),)`

Ironic I guess?



It's not broken (try it!). Any value is interpreted as an implicit 1-tuple if it's not a tuple nor a dict. A better example would have been `"..." % many()` where `many` returns a tuple or dict.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: