Charles on Nostr: :twiz: It is funny, no doubt about that. Luckily it's something that most newcomers ...
:twiz: (npub1ygr…cg6z) It is funny, no doubt about that. Luckily it's something that most newcomers won't run into by accident, and therefore won't be confused by.
Python's been around for >30 years now. It has its share of historical baggage, and some of it trips up newcomers. Some of those could be fixed, but would break backwards compatibility. It's a tradeoff.
My favourite tripping hazard for the new:
>>> a = (6)
>>> a
6
>>> b = (6, )
>>> b
(6,)
>>> a == b
False
Published at
2023-05-04 23:31:28Event JSON
{
"id": "3b53e9481403ed3f4fc1ffd22d3393b7a7b2ec09ef96a04788d65d99c95566e7",
"pubkey": "0b7a2ac9f912cf6dd7350bd7b5c406f41752a2ce3a4a846b93157c8f89a7956e",
"created_at": 1683243088,
"kind": 1,
"tags": [
[
"p",
"22069a052fedec4210734322b71360c0bc1eb35081363bb6457ff90c6cbffc04",
"wss://relay.mostr.pub"
],
[
"e",
"74fd4e45ba0bc01ae6b28ede1ff0daa733f2514b9b79d0aa7488a3eb74f1fd7e",
"wss://relay.mostr.pub",
"reply"
],
[
"mostr",
"https://mindly.social/users/cazabon/statuses/110313019080533876"
]
],
"content": "nostr:npub1ygrf5pf0ahkyyyrngv3twymqcz7pav6ssymrhdj90luscm9llszq56cg6z It is funny, no doubt about that. Luckily it's something that most newcomers won't run into by accident, and therefore won't be confused by.\n\nPython's been around for \u003e30 years now. It has its share of historical baggage, and some of it trips up newcomers. Some of those could be fixed, but would break backwards compatibility. It's a tradeoff.\n\nMy favourite tripping hazard for the new:\n\n\u003e\u003e\u003e a = (6)\n\u003e\u003e\u003e a\n6\n\u003e\u003e\u003e b = (6, )\n\u003e\u003e\u003e b\n(6,)\n\u003e\u003e\u003e a == b\nFalse",
"sig": "b026691f58e22e0acccf43b9481a79700689c91f33d4c78734b32b5a1630534872ad866395f69ef47fcc02bba6d7f9bf887c2be3270381245f3b704885c1b35a"
}