Python Code Review: LibreOffice Automation and the Python Standard Library

Veröffentlicht am: 21 März 2017
auf dem Kanal: Real Python
20,033
163

https://dbader.org/python-mastery ► Adopting an expert's mindset is the biggest factor for becoming great at Python

Python Code Review: Unplugged – Episode 5: Code Review for Roger

This is a Python code review I did for Roger's LibreOffice automation script. I do a PEP 8 cleanup pass on the code and then start refactoring and extracting functions to make the program easier to read.

In one instance I was also able replace several lines of code with a built-in function from the Python standard library.

You can get the original and refactored version of Roger's script at the link below:

https://gist.github.com/dbader/800638...

Did I miss anything? Anything that could be improved? Refactoring and talking at the same time is hard :) Leave a comment below and let me know!

FREE COURSE – "5 Thoughts on Mastering Python" https://dbader.org/python-mastery

SUBSCRIBE TO THIS CHANNEL: https://dbader.org/youtube

* *

► Python Developer MUGS, T-SHIRTS & MORE: https://nerdlettering.com

FREE Python Tutorials & News:
» Python Tutorials: https://dbader.org
» Python News on Twitter:   / @dbader_org  
» Weekly Tips for Pythonistas: https://dbader.org/newsletter
» Subscribe to this channel: https://dbader.org/youtube


Auf dieser Seite können Sie das Online-Video Python Code Review: LibreOffice Automation and the Python Standard Library mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Real Python 21 März 2017 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 20,033 Mal angesehen und es wurde von 163 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!