Re: Python coding style

2020-07-15 Thread Jean Abou Samra
Hi, Le 02/07/2020 à 09:05, Han-Wen Nienhuys a écrit : You can also do a global cleanup. We have done this in the past, but it has the disadvantage that it makes history (eg. git-blame) harder to read. So, I did the global cleanup: https://gitlab.com/lilypond/lilypond/-/merge_requests/251

Re: Python coding style

2020-07-02 Thread Han-Wen Nienhuys
On Wed, Jul 1, 2020 at 2:03 PM Jean Abou Samra wrote: > The Contributor's Guide (10.5.1) clearly states that "Python code should > use PEP 8". So, I'd like to be sure everyone agrees on the following points > which are part of applying this PEP: to me it's a no-brainer to introduce automatic

Re: Python coding style

2020-07-01 Thread Noeck
For automatic PEP8 formatting, there is autopep8: https://pypi.org/project/autopep8/ and yapf: https://pypi.org/project/yapf/ among others. Cheers, Joram

Re: Python coding style

2020-07-01 Thread Carl Sorensen
On Wed, Jul 1, 2020 at 10:55 AM Jean Abou Samra wrote: > Hi Carl, > > Thanks for your reply. > Le 01/07/2020 à 17:05, Carl Sorensen a écrit : > > Hi Jean, > > On Wed, Jul 1, 2020 at 6:03 AM Jean Abou Samra wrote: > >> Hi everybody, >> >> There is some discussion in !212 about coding style

Re: Python coding style

2020-07-01 Thread Jean Abou Samra
Hi Carl, Thanks for your reply. Le 01/07/2020 à 17:05, Carl Sorensen a écrit : Hi Jean, On Wed, Jul 1, 2020 at 6:03 AM Jean Abou Samra > wrote: Hi everybody, There is some discussion in !212 about coding style inside our Python scripts. The

Re: Python coding style

2020-07-01 Thread Carl Sorensen
Hi Jean, On Wed, Jul 1, 2020 at 6:03 AM Jean Abou Samra wrote: > Hi everybody, > > There is some discussion in !212 about coding style inside our Python > scripts. > > The Contributor's Guide (10.5.1) clearly states that "Python code should > use PEP 8". So, I'd like to be sure everyone agrees

Re: python coding style question

2009-01-01 Thread Jan Nieuwenhuizen
Op donderdag 01-01-2009 om 09:56 uur [tijdzone +0100], schreef Werner LEMBERG: ? I could imagine that the latter gets executed faster, at least if no .pyc files are created. Faster is not interesting, most of the time. Is this just convenience or is this a question of coding style? It is

Re: python coding style question

2009-01-01 Thread Han-Wen Nienhuys
On Thu, Jan 1, 2009 at 6:56 AM, Werner LEMBERG w...@gnu.org wrote: ? I could imagine that the latter gets executed faster, at least if no .pyc files are created. Is this just convenience or is this a question of coding style? The %s style gets hairy when there are lots of substitutions,