Re: Striving for PEP-8 compliance

2010-04-17 Thread Lie Ryan
On 04/17/10 16:20, Gregory Ewing wrote: > Steven D'Aprano wrote: >> On Wed, 14 Apr 2010 22:10:28 +0200, Hans Mulder wrote: >> >> Anybody who invents another brace-delimited language should be beaten. You always end up with a big problem trying to make sure the braces are consistent w

Re: Striving for PEP-8 compliance

2010-04-16 Thread Gregory Ewing
Steven D'Aprano wrote: On Wed, 14 Apr 2010 22:10:28 +0200, Hans Mulder wrote: Anybody who invents another brace-delimited language should be beaten. You always end up with a big problem trying to make sure the braces are consistent with the program logic. Anybody who invents another programm

Re: Striving for PEP-8 compliance

2010-04-14 Thread Steven D'Aprano
On Wed, 14 Apr 2010 22:10:28 +0200, Hans Mulder wrote: >> Anybody who invents another brace-delimited language should be beaten. >> You always end up with a big problem trying to make sure the braces are >> consistent with the program logic. > > Anybody who invents another programming language sh

Re: Striving for PEP-8 compliance

2010-04-14 Thread Steve Howell
On Apr 14, 1:10 pm, Hans Mulder wrote: > Grant Edwards wrote: > > On 2010-04-09, Lawrence D'Oliveiro > > wrote: > >> In message <4bbf6eb8$0$1670$742ec...@news.sonic.net>, John Nagle wrote: > > >>> Lawrence D'Oliveiro wrote: > > In message , > Gabriel Genellina wrote: > > > If you o

Re: Striving for PEP-8 compliance

2010-04-14 Thread Hans Mulder
Grant Edwards wrote: On 2010-04-09, Lawrence D'Oliveiro wrote: In message <4bbf6eb8$0$1670$742ec...@news.sonic.net>, John Nagle wrote: Lawrence D'Oliveiro wrote: In message , Gabriel Genellina wrote: If you only reindent the code (without adding/removing lines) then you can compare the co

Re: Striving for PEP-8 compliance

2010-04-11 Thread Grant Edwards
On 2010-04-11, Lawrence D'Oliveiro wrote: > The problem isn?t that it?s ?incorrectly? indented, it?s two > different pieces of code (correctly) indented according to two > different conventions, and how you reconcile them without introducing > logic errors into the code. I've never run into that

Re: Striving for PEP-8 compliance

2010-04-11 Thread Duncan Booth
Lawrence D'Oliveiro wrote: >> The same goes for indentation. In python it's not possible to write >> a program to correctly indent code that isn't alaready correctly >> indented. > > The problem isn’t that it’s “incorrectly” indented, it’s two > different pieces of code (correctly) i

Re: Striving for PEP-8 compliance

2010-04-11 Thread Lawrence D'Oliveiro
In message , Grant Edwards wrote: > On 2010-04-10, Lawrence D'Oliveiro > wrote: > >> In message , Grant Edwards wrote: >> >>> On 2010-04-10, Lawrence D'Oliveiro >>> wrote: >>> In message , Grant Edwards wrote: > Anybody who invents another brace-delimited language should be beaten.

Re: Striving for PEP-8 compliance

2010-04-11 Thread Lawrence D'Oliveiro
In message <87sk73jxl0@benfinney.id.au>, Ben Finney wrote: > What happens whe you're trying to reconcile two different > block-delimiter conventions? For example? -- http://mail.python.org/mailman/listinfo/python-list

Re: Striving for PEP-8 compliance

2010-04-10 Thread Patrick Maupin
On Apr 10, 5:10 am, Lawrence D'Oliveiro wrote: > In message <18988a53-e88f-4abf- > > a83a-314b16653...@x12g2000yqx.googlegroups.com>, Patrick Maupin wrote: > > I want nothing to do with any programmer who would mis-indent their > > code. > > But what happens when you’re trying to reconcile two dif

Re: Striving for PEP-8 compliance

