Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #10839
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <cgelinek@radlogic.com.au> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.005 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; '2.6.4': 0.07; 'exits': 0.07; 'infinite': 0.07; 'tab': 0.07; 'python': 0.08; '(it': 0.09; 'assumed': 0.09; 'finishes': 0.09; 'loop.': 0.09; 'indent': 0.16; 'realised': 0.16; 'subject:between': 0.16; 'win7': 0.16; 'hopefully': 0.16; 'linux': 0.18; 'command': 0.19; 'loop': 0.22; 'maybe': 0.22; 'here?': 0.23; 'indentation': 0.23; 'code': 0.24; '(or': 0.25; 'tried': 0.27; 'all,': 0.28; 'problem': 0.29; 'received:10.1.1': 0.30; 'version': 0.30; 'least': 0.31; 'subject:?': 0.31; 'source': 0.32; 'does': 0.32; 'rather': 0.33; 'to:addr:python-list': 0.34; 'uses': 0.35; 'running': 0.35; 'level.': 0.35; 'charset:us-ascii': 0.36; 'subject:/': 0.36; 'received:au': 0.36; 'some': 0.37; 'but': 0.37; 'using': 0.37; 'created': 0.38; 'run': 0.39; 'should': 0.39; 'files,': 0.39; 'subject:with': 0.39; 'under': 0.39; 'to:addr:python.org': 0.39; 'where': 0.40; 'our': 0.63; 'due': 0.66; 'press': 0.72; 'ages': 0.73; 'spaces': 0.73; 'expects': 0.84; 'spaces.': 0.84 |
| From | "Christian Gelinek" <cgelinek@radlogic.com.au> |
| To | <python-list@python.org> |
| Subject | Inconsistencies with tab/space indentation between Cygwin/Win32? |
| Date | Thu, 4 Aug 2011 13:55:37 +0930 |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset="us-ascii" |
| Content-Transfer-Encoding | 7bit |
| X-Mailer | Microsoft Office Outlook 12.0 |
| Thread-Index | AcxSXo9Wdj8Y556qS0CKGEyvt38sFg== |
| Content-Language | en-au |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1875.1312432561.1164.python-list@python.org> (permalink) |
| Lines | 26 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1312432561 news.xs4all.nl 23914 [2001:888:2000:d::a6]:34611 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:10839 |
Show key headers only | View raw
Hi all, I have a problem running some python program using version 2.6.4 (or version 2.7.2, I tried both) from the Win7 command line - it never finishes due to an infinite loop. The thing is, when I run the same program through Cygwin which uses Python version 2.6.5, it exits the loop at some point. I came to try this after I realised that in some of the sources (it is a rather big program using many source files, most of them being created by others from a Linux environment), the indentation is mixed tabs/spaces where the assumed tab size is 8 spaces. Reading on the Python website, a tab size of 8 is default anyway, so I would have assumed it should work... does that mean that one tab equals 2 indents?!? I myself never use tabs to indent Python code but let my editor do a tab-to-4-spaces conversion when I press <TAB>. I find it at least confusing to read that Python expects a tab size of 8 but at the same time uses 4 spaces for one indent level. Or maybe I am completely on the wron track here? Any ideas on how to get the thing to run under (real) Windows, hopefully without having to edit existing sources of people who left our company ages ago?
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Inconsistencies with tab/space indentation between Cygwin/Win32? "Christian Gelinek" <cgelinek@radlogic.com.au> - 2011-08-04 13:55 +0930 Re: Inconsistencies with tab/space indentation between Cygwin/Win32? Thorsten Kampe <thorsten@thorstenkampe.de> - 2011-08-04 07:18 +0200 Re: Inconsistencies with tab/space indentation between Cygwin/Win32? Nobody <nobody@nowhere.com> - 2011-08-04 22:35 +0100
csiph-web