Skip to content
W

Why Python 3?

Python 3 is awesome. Upgrade today

#2262in Developer Tools
0In stores

Description

Why Python 3? is a single-page reference that shows, with short runnable code samples, the language features that make Python 3 worth moving…

Highlights

  • Code examples for over a dozen Python 3 features
  • Side-by-side comparison with Python 2 approaches
  • Covers f-strings, pathlib, enum, secrets, unpacking and more
  • Button to step through features one at a time

Ratings & Reviews

No ratings yet

Be the first to rate Why Python 3?.

People also visit

L

Laboratory

Achieving confident refactoring through experimentation with Python 2.7 & 3.3+

Developer Tools
Launch
D

dignified-python

Production-tested Python coding standards

AI Skills
Get
T

trailofbits/modern-python

Modern Python tooling with uv, ruff, ty, and pytest best practices

AI Skills
Get
P

python-pro

Building Python 3.11+ applications requiring type safety, async programming

AI Skills
Get
P

python-type-safety

Python type safety with type hints, generics, protocols

AI Skills
Get
P

python-patterns

Pythonic idioms, PEP 8 standards, type hints

AI Skills
Get

Why Python 3? FAQ

What is Why Python 3?

A web page that demonstrates useful Python 3 features with short code snippets, to encourage developers to upgrade from Python 2.

Which features does it cover?

Among others: redirect_stdout, ordered dictionaries, dictionary merging, ExitStack, f-strings, annotations, yield from, advanced unpacking, suppress, secrets, pathlib, lru_cache, keyword-only arguments, ipaddress and Enum.

Can I run the examples?

The page has a 'Try it out' option next to the code samples.

Is the source available?

The page links to a GitHub repository at github.com/kichik/whypy3.

What are the best Why Python 3? alternatives?

Popular alternatives to Why Python 3? include Laboratory, Python Devtools and Pybites. See all Why Python 3? alternatives

Developer Stuff

Badges