| |
| |
| |
|
Comments:
<0> can you not compare string with if statements? <0> ur_ans = 1 c_ans = 1, I have if ur_ans == c_ans and it never returns true <0> do I need to add in str() <1> well 1 isn't a string, it's an int <0> its reading of a txt doc if that makes any diff <1> if you're testing 1 == '1', then it's correct that that is never true
<1> Python is strongly typed <0> ahhhh <0> wtf is going on in my book then heh <0> if i toss in int() with var's it works fine <1> yes, int('1') == 1 <1> and 1 == 1 <0> say you had a == b <0> and a and b are both 1 <1> the Python interpreter is interactive, you can test this yourself <1> 1 == 1 <1> '1' != 1 <0> k thnx <0> Im stumped, im doing an a book exersize and I have no idea why my range statement wont count down numbers in the channel_change method, if someone could give me a hint that'd be cool. http://rafb.net/paste/results/G90PFu43.html <2> is self.channel < change_to ? <1> use and, not & <0> managed to figure it out <0> totally over thought my checks <3> i have a question it may be a little beginner <3> if i'm in a function or cl*** method <3> and want to change a global variable how can i reach this <3> if i simply wrote x = 9 it'll create a new variable and won't overwrite the global variable <2> put "global x" in your function <3> that's great it worked
<4> How to make numbers of an int? <4> ops <5> "make numbers" ? <4> I got a str, only containg numbers, that i want to make o an int <5> you mean, you want to convert a string to an int? <5> ie. "123" --> 123 <4> Yep <5> int(s) <4> oh, thax, ;P <4> So easy <4> Hum, ive got an int, eg 102233 and want it to be an array/list whatever is called. 2 numbers in every array value. [ 10 22 33 ] <4> sry for my bad english :) <4> im not good at explaining things in other langs then swedish <4> :) <4> like fromstring, but want it to be 2 numbers in every value <4> not just one <6> hi everybody, does anybody know how to load a dll with python at runtime and then call an exported C function from this DLL ? <2> uh, I think ctypes can do that..but I'm not sure if it's on windows.. <2> http://starship.python.net/crew/theller/ctypes/ <6> madewokhe, thanks I guess this will do good for me. <7> DOODZ OMG WTF LOL <7> U SHUOLD USE RUBY ITS A LOT BETTAR <7> ITS NEW <7> ITS GOT NEW FEATURES THAT PYTHON DONT GOT <8> *sigh* <9> :D
Return to
#python or Go to some related
logs:
#windows #gamedev #linuxhelp www.whatimyip.com photoshop copy action #stocks #windows #goal mirc kitch #gamedev
|
|