Chazcon
Prince
That will be all.
Python sucks
sucks pythonAre you sure its not the other way around?
Where do you run into this problem???btw, Python still sucks. Whitespace as code? I mean, really...
snafusmith - big GRIN! Check your PM's.
btw, Python still sucks. Whitespace as code? I mean, really...
I'm going to write my own language, it will surpass Python on the stupidity scale. I will call it - Nothingness. It will contain all whitespace, and no text. IDE's will not be required as all code written in Nothingness will reside completely in the programmer's imagination. No debugging, no bugs, no errors! Imagine the productivity and flexibility!
Or perhaps I'll finalize my liquid programming language...
IMO it's not, it is very hard to debug I mea like try to find the spot where you put one too few whitespace chars in 5000 lines of code.Python is easily the best beginners language.
Where do you run into this problem???
Python is easily the best beginners language.
def CvPediaMain( CvPediaScreen.CvPediaScreen ):
"Main Civilopedia Page"
def __init__(self):
CvPediaScreen.CvPediaScreen.__init__(self)
...
def CvPediaMain( CvPediaScreen.CvPediaScreen ):
"Main Civilopedia Page"
def __init__(self):
CvPediaScreen.CvPediaScreen.__init__(self)
...
Recent Example:
Works:
Code:def CvPediaMain( CvPediaScreen.CvPediaScreen ): "Main Civilopedia Page" def __init__(self): CvPediaScreen.CvPediaScreen.__init__(self) ...
Does not work:
Code:def CvPediaMain( CvPediaScreen.CvPediaScreen ): "Main Civilopedia Page" def __init__(self): CvPediaScreen.CvPediaScreen.__init__(self) ...
Difference: extra line break.
The error message was something very explanatory like "Argument 1 expected string, not instance." Best of all, if I replaced self with "" in the second example, got "Argument 1 expected instance, not string."
Maybe this would be easier if I were a beginner.![]()
Random strings cause errors that "Main Civilopedia Page" is a string. Use triple quotes (""") to surround multi-line comments and (#) in front of regular comments.
And why in the heck do you have stacked defs??? You obviously know nothing about the language so take a course, buy a book, or find a tutorial.
From what I can see the code is so messed up that its amazing it works at all.![]()
The stacked defs were already there. I can replace the top one with "class" now that now since it is unlikely I'll need to merge back from previous versions of Sevopedia.
I just checked -- "Main Civilopedia Page" is in there from the original file from Firaxis. I'm not going to go in and unnecessarily correct anything Firaxis did because it plays hell with later merging. I think it might be some kind of nonstandard pydoc.
Telling someone he "obviously knows nothing" about anything is uncalled for. Even if it is true.
Besides, I'm just responding to a previous post that said "this is the best language for beginners". I think if that were true, I wouldn't need to "take a course, buy a book, or find a tutorial."
Edit: Fixing everything you mentioned doesn't take care of the problem anyway. Point is, whitespace matters.
What file are you editing? I originally guessed CvPediaMain but it has a class not nested defs. And about the white space the only thing that matters usually is the tab level.
And sorry about the insult. Although I suggest making some python programs outside of Civ4.
thanks Chazcon! you summarized all my hopelessness into two words...
really, python ruined my childhood dream of becomming the world's second best game programmer after Sid Meier...
okay, just kidding, but really, for people with nil experience in programming, this kinda stuff is hard...
you really made me feel a little better.
Cybrxkhan
okay, just kidding, but really, for people with nil experience in programming, this kinda stuff is hard...