Tom Ritchford on Nostr: There's a convention that members of a namespace or class that have a special meaning ...
There's a convention that members of a namespace or class that have a special meaning to the Python interpreter are always surrounded by double underscores.
Seeing files like __init__.py or __main__.py and directories like __cache__/ let you know that they have a special meaning to Python.
They also all collate together at the end in a directory listing.
Published at
2024-06-11 08:06:22Event JSON
{
"id": "71b2da7650e98ec7ecb53ab89be6fe0d52546d826bd0f4d973421b40cc8fe7b0",
"pubkey": "a3a054a7080072b8903b01ebaef06bc4c40bc312d4dc5eaa1ac317948e4c2c15",
"created_at": 1718093182,
"kind": 1,
"tags": [
[
"p",
"17d542ea0004d8491eaa3c1136938d862a3ee0616c2fab7985d656642a82b0cd"
],
[
"e",
"5609f530eabe25ec02c00aa36bbcf204e9fae06545d7fa60325dd4dc06cc551f",
"",
"root"
],
[
"proxy",
"https://toot.community/@TomSwirly/112596954818116860",
"web"
],
[
"proxy",
"https://toot.community/users/TomSwirly/statuses/112596954818116860",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://toot.community/users/TomSwirly/statuses/112596954818116860",
"pink.momostr"
]
],
"content": "There's a convention that members of a namespace or class that have a special meaning to the Python interpreter are always surrounded by double underscores.\n\nSeeing files like __init__.py or __main__.py and directories like __cache__/ let you know that they have a special meaning to Python.\n\nThey also all collate together at the end in a directory listing.",
"sig": "e98749b2ab3453289e8707a09b6583dfb6c7a6e1572c43d21c5dfca8b997d584ba79eb7b664167e0185ad31107cdc00057f93c04bcc673fde6f7d7e426c8ce0a"
}