Trey Hunner 🐍 on Nostr: You've asked for help on the built-in sorted() function in Python and you're shown ...
You've asked for help on the built-in sorted() function in Python and you're shown this:
sorted(iterable, /, *, key=None, reverse=False)
What do all those symbols mean? And does this function accept generators or files? 🤔
I've written up an explanation of how to understand the output of #Python's help function. 🧩
https://pym.dev/understanding-help/Published at
2024-09-17 15:43:00Event JSON
{
"id": "8f3e574e82ccd8f61ca4df3cf9228cbe5e710ccb88edd78572b346170708c61a",
"pubkey": "7e9159fbfd5526415c8d2de2e4c7654e3660883f9ccae720a70fa3c1f3cf1f45",
"created_at": 1726587780,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.social/@treyhunner/113153656813310084",
"web"
],
[
"t",
"python"
],
[
"proxy",
"https://mastodon.social/users/treyhunner/statuses/113153656813310084",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://mastodon.social/users/treyhunner/statuses/113153656813310084",
"pink.momostr"
],
[
"-"
]
],
"content": "You've asked for help on the built-in sorted() function in Python and you're shown this:\n\nsorted(iterable, /, *, key=None, reverse=False) \n\nWhat do all those symbols mean? And does this function accept generators or files? 🤔\n\nI've written up an explanation of how to understand the output of #Python's help function. 🧩\n\nhttps://pym.dev/understanding-help/",
"sig": "91267dd1169da85dc6713003aeb81a56fe435fa483de05342d3e20f04ffa7c6b263d922e8837b400246b57623692245eb7ae9b944a5a0d9203d89b6dd10b6d10"
}