@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet


Comments:

<0> Is there something like wildcards for matching strings? Say...I hada statement like 'if somedata == 'som* str*':' So...anything could come adter som and anything could come after str would be true...is there some way to do this?
<1> yes, regular expressions
<2> If "som str" in somedata:
<0> oh yea?
<0> So...
<0> Say i have the line:
<1> 'som str' in somedata would look for the substring 'som str' in somedata
<0> if (line == "a"):



<0> I mean
<0> if "a" in somedata:
<0> Would return true as long as it had the letter a in it?
<2> Yes.
<0> ..
<0> =)
<0> thanks a million
<3> Hey guys, quick question which I haven't been able to find anything on google on. I want to do tail -f file.log | python myfile.py how do I read the stdin in myfile.py since tail isn't sending EOF?
<1> you can't detect EOF since there could be multiple writers for all you know
<3> okay, figured it out, basically went around the problem and wrote a python version of tail -f: http://quickwired.com/kallahar/smallprojects/kallahar_livestats_py.txt
<0> I have a variable...that has some data in it (Just a sentence), and I wuld like to strip everything from it except one word...
<0> for example
<0> sen = "hello...bored blah"
<0> somestripfunc(sen, blah)
<0> newvar = somestripfunc(sen, blah)*
<0> That is what I mean
<0> Then I could do
<0> print newvar
<0> And it would just prin blah?
<0> print*
<0> :|
<4> hi
<4> does anybodu happen to know how i could go about making a Tkinter GUI window stay on top of all other windows programs??
<4> *anybody
<5> is there a cool python gui builder for win?
<5> i mean something better than glade + gtk?
<6> OK, from my calendar:
<6> resign current job and sign the new contract on Tuesday [check & done]



<1> heh
<1> dominate world [unchecked]
<6> coincidentally, the new employer's unofficial (or early-days) business plan included phrases like "world domination"..
<6> that's from a company whose CEO still hasn't upgraded his business cards from "Title: Guru" to something more formal
<1> heh
<5> hehe i love that
<5> when you come and mess with someones mailserver and you find aliases as kingoftheuniverse@
<5> pointing to the ceo
<6> so hype of the 90's :)
<6> the "guru" is short for "an angry asm guru" :)
<5> should i have tkinterGui in my install
<5> or rather, the real question is, how do i make install packages for my python stuff to deploy on windows?
<2> Thanks.
<6> re
<7> anyone know about asynchronous dns?
<7> in python
<7> I'm trying to avoid threads
<8> given a 3-character string representing a hexidecimal number "NNN", how can I create "\xNNN" for printing? a = "\\" + "x" + "NNN" produces "\\xNNN" which is printed as "\xNNN"
<8> or perhaps I am going about this the wrong way entirely
<5> mee: you mean the backslash hell?
<5> there is a way to make it just a raw string
<7> chr(int("20",16)) => ' '
<7> that seems to work
<7> chr(int("NNN",16))
<8> ah, thanks
<7> maybe not
<7> chr doesn't like numbers bigger than 255
<8> hmm, it seems chr() is using a different table than the \x escapes
<7> unichr will do i
<7> t
<8> got it. thanks
<8> I'm producing a reference table for digraph entry in screen/vim :)


Name:

Comments:

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






Return to #python
or
Go to some related logs:

#computers
#windows
#solaris
#opengl
#heroin
#windows
attendace for nhl
What is an extra lane on an uphill stretch of motorway provided for slow-movin
#nhl
stjhnf0121w



Home  |  disclaimer  |  contact  |  submit quotes