[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Compress a sequence of ends
- From: Jason White <whitewaterssoftwareinfo@...>
- Date: Fri, 22 Jul 2011 03:02:32 -0400
On Fri, Jul 22, 2011 at 2:46 AM, Dirk Laurie <dpl@sun.ac.za> wrote:
> On Fri, Jul 22, 2011 at 08:03:49AM +0200, Mike Nelson wrote:
>> Lua isn't Python--and for every programmer who loves Python's
>> significant whitespace, there is another who hates it.
>
> The problem comes when you cut-and-paste someone else's working
> code (which seems to indent in multiples of four spaces because
> you happen to have set tab stop length to four) into your own
> working code (which really indents in multiples of four spaces
> because your editor expands tabs to spaces) and you can't see
> the difference and you can't figure out why your program does
> not work. If the BDFL had decided, right at the start, that you
> can have tabs or you can have leading spaces but not both in the
> same program, I may still have been a Python programmer right now.
>
> Dirk
This is a little off topic, just letting you know that most python
editors automatically convert groups of spaces into tabs or visa versa
so you don't have to worry about sloppy indenting practices.
--
Jason White - Python / C Programmer and Electronics Hobbyist
- References:
- Compress a sequence of ends, Johnson Lin
- Re: Compress a sequence of ends, Steve Litt
- Re: Compress a sequence of ends, Dirk Laurie
- Re: Compress a sequence of ends, David Manura
- Re: Compress a sequence of ends, Pascal J. Bourguignon
- Re: Compress a sequence of ends, Dimiter 'malkia' Stanev
- Re: Compress a sequence of ends, Pascal J. Bourguignon
- Re: Compress a sequence of ends, Josh Simmons
- Re: Compress a sequence of ends, Jason White
- Re: Compress a sequence of ends, Mike Nelson
- Re: Compress a sequence of ends, Dirk Laurie