Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-18 Thread Teemu Likonen
* 2011-07-18T10:54:40+10:00 * Steven D'Aprano wrote: Back in 2007, a n00b calling himself TheFlyingDutchman who I am *reasonably* sure was Rick decided to fork Python: http://mail.python.org/pipermail/python-list/2007-September/1127123.html I don't know if they are the same person but quite

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-18 Thread Gregory Ewing
Steven D'Aprano wrote: Why 78? Because it's one less than 79, as mandated by PEP 8, and two less than 80, the hoary old standard. There's another possible reason for the number 78, although hopefully it doesn't still apply today. There's an application I work with that stores free text in

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-18 Thread gene heskett
On Sunday, July 17, 2011 08:24:12 PM Dotan Cohen did opine: On Sun, Jul 17, 2011 at 17:29, gene heskett ghesk...@wdtv.com wrote: I'm still looking for the perfect programming font. Suggestions welcomed. When you find it Dotan, let me know, I've been looking since the later '70's.

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-18 Thread Tim Chase
On 07/17/2011 08:01 PM, Steven D'Aprano wrote: Roy Smith wrote: We don't have that problem any more. It truly boggles my mind that we're still churning out people with 80 column minds. I'm willing to entertain arguments about readability of long lines, but the idea that there's something

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-18 Thread python
Bah, when I started programming on the Apple ][+, we had no lower-case and a 40-column limit on the TV display. Keyboards??? That was a luxery! We had mechanical switches that one had to physically push and pull to enter commands. And a 40 column display??? Unheard of! We were happy with

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-18 Thread Duncan Booth
Tim Chase python.l...@tim.thechases.com wrote: On 07/17/2011 08:01 PM, Steven D'Aprano wrote: Roy Smith wrote: We don't have that problem any more. It truly boggles my mind that we're still churning out people with 80 column minds. I'm willing to entertain arguments about readability of

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-18 Thread Steven D'Aprano
Tim Chase wrote: On 07/17/2011 08:01 PM, Steven D'Aprano wrote: Roy Smith wrote: We don't have that problem any more. It truly boggles my mind that we're still churning out people with 80 column minds. I'm willing to entertain arguments about readability of long lines, but the idea that

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-18 Thread gene heskett
On Monday, July 18, 2011 09:32:19 AM Tim Chase did opine: On 07/17/2011 08:01 PM, Steven D'Aprano wrote: Roy Smith wrote: We don't have that problem any more. It truly boggles my mind that we're still churning out people with 80 column minds. I'm willing to entertain arguments about

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-18 Thread Anssi Saari
Thorsten Kampe thors...@thorstenkampe.de writes: The perfect programming font is just the one that looks so good that you would also use it for writing email. Dejavu Sans Mono is pretty good. Consolas looks also looks good but it is Windows only. How is Consolas Windows only? Not that I'd

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-18 Thread Thorsten Kampe
* Anssi Saari (Mon, 18 Jul 2011 19:28:49 +0300) Thorsten Kampe thors...@thorstenkampe.de writes: The perfect programming font is just the one that looks so good that you would also use it for writing email. Dejavu Sans Mono is pretty good. Consolas looks also looks good but it is

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-18 Thread MRAB
On 18/07/2011 14:52, Duncan Booth wrote: Tim Chasepython.l...@tim.thechases.com wrote: On 07/17/2011 08:01 PM, Steven D'Aprano wrote: Roy Smith wrote: We don't have that problem any more. It truly boggles my mind that we're still churning out people with 80 column minds. I'm willing to

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-18 Thread Thomas 'PointedEars' Lahn
Gregory Ewing wrote: Anders J. Munch wrote: Cameron Simpson wrote: Personally, I like to use the tab _key_ as an input device, but to have my editor write real spaces to the file in consequence. Just like in the old days:) Most editors can be configured to do that. True. Where

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-18 Thread Thomas 'PointedEars' Lahn
Anssi Saari wrote: Thorsten Kampe thors...@thorstenkampe.de writes: The perfect programming font is just the one that looks so good that you would also use it for writing email. Dejavu Sans Mono is pretty good. Consolas looks also looks good but it is Windows only. How is Consolas Windows

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-18 Thread Dave Angel
On 01/-10/-28163 02:59 PM, Steven D'Aprano wrote: Tim Chase wrote: On 07/17/2011 08:01 PM, Steven D'Aprano wrote: Roy Smith wrote: We don't have that problem any more. It truly boggles my mind that we're still churning out people with 80 column minds. I'm willing to entertain arguments

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-18 Thread Anders J. Munch
Thomas 'PointedEars' Lahn wrote: I am getting the idea here that you mean the right thing, but that you explain it wrong. Feel free to write the much longer essay that explains it all unambiguously, I'm not going to. regards, Anders -- http://mail.python.org/mailman/listinfo/python-list

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-18 Thread Dotan Cohen
On Mon, Jul 18, 2011 at 02:55, Andrew Berg I think the reason the idea isn't dead is because of the emergence of new devices with small displays (tablets/smartphones/etc.) and their increasing popularity. When writing code that is meant to be run on desktops or servers, the 80-column limit is

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-18 Thread Andrew Berg
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 On 2011.07.18 01:51 PM, Dotan Cohen wrote: Let me see if I understand: because there exists a possibility that someone might want (not need) to edit code on a telephone to make a quick edit to code being interpreted on that machine, _all_

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-18 Thread Chris Angelico
On Tue, Jul 19, 2011 at 5:06 AM, Andrew Berg bahamutzero8...@gmail.com wrote: Personally, I think that 80 is pretty arbitrary now, and not the best limit. I'm more comfortable with 120-130 myself. In any case, Python won't complain about how many characters are on a line, and that's the way it

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-18 Thread Roy Smith
In article Xns9F2695C6AAA73duncanbooth@127.0.0.1, Duncan Booth duncan.booth@invalid.invalid wrote: Tim Chase python.l...@tim.thechases.com wrote: On 07/17/2011 08:01 PM, Steven D'Aprano wrote: Roy Smith wrote: We don't have that problem any more. It truly boggles my mind that we're

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-18 Thread Tim Roberts
Andrew Berg bahamutzero8...@gmail.com wrote: I'm not saying it's wise Why not? It just makes it more difficult to follow the pattern when you add new code. If you have an editor mnaging that for you, then you might as well have the editor go all tabs or all spaces to avoid trouble. Vi and

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread Andrew Berg
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 On 2011.07.16 06:06 PM, Tim Roberts wrote: That's not true. Python allows tabs and spaces to be used in the same source file, and even in the same source line. You're right. TabError is only raised if the initial indentation is inconsistent.

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread Ian Kelly
On Sat, Jul 16, 2011 at 9:09 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Personally, I like to use the tab _key_ as an input device, but to have my editor write real spaces to the file in consequence. With pure spaces, the text is laid out reliably for us both. And so I have

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread Thorsten Kampe
* rantingrick (Sat, 16 Jul 2011 09:51:02 -0700 (PDT)) 3) Tabs create freedom in the form of user controlled indention. Indention width should be a choice of the reader NOT the author. We should never code in indention width; but that is EXACTLY what we are doing with spaces! No, the reader

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread Ian Kelly
On Sun, Jul 17, 2011 at 1:29 AM, Andrew Berg bahamutzero8...@gmail.com wrote: You're right. TabError is only raised if the initial indentation is inconsistent. Not legal: def spam(): tabprint('Wonderful spam!\n') 4 spacesprint('Bloody Vikings!') Legal: def eggs(): tabprint(

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread Andrew Berg
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 On 2011.07.17 02:32 AM, Ian Kelly wrote: Of course, there is also another major problem with tabs that I have not seen pointed out yet, which is that it's not possible to strictly adhere to 80-column lines with tabs. I can write my code to

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread Thorsten Kampe
* Andrew Berg (Sat, 16 Jul 2011 19:29:30 -0500) Of everything I've read on tabs vs. spaces, this is what makes the most sense to me: http://www.iovene.com/61/ Interesting one, especially the - from the coder's point of view - artificial distinction between indentation and alignment. What is

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread Dotan Cohen
On Sat, Jul 16, 2011 at 19:51, rantingrick rantingr...@gmail.com wrote: --  Evidence: Tabs ARE superior! -- I am also a recent spaces-to-tabs convert. One of the reasons is that I've discovered that

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread Andrew Berg
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 On 2011.07.17 03:15 AM, Dotan Cohen wrote: programing in a non-fixed width font is a real pleasure If you're masochistic, maybe. Do you find fixed-width fonts ugly? I really would like to know why anyone would use a non-fixed-width font for

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread Andrew Berg
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 On 2011.07.17 02:56 AM, Thorsten Kampe wrote: What is the difference between indentation and alignment? Well, indentation works with tabs, alignment not. The use of spaces for indentation is as much of a hack as the use of tabs for alignment

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread Thorsten Kampe
* Andrew Berg (Sun, 17 Jul 2011 03:36:31 -0500) Not everyone agrees on how many spaces an indent should be (whether an indent is a tab or a space-tab), which is a good reason to use tabs. Not everyone who doesn't agree on indent size actually cares enough about indent size - especially in

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread Andrew Berg
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 On 2011.07.17 04:33 AM, Thorsten Kampe wrote: Not everyone who doesn't agree on indent size actually cares enough about indent size - especially in someone else's code. I'd say it's probably rather the majority making this whole debate

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread Thorsten Kampe
* Andrew Berg (Sun, 17 Jul 2011 05:02:22 -0500) And if we work on a project together, we have to agree on formatting anyway, the indent size being the least important one. How is indent size unimportant with regard to formatting? Take some code or yours and format it with three and with six

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread Dotan Cohen
On Sun, Jul 17, 2011 at 11:35, Andrew Berg bahamutzero8...@gmail.com wrote: programing in a non-fixed width font is a real pleasure If you're masochistic, maybe. Do you find fixed-width fonts ugly? I don't find that fixed-width fonts are ugly, but variable-width fonts sure are more of a

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread rusi
On Jul 17, 4:11 pm, Dotan Cohen dotanco...@gmail.com wrote: On Sun, Jul 17, 2011 at 11:35, Andrew Berg bahamutzero8...@gmail.com wrote: programing in a non-fixed width font is a real pleasure If you're masochistic, maybe. Do you find fixed-width fonts ugly? I don't find that fixed-width

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread Thorsten Kampe
* Dotan Cohen (Sun, 17 Jul 2011 14:11:40 +0300) So long as the indentation lines up (which it does, with tabs or spaces) then I do not see any problem with variable-width. What are the counter-arguments? Alignment doesn't line up. Thorsten --

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread Anders J. Munch
Steven D'Aprano wrote: I can't fathom why 8 position tabs were *ever* the default, let alone why they are still the default. That's because they were not invented as a means for programmers to vary indentation. Originally, tabs were a navigation device: When you press the tab key, you skip

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread Thomas 'PointedEars' Lahn
Thorsten Kampe wrote: * Andrew Berg (Sun, 17 Jul 2011 05:02:22 -0500) I still don't understand. Whitespace to the left of an assignment to signify an indent and whitespace around operators to align values (in a multi-line assignment) are not the same. When I'm (consistently, of course)

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread Thomas 'PointedEars' Lahn
Dotan Cohen wrote: On Sat, Jul 16, 2011 at 19:51, rantingrick rantingr...@gmail.com wrote: -- Evidence: Tabs ARE superior! -- I am also a recent spaces-to-tabs convert. One of the reasons is

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread TheSaint
Ian Kelly wrote: but if somebody later tries to edit the file using 8-space tabs I came across this and I like to put a note on top of the script to remember to modify it accordingly. -- http://mail.python.org/mailman/listinfo/python-list

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread gene heskett
On Sunday, July 17, 2011 10:28:16 AM Dotan Cohen did opine: On Sat, Jul 16, 2011 at 19:51, rantingrick rantingr...@gmail.com wrote: -- Evidence: Tabs ARE superior! -- I am also a recent

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread Thorsten Kampe
* Thomas 'PointedEars' Lahn (Sun, 17 Jul 2011 14:35:15 +0200) Thorsten Kampe wrote: * Andrew Berg (Sun, 17 Jul 2011 05:02:22 -0500) I still don't understand. Whitespace to the left of an assignment to signify an indent and whitespace around operators to align values (in a multi-line

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread Thorsten Kampe
* gene heskett (Sun, 17 Jul 2011 10:29:03 -0400) On Sunday, July 17, 2011 10:28:16 AM Dotan Cohen did opine: I'm still looking for the perfect programming font. Suggestions welcomed. When you find it Dotan, let me know, I've been looking since the later '70's. The perfect programming

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread rantingrick
On Jul 17, 2:32 am, Ian Kelly ian.g.ke...@gmail.com wrote: This.  I used to think that tabs were better, for pretty much the reasons Rick outlined, but I've had enough problems with editors munging my tabs that I eventually found it simpler in practice to just go with the flow and use spaces.

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread Corey Richardson
Excerpts from Thorsten Kampe's message of Sun Jul 17 11:10:57 -0400 2011: The perfect programming font is just the one that looks so good that you would also use it for writing email. Dejavu Sans Mono is pretty good. Consolas looks also looks good but it is Windows only. I use inconsolata,

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread rantingrick
On Jul 17, 2:35 am, Thorsten Kampe thors...@thorstenkampe.de wrote: * rantingrick (Sat, 16 Jul 2011 09:51:02 -0700 (PDT)) 3) Tabs create freedom in the form of user controlled indention. Indention width should be a choice of the reader NOT the author. We should never code in indention

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread rantingrick
On Jul 17, 5:42 am, Thorsten Kampe thors...@thorstenkampe.de wrote: When I'm (consistently, of course) indenting code, I'm aligning it. When I'm aligning code, I do this by indenting it, see for instance... firstvariable = 11 variable      = 111 firstvariable = 22 variable =      222

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread Chris Angelico
On Mon, Jul 18, 2011 at 2:29 AM, rantingrick rantingr...@gmail.com wrote: You guys should feel lucky i am not the BDFL, because i would cast plagues of exceptions on your lazy butts! BDFL = Benevolent Dictator For Life. Note that first word. ChrisA --

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread rantingrick
On Jul 17, 4:49 am, Anders J. Munch 2...@jmunch.dk wrote: Originally, tabs were a navigation device: When you press the tab key, you skip ahead to the next tab column.  The notion that whitespace characters are inserted into the text would have been very alien to someone using text

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread Chris Angelico
On Mon, Jul 18, 2011 at 2:53 AM, rantingrick rantingr...@gmail.com wrote: [a whole lot of guff] Rick, you need to: 1) Grab the Python source code 2) Make your own version of Python that works the way you want it 3) Call it something different 4) Start your own mailing list. Put your money -

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread rantingrick
On Jul 17, 12:11 pm, Chris Angelico ros...@gmail.com wrote: On Mon, Jul 18, 2011 at 2:53 AM, rantingrick rantingr...@gmail.com wrote: [a whole lot of guff] Rick, you need to: 1) Grab the Python source code 2) Make your own version of Python that works the way you want it 3) Call it

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread Chris Angelico
On Mon, Jul 18, 2011 at 3:57 AM, rantingrick rantingr...@gmail.com wrote: It's funny you mention this because i am creating a specification for a Python 4000 fork that removes all ambiguities and multiplicity from the language. Very soon i will be posting the spec for review within this group.

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread Tim Chase
4) Tabs remove the need for complicated indention/detention tools. On 07/17/2011 10:15 AM, rantingrick wrote: On Jul 17, 2:32 am, Ian Kellyian.g.ke...@gmail.com wrote: This. I used to think that tabs were better, for pretty much the reasons Rick outlined, but I've had enough problems with

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread Thorsten Kampe
* rantingrick (Sun, 17 Jul 2011 10:57:10 -0700 (PDT)) Choose to follow it or die of exceptions; your choice. One of the best things I've read for a long time :-). The past is bickering over selfish personal freedoms, the future of is unity. And a tab is *exactly* four spaces. Not three. Not

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread Ian Kelly
On Sun, Jul 17, 2011 at 9:15 AM, rantingrick rantingr...@gmail.com wrote:  I can write my code to 80 columns using 4-space tabs, but if somebody later tries to edit the file using 8-space tabs, their lines will be too long. THEIR LINES is the key words. A tab control is a tab control is a

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread Ian Kelly
On Sun, Jul 17, 2011 at 10:29 AM, rantingrick rantingr...@gmail.com wrote: I hate  vertical white-space. I follow Python style guide suggestions, and then some! I hate when people insert spaces into code blocks and function/method bodies. If you feel a space must be inserted then that is a

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread Thomas 'PointedEars' Lahn
Thorsten Kampe wrote: * Thomas 'PointedEars' Lahn (Sun, 17 Jul 2011 14:35:15 +0200) Thorsten Kampe wrote: * Andrew Berg (Sun, 17 Jul 2011 05:02:22 -0500) I still don't understand. Whitespace to the left of an assignment to signify an indent and whitespace around operators to align

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread Dotan Cohen
On Sun, Jul 17, 2011 at 14:51, Thorsten Kampe thors...@thorstenkampe.de wrote: * Dotan Cohen (Sun, 17 Jul 2011 14:11:40 +0300) So long as the indentation lines up (which it does, with tabs or spaces) then I do not see any problem with variable-width. What are the counter-arguments?

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread rantingrick
On Jul 17, 1:20 pm, Thorsten Kampe thors...@thorstenkampe.de wrote: The past is bickering over selfish personal freedoms, the future of is unity. And a tab is *exactly* four spaces. Not three. Not five. Not eight. For you, for me, and for the rest of the world. Amen! Not *exactly*. A tab

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread Dotan Cohen
On Sun, Jul 17, 2011 at 15:53, Thomas 'PointedEars' Lahn pointede...@web.de wrote: I am also a recent spaces-to-tabs convert. One of the reasons is that I've discovered that programing in a non-fixed width font is a real pleasure, but the spaces are too narrow. Tabs alleviate that. Not using

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread Dotan Cohen
On Sun, Jul 17, 2011 at 17:29, gene heskett ghesk...@wdtv.com wrote: I'm still looking for the perfect programming font. Suggestions welcomed. When you find it Dotan, let me know, I've been looking since the later '70's. Hey there Gene! Are you not on every mailing list on the internet old

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread Thorsten Kampe
* Dotan Cohen (Sun, 17 Jul 2011 22:20:15 +0300) On Sun, Jul 17, 2011 at 14:51, Thorsten Kampe thors...@thorstenkampe.de wrote: * Dotan Cohen (Sun, 17 Jul 2011 14:11:40 +0300) So long as the indentation lines up (which it does, with tabs or spaces) then I do not see any problem with

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread Dotan Cohen
On Sun, Jul 17, 2011 at 20:57, rantingrick rantingr...@gmail.com wrote: Such a system of rigorous formatting rules requires much less interpreter logic. Python will be leaner and meaner. There won't be any more arguing about how to format code. There will only be one way; the correct way!

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread Dotan Cohen
On Sun, Jul 17, 2011 at 21:20, Thorsten Kampe thors...@thorstenkampe.de wrote: The past is bickering over selfish personal freedoms, the future of is unity. And a tab is *exactly* four spaces. Not three. Not five. Not eight. For you, for me, and for the rest of the world. Amen! Four is the

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread Waldek M.
I'm still looking for the perfect programming font. Suggestions welcomed. When you find it Dotan, let me know, I've been looking since the later '70's. For me, it's Terminus* (from sourceforge). Br. Waldek [*] As long as you don't need anything but iso8859-1. --

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread Thomas 'PointedEars' Lahn
Anders J. Munch wrote: Steven D'Aprano wrote: I can't fathom why 8 position tabs were *ever* the default, let alone why they are still the default. That's because they were not invented as a means for programmers to vary indentation. Originally, tabs were a navigation device: When you

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread rantingrick
On Jul 17, 1:22 pm, Tim Chase python.l...@tim.thechases.com wrote: Solution: STOP USING BROKEN TOOLS!!! Unbroken tools that do anything worthwhile are usually complicated tools. Just pointing that out in case you missed the irony... You make a good point, albeit a very well know point.

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread Thomas 'PointedEars' Lahn
Dotan Cohen wrote: On Sun, Jul 17, 2011 at 15:53, Thomas 'PointedEars' Lahn […] I do not understand how you can consider using a non-fixed-width font in programming a real pleasure as many them show a lot of ambiguities in source code. Take for example the lowercase l (el) vs. the capital

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread rantingrick
On Jul 17, 1:48 pm, Ian Kelly ian.g.ke...@gmail.com wrote: Let me get this straight.  You want us to use tabs so that individuals can set their tab width to however many spaces they want, but then you want everybody to set their tab widths to 4 spaces.  You're contradicting yourself here. In

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread rantingrick
On Jul 17, 1:54 pm, Ian Kelly ian.g.ke...@gmail.com wrote: On Sun, Jul 17, 2011 at 10:29 AM, rantingrick rantingr...@gmail.com wrote: I hate  vertical white-space. I follow Python style guide suggestions, and then some! I hate when people insert spaces into code blocks and function/method

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread rantingrick
On Jul 17, 2:34 pm, Thorsten Kampe thors...@thorstenkampe.de wrote: Indentation alignment will (because you're using only spaces). Otherwise it doesn't align (it can't), simply because of the variable-width. For instance (in a variable-width font): if a == b:     var123    = 22    

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread Dotan Cohen
On Sun, Jul 17, 2011 at 22:53, Thomas 'PointedEars' Lahn pointede...@web.de wrote: It simply isn't an issue. Apparently it is *has not been* an issue for *you* *yet*.  There are languages (like Python) that are compiled just-in-time.  Besides, neither an IDE nor a compiler can (always)

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread Ian Kelly
On Sun, Jul 17, 2011 at 1:54 PM, rantingrick rantingr...@gmail.com wrote: On Jul 17, 1:48 pm, Ian Kelly ian.g.ke...@gmail.com wrote: Let me get this straight.  You want us to use tabs so that individuals can set their tab width to however many spaces they want, but then you want everybody to

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread Gregory Ewing
Anders J. Munch wrote: Cameron Simpson wrote: Personally, I like to use the tab _key_ as an input device, but to have my editor write real spaces to the file in consequence. Just like in the old days:) Most editors can be configured to do that. Where they fall down, in my experience,

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread Cameron Simpson
On 17Jul2011 09:53, rantingrick rantingr...@gmail.com wrote: | On Jul 17, 4:49 am, Anders J. Munch 2...@jmunch.dk wrote: | Originally, tabs were a navigation device: When you press the tab key, you skip | ahead to the next tab column.  The notion that whitespace characters are | inserted into

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread Ian Kelly
On Sun, Jul 17, 2011 at 2:12 PM, rantingrick rantingr...@gmail.com wrote: On the face of it one might think vertical tabs are a good idea however newlines work just fine. There is no reason for expanding vertical whitespace to create readble code. If you can offer a good reason i'm listening.

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread Andrew Berg
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 On 2011.07.17 03:12 PM, rantingrick wrote: I can tell you one thing for sure. In MY version of Python everyone will have a voice. That does not mean that EVERYONE will make the final decision but EVERYONE's voice will be equally important.

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread Andrew Berg
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 On 2011.07.17 11:46 AM, rantingrick wrote: Why do you feel the need to layout your code in a GUI-listview manner. Next you'll want column titles and column sorting... Jeez! This is what you should have done... I was testing my psychic

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread Andrew Berg
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 On 2011.07.17 06:29 PM, Roy Smith wrote: We don't have that problem any more. It truly boggles my mind that we're still churning out people with 80 column minds. I'm willing to entertain arguments about readability of long lines, but the

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread Roy Smith
In article mailman.1196.1310946970.1164.python-l...@python.org, Andrew Berg bahamutzero8...@gmail.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 On 2011.07.17 06:29 PM, Roy Smith wrote: We don't have that problem any more. It truly boggles my mind that we're still

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread Andrew Berg
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 On 2011.07.17 07:28 PM, Roy Smith wrote: Can you give me a more specific example? I assume there's nobody (at least nobody sane) editing Python source code on iPhones. I haven't done it myself, but there are plenty of Python projects out

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread Andrew Berg
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 I should also mention that this mostly speculation on my part, and that I would love to hear from someone who develops for these devices. - -- CPython 3.2.1 | Windows NT 6.1.7601.17592 | Thunderbird 5.0 PGP/GPG Public Key ID: 0xF88E034060A78FCB

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread Steven D'Aprano
Chris Angelico wrote: On Mon, Jul 18, 2011 at 2:53 AM, rantingrick rantingr...@gmail.com wrote: [a whole lot of guff] Rick, you need to: 1) Grab the Python source code 2) Make your own version of Python that works the way you want it 3) Call it something different 4) Start your own

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread Mel
Andrew Berg wrote: I should also mention that this mostly speculation on my part, and that I would love to hear from someone who develops for these devices. There's a mailing list for Python scripting on Android -- List-Subscribe: http://groups.google.com/group/python-for-

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread Steven D'Aprano
Roy Smith wrote: We don't have that problem any more. It truly boggles my mind that we're still churning out people with 80 column minds. I'm willing to entertain arguments about readability of long lines, but the idea that there's something magic about 80 columns is hogwash. I agree!

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread Mel
Andrew Berg wrote: I should also mention that this mostly speculation on my part, and that I would love to hear from someone who develops for these devices. There's a mailing list for Python scripting on Android -- List-Subscribe: http://groups.google.com/group/python-for-

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread Steven D'Aprano
Steven D'Aprano wrote: Roy Smith wrote: We don't have that problem any more. It truly boggles my mind that we're still churning out people with 80 column minds. I'm willing to entertain arguments about readability of long lines, but the idea that there's something magic about 80 columns

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread Andrew Berg
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 On 2011.07.17 07:54 PM, Steven D'Aprano wrote: Then in 2010, Rick promised that if the Python developers didn't bow to his demands, he would folk Python, and the silent majority who agreed with him but were too terrified to say so publicly

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread Ben Finney
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info writes: The exception is, you have an indented block of code, perhaps three or four indents deep (surely you never allow anything to get beyond five or six indents?), and you want to raise an exception: raise

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-16 Thread Dan Stromberg
On Sat, Jul 16, 2011 at 9:51 AM, rantingrick rantingr...@gmail.com wrote: -- Summary -- As we all know python allows us to use either tabs or spaces but NEVER both in the same source file. And

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-16 Thread Andrew Berg
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 On 2011.07.16 11:51 AM, rantingrick wrote: -- Evidence: Tabs ARE superior! -- That may be the case (for indentation, NOT alignment), but you're

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-16 Thread Tim Roberts
rantingrick rantingr...@gmail.com wrote: As we all know python allows us to use either tabs or spaces but NEVER both in the same source file. That's not true. Python allows tabs and spaces to be used in the same source file, and even in the same source line. I'm not saying it's wise, but it

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-16 Thread Cameron Simpson
On 16Jul2011 09:51, rantingrick rantingr...@gmail.com trolled: | Evidence: Tabs ARE superior! | -- | I have begun to believe that tabs are far more superior to spaces Please Rick: you need at least three things to use the term more superior. With

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-16 Thread Dan Stromberg
On Sat, Jul 16, 2011 at 4:52 PM, Cameron Simpson c...@zip.com.au wrote: Well to some extent because I share files with another who uses 4 position tabs. Editing these is a real nightmare if one uses 8 position tabs (as I do, the common editor/terminal default these days). 8's been the

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-16 Thread Andrew Berg
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 On 2011.07.16 06:52 PM, Cameron Simpson wrote: Only for leading indentation, not following indentation. Consider docstrings and other stuff with embedded fixed witdh layout. I try to avoid aligning things unless not doing it really hurts

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-16 Thread Chris Angelico
On Sun, Jul 17, 2011 at 9:52 AM, Cameron Simpson c...@zip.com.au wrote: | Programming languages MUST have rules or | ambiguities will run a muck and bring the entire system crashing down. Amuck is one word you know... Yes, but maybe he's wanting to run a MUCK. It's quite possible; I run a

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-16 Thread Cameron Simpson
On 16Jul2011 19:29, Andrew Berg bahamutzero8...@gmail.com wrote: | Of everything I've read on tabs vs. spaces, this is what makes the most | sense to me: | http://www.iovene.com/61/ Makes sense to me. Thanks for the URL. Cheers, -- Cameron Simpson c...@zip.com.au DoD#743

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-16 Thread Steven D'Aprano
Andrew Berg wrote: I try to avoid aligning things unless not doing it really hurts readability for that reason. For example, in most of my source files, I use tabs to indent. Since Python won't allow a mix of tabs and spaces (for whitespace) on one line, I don't try to align things: else:

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-16 Thread Steven D'Aprano
Cameron Simpson wrote: On 16Jul2011 09:51, rantingrick rantingr...@gmail.com trolled: | Evidence: Tabs ARE superior! | -- | I have begun to believe that tabs are far more superior to spaces Please Rick: you need at least three things to use

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-16 Thread Andrew Berg
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 On 2011.07.16 10:07 PM, Steven D'Aprano wrote: Hilariously, in my newsreader, the first example (allegedly unaligned) was lined up as straight as an arrow, It has consistent indentation, but the self.whatever references aren't aligned. The

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-16 Thread anand jeyahar
On Sun, Jul 17, 2011 at 08:39, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: I have reluctantly come to do the same thing. There is a plethora of broken tools out there that don't handle tabs well, and consequently even though tabs for indentation are objectively better, I use

  1   2   >