| |
| |
| |
|
Comments:
<0> python compiled mode is per machine ? <1> what? <0> some one said that if i compiled a python script <0> that it can only be executed on that machine <1> on that version of Python <0> and what is the suggested way to compile a script?
<1> import py_compile; py_compile.compile(filename) <0> will that compile all the imported files? <1> no <1> but imported files are compiled by default <0> ill try it <2> *yawn* <2> do what? <1> ? <2> :) <2> is there a way to set whether or not a directory has a forward slash or two backward slashes in it (for windows)? i could do an if statement based on the system info, but i'm not sure if i should even need to do it <1> os.path.sep etc. <2> if the script is on linux, it wants /, if it's on windows, it wants \\ as paths <1> you should never need to reference it manually <1> / works on Windows too, actually <1> build paths with os.path.join and you don't need to mention the separator at all <1> or do you need a hardcoded path and have to select between them? <1> if that's the case check sys.platform <2> well, the path will always be outputdir + "/" + filename <1> os.path.join(outputdir, filename) <2> actually, there's another directory on that, too
<1> os.path.join(x, y, z) <2> sweet <2> thanks xihr :) <1> sure <2> here's a dollar twenty five sir <2> man, baked lays cheddar & sour cream chips are pretty damn good <1> heh <2> led zeppelin says thank you <2> yeah, why not.. go ahead and shoot firecrackers off at 3AM <2> there are some stupid people in this neighborhood.. or should i say inconsiderate <1> heh <3> hi all <3> any heroes here has expirience with decompyle ? <4> hello ;) <5> I found this in the pygame documentation 'pygame.draw.line(Surface, color, start_pos, end_pos, width=1)' it works fine without the width but if I p*** the with argument I get this error 'TypeError: aaline() takes no keyword arguments' so what am I doing wrong? <6> Watje: line isn't aaline, is it? <5> sorry I posted the wrong error <5> TypeError: line() takes no keyword arguments <6> I'm a bit tired, but it looks like you're either looking at the wrong documentation, or the docs are wrong. <6> Is that what help(pygame.draw.line) tells you in the interpreter? <5> no, I found that on http://www.pygame.org/docs/ <6> What does help(pygame.draw.line) tell you? <5> the same
Return to
#python or Go to some related
logs:
#beginner #beginner jircoff seconhand caravans #dreamweaver #beginner #computers hdc: tray open FC4 #heroin #politics
|
|