[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [SPAM: 3.500] Re: [pygame] This one baffles me



Both, tabs and spaces, work. mixing them doesn't. So you must make sure you only use one. which one you choose is more or less a matter of taste as Chris wrote.

However, since mixing spaces and tabs is a bad idea it would be good if all (python) programmers could agree on one or the other. I believe that's why there is the python style guide I linked to earlier. It sets a precedent/convention.
 
You can of course say you don't care and follow your own style but it will make it harder and more annoying for others.

Therefore I would urge you to use spaces in python programs.

yours,
//Lorenz



On Wed, 20 May 2009 11:38:18 +0100, Chris McCormick <chris@xxxxxxxxxxxx> wrote:
>> On Wed, May 20, 2009 at 9:13 AM, Yanom Mobis <yanom@xxxxxxxxxxxxxx>
> wrote:
>> > i guess i'll use spaces for my next program. But why exactly are
> spaces
>> > better? the article just said that was the standard
>> >
> On Wed, May 20, 2009 at 09:20:16AM +1000, René Dudfield wrote:
>> At this point, it's because most python code, and python programmers
>> are using spaces, instead of tabs.
> 
> However, be aware that it is a matter of taste/religion, and it's an age
> old
> internet argument, and so you're always going to get different people
> saying
> that one style is better than the other.
> 
> For me, spaces are like mp3 files whilst tabs are like mod files. I like
> mod
> files better than mp3 files, but the problem is that sometimes mod files
> sound
> different when you play them on different platforms.
> 
> Best,
> 
> Chris.
>