Re: [python-win32] Request for comments - the spaces issue

2008-05-28 Thread Tim Golden
bob gailer wrote: Tim Roberts wrote: bob gailer wrote: Mark Hammond wrote: In general, I *try* and stick to the Python Style Guide (http://www.python.org/dev/peps/pep-0008/) Interesting. I don't like the idea of 2 spaces after a period. Internet research on this topic seems to favor one

Re: [python-win32] Request for comments - the spaces issue

2008-05-28 Thread Vernon Cole
Let's not loose track of the thread here. The question was whether there should be a space between the function name and the leading parenthesis, as: my_function (arg) vs: my_function(arg) PEP8 clearly requires the latter. IMHO any published example code, which is what we are talking about

Re: [python-win32] Request for comments - the spaces issue

2008-05-28 Thread Tim Roberts
Vernon Cole wrote: Let's not loose track of the thread here. The question was whether there should be a space between the function name and the leading parenthesis, as: my_function (arg) vs: my_function(arg) PEP8 clearly requires the latter. PEP8 is a coding standard document for the

Re: [python-win32] Request for comments - the spaces issue

2008-05-28 Thread Tim Golden
Vernon Cole wrote: Let's not loose track of the thread here. The question was whether there should be a space between the function name and the leading parenthesis, as: my_function (arg) vs: my_function(arg) PEP8 clearly requires the latter. IMHO any published example code, which is what

Re: [python-win32] Request for comments - the spaces issue

2008-05-28 Thread Vernon Cole
Tim: I think you missed my point... As you say, the PEP8 style guide is a starting point for new Python coders. That is precisely why it ought to be followed in sample code. I normally format my function calls exactly the way you do, and I do so in open source code which I contribute to the

Re: [python-win32] Request for comments - the spaces issue

2008-05-28 Thread Dahlstrom, Roger
you want it. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vernon Cole Sent: Wednesday, May 28, 2008 1:56 PM To: Python-Win32 List Subject: Re: [python-win32] Request for comments - the spaces issue Tim: I think you missed my point... As you

Re: [python-win32] Request for comments - the spaces issue

2008-05-28 Thread Tim Roberts
Vernon Cole wrote: Tim: I think you missed my point... As you say, the PEP8 style guide is a starting point for new Python coders. That is precisely why it ought to be followed in sample code. I normally format my function calls exactly the way you do, and I do so in open source code which

Re: [python-win32] Request for comments - the spaces issue

2008-05-28 Thread Mike Driscoll
Vernon, Tim: I think you missed my point... As you say, the PEP8 style guide is a starting point for new Python coders. That is precisely why it ought to be followed in sample code. I normally format my function calls exactly the way you do, and I do so in open source code which I

Re: [python-win32] Request for comments - the spaces issue

2008-05-27 Thread Tim Roberts
bob gailer wrote: Mark Hammond wrote: In general, I *try* and stick to the Python Style Guide (http://www.python.org/dev/peps/pep-0008/) Interesting. I don't like the idea of 2 spaces after a period. Internet research on this topic seems to favor one space. I'm not sure where you got that.

Re: [python-win32] Request for comments - the spaces issue

2008-05-27 Thread bob gailer
Tim Roberts wrote: bob gailer wrote: Mark Hammond wrote: In general, I *try* and stick to the Python Style Guide (http://www.python.org/dev/peps/pep-0008/) Interesting. I don't like the idea of 2 spaces after a period. Internet research on this topic seems to favor one space. I'm not sure

Re: [python-win32] Request for comments - the spaces issue

2008-05-25 Thread Mark Hammond
In general, I *try* and stick to the Python Style Guide (http://www.python.org/dev/peps/pep-0008/), particularly for new code. This makes it easier to contribute code to Python itself, and a number of other projects (eg bzr) have a policy that requires contributed code conform (and indeed, they

Re: [python-win32] Request for comments - the spaces issue

2008-05-25 Thread bob gailer
Mark Hammond wrote: In general, I *try* and stick to the Python Style Guide (http://www.python.org/dev/peps/pep-0008/) Interesting. I don't like the idea of 2 spaces after a period. Internet research on this topic seems to favor one space. I notice when a PEP is set in monospace there are 2

Re: [python-win32] Request for comments - the spaces issue [SEC=PERSONAL]

2008-05-25 Thread Andrew MacIntyre
Interesting. I don't like the idea of 2 spaces after a period. Internet research on this topic seems to favor one space. I notice when a PEP is set in monospace there are 2 spaces after periods, otherwise 1 space. That seems inconsistent. It's not as inconsistent as might seem, as the two

Re: [python-win32] Request for comments - the spaces issue

2008-05-25 Thread Tim Golden
bob gailer wrote: Mark Hammond wrote: In general, I *try* and stick to the Python Style Guide (http://www.python.org/dev/peps/pep-0008/) Interesting. I don't like the idea of 2 spaces after a period. Internet research on this topic seems to favor one space. As it happens I'm with you on

Re: [python-win32] Request for comments - the spaces issue

2008-05-24 Thread Tim Golden
[bob gailer] Please omit the space before ( in code. I find that very distracting. Example: print result.Properties_ (sValue).Value # current print result.Properties_(sValue).Value # preferred, and how most code I've seen looks. [Tim Roberts] Do you understand that this is strictly a

Re: [python-win32] Request for comments - the spaces issue

2008-05-24 Thread Dahlstrom, Roger
] Request for comments - the spaces issue [bob gailer] Please omit the space before ( in code. I find that very distracting. Example: print result.Properties_ (sValue).Value # current print result.Properties_(sValue).Value # preferred, and how most code I've seen looks. [Tim Roberts] Do

Re: [python-win32] Request for comments - the spaces issue

2008-05-24 Thread Michael Foord
PROTECTED] On Behalf Of Tim Golden Sent: Saturday, May 24, 2008 4:28 AM Cc: Python-Win32 List Subject: Re: [python-win32] Request for comments - the spaces issue [bob gailer] Please omit the space before ( in code. I find that very distracting. Example: print result.Properties_ (sValue).Value

Re: [python-win32] Request for comments - the spaces issue

2008-05-24 Thread bob gailer
Tim Golden wrote: [snip] Likewise I imagine there are many who find my two-spaces indent style cluttered while I find even four and certainly any more to be grotesquely elongated. I also prefer the 2 space indent! I also realize that when I wrote my previous reply I was not conscious that

Re: [python-win32] Request for comments - the spaces issue

2008-05-24 Thread Michael Foord
bob gailer wrote: Tim Golden wrote: [snip] Likewise I imagine there are many who find my two-spaces indent style cluttered while I find even four and certainly any more to be grotesquely elongated. I also prefer the 2 space indent! I also realize that when I wrote my previous reply I was