February 26th, 2005, 03:02 PM
Getting a lot of identation errors
Hi, when I program Python I tend to get indentation errors which are sometimes hard to track.
Things go smoothly when hacking short scripts, but I have begun a multi-class, multi-file package where as the project becomes larger, I tend to make those errors more often.
I am currently using Kwrite with Auto-Indenting for Python sources.
Would anyone have any tips ?
What are you using to whip up some Python code ?
February 26th, 2005, 03:27 PM
I am currently using win32all or eclipse with pydev. So far I cannot say that I had any problems. But I can't say that I wrote big scripts either...
February 26th, 2005, 04:58 PM
The indentation errors your getting may be to do with using Tabs and Spaces in your program. Try running Python with the -t command line option, to warn you of any inconsistencies here.
I generally use Xcode for anything bigger than 10 lines. This is a great editors but it lacks some of the cool Python features I might like i.e. you can't run the Python Shell from inside Xcode (without a hack).
Hope this helps,