help, urgent, no time to loose - SyntaxError: invalid syntax

jj = 43
scdj = []
for wg in range(3):
scndj = loader.loadModel(“ych_dev/sfloor/wall/w1”)
scndjtxt = loader.loadTexture(“ych_dev/sfloor/wall/w01.png”)
scndj.setTexture(scndjtxt)
scndj.reparentTo(render)
scndj.setScale(2,2,2)
scndj.setPos(3.25,jj,-200)
scndj.setHpr(90,0,0)
jj = jj - 6.5
scdj.append(scndj)

do u see any error here?
it says error in line 190, and points out “scdj = []” has error.
but that line is not 190, whats the real problem?
they are well indent, i just cant make indent in this post.

I don’t know. I don’t see any problems.

Are you sure the indentation is correct? In particular, if you are using tab characters and spaces interchangeably, sometimes what looks correct to you doesn’t look correct to Python.

David

thanks fr helping,
phew! took me alot of time to tab them into indented and took me alot of another time to check it. finally i found out when i was to delete a tab space, i pressed two or three times of del key to delete one tab space.
you got any suggestions on how to manage the tab thing a shorter time?
coz when the codes are too long, this python snake will sure swallows me into his mazed intestine.

Use a smart editor that manages the indents for you. See this thread for some suggestions.

I use Emacs personally, but I’m old-school.

David

I use vi :slight_smile: I’m glad to know you’re a UNIX guy David.

:open_mouth: Emacs and vi… :open_mouth:
simple “nano” here - good enough for simple text :smiley: - and simple enough for a nub like me :smiley:

Regards, Bigfoot29

Sure you can. Just put it in a code block like so:

[code]
your code here
[/code]
	look at me I'm indented!

I hear where you are coming from. Before I was forced to use Exchange at my work, I used Pine for email there actually is a PC Pine.

I find idle to be sufficient for all my juicing needs. The best part is that it’s included as one of the standard python libraries, so you can get to it in Panda using the following method:

ppython -i
Python 2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from idlelib import idle

IDLE is a good baseline editor, though most other editors have a lot more features.

Take care,
Mark

thank you all, this problem is solved. i’m using conTEXT now, awarded as Pricelessware 2006.