2010-04-10 Thread Grant Edwards
On 2010-04-10, Lawrence D'Oliveiro wrote: > In message , Grant Edwards wrote: > >> On 2010-04-10, Lawrence D'Oliveiro >> wrote: >> >>> In message , Grant Edwards wrote: >>> Anybody who invents another brace-delimited language should be beaten. You always end up with a big problem trying

Re: Striving for PEP-8 compliance

2010-04-10 Thread Ben Finney
I'm interested that you are holding what appear to be contradictory arguments, and don't seem to apply each one to the other. Let me take the latest expressions of these and show how they can apply equally in either direction: Lawrence D'Oliveiro writes: > But what happens when you’re trying to

Re: Striving for PEP-8 compliance

2010-04-10 Thread Lawrence D'Oliveiro
In message , Grant Edwards wrote: > On 2010-04-10, Lawrence D'Oliveiro > wrote: > >> In message , Grant Edwards wrote: >> >>> Anybody who invents another brace-delimited language should be beaten. >>> You always end up with a big problem trying to make sure the braces >>> are consistent with the

Re: Striving for PEP-8 compliance

2010-04-10 Thread Lawrence D'Oliveiro
In message <18988a53-e88f-4abf- a83a-314b16653...@x12g2000yqx.googlegroups.com>, Patrick Maupin wrote: > I want nothing to do with any programmer who would mis-indent their > code. But what happens when you’re trying to reconcile two different indentation conventions? In Python, there can be pro

Re: Striving for PEP-8 compliance

2010-04-09 Thread Steven D'Aprano
On Sat, 10 Apr 2010 10:31:58 +1200, Lawrence D'Oliveiro wrote: > In message <4bbf6eb8$0$1670$742ec...@news.sonic.net>, John Nagle wrote: > >> Lawrence D'Oliveiro wrote: >> >>> In message , >>> Gabriel Genellina wrote: >>> If you only reindent the code (without adding/removing lines) then >>

Re: Striving for PEP-8 compliance

2010-04-09 Thread Patrick Maupin
On Apr 9, 5:31 pm, Lawrence D'Oliveiro wrote: > >> Anybody who ever creates another indentation-controlled language should > >> be beaten to death with a Guido van Rossum voodoo doll. > > >     No ... > > Yes, because otherwise you wouldn’t have stupid problems like the one which > is preoccupying

Re: Striving for PEP-8 compliance

2010-04-09 Thread Grant Edwards
On 2010-04-10, Lawrence D'Oliveiro wrote: > In message , Grant Edwards wrote: > >> Anybody who invents another brace-delimited language should be beaten. >> You always end up with a big problem trying to make sure the braces >> are consistent with the program logic. > Would you prefer ???begin???

Re: Striving for PEP-8 compliance

2010-04-09 Thread Lawrence D'Oliveiro
In message , Grant Edwards wrote: > Anybody who invents another brace-delimited language should be beaten. > You always end up with a big problem trying to make sure the braces > are consistent with the program logic. Would you prefer “begin” and “end” word symbols, then? -- http://mail.python.o

Re: Striving for PEP-8 compliance

2010-04-09 Thread Grant Edwards
On 2010-04-09, Lawrence D'Oliveiro wrote: > In message <4bbf6eb8$0$1670$742ec...@news.sonic.net>, John Nagle wrote: > >> Lawrence D'Oliveiro wrote: >> >>> In message , >>> Gabriel Genellina wrote: >>> If you only reindent the code (without adding/removing lines) then you can compare the

Re: Striving for PEP-8 compliance

2010-04-09 Thread Lawrence D'Oliveiro
In message <4bbf6eb8$0$1670$742ec...@news.sonic.net>, John Nagle wrote: > Lawrence D'Oliveiro wrote: > >> In message , >> Gabriel Genellina wrote: >> >>> If you only reindent the code (without adding/removing lines) then you >>> can compare the compiled .pyc files (excluding the first 8 bytes tha

Re: Striving for PEP-8 compliance

2010-04-09 Thread John Nagle
Lawrence D'Oliveiro wrote: In message , Gabriel Genellina wrote: If you only reindent the code (without adding/removing lines) then you can compare the compiled .pyc files (excluding the first 8 bytes that contain a magic number and the source file timestamp). Remember that code objects contai

Re: Striving for PEP-8 compliance

2010-04-07 Thread Chris Rebert
On Wed, Apr 7, 2010 at 5:35 PM, Lawrence D'Oliveiro <@> wrote: > In message , Gabriel > Genellina wrote: > >> If you only reindent the code (without adding/removing lines) then you can >> compare the compiled .pyc files (excluding the first 8 bytes that contain >> a magic number and the source file

Re: Striving for PEP-8 compliance

2010-04-07 Thread Lawrence D'Oliveiro
In message , Gabriel Genellina wrote: > If you only reindent the code (without adding/removing lines) then you can > compare the compiled .pyc files (excluding the first 8 bytes that contain > a magic number and the source file timestamp). Remember that code objects > contain line number informat

Re: Striving for PEP-8 compliance

2010-04-07 Thread Lawrence D'Oliveiro
In message , Tom Evans wrote: > I've written a bunch of internal libraries for my company, and they > all use two space indents, and I'd like to be more consistent and > conform to PEP-8 as much as I can. “A foolish consistency is the hobgoblin of little minds” — Ralph Waldo Emerson -- http

Re: Striving for PEP-8 compliance

2010-04-07 Thread Robert Kern
On 2010-04-07 11:06 AM, Tom Evans wrote: On Wed, Apr 7, 2010 at 4:10 PM, geremy condra wrote: On Wed, Apr 7, 2010 at 10:53 AM, Tom Evans wrote: [ Please keep me cc'ed, I'm not subscribed ] Hi all I've written a bunch of internal libraries for my company, and they all use two space indents,

Re: Striving for PEP-8 compliance

2010-04-07 Thread Tom Evans
On Wed, Apr 7, 2010 at 4:10 PM, geremy condra wrote: > On Wed, Apr 7, 2010 at 10:53 AM, Tom Evans wrote: >> [ Please keep me cc'ed, I'm not subscribed ] >> >> Hi all >> >> I've written a bunch of internal libraries for my company, and they >> all use two space indents, and I'd like to be more con

Re: Striving for PEP-8 compliance

2010-04-07 Thread Gabriel Genellina
En Wed, 07 Apr 2010 11:53:58 -0300, Tom Evans escribió: [ Please keep me cc'ed, I'm not subscribed ] Sorry; you may read this at http://groups.google.com/group/comp.lang.python/ I've written a bunch of internal libraries for my company, and they all use two space indents, and I'd like

Re: Striving for PEP-8 compliance

2010-04-07 Thread Gabriel Genellina
En Wed, 07 Apr 2010 11:53:58 -0300, Tom Evans escribió: [ Please keep me cc'ed, I'm not subscribed ] Sorry; you may read this at http://groups.google.com/group/comp.lang.python/ I've written a bunch of internal libraries for my company, and they all use two space indents, and I'd like

Re: Striving for PEP-8 compliance

2010-04-07 Thread Grant Edwards
On 2010-04-07, Tom Evans wrote: > [ Please keep me cc'ed, I'm not subscribed ] Sorry. I post via gmane.org, so cc'ing you would require some extra work, and I'm too lazy. > I've written a bunch of internal libraries for my company, and they > all use two space indents, and I'd like to be more c

Re: Striving for PEP-8 compliance

2010-04-07 Thread geremy condra
On Wed, Apr 7, 2010 at 10:53 AM, Tom Evans wrote: > [ Please keep me cc'ed, I'm not subscribed ] > > Hi all > > I've written a bunch of internal libraries for my company, and they > all use two space indents, and I'd like to be more consistent and > conform to PEP-8 as much as I can. > > My proble

Striving for PEP-8 compliance

2010-04-07 Thread Tom Evans
[ Please keep me cc'ed, I'm not subscribed ] Hi all I've written a bunch of internal libraries for my company, and they all use two space indents, and I'd like to be more consistent and conform to PEP-8 as much as I can. My problem is I would like to be certain that any changes do not alter the