Converting Python Scripts to meet PEP-8 (and bugs)
Posted: Mon Jul 15, 2013 5:14 am
Just to let everyone know, I took a suggestion from Adam to rework the Python scripts to meet the PEP-8 style standards (which suits me well as I am more a code mechanic than a program developer). In the last two days I have only managed to process 12 files and my initial estimation that this was NOT a trivial task were confirmed. Part of the slow pace is caused by my having to live in the Python language reference docs and being a complete tyro at Python coding.
Some of the difficulties are changing certain code practices (using isinstance() instead of using if type(x) == some type) and removing obsolete usages that will not be in Python3 (has_key..) Some of the deep indenting forces some creative implied continuation lines and seems to defeat the purpose of making the code easily readable. I am looking for input from the community where to break the rules of PEP-8 for the sake of readability.
I have tested the modified code as well as I can but more exhaustive testing will be needed to make sure I don't break something.
Also looking for suggestions as to the best way to submit the modified code. I am not set up to use a git repository and I'm not really familiar with using a version control system (comes from being an obsolete programmer.. ah, the good old days when everything was confusion!).
Some of the difficulties are changing certain code practices (using isinstance() instead of using if type(x) == some type) and removing obsolete usages that will not be in Python3 (has_key..) Some of the deep indenting forces some creative implied continuation lines and seems to defeat the purpose of making the code easily readable. I am looking for input from the community where to break the rules of PEP-8 for the sake of readability.
I have tested the modified code as well as I can but more exhaustive testing will be needed to make sure I don't break something.
Also looking for suggestions as to the best way to submit the modified code. I am not set up to use a git repository and I'm not really familiar with using a version control system (comes from being an obsolete programmer.. ah, the good old days when everything was confusion!).