S.Lott -- Software Architect
  • Other Articles
  • Publications
  • S.Lott Biography

Welcome to Python: Some hints for ways to explain how truly bad the language is

Date Tue 02 November 2021 Tags #python / PEP

As an author with many books on Python, I'm captivated by people's hot takes on why Python is so epically bad. Really Bad. Uselessly Bad. Profoundly Broken. etc.

I'll provide some hints on topics that get repeated a lot. If you really need to write a blog post about how …

more ...

Mind the Gap -- mypy's slight lag behind Python 3.9

Date Tue 10 November 2020 Tags mypy / PEP / #python / type hints

Working on a new book. Fun stuff. It's going to cover Python 3.9.

I'm adding the type hints material. And that means PEP 585. Which means type hints for generics can use the generic types. We can use list[int] instead of List[int] and avoid from typing import …

more ...

Python Enhancement Proposal -- Floating an Idea

Date Tue 05 February 2019 Tags #python / object-oriented design / complexity / Design Principles / PEP

Consider the following code

def max(m: int, n: int) -> int:
    if m >= n:
        return m
    elif n >= m:
        return n
    else:
        raise Exception(f"Design Error: {vars()}")

There's a question about else: clause and the exception raised there.

  • It's impossible. In this specific case, a little algebra can provide …
more ...

  • Social

    • Mastodon
    • Github
    • StackOverflow
    • LinkedIn
    • O'Reilly
    • Amazon
  • Categories

    • Architecture & Design
    • Books
    • FOSS
    • Management
    • News
    • Python
    • Technologies
  • Links

    • Pelican
    • Python.org
    • Jinja2
  • Archive

    • November 2021 (1)
    • November 2020 (1)
    • February 2019 (1)

© 2021 S.Lott · Powered by pelican-bootstrap3, Pelican, Bootstrap

Back to top