|gumby600m||Cool, I'll check that out|
another question: is there a way of overloading the "" operator in Python?
|Leeds||gumby600m: don't overload it - implement it|
|gumby600m||Lets say I make a mesh class. every mesh consists of polygons. I want to access polygon or polygon, ...|
Leeds: How do I do this? "def (x,y)"???
|TFKyle||gumby600m: yeah, see http://docs.python.org/ref/sequence-types.html (the *item__ funcs there)|
|nir_ai||...started the emacs tutorial... let's see if I am not too old an emule.|
I wonder if it will kill too many brain cells.
|Jerub||gumby600m: but hey, this is easier done using a dict and tuple keys|
oh, right, sorry. no, I misunderstood.
|TFKyle||gumby600m: though, I don't see why a list wouldn't work there|
|azadder||I want to be able to type "python" from the command line -- do I have to set it up as a environment variable?|
|guido_g||azadder: you need to put the path to the executable into the PATH env. var.|
|guido_g||depends on you os|
|azadder||I am trying everything I can think of, not working here -- I am going to look for a tut online, thanks man|
|TML||azadder: What OS are you on?|
|azadder||XP, I am using this line in the PATH variable C:\Program Files\Nmap;C:\Python25\python.exe|
|ivan`||PATH lists directories|
|TML||Take "python.exe" off|
|azadder||thank you very much|
|TML||You also might need to log out to make Windows completely see the change|
|azadder||it's working now, no logout needed -- if I would have read guido_g's first statement better, I would have noticed he said "path"|
boy, do I feel dumb -- thanks for the information
|gumby600m||Okay, new set of questions about lists in python:|
Let's say I do the following: myList.append(150)
is there any way of automagically figuring out what index in myList that corresponds to?
(i.e. so I could do myList, which would properly report "150"?
|beantmt||well, if you appended it|
it will be len(myList)
|gumby600m||it feels like there should be a fancier way of doing it....|
like, I would expect the language to have something like "key = myList.append(150)"