@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2



Comments:

<0> How should I get the stdout of an os.system() call?
<0> Oh, hey, I need to use os.popen() instead.
<0> Thanks!
<1> sorry, xchat randomly crashed...
<2> You haven't been here before.
<2> You were probably on another network.
<1> fuzzy@eleaf?
<2> Huh?
<3> hi
<3> i'm looking for some kind of channel where it's ok to talk about docutils
<3> is this one?
<4> what do people think about guido working for google?
<5> are there any bots in this channel that i can talk to about python
<5> or are no bots allowed
<6> er?
<6> why would you want to talk to a bot about python?



<5> heheh
<6> when there are real people available
<5> just thought i would stir up the thoughts real quick
<5> glad i got your attention
<5> :-)
<6> haha, bastard
<5> i was wondering what do you code python on
<5> a windows machine using what editor?
<4> vim
<5> linux machine
<5> bsd
<4> bsd or linux, vim
<5> vim
<5> GAWD
<6> I do emacs with python mode
<5> i guess
<5> i just
<5> have to learn
<5> vim then
<5> yer talkni about VI right
<5> thats VIM
<6> you could use that IDLE stuff on Winodws..
<4> VI Improved
<5> k
<5> cuz i never knew the shortcuts in VI so
<5> that didnt work out well
<4> its worth learning
<5> i end up using pico
<5> sad to say
<5> but yeah
<5> i use pico
<5> <=== noob
<5> what sort of programs do you guys write
<5> with python
<4> typically ones that do things
<5> i found that most the python code i have seen are really easy to understand
<5> maybe this is why i want to learn python
<5> i know a little html and php
<5> so for a specific task only
<5> or db ****
<5> AI
<5> ?
<5> all of the above
<4> its sorta hard to do anything useful without a db
<5> ok perfect
<5> so python
<5> works well with mysql
<5> no probs?
<4> my only problem with python is the slow load time
<5> hmmm, java is faster than python?
<6> yes
<5> thanks for your help
<5> :-)
<4> other than ipython or lazy python, does anyone know of any good interpreter hacks?
<2> python-mode.
<4> if only i werent a vi weenie
<2> "What's that?" "A major mode for Emacs." "I don't use Emacs, vim is better!" "well, vim doesn't have python-mode. Your loss."
<5> LOL
<5> tell him how it goes down hund ;-)
<4> i will never switch :)



<4> any others?
<7> ctrl-c to my SocketServer is catched inside a service thread as socket.error exception instead of being catched in the main thread, how that should be solved?
<8> ctrl+c is causing a KeyboardInterrupt, correct?
<7> well, I suppose it should. and I even explicitly hooked it with signal.signal...
<8> oh, ****, threads :/
<7> I suppose the signal gets delivered to the non-main thread anyway and gets interpreted as interrupted system call or something.
<8> I think importing (not using) signal is supposed to make signals only go to the main thread.. :/
<8> I have no idea what creating a signal handler does to it
<7> from python documentation I got the idea signals should get delivered only to the main thread...
<8> is raising KeyboardInterrupt what you want?
<8> in the main thread
<8> wait
<8> I think maybe it was that signals go to the main thread if the signal module is availab
<8> le
<7> KeyboardInterrupt would be fine
<7> I've imported signal, doesn't make any difference :I
<8> "Threads interact strangely with interrupts: the KeyboardInterrupt exception will be received by an arbitrary thread. (When the signal module is available, interrupts always go to the main thread.)"
<7> I suppose my freebsd installation might mishandle signals.
<8> so I have no idea what might be going on
<7> hrmm.
<8> I guess you might be able to hack around it by catching KeyboardInterrupts in other threads and doing interrupt_main() :/
<8> or try to come up with a simple testcase..that sometimes helps..or at least could tell you if it's something weird about your installation
<7> welll. those signals seem to manifest as evil interrupted system calls in my threads.
<7> and show up as socket.error, not KeyboardInterrupt
<8> ooh
<8> because they messed up the socket operations? :/
<7> madewokhe: http://vulcan.tky.hut.fi/~jkirma/testserver.py is my demo
<7> try to connect to the port with nc and hit ^C on the server then
<8> is this using twisted?
<7> SocketServer as defined in the python library reference
<8> ok
<8> I just hadn't heard of it and thought it looked like twisted stuff
<8> meh@wicket:~/python$ python sockettest.py
<8> Serving request
<8> Keyboard interrupt in the main thread
<7> ok, so it's (one of) freebsd thread libraries then.
<7> that was on linux?
<8> yes
<7> hmm hmm
<9> can anyone point me to a virus channel ?
<7> I don't even want to know
<10> hey guys
<11> hi
<10> i have a question
<10> about pickling
<10> i dont get it
<10> converting strings into...
<10> for filetypes
<12> arrays, list, or other things
<10> can u give me an example plz
<12> in a sec
<12> I dont use pickle directly
<12> I usually use shelve
<11> shomi: import pickle and then feed various objects to pickle.dumps()
<11> you'll get the point
<12> shelve is a good example of hte usage of pickle though
<12> a dbm database can only take strings
<10> a bit high for my blood
<12> a string for the key and a string for the value
<10> ive only started 2 weekds ago
<12> shelve uses pickle though to put any data type you want in the value
<10> and im writting site-scrapers in python..
<12> shomi: well why does that require pickle?
<12> you should probablly be looking at sgml, html modules
<10> true..
<12> here is what pickle does
<11> I love pickels. Yum.
<12> in a dbm file I can have key = string
<10> but im helping a friend..
<12> but lets say I want to have an array as the value
<12> I pickle it
<12> now i can put anything I desire as the value an array, a dictionary, etc
<12> well help him with sgml and html and the URLParser
<10> tnx


Name:

Comments:

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






Return to #python
or
Go to some related logs:

Error 789: The L2TP connection attempt failed because the security level
#politics
#politics
#sex
#hardware
#mirc
#hardware
simscan hangs spamc
clit removed
xsfp param



Home  |  disclaimer  |  contact  |  submit quotes