fluentpython / example-code

Example code for the book Fluent Python, 1st Edition (O'Reilly, 2015)
http://bit.ly/fluentpy
MIT License
5.56k stars 2.18k forks source link

Report an error on the file -- listcomp_speed.py #51

Closed Tom-max-spec closed 3 years ago

Tom-max-spec commented 3 years ago

My VSC runs _listcompspeed.py, it error when running print(label, *('{:.3f}'.format(x) for x in res)) ---- SyntaxError: Generator expression must be parenthesized