Re: PEP8 and 4 spaces

2014-07-05 Thread Travis Griggs
> On Jul 4, 2014, at 11:29, Lie Ryan wrote: > >> On 04/07/14 07:55, Gregory Ewing wrote: >> Steven D'Aprano wrote: >> That's exactly the problem with tabs - whatever you think your code looks like with tabs, other people will see quite different picture. >>> >>> Why do you consider t

Re: PEP8 and 4 spaces

2014-07-05 Thread Chris Angelico
On Sat, Jul 5, 2014 at 12:47 PM, Rick Johnson wrote: > Of course, I'm anxiously await my friend to ask for a "drop > light" -- oh boy, that will be fun! >:^) Just wait till you get into theatre, and people start asking for parcans, domes, bubbles, gobos, gels, and workers. If you can't learn a li

Re: PEP8 and 4 spaces

2014-07-05 Thread Gregory Ewing
Rick Johnson wrote: Why is a handheld light called a flashlight? It does not flash, According to Wikipedia, originally it did: "Early flashlights ran on zinc–carbon batteries, which could not provide a steady electric current and required periodic 'rest' to continue functioning. Because thes

Re: PEP8 and 4 spaces

2014-07-05 Thread alister
On Sat, 05 Jul 2014 20:57:14 +1200, Gregory Ewing wrote: > Rick Johnson wrote: >> Why is a handheld light called a flashlight? It does not flash, > > According to Wikipedia, originally it did: > > "Early flashlights ran on zinc–carbon batteries, which could not provide > a steady electric curren

OT: Flashlights [was Re: PEP8 and 4 spaces]

2014-07-05 Thread Steven D'Aprano
On Fri, 04 Jul 2014 19:47:45 -0700, Rick Johnson wrote: > [A continuation of my last reply...] > > Here is a recent situation that occurred to me that showcases the > tendency of humans to carelessly bind illogical terms to common objects, I think you mean the tendency of certain people to go of

Re: PEP8 and 4 spaces

2014-07-05 Thread Ian Kelly
On Fri, Jul 4, 2014 at 8:00 PM, Rick Johnson wrote: > Strangly, I rather fancy the idea of using tabs in code,,, > which allow each viewer to view the code in his or her level > of indention,,, however, i cannot justify using a tab as a > replacement for a space. Tabs should be used for "tabular"

Re: PEP8 and 4 spaces

2014-07-05 Thread Roy Smith
In article , Ian Kelly wrote: > On Fri, Jul 4, 2014 at 8:00 PM, Rick Johnson > wrote: > > Strangly, I rather fancy the idea of using tabs in code,,, > > which allow each viewer to view the code in his or her level > > of indention,,, however, i cannot justify using a tab as a > > replacement fo

Re: PEP8 and 4 spaces

2014-07-05 Thread Robert Kern
On 2014-07-05 19:57, Ian Kelly wrote: On Fri, Jul 4, 2014 at 8:00 PM, Rick Johnson wrote: Strangly, I rather fancy the idea of using tabs in code,,, which allow each viewer to view the code in his or her level of indention,,, however, i cannot justify using a tab as a replacement for a space. T

Re: PEP8 and 4 spaces

2014-07-05 Thread Michael Torrie
On 07/04/2014 08:54 AM, Marko Rauhamaa wrote: > Grant Edwards : > >> Definitely. Indenting with tabs vs. spaces is mostly personal >> preference (though spaces are better!). But, mixing the two is right >> out, and should be stomped on hard. > > Often one person writes the code and another person

Re: PEP8 and 4 spaces

2014-07-05 Thread Mark Lawrence
On 05/07/2014 23:03, Michael Torrie wrote: On 07/04/2014 08:54 AM, Marko Rauhamaa wrote: Grant Edwards : Definitely. Indenting with tabs vs. spaces is mostly personal preference (though spaces are better!). But, mixing the two is right out, and should be stomped on hard. Often one person wri

Re: PEP8 and 4 spaces

2014-07-05 Thread Chris Angelico
On Sun, Jul 6, 2014 at 4:57 AM, Ian Kelly wrote: > I find it a little curious that nobody ever seems to advocate the use > of vertical tabs instead of repeated newlines. It should offer the > same benefit as horizontal tabs, namely that one could then > independently configure one's editor to sepa

Re: PEP8 and 4 spaces

2014-07-05 Thread Dan Sommers
On Sun, 06 Jul 2014 09:27:59 +1000, Chris Angelico wrote: > How often do you ever have multiple consecutive blank lines? My > newlines are either single (line end) or in pairs (one blank line), > and I don't remember having anything else (at least, not > intentionally). Greater separation than a b

Re: PEP8 and 4 spaces

2014-07-05 Thread Chris Angelico
On Sun, Jul 6, 2014 at 11:18 AM, Dan Sommers wrote: > On Sun, 06 Jul 2014 09:27:59 +1000, Chris Angelico wrote: > >> How often do you ever have multiple consecutive blank lines? My >> newlines are either single (line end) or in pairs (one blank line), >> and I don't remember having anything else (

Re: Why is regexp not working?

2014-07-05 Thread Denis McMahon
On Fri, 04 Jul 2014 14:27:12 +0200, Florian Lindner wrote: > self.regexps = [r"it (?P\d+) .* dt complete yes | > write-iteration-checkpoint |", > r"it (?P\d+) read ahead" My first thought is what is the effect of '|' as the last character in the regex? -- Denis McMahon, denismf