[Python-checkins] python/dist/src/Lib textwrap.py,NONE,1.1

Fred L. Drake, Jr. fdrake@acm.org
Fri, 7 Jun 2002 17:02:05 -0400


gward@users.sourceforge.net wrote:
 > # XXX is this going to be implemented properly somewhere in 2.3?
 > def islower (c):
 >     return c in string.lowercase
...
 >     def __init__ (self):
 >         self.expand_tabs = 1
 >         self.replace_whitespace = 1
 >         self.break_long_words = 1

Neal Norwitz writes:
 > Should use True?

Definately!

Function and method definitions should also be:

def func(arg):
    pass

rather than:

def func (arg):
    pass

(Note the extra space before the args list in Greg's code.)


  -Fred

-- 
Fred L. Drake, Jr.  <fdrake at acm.org>
PythonLabs at Zope Corporation