Ned Batchelder on Nostr: Nested loops can sometimes be replaced by one itertools.product() from the #Python ...
Nested loops can sometimes be replaced by one itertools.product() from the #Python stdlib:
Published at
2024-06-05 11:46:09Event JSON
{
"id": "e680a0ef7c741171c1b323faa6917ed7d64eda8284e2b111448c82907beda981",
"pubkey": "3c1a5dbc82cfc12f65f6bd9e283d71bd4a6f1ca853640666cfd5c856037806b1",
"created_at": 1717587969,
"kind": 1,
"tags": [
[
"t",
"python"
],
[
"proxy",
"https://hachyderm.io/users/nedbat/statuses/112563845187498099",
"activitypub"
]
],
"content": "Nested loops can sometimes be replaced by one itertools.product() from the #Python stdlib:\n\nhttps://media.hachyderm.io/media_attachments/files/112/563/845/047/003/924/original/bddba71c1ea3944a.png",
"sig": "0dcaff1c080a1b9afa3911b773b103bd4a6d7f7cd7a75cfe7de301466cc34175d3d99a8a298b416387264dc32cd015749edb99f90cb68b72ae7261113856ea8f"
}