PEP8 and 4 spaces
Steven D'Aprano
steve+comp.lang.python at pearwood.info
Fri Jul 4 12:56:16 EDT 2014
On Fri, 04 Jul 2014 09:19:24 -0700, Maciej Dziardziel wrote:
>> Surely the issue of mixing tabs and spaces is much more important than
>> working systems? :)
>
>
> Python 3 considers tabs as an error and refuses to work.
Incorrect.
[steve at ando ~]$ python3
Python 3.3.0rc3 (default, Sep 27 2012, 18:44:58)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] on linux
Type "help", "copyright", "credits" or "license" for more information.
=== startup script executed ===
py> code = """
... def func():
... \treturn 23
...
... print( func() + 1000 )
... """
py>
py> exec(code)
1023
--
Steven
More information about the Python-list
mailing list