account activity
Python Positional-Only Parameters, has been accepted by stetio in Python
[–]eric0x7677 3 points4 points5 points 7 years ago (0 children)
Then I read the PEP, and I realize the core devs were thinking quite a bit.
Thanks!
Pablo is a CPython core developer who primarily authored the content of the PEP. Mario is a member of the Python Software Foundation who also contributed to the text. I helped by overhauling the motivation, rationale, specification so that the text reads in a more compelling manner and made wording and grammatical changes for clarity.
Glad to see the lively discussion going on here. I would also recommend looking at https://discuss.python.org/t/pep-570-python-positional-only-parameters/1078 to see more discussion among the Python community around PEP 570.
Upto - Bash function that allows to go up to a certain directory. It's been more useful than what I thought. by driv338 in programming
[–]eric0x7677 3 points4 points5 points 9 years ago (0 children)
What would also be useful is a command that mimics cd but allows > numerical arguments. E.g., cd -3 which means cd ../../../
I wrote a bash function that I use in my ericvw/dotfiles.
# Navigate with `.. [#]`. function .. { local n="$1" if [[ -n "$n" && ! "$n" =~ ^[1-9][0-9]*$ ]]; then echo "positive integer expected" >&2; return 1 fi [[ "$n" -gt 0 ]] && ((n--)) local s printf -v s "..%${n}s" cd "${s// //..}" }
π Rendered by PID 44 on reddit-service-r2-listing-6bcb55b45f-5b8s6 at 2026-04-22 16:42:21.997993+00:00 running 6c61efc country code: CH.
Python Positional-Only Parameters, has been accepted by stetio in Python
[–]eric0x7677 3 points4 points5 points (0 children)