Dustin Ingram - PEP 572: The Walrus Operator

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest. →

Dustin Ingram - PEP 572: The Walrus Operator

In this talk, we'll learn about a highly controversial change to Python syntax, the rationale for it, and the fallout as the result of it.

Along the way we'll go in-depth on how new ideas about Python are proposed, discussed, and become part of the language, what's unique about Python's process compared to other open source projects, and recent developments and what they mean for the future of the wider Python community.

https://us.pycon.org/2019/schedule/presentation/195/

PyCon 2019

May 04, 2019

Annual Pro sale · Save $30

Have presentations of your own?

Share with private links, password protection, and more control over your work.

Transcript

117 slides
  1. results = [] for x in data: result = f(x)

    if result: results.append(result) @di_codes
  2. results = [ y for x in data if (y

    := f(x)) ] @di_codes
  3. x = y = z = 0 # Yes (z

    := (y := (x := 0))) # No @di_codes
  4. x = 1, 2 # Sets x to (1, 2)

    (x := 1, 2) # Sets x to 1 @di_codes
  5. TIM PETERS: "THE CURRENT PROPOSAL WOULD HAVE ALLOWED A MODEST

    BUT CLEAR IMPROVEMENT IN QUITE A FEW BITS OF CODE." @di_codes
  6. BARRY WARSAW: "SINCE IT CHANGES THE SYNTAX OF THE LANGUAGE,

    PEOPLE TEND TO FOCUS ON THAT WITHOUT UNDERSTANDING THE DEEPER SEMANTIC ISSUES." @di_codes
  7. GUIDO VAN ROSSUM: HAD TO STOP READING THE THREADS SO

    HE WOULDN'T "GO INSANE" @di_codes
  8. ▸ PEP 8010 - The Technical Leader Governance Model ▸

    PEP 8011 - Python Governance Model Lead by Trio of Pythonistas ▸ PEP 8012 - The Community Governance Model ▸ PEP 8013 - The External Governance Model ▸ PEP 8014 - The Commons Governance Model ▸ PEP 8015 - Organization of the Python community ▸ PEP 8016 - The Steering Council Model @di_codes

More Decks by PyCon 2019

Other Decks in Programming