| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Comments:
<0> not good :/ <1> you'll have to live without knowing howmany people here use arch-linux. <0> (on #python chanell ) :P <2> why don't you ask your *real* question? <0> ok...so
<0> I have installed mod_python, and now have to configurate my apache <0> BUT there's a problem with mod_pytho... no idea where it is 0_o <0> that's the problem <3> pylint is evil :( <3> Your code has been rated at -337.14/10 <1> nick125: plenty of room for improvement then. <3> Yhg1s: yeah i need to finish writing the library <4> Hi everybody <5> nick125: that's the worst approximation of pi i've ever seen :) <6> lampshade, Hi <3> mcmillen: hah :) <7> hi <7> how do i make socket.recv() return "" instead of freezing if there is no data availiable? <1> yuriks: you cannot. socket.recv() will only return "" when the socket is closed. <1> yuriks: you can set the socket non-blocking, so that socket.recv() will raise OSError rather than block, though. <8> yuriks: either use non-blocking sockets or select() <7> select? <7> Yhg1s: but i can write a wrapper that does that, right?
<3> it seems pylint hates wildcard imports (from blah import *)... <1> yuriks: not really, no. <1> nick125: yes. and so do most python programmers. <3> i noticed that <9> can i do something like return (foo || bar == 0), where foo is a bool? <7> O_o, cant i catch the OSError and return ""? <1> emes: what would it return? <3> Your code has been rated at -10.00/10 (previous run: -337.14/10) <1> emes: do you perhaps mean 'return foo or bar'? <9> Yhg1s: a bool <9> oh <9> silly me <1> yuriks: you sure can, but there's a lot more to having sockets non-blocking than just that. <1> yuriks: it can return incomplete data, for instance. <7> uh, well i know it can =P <1> yuriks: sockets are fairly complex, especially if you start dabbling in non-blocking ones. See, for instance, Twisted. it exists because sockets are hard :) <8> yuriks: are you doing this to learn low level network programming or just want to do some stuff ? maybe you should use a ready framework for that <4> What do you call it when you want to parse out a text file, puting things separated by a comma into a tuple or something? I'm looking for some keywords to google <7> im doing IRC, and using a while 1: loop: get_data() process_data() make_data() send_data()
Return to
#python or Go to some related
logs:
#sdl #kde modules_install if [ -r system.map /sbin/depmod #suse authoridentity
ubotu compact flash install #linux avast antivirus error 42000 #php #math
|
|