On Jul 15, 2009, at 4:26 PM, David Bolen wrote:

Miles Kaufmann <mile...@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 :-)

I wasn't trying to correct you, just being more explicit. :) After reading your post, I still wasn't sure if the restriction on mixing spaces and tabs applied to nested blocks--I was surprised that the code sample I included was allowed.

-Miles

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to