| |
| |
| |
|
Comments:
<0> It is my strong belief that all salesmen should get the guillotine. <1> Well, you'd better add a timer for that idea if you plan to sell it. <2> worm3rd: good salesmen would never advertise in that way. <3> I'm using Python 2.4.1 on Win32. Executing print "foobar", will print foobar without the newline, but it still prints a space. How can I get rid of this? <3> For example, print "foo", ; print "bar" will print out "foo bar" <4> use sys.stdout.write directly <3> xhr: Oh, yeah. Heh. That was a dumb question then, wasn't it? <1> Not really. <0> SgtUnix: Is there such a thing as _good_ salesmen? <1> Of course. Like the dude at Dell who sold me my laptop. <0> lol <1> The difference being that you call good salesmen. They don't call you.
<1> Except when you've told them to, of course. <0> Yeah, but then they're more like just... "clerks" <5> good salesmen don't sell things to people that don't want it, i don't mind people asking, but no means no =P <6> any one think one over the other python web frameworks is better? <6> I see the 5, not sure which one to start trying <6> 5+ actually <6> guess not <0> People don't want things by default. The salesmen convince them that they want them, and then proceed with the sale. Of course, the strong of mind are able to resist, but that rules out only a tiny portion of the populace. <2> worm3rd: indeed. But who cares about the rest? <0> lol <7> hey, does anyone know an easy way to read an array into a python script <4> iterate <7> =) ok...? <8> hithere <8> http://www.rafb.net/paste/results/yMCvO951.html <8> this is not working <8> i pay attntion to all indentation <4> "not working" is really not a good diagnostic <8> :) <8> u are right <8> i get error on line 2 <8> C:\Documents and Settings\tikal_pc\Projects\calc_italiana>python -i test1.py <8> File "test1.py", line 2 <8> if Op == "+": <8> ^ <8> SyntaxError: invalid syntax <8> >>> ^Z <8> i m getting mad <4> well you can't just indent at random, that's what it's complaining about <8> but i still have not clear indentation in python then <8> this is few but sure <4> a = 1 <4> b = 1 <4> is illegal <4> that's what you're doing <8> why? <8> i am doing Op=="+" <4> it has nothing to do with what you're writing <8> that + what stand for then <4> you're indenting for no reason, that's not legal <4> well, you also probably mean raw_input too, but that's not your current problem <8> but in vim i see them on the same indentation <4> then you're mixing tabs and spaces or something, don't od that <4> they're clearly not the same indentation in your paste <8> so in rafb
<8> u can see the error <8> ? <4> yes, I've only explained it three times <8> :) <4> line 1 is not indented <8> ok so i need to know how to see it.. <4> line 2 is indented <4> that's an ERROR <4> indenting for no reason in the middle of code is a syntax error <8> ok <4> I explained it multiple times and gave examples, not sure what more you want <8> i need to understand....wait:) be patience... <8> so line 1 is ok...is the forst line <4> did you understand my example? <4> a = 1 <4> b = 1 <4> that's illegal <8> then line 2 need no indentatrion <8> only line 3 need indentation <4> because the second line is indented for no reason <4> yes <8> k <4> indentation follows a line ending in : <4> don't use it otherwise <8> ok <8> now work <8> so... <8> only if i have a for <8> or a if <8> or a while... <9> if ive got a list [a,b,c], is there a nice way to cycle through the ordered pairs in that list? [[a,b],[b,c],[c,a]] ... the last one is a special case cos it links the first to the last.... im thinking of applying this to points in a closed polygon <4> just iterate and use a last variable (and then at the end of the iteration, close it) <9> was just hoping thered be a way using list comprehention or something <1> njkjnk: http://docs.python.org/lib/itertools-recipes.html <1> njkjnk: Look at the bottom. <9> ah thanks for your help, hund and xihr <1> You're welcome. <4> note that doesn't close the loop, right <9> well there is an opportunity to do that in StopIteration? <9> im not sure, im fairly new to python <9> but u could do something other than p*** in StopIteration? <4> it could keep the first element, yes <8> http://www.rafb.net/paste/results/em2zSw67.html <8> ok <8> in this prog <8> i have dfined some function <8> it is a calculator... <8> and use the label of the different glade object to get their vcaules <8> values <8> i wanna modify it a bit <8> and i was wandering if it is possible to p*** a variable from one def to another <10> http://pastebin.com/496263 , Why does tkinter auto invoke the buttons command? <8> i'd like line 55 can be read in the next def
Return to
#python or Go to some related
logs:
how to grow bean sprot rent a noob bilder #politics fifa cheeaters #cisco xfburn ebuild SecureWebPageModule #computers #beginner #politics
|
|