weilawei on Nostr: Since people are doing roasting Javascript, I'll roast Python quirks. It's a language ...
Since people are doing roasting Javascript, I'll roast Python quirks. It's a language I like and use a bunch, but has sharp corners in unexpected places. Traps for new players.
>>> a = 256
>>> a is 256
True
>>> a = 257
>>> a is 257
False
#Python #programming
Published at
2024-05-21 14:56:27Event JSON
{
"id": "9065cc2b8901d1a18d71d6c134fa3dddc4aa367c833acd966a4cbbd4a9a582b3",
"pubkey": "cec5a392d62eb562eb544d4e707e22ff6fda8d0ebca281ab79351dcefabaf63b",
"created_at": 1716303387,
"kind": 1,
"tags": [
[
"t",
"python"
],
[
"t",
"programming"
],
[
"proxy",
"https://mastodon.online/users/weilawei/statuses/112479658807848823",
"activitypub"
]
],
"content": "Since people are doing roasting Javascript, I'll roast Python quirks. It's a language I like and use a bunch, but has sharp corners in unexpected places. Traps for new players.\n\n\u003e\u003e\u003e a = 256\n\u003e\u003e\u003e a is 256\nTrue\n\u003e\u003e\u003e a = 257\n\u003e\u003e\u003e a is 257\nFalse\n\n#Python #programming",
"sig": "daa84aaa6f23f783948abdd3eec406d95b88c6ef1089ba308ac158462d0318ea09dd846c78fa6cd7a5e3d63dc6db5c64670fb838ea8df513716918141f91685e"
}