another near-sighted, time-wasting syntax enhancement idea

Fredrik Lundh fredrik at pythonware.com
Sun Jun 9 07:45:08 EDT 2002


Carl Banks wrote:
>
> class NewsConverse:
>         def write_reply (self, message):
>                 if self.poster_misses_point (message):
>                         self.set_paragraph_reply("Code scrunched up "
>                                                  "against the right "
>                                                  "margin can be pretty "
>                                                  "unreadable itself.")

class NewsConverse:
    def write_reply(self, message):
        if not self.poster_misses_point(message):
            return
        self.set_paragraph_reply(
            "Don't use ludicrous indentation settings,"
            "and learn to refactor to keep the depth"
            "under control."
        )

</F>





More information about the Python-list mailing list