#python - Sun 18 Feb 2007 between 08:35 and 10:27

NY Lost Funds



tkpright... looks like a bug
ayazyeah, you are right.
arekmhello, I'm embedding python from C, now PyImport_ImportModule() fails... which function will allow me to get exact string like why the module failed like ,,No module x'' or other message? kind of strerror(errno) in c
there is no way to make that? PyErr_Print() prints to stderr which sucks
Sonderbladeveracon_: it seems like that is something you should be able to do with css
k0rwinhi, is there anyway to use popen function with argument containing unicode chars?
veracon_Sonderblade: Huh? I'm simply talking about the plain-text markup here
Sonderbladeveracon_: yes, reST deals with the structure, but you want to apply some kind of style it seems
JohnFluxHey all
i have two datetime objects - how can I find the difference between them, in minutes say
k0rwinhi, is there anyway to use popen function with argument containing unicode chars?
veracon_Sonderblade: Oh, no, I'm just trying to make the markup more readable (it looks a bit cramped if I don't indent)
What is the preferred way of getting the size of a (multipart/form-data) cgi.FieldStorage object? Surely not len(fs['the_file'].read())
There's a 'length' attribute, but that just gives -1
bzedWhat's in your opinion the fastest way to let 2 daemons (written in py, one running as root and one as non-priviledged user) communicate? running as one daemon would work, if there's a way to make sure that the non-priv part (webserver) does not run as root
MC_Breitmoin
Juhazbzed, you can use os.set(e)uid to drop the privileges
HanzZis here somebody, who uses pyqt 4.1.1 ?
bzedJuhaz: wouldn't that drop the privs for the whole process?
Juhazyeah
bzedI need some stuff with privs
i thought about using a unix socket or pyro to let 2 daemons communicate
k0rwinis there anyway to use popen function with argument containing unicode chars?
SpCombencode them as utf8?
k0rwinhow can i do it - plz tell me :)
SpCombu'f'.encode('utf8')
gives you a five-byte str object
Gkanehallo
nachoshola
floschhi
firsmIs there a module to convert units like kg -> pounds or bytes -> MB?
birkenfeldfirsm: google has several hits, but mostly GUI programs
firsmbirkenfeld: yeah, these are useless in my case
birkenfeldwell, it may always be that one of them is properly written
which means that the conversion code is decoupled from UI
firsmhmm, I'll just try a couple
moldyis an else clause after a for clause not obsolete?
ah, never mind
stupid me :)
Dtu3ZOhtlnwhat would happen if one python program has an open handle on a file, as another python program deletes that file? space/time rip, divide by zero etc?

Page: 1 8 15 22 29 36 

IrcArchive

NY Lost Funds