79 chars or more?

D'Arcy J.M. Cain darcy at druid.net
Wed Aug 18 16:49:51 CEST 2010


On Wed, 18 Aug 2010 10:57:00 +0200
Jean-Michel Pichavant <jeanmichel at sequans.com> wrote:
> D'Arcy J.M. Cain wrote:
> > You can extend this if there are complicated sub-calls.  Probably
> > overkill for this example but here is the idea.
> >
> >            self.expiration_date = translate_date(
> >              find(
> >                response,
> >               'MPNExpirationDate',
> >              ).text,
> >              '%Y-%m-%d',
> >              '%m%d%Y'
> >            )
> >
> > I also moved the closing brace down to align with the line that opened
> > that block.
> >   
> If this is supposed to convice 80+ chars users, that's an epic failure :)
> This is exactly the kind of layout I'm happy to not use by not caring 
> about the line width.

As I said above, this was overkill designed to show the idea.  Of
course I would never split up short calls like that in real code.

-- 
D'Arcy J.M. Cain <darcy at druid.net>         |  Democracy is three wolves
http://www.druid.net/darcy/                |  and a sheep voting on
+1 416 425 1212     (DoD#0082)    (eNTP)   |  what's for dinner.



More information about the Python-list mailing list