Tagged articles
4 articles
Page 1 of 1
Data Party THU
Data Party THU
Aug 24, 2025 · Fundamentals

Why Does Python Do Things Differently? 9 Surprising Design Decisions Explained

This article explores nine common questions about Python’s design—from mandatory indentation and missing semicolons to the ellipsis literal, for‑else syntax, elif, the absence of a main() function, zero‑based indexing, the Global Interpreter Lock, and the difference between == and is—providing historical context, official explanations, and practical code examples.

ellipsisequality vs identityfor-else
0 likes · 10 min read
Why Does Python Do Things Differently? 9 Surprising Design Decisions Explained
Code Mala Tang
Code Mala Tang
Apr 3, 2025 · Fundamentals

Unlock Python’s Ellipsis (…) – Powerful Uses Beyond Slicing

Discover how Python’s three-dot ellipsis (…) isn’t just a placeholder but a versatile singleton object used for slicing multidimensional arrays, marking unfinished code, enhancing type hints, and even evaluating to True, with practical examples and insights into its unique behavior.

NumPyPythonSingleton
0 likes · 6 min read
Unlock Python’s Ellipsis (…) – Powerful Uses Beyond Slicing