Elektrine lite

← Feed

@normplum@fosstodon.org

Post #1158413

2026-03-24 23:05 UTC

Today I learnt (realised) that #Python's `json.loads()` and `json.dumps()` functions aren't plural versions of `json.load()` and `json.dump()`. The `s` stands for `string` (since they read/write from strings instead of files). #TIL #programming

Replies (1)

  • @bitprophet@social.coop 2026-03-25 04:52

    @normplum@fosstodon.org @phildini@wandering.shop it’s json.load for a normal amount of json, and json.loads if you need to parse LOADS of json! 🤪

    Open ##2898690