@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info


Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19



Comments:

<TML> Pythy: That makes sense. So you use it more in channel than you would in your own code, traditionally?
<Leeds> seems to be overkill to me...
<errr> goxen: I cant say I have even seen a way to do what youre wanting with out nfs or smb, sounds like a neat project though if its out there :)
<TML> What was the URL for reporting python.org "bugs" as a result of the move?
<Pythy> TML: In my own code, parameter-initialization and inheriting-in a basis-cl*** from some module is probably where I'm likely to find it.
<Pythy> TML: http://psf.pollenation.net/cgi-bin/trac.cgi/wiki/CreatingTickets
<goxen> errr: I'm wanting a linux kernel to boot off LAN, start up a python interpreter then run the puython bootstrap. then I've got a python client. then it runs python tasks.
<altf2o> What is the 'operator' called that allows things like: a, b = b, a , something 'tuple' or 'tuple' something?
<TML> goxen: Why wouldn't you do everything after "linux kernel to boot off LAN" using root-over-NFS?
<CoRnJuLiOx> is there a list method that allows me to delete stuff by index number and not by its contents?
<goxen> tml: not necessarily using linux.
<TML> CoRnJuLiOx: pop
<TML> goxen: So when you said "a linux kernel", you didn't mean "a linux kernel"?
<goxen> del mylist[3]
<goxen> tml: well thats what I've got so far. I just don't want the h***le of NFS/SMB.
<Leeds> NFS is no h***le...
<TML> goxen: Well, I don't want to tell a starving man to eat pie, but I have difficulty imagining a world where root-over-NFS is more of a h***le than writing, securing, and maintaining your own TCP protocol and server.
<racter> so no thoughts on accurate timing with python? (ie more accurate than time.sleep(x) )
<CoRnJuLiOx> TML: pop?
<TML> CoRnJuLiOx: Yes
<CoRnJuLiOx> TML: ok thanks
<errr> CoRnJuLiOx: http://docs.python.org/tut/node7.html
<goxen> tml: fair enough. my requirements make NFS a h***le. :)
<Pythy> TML: Thank you for calling my attention to my questionable word-usage earlier.
<Pythy> Whenever you catch one of those, *please* bring it to my attention (I appreciate being called on even the seemingly-inconsequential errors. Any subsequent debate of a point is just a way of getting to the authoritative answer). Thank you.
<goxen> racter: what do you want to time?
<TML> Pythy: It's always fun to re-discover that even when we all speak English, we may not all be speaking the same language. :)
<racter> goxen: i want to repeat a method call at a very specific interval
<racter> goxen: and the time.sleep(x) method is not accurate enuff
<Pythy> TML: If it weren't for your spotting that---since both spellings are in my spelling-checker---it's unlikely I would have realized the distinction at all!
<goxen> racter: time.sleep() is a good answer but... I thought select() could be more accurate (or is that how sleep works?)
<TML> racter: I ***ume by "accurate" you mean "high-resolution"?
<racter> goxen: i am not familiar with the select() method - what is that?
<racter> tml: i suppose so - it is for a music performance application and the rhythms need to be strictly timed
<racter> tml: so maybe not as much resolution as consistency
<TML> Your system isn't consistently reporting 1 second intervals?
<racter> tml: there are weird delays that happen at random with time.sleep(1) -- i have tried this with two separate python processes running the script and the sounds go out of phase
<tristil> I'm forgetting an idiom, how to concisely compare two lists and take subset y out of x?
<TML> racter: Could it be because your application doesn't have high enough priority?
<goxen> racter: then sleep is bad because it MIGHT delay for the spec time or it may not. I'm vaguely sure that Pygame has accurate timing via its SDL wrapping.
<racter> tml: sure - how do i address that? (i'm using linux)
<racter> goxen: ok - do you think i can use pygame's event interface or something to wrap these calls?
<TML> racter: Which linux?
<racter> tml: ubuntu
<TML> racter: uname -r?
<racter> 2.6.14-ck1
<pfote> you would need some event based framework though .. something that is able to sync against the RT clock .. a simple sleep will not do
<goxen> racter: sure. it has a set_timer method to generate an event every "x" intervals. it also has a delay function
<racter> goxen: awesum, thx -- i will chex that out
<racter> something like a set_timer / interval method is i think xactly what i am looking 4
<goxen> racter: http://www.pygame.org/docs/ref/time.html#pygame.time.wait
<TML> racter: Does /proc/config.gz exist?
<racter> tml: nope
<TML> I'm not sure how one checks to see if the kernel is preemptible without that.
<racter> tml: ok - i'll probably have to do some research about "preemptible"
<TML> racter: grep -i preempt /boot/config-`uname -r`
<racter> but i will also chex out this pygame stuff -- thx!!
<racter> # CONFIG_PREEMPT_NONE is not set
<racter> CONFIG_PREEMPT_VOLUNTARY=y
<racter> # CONFIG_PREEMPT is not set
<TML> racter: I don't know a whole lot about the subject except to say that the preemptible kernel movement was started because sound would get out of synch when kernel latency got too high
<TML> At least, that's one of the reasons RML used to give
<racter> tml: ok, cool - i will have to do some more research about that if the pygame lib doesn't fix my timing issues.
<racter> thanks for your help, snakes!
<Diazepam> guys where can i get a list of all the possible outputs (and explinations) that the sys.platform module produces. Been to the python website and not much detail. ...e.g: whats the diff between linux1 and linux2?
<ignacio> Check the source.
<pfote> kernel major number probably
<Diazepam> just another short one - whats the clearscreen statement in python?
<ignacio> There isn't one.
<ignacio> You either have to use curses or delegate via os.system().
<Diazepam> so os.system('clear')
<Diazepam> for posix
<pfote> for instance
<Diazepam> os.system('clear') produces "TERM environment variable not set.
<Diazepam> 256"
<ignacio> Well then it's not set when you run the app.
<ignacio> And curses wouldn't help either in that case.
<pfote> didn
<Diazepam> so how do people work around this then
<pfote> 't you start it from the shell?
<ignacio> They have sane environments.
<Airwulf> hey
<Airwulf> does someone of you know the module to write C-Code directly in python scripts?
<Diazepam> pfote - testing it in the interpretor first
<pfote> Airwulf: i guess you talk about pyrex
<TML> Diazepam: I've never once tried to clear my screen from within the interpreter
<TML> Not even sure why someone would care...
<pfote> Diazepam: what terminal should it clean then ?
<Diazepam> well if it is run in a terminal then it would clear the one it was executed from
<Diazepam> if run in the interpretor then it should clear the screen in that environment
<TML> Diazepam: What your system just said is "I can't find the terminal this interpreter is attached to in order to send it the "clear your screen" character"
<Diazepam> so is there a .self option or do you need to specify the tty session
<TML> Diazepam: How did you start your interpreter?
<TML> Inside an xterm?
<pfote> the more i think about it: clear *cant* work
<TML> pfote: What do you mean?
<ignacio> clear uses terminfo. curses uses terminfo. Ergo, if one fails, so will the other.
<goxen> isn't clear screen an escape sequence? surely a script can clear the tty its runnign on (***umptions galore here)
<TML> __import__('os').system('clear')
<TML> Works fine here
<pfote> hrm
<HowardTheCoward> i have a WHILE condition which looks like WHERE id != 'value1' AND id != 'value2' is there any workaround if i might have a lot of conditions, not only two ?
<TML> But, as previously mentioned, I have a relatively sane environment.
<goxen> and here as well :)
<TML> HowardTheCoward: where id not in (list of values)
<pfote> i thought system() forks a new shell? how can it then clear the shell "on level up" ?!
<TML> pfote: clear just sends a control character
<ignacio> It's still the same terminal.
<pfote> ah ok
<ignacio> All subprocesses still have the same stdin, stdout, and stderr by default.
<pfote> new shell process, but same terminal. ok
<pfote> got it
<HowardTheCoward> TML: what if i my list of values is a column of another sql table? does this change anything ?
<pfote> HowardTheCoward: on a real sql server? then use a sub-select
<ignacio> That's what joins are for.
<pfote> yeah, or a outer join
<HowardTheCoward> pfote: i use adodb-py and sqlite driver
<HowardTheCoward> does sqlite support subselects?
<goodwill> how do I find out who the author of a specific python module thats included in a distro?
<TML> HowardTheCoward: Which sqlite are you using?
<HowardTheCoward> TML: sqlite2
<HowardTheCoward> adodb-py works with sqlite2 only
<TML> I didn't know you were using adodb-py
<HowardTheCoward> HowardTheCoward pfote: i use adodb-py and sqlite driver
<TML> HowardTheCoward: I wasn't looking when that was said. :)
<TML> HowardTheCoward: Yes, sqlite2 supports sub-selects
<TML> goodwill: Try: import foo; help(foo)
<Diazepam> TML: yep __import__('os').system('clear') worked fine within the python shell but not in komodo interpretor. Many thanks....................................Awaiting sledges from people telling me to use vim
<TML> goodwill: If they included their info in a docstring, that should show it
<goodwill> hmmm
<goodwill> not there
<goodwill> the said part is that a patch for this been submitted nearly 3 years ago
<goodwill> and never made it into the tree
<TML> goodwill: *shrug* What's the module and distro?
<goodwill> telnetlib
<goodwill> any distro
<goodwill> well I applied it locally so I'll live
<goodwill> I just wondered about the rest...
<TML> goodwill: What's the bug/patch?
<goodwill> https://sourceforge.net/tracker/?func=detail&atid=105470&aid=822974&group_id=5470
<goodwill> patch: http://sourceforge.net/tracker/index.php?func=detail&aid=825417&group_id=5470&atid=305470
<pfote> HowardTheCoward: got your problem solved?
<nir_ai> hi, how can I generate XML?
<nir_ai> is there a module for that?
<TML> nir_ai: Do you need a module for it? I'm sure there is one, but how complex is your XML going to be, and what is it starting out as? Maybe you can just format your print correctly.
<nir_ai> TML, possible, but why re-invent the wheel?
<nir_ai> I noticed all the xml modules parse xml


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #python
or
Go to some related logs:

IP Address bind order local vpn
#suse
decompress pg_dump
kubuntu unable to find any workgroups
#osdev
#ubuntu
border-size-bottom: 1px;
#lisp
#php
Command failed: Block device required



Home  |  disclaimer  |  contact  |  submit quotes