Chuck,

will change the COL_SIZE fix this?

Massimo

On Feb 5, 5:53 pm, achipa <attila.cs...@gmail.com> wrote:
> Massimo:
>
> Yes, certainly, I'm not talking about aesthetics in terms of what
> pleases me, but what actually bothers/slows me down while working
> (subjective, of course). With wrapping as-is, half of the screen is
> empty and I scroll a lot more (IMO eye movement is cheaper than
> scrolling). I dare not imagine how this looks on a 16:9 monitor :)
> Consider this:
>
>                                     launchstr = \
>     "%s web2py.py -P -M -S %s -a 'recycle' -R %s"
>
> It's 93 chars, so I understand it gets wrapped, but I can no longer
> see/judge indentation in a blink of an eye :(
> Another case is when it splits things in a very inconvenient spot and
> (IMO) makes it harder to understand what's going on:
>
>                     if task.has_key('min') and not now_s.tm_min\
>                          in task['min']:
>                         go = False
>
> One more example of 'I didn't quite expect this':
>
>             if os.name == 'nt':
>                 proc = Popen([self.cmd], stdin=PIPE, stdout=PIPE,
>                              stderr=PIPE, shell=True)
>             else:
>                 proc = Popen(
>                     [self.cmd],
>                     stdin=PIPE,
>                     stdout=PIPE,
>                     stderr=PIPE,
>                     shell=True,
>                     close_fds=True,
>                     )
>
> I'm using vi(m). It really shows, doesn't it ? :)
>
> On Feb 5, 10:27 pm, Chuck Rhode <crh...@lacusveris.com> wrote:
>
> > mdipierro wrote this on Thu, Feb 05, 2009 at 01:12:07PM -0800.  My
> > reply is below.
>
> > > I ever followed pep8 because I too have my own readability
> > > standards.  nevertheless some people complained so much about the
> > > code not being pep8 compliant that I changed it.
> > > Aesthetic issues are subjective.
> > > On Feb 5, 3:00 pm, achipa <attila.cs...@gmail.com> wrote:
> > > > After merging in 1.56 with pep8 compliance I must admit I'm less
> > > > thrilled than I was initially :( As for whitespace within single
> > > > lines, it's ok and welcome, but when it comes to splitting lines,
> > > > in some cases it's just terrible. I'm all for standards but I
> > > > can't believe the line width enforcement, it just destroys
> > > > readability.
>
> > Yes, *PythonTidy* could be much more psychic in the way it wraps long
> > function calls, but I'm not -- apparently.  I'm waiting for a snazzy
> > algorithm that divides the separable from the inseparable to drop in
> > my lap.  A better solution is to ignore PEP8 (and howls of protest
> > from *emacs* editor users) and specify a longer output line length in
> > *PythonTidy*:
>
> > > COL_LIMIT = 132  # for example.
>
> > An even better solution is manually to refactor complex script
> > statements into a series of shorter ones, which is -- I believe --
> > beyond the scope of *PythonTidy* (but the same is true of all code
> > beautifiers).
>
> > --
> > .. Be Seeing You,
> > .. Chuck Rhode, Sheboygan, WI, USA
> > .. Weather:  http://LacusVeris.com/WX
> > .. 24° — Wind S 15 mph
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to