#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2005
    Posts
    20
    Rep Power
    0

    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 ?
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2005
    Location
    temporarly: Rosetown, Sk (Canada)
    Posts
    22
    Rep Power
    0
    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...
  4. #3
  5. Hello World :)
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2003
    Location
    Hull, UK
    Posts
    2,537
    Rep Power
    69
    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,

    Mark.
    programming language development: www.netytan.com Hula


IMN logo majestic logo threadwatch logo seochat tools logo