Get the latest tech news

Python's pre-declared constants are kinda weird


6 pre-declared "constants": True, False, None, __debug__, Ellipsis (or equivalently ...), and NotImplemented. but they all behave slightly differently, for some reason.

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of python

python

Related news:

News photo

When str.lower() is a security vulnerability in Python

News photo

Thinking in Python

News photo

Show HN: Katharos Functional programming and CSP-style concurrency for Python