redho home | products | services
Web Design Forums

Web Design Forums  


Web Hosting, Web Design, Software and Web Development Forums  
 FAQFAQ   MemberlistArchive  Log inLog in   RegisterRegister 
         

error



 
Post new topic   Reply to topic    Web Design Forums -> Python programming forum
View previous topic :: View next topic  
Author Message
Kopilman



Joined: 25 May 2006
Posts: 162
Unindent does not match any outer indentation level ? it means what ?
I'm getting error and i can't spot it lol
  Reply with quote


froomzer



Joined: 23 May 2006
Posts: 148
all lines in a (function, class, method, if-block, for-block, while-block, try-block) need to be indented the same level
Kopilman, and avoid tabs. use spaces instead because the python interpreter considers a tab to be 8 spaces, and a lot of editors consider it to be 4
  Reply with quote
Kopilman



Joined: 25 May 2006
Posts: 162
Same level = same amount of "space" ?
  Reply with quote
froomzer



Joined: 23 May 2006
Posts: 148
Kopilman, yes
  Reply with quote
Kopilman



Joined: 25 May 2006
Posts: 162
I just fixed the problem by adding 1 space to each if
Nice
  Reply with quote
froomzer



Joined: 23 May 2006
Posts: 148
Python is definitely space-sensitive
  Reply with quote
Kopilman



Joined: 25 May 2006
Posts: 162
Lol
  Reply with quote
froomzer



Joined: 23 May 2006
Posts: 148
It bites you in the ass when you have mixed spaces and tabs, and open it with a different editor
  Reply with quote
Page 1 of 1
Post new topic   Reply to topic    Web Design Forums -> Python programming forum


Dubai Forums - Expat Help | Vegan Chat | Java Programming | Free 3D tutorials and 3d textures | Paris Forum | EU Forum
Free Dubai Classifieds | Free London Classifieds | Jobs in London

High Quality, Custom 3d animation and Web Design solutions Royal Quality Web Hosting Services Vegetarian and Animal Rights news

Powered by phpBB © 2001, 2005 phpBB Group