Python Keyword Argument Order
>>> def f(a, b, c): ... print(a, b, c) ... >>> f(c = 3, a = 2, b = 1) 2 1 3 >>> Always has been How long does Python act like this?
Two astronauts stand on the Moon, with one pointing a gun at the other beneath the caption “Always has been.” A Python console demonstrates that keyword arguments are printed in the function’s parameter order rather than the order they were passed, making the joke a programming reaction to Python’s consistent behavior.
- @profunctor_io / 7660 2022-01-18
- @dev_meme / 4267 2022-03-08
- Template
- Always Has Been
- Type
- image
- Size
- 800×445 · 55.0 KiB
- Mood
- саркастичный, абсурдный
- Language
- en
- Added