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 text files). In any case, I think I need to remind people of PEP 7: Style Guide for C Code ... http://www.python.org/dev/peps/pep-0007/ It already says: "At some point, the whole codebase may be converted to use only 4-space indents." > K > > -----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 > http://mail.python.org/mailman/listinfo/python-dev > Unsubscribe: http://mail.python.org/mailman/options/python-dev/mal%40egenix.com -- Marc-Andre Lemburg eGenix.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 http://www.egenix.com/company/contact/
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4