| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Comments:
<0> so this is running on the actual xbox OS? <1> on this line i get "exceptions.TypeError: not enough arguments to format string": print 'hi %d %d %d' % 5,5,5 ... why? isnt that three numbers and three places inside the string? what arguments are of wrong quantity? <2> yeah <3> Mizipzor: you need (5,5,5), otherwise it's parsed as (string % oneNumber), 5, 5 <1> joedj, oh... thanks <0> brutopia: maybe tell the twisted folks whats missing and see if they have ideas? <4> \ <5> I'm at my favorite part of coding. <5> I understand how my code works, and I have it working, and now I'm just going through removing janky cruft. <5> MFen: What up, MFen? <5> I'm high on C! <6> cocaine? ;x <5> ned: No, C. <5> Although, do you you think Scarface was as bad*** a coder as me? <7> SAY HELLO TO MY LITTLE POINTER. <5> "Say hello to my little freind!!!"
<5> Great minds. <7> what a movie <5> Not just pointer. <5> Mighty structures of towering pointers. function pointers! Statically initialized arrays of logic. <5> It makes me weep to think upon it. <7> me too <5> MFen: Bah. <8> <5> I'm doing my best dammit. I don't have access to your fancy "managed memory" or your schmancy "cl***es" or your hoity-toity "pseudo closures," after all. <9> speaking of pointers, any pointers on how I can use the usage message of my script as a docstring for it? <9> that'w what PEP257 suggests <5> eleftherios: Um. Make the string in your usage the docstring of tyour script, then in the usage function do myModule.__doc__ (or something like) <10> eleftherios: actually, pep257 suggests the other way round. use the docstring as usage <9> ChrisLong, what CSWookie suggested then... <10> ChrisLong: yes. he was faster ;) <9> CSWookie, so myModule would be the filename of the script? <9> (which means that if someone renames it, the code will break) <9> and last, where do I have to place the docstring to make it the docstring of the whole module? (sorry, no examples given in PEP257) <9> rather, to make it the docstring of the whole script <10> eleftherios: sys.modules[__name__] is the current module. <9> ChrisLong, ah that's lovely <9> so I guess I should place the scripts docstring after the #!/usr/bin/python, after the GPL and before the block of imports... <11> bye <5> eleftherios: No. Because for the good of the land, no code should ever contain the GPL, in any of its incarnations. <12> Hello, I'm trying to port a small C-OpenGL to Python using PyOpenGL and I was wondering if any of you have a small example using PyOpenGL... the examples i've found on the internet are quite complex to start. thanks <9> CSWookie, for the good of the land we need as much GPL code as possible if you ask me :-) <5> eleftherios: Since I didn't ask you, that must not be the case. <5> eleftherios: :-) <9> is it possible to cause print not to print a newline after the the string it prints? <9> CSWookie, :-) <13> yes <13> eleftherios, print var, <1> eleftherios, use sys.stdout.write() <9> thank you rodrickbrown Mizipzor :-) <1> :) <13> sys.stdout.write() is overkill :-) <9> rodrickbrown, why is it overkill? <7> print var, leaves an extra space at the end, which write() does not <5> Ooooh. BURN <13> eleftherios, for what you need it for <7> print var, is convenient if that's all you need (debug prints etc) <9> I just need it to print the scripts usage docstring at stdout (shell) <9> nevermind, too much fuss over such a detail :-) <12> Hello, I'm trying to port a small C-OpenGL to Python using PyOpenGL and I was wondering if any of you have a small example using PyOpenGL... the examples i've found on the internet are quite complex to start. thanks <5> Hmm. <5> If I made a program thaat had an easter egg that printed the GPL, and then mocked it and rediculed it, would my code fall under the GPL, since I included it in the code? <13> no since your modifying the gpl <10> CSWookie: why should it? did you release your code under the gpl or use gpl'ed code in any way? <13> that seeems like something very childish to do though <5> ChrisLong: Well, my code would contain the GPL, and so would be a derivative work. <5> rodrickbrown: Well, I'm not going to do it. <5> I was just wondering about the legalities of the situation. <13> since your modify the original text <13> it would not be gpl <13> at that point <10> hmm, is the gpl plublished under the gpl? <5> rodrickbrown: But what if I don't? Say I have a docstring or something that is unmodified GPL, and I print that. Then I print a random selection of insults, from different strings. <5> ChrisLong: I dunno. <10> CSWookie: you would not be allowed to do what you suggested. from the gpl: "Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed." <7> ChrisLong: he's said twice now that he's not modifying the gpl <14> anyone know how to "Programatically" select a column on a treeview/liststore with pygtk ? so that the "sort" arrow shows when a dialog starts
<7> CSWookie: merely including the text of the gpl does not make something gpl <7> there has to be intent to distribute the work *under the terms of* the gpl <7> which, clearly, you would not be doing <5> MFen: Probably not. <5> Since I'm working toward the good of the land. <15> can someone take a look at my code and see whats the problem? <10> CSWookie: and as you said (and i overlooked) want to display it unmodified, no problem. "Everyone is permitted to copy and distribute verbatim copies[...]" <7> letsgfuad: that works better if you pastebin it first, and say what it's about <15> ok cool <10> p_masho: you have to use set_sort_column_id on your model <7> CSWookie: it is possible to argue that your work is itself derivative of the gpl, even if the text of the gpl is not modified <7> for example, you could have a license whose terms are: "Everything this says, my license is the exact opposite: ...(text of the GPL)..." <5> MFen: Which was the crux of my argument. <5> MFen: Actually, I kind of like that liscense. <15> ok here it is http://deadbeefbabe.org/paste/757 <7> that would clearly be derived from the gpl, since you are using it in a license context <15> i dont get any errors when i run it or nothign <5> All of this code is mine. You can't do anything with it, unless you derive something from it. <5> Then its yours, and I don't care. <7> heh <5> Hmmm. <5> The APL. I think I'll start using that liscense. <10> letsgfuad: a hint: put print type(shape) after the raw_input() <15> wait so after the raw_input() a next line uder it shoudl be print type(shape) <15> and what does the ">" in input mean? <15> could i just use raw_input() isntead <10> letsgfuad: yes, next line. try something else instead of "> ", and you'll know <15> ok cool <15> thanks <15> nothign changed when i added print type(shape_ <15> ) <14> ChrisLong: lovely lovely lovely.. thanks... I;m not going to tell you how many hours I spent looking at that problem.. its embar***ing ! <16> you seriously expect aol speekers to know what is it or even read the topic ? <15> that to me? <16> I used "you" in the plural form, obviously <15> wtf <15> p_masho, is included i the "you" <15> correct? <16> everyone is <15> yoru a little to pompous <10> letsgfuad: what was the output you got? <15> ChrisLong, the output was Welcome to the Extended area calculation program then it goes >>> <15> so i cant enter anything or do anything it just brings me to python prompt <10> you did not get "Please select a number" etc? <15> nope <10> letsgfuad: interesting, i just tried it and i get a SyntaxError on the last elif: <15> hmm do you possibly know why i dont recieve an error on that? <15> im using the IDLE <10> letsgfuad: if i replace it with else: i get the whole menu <15> ChrisLong, just the last one or all elifs? <15> hmm wierd on IDLE that did not work <15> let me try to run it <10> letsgfuad: only the last, the one without a condition <15> ok cool <17> hi. is there any nice python shortcut for writing foo = bar() if foo =! None: baz[..] = foo ? <15> ChrisLong, yeah that fixed it when i ran it, but IDLE does not come up with an error... Thanks for the help <15> IDLE did not come up with an error previously to me changing it to else <10> letsgfuad: strange, just tried it in idle. i get an error prompt <15> ugh <15> this si crazy lol <15> let me restart idle <15> ChrisLong, nope still no error <15> ChrisLong, and the program does not work <10> letsgfuad: i meant i get an error with the elif: still in <10> letsgfuad: still no menu? <15> ChrisLong, ok, well in IDLE i do not get a menu, but when i run/compile it i do get a menu, but then i get an error saying <type 'str"> you did not enter a number <15> oh do i need if shape == "1" (do the " " have to be there) <10> letsgfuad: yes. <15> ok it works now, with those "" thanks <10> ?tutorials <15> ? <10> letsgfuad: did you read an tutorial for python? <15> yeah, i read this one <15> http://www.hetland.org/python/instant-hacking.php
Return to
#python or Go to some related
logs:
#lisp dig @cbl.abuseat.org
repositories mercury-messenger DRIVERS VGNS58GP how to insatll .bin file ubuntu qmysql3 problems with krecipes ubuntu What is the location of the directory of C header files that match your r #perl eterm hit a key to exit get_wireless_stat
|
|