lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

python coding style question


From: Werner LEMBERG
Subject: python coding style question
Date: Thu, 01 Jan 2009 09:56:19 +0100 (CET)

In lilypond-book I see stuff like this:

  base = self.basename ()

  single = '%(base)s.png' % vars ()
  multiple = '%(base)s-page1.png' % vars ()

Why isn't this written as

  base = self.basename ()

  single = '%s.png' % base
  multiple = '%s-page1.png' % base

?  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?


    Werner




reply via email to

[Prev in Thread] Current Thread [Next in Thread]