Event JSON
{
"id": "23db3d49f1a6c855fe54c6249767877e60c773a82bd5cb179ca159e2d2797c00",
"pubkey": "bfc36b013e82efd032fc4f0ac558e17ac24a330c3b53a175d590b71d42268a3d",
"created_at": 1723757161,
"kind": 1,
"tags": [
[
"proxy",
"https://fosstodon.org/@leonerd/112968149304949053",
"web"
],
[
"e",
"7026ec6bb51e2550adb84915534f2d5bb20d39c0cc48f1b3aca5ae6fd0fd8f1b",
"",
"root",
"f6fc28ed203a2a7c942c03aa2e3dabcdedf0ab5e217a65a67914fb432f028430"
],
[
"e",
"274a55c28f6c90c5d2a7c91e29a38666d561da74f9aed0532f4e44b81b58b45a",
"",
"reply",
"f6fc28ed203a2a7c942c03aa2e3dabcdedf0ab5e217a65a67914fb432f028430"
],
[
"p",
"f6fc28ed203a2a7c942c03aa2e3dabcdedf0ab5e217a65a67914fb432f028430"
],
[
"p",
"2707cfa3bc84dedef2b032ec96a666ee819cda9d8e1a09e652a55de62c430ccc"
],
[
"proxy",
"https://fosstodon.org/users/leonerd/statuses/112968149304949053",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://fosstodon.org/users/leonerd/statuses/112968149304949053",
"pink.momostr"
],
[
"-"
]
],
"content": "Python doesn't have variable capture from outer scopes, or closures; thus actual anonymous functions would be far less useful than you'd imagine.\n\nCompare:\n```perl\nmy @closures;\nforeach my $x ( 1 .. 10 ) {\n push @closures, sub { return $x };\n}\n```\n\neach of the ten closures pushed to the array captures the value $x had been when it was created. Invoking each would return its own captured value. Python's one doesn't do that.",
"sig": "3f072b3ce81f4274cc05d3bfdba84c9314057e896940a835566e1e78017a6c41db6e337fec1314a83ab2d958964aacf7cf955e096187fb84865f1719982318f4"
}