PEP 526 - var annotations and the spirit of python

Chris Angelico rosuav at
Thu Jul 5 03:05:30 EDT 2018

On Thu, Jul 5, 2018 at 4:58 PM, Steven D'Aprano
<steve+comp.lang.python at> wrote:
>> Optimize for readability, not writability.
> And that is why we all hold COBOL up as the paragon of excellence for a
> programming language! *wink*
> Or if you don't like COBOL, how about Hypertalk?
> put 42 into x
> ask file "Which file would you like to open?" with "default.txt"
> if it is empty exit to Hypercard
> put it into thefile
> open file thefile
> repeat with num = 1 to x
>   write "spam" to file thefile
> end repeat
> close file thefile

Using Chai and Mocha to test a Node.js web app ends up looking a bit
like that, actually. You perform a request, then make assertions:


etc etc etc.


More information about the Python-list mailing list