[Python-Dev] Fixing incorrect indentations in C files (Decoder functions accept str in py3k)
mal at egenix.com
Thu Jan 8 13:19:02 CET 2009
On 2009-01-08 12:36, Kristján Valur Jónsson wrote:
> Oh dear. C code indented by spaces?
> I'll give up programming then.
> Just set your editor tab size to 4 and all is well.
I know this is flame bait, but TABs are 8 spaces in Python land :-)
and most C files in Python that contain TABs and mix them with
spaces rely on this.
BTW: I don't blame anyone for the mixup - some editors simple
go ahead and convert 8 spaces leading whitespace into TABs
without the user knowing about this... after all, white on white
looks all white in the end ;-) (there are even some steganographic
systems out there, applying this scheme to embed data into
In any case, I think I need to remind people of PEP 7: Style Guide
for C Code ...
It already says: "At some point, the whole codebase may be
converted to use only 4-space indents."
> -----Original Message-----
> From: python-dev-bounces+kristjan=ccpgames.com at python.org [mailto:python-dev-bounces+kristjan=ccpgames.com at python.org] On Behalf Of M.-A. Lemburg
> Sent: 8. janúar 2009 09:49
> To: Collin Winter
> Cc: Antoine Pitrou; python-dev at python.org
> Subject: Re: [Python-Dev] Fixing incorrect indentations in C files (Decoder functions accept str in py3k)
>> Or better yet, really bite the bullet and just reindent everything to
>> spaces. Not every one uses vim or emacs, nor do all tools understand
>> their modelines. FYI, there are options to svn blame and git to skip
>> whitespace-only changes.
> +1... and this should be done for both trunk and the 3.x branch
> in a single checkin to resync them.
> Python-Dev mailing list
> Python-Dev at python.org
> Unsubscribe: http://mail.python.org/mailman/options/python-dev/mal%40egenix.com
Professional Python Services directly from the Source (#1, Jan 08 2009)
>>> Python/Zope Consulting and Support ... http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/
::: Try our new mxODBC.Connect Python Database Interface for free ! ::::
eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48
D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
Registered at Amtsgericht Duesseldorf: HRB 46611
More information about the Python-Dev