A question came up recently about the purpose of the Python yield expression and when you should use it. Consider this silly function that computes a list of integers from 0 to 99 raised to the given exponent: When called, this function runs thru all 100 integers in the range computing each term and then returns the… Continue reading What The Heck Is Yield For?
Erik O'Shaughnessy
Husband, father, hacker, gamer, storyteller, egregeous guitarist, hoplophile, space enthusiast, UNIX system programmer, scuba diver, amatuer radio operator, remote-control neophyte, part-time sci-fi snob, passing cartoonist, enthusiastic karateka, whiskey drinker, acolyte of Schwa, semi-good pythonista, recovering trombonist, mechanical keyboard afficiando, unapologetic Apple fanboi, pickup truck driver, naked-eye exoplanet hunter and seriously grouchy in the morning before the first cup of coffee.
Exploring the Modern Python Command-Line Interface
By Erik O'Shaughnessy on 27 April 2020
Delve into the why and the how of writing command-line tools using Python.
A Short Primer on Assemblers, Compilers and Interpreters
By Erik O'Shaughnessy on 9 October 2018
A gentle introduction to the historical evolution of programming practices.