|
|
Subscribe / Log in / New account

Positional-only parameters for Python

Positional-only parameters for Python

Posted Apr 11, 2019 9:39 UTC (Thu) by mgedmin (subscriber, #34497)
In reply to: Positional-only parameters for Python by juliank
Parent article: Positional-only parameters for Python

And for extra fun, _ has a special meaning in the REPL (it contains the value of the last expression).

$ python3
Python 3.6.7 (default, Oct 22 2018, 11:32:17)
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 2 + 2
4
>>> print("hi")
hi
>>> _
4


to post comments


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds