Why not enforce four space indentations in version 3.x?

David Bolen db3l.net at gmail.com
Wed Jul 15 22:26:17 CEST 2009

Miles Kaufmann <milesck at umich.edu> writes:

> On Jul 14, 2009, at 5:06 PM, David Bolen wrote:
>> Are you sure?  It seems to restrict them in the same block, but not in
>> the entire file.  At least I was able to use both space and tab
>> indented blocks in the same file with Python 3.0 and 3.1.
> It seems to me that, within an indented block, Python 3.1 requires
> that you are consistent in your use of indentation characters *for
> that indentation level*.  For example, the following code seems to be
> allowed:

Um, right - in other words, what I said :-)

-- David

More information about the Python-list mailing list