@# Quotes DB     useful, funny, interesting





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



Comments:

<0> how do i search '))' in regex ?
<0> String = TeamA = 'LadujMecz(.*?)));'
<0> String = 'LadujMecz(.*?)));'
<1> are you sure you want to use regex?
<0> yes
<1> then I can't help you :/
<0> i want to search all between "LadujMecz" and "));"
<0> oh i see :[
<0> maybe someone else can ?
<2> \)\)
<2> r'LadujMecz(.*)\)\)'
<0> Ohhhh
<0> escaping :\
<0> thank you.
<0> while i use urllib2, sometimes i cant download any info from the site so im getting something like this:
<0>



<0> how can i solver i t?:\
<0> solve*
<2> no idea
<0> how do i compare string to int ?
<0> its like if (1 == "1")
<0> its !=
<1> I'd convert one to the other type
<1> and then compare
<2> if str(1) == "1": ...
<3> if str(anInt) == '1':
<3> xihr is too fast for me today
<0> hehe
<0> its still a problem
<0> im getting some data from a list..
<0> and its showing it like "'1'"
<0> and i have a variable which is a int
<0> and its like '1' != "'1'"
<2> well you'll have to determine how that data is getting in that form to make sure you can match it
<0> what do u mean
<2> if it's not in the form you thought it was in, you need to make sure you know what form it is in before you can try to test aganst it
<0> first i read it, then i split it and i have an array
<2> only you know the data you're looking at
<2> if it's just surrounded by single quotes, then:: "'%s'" % i == "'1'": ...
<3> m0fo`: you are suprised that: '1' != "'1'" ?
<0> earle: nop ^_^
<0> thats why im asking here..
<2> what's to understand here
<3> m0f0: for l in aList: l.replace("'", "")
<2> if the strong you want to test is the number surrounded by single quotes, then when converting the number to test against it, add single quotes
<2> string*
<0> if i have 10 lines on some txt file
<0> is it possible to update row number 6
<0> ?
<0> without to re-write the file of course
<4> Only if it's the same length.
<0> it is.
<0> how do i do it ?
<4> Open read+write, read until you've discovered the fifth newline, write the corrected line and close.
<2> not only do the files have to be the same length, but each row has to be the same length as well
<4> By "it" I meant the row, yes.
<5> are python and ruby sort of "rival" languages?
<4> No.
<5> oh :)
<5> Not that any languages are really rivals, but I just think of asp.net and php, they're rivals. But I guess that's maybe more nix vs. windows
<5> the people v. microsoft
<6> ruby's a half-hearted attempt
<7> haha
<5> of python?
<6> PHP isn't really worth mentioning unless you want to get progammers upset
<6> i dunno of what. it isn't sure if it wants to be perl or python.
<5> programmers must sensitive.
<6> iamghetto: emacs.
<5> well php was meant to process forms, and its just kind of trying to grow into itself
<5> its OOP is so awful it makes me want to kill myself
<6> PHP = LOL
<2> funny how the lurkers who never talk about Python in #python always come out in force when there's a language war, eh?
<1> ;)
<6> funny that
<6> actually, speaking of: I tried googling for this, but couldn't find anything: what's the standard way to find the version of an installed module.



<6> ?
<2> what version
<2> modules don't have intrinsic versions
<4> czthwrk: Some are nice enough to provide module.__version__
<6> is that fairly standard?
<2> moderately
<4> Depends how nice the authors are. :)
<4> Oh, and __revision__.
<6> not __localweather__, __currentmood__, and __songplaying__?
<2> how about __dontknowpython__
<5> czthwrk: so would you use Python for a website?
<5> czthwrk: personally
<4> czthwrk: I stick to this_is_an_important_integer_value = 3.14
<6> iamghetto: sure, although most of my stuff is in perl (Mason) right now.
<6> i set up a Python wiki not too long ago. it was pretty slick but it didn't use a dbase backend, so it's slow to bring up category pages (of course not python's fault).
<6> and i took over maintenance/rewriting a bot, which is mainly what led me to learn python
<8> czthwrk
<9> hello, anyone here do xml in python?
<9> i thought that once i had a parsed docuement
<9> i could retrieve data from it like using a pathname syntax
<9> buti can't find that
<9> like
<9> doc.getNodeAt("/outertag/innertag/moreinnertag", "tagwithdata")
<9> ?
<9> or no?
<9> god this is terrible
<9> :<
<2> that's XPath, not DOM
<9> oh
<9> help
<9> :<
<9> it's hard
<9> i think i wrote my own xpath now
<9> :<
<9> but it's broken
<9> almost done with it
<9> xhir
<9> xihr
<9> how do i explode an array, to effect flatten it?
<9> nevermind
<3> ok
<3> who knows the name of a company that make those super high tech cubicle/desk things that support like 8 monitors and whatnot?
<2> Python implementations of XPath already exist, there's no reason to rewrite it
<10> How can I implement a do...while loop in Python, ie a loop with a post-iteration condition check. I've been using while True: with a break statement at the end.
<2> that's fine
<10> It seemed unpythonic.
<7> nah that's pythonic
<10> Hmmm... I suppose I'll have to read others' code more.
<7> if xihr says it's fine then it's fine
<2> heh
<11> <11> dustbust3rs pvt table on prty
<11> <11> 25pl
<11> **** sorry guys
<12> Hello. I decided to write an http server. I know the tcp protocol, and generally the networks that operate in the tcp/ip. I have been told to check Python's defult litle scripts for servers, like Sockets.py BaseHTTPServer.py and SimpleHTTPServer.py. But I don't know which to read and what is necessary to write a server. Could anybody help me please?
<12> What does "build Python extensions" mean?
<12> Please, if anybody knows where I can learn to write a server, he/she could tell me. Thanks in advance.
<0> how do i make a timer that running on some function each 60secs ?
<12> That's a thing I often wander.
<0> :\
<12> How do we take the path, where the script which runs is in?
<12> More sipmly: How do we take the current path?
<12> m0fo`: http://pastebin.com/659509
<13> uhm, hi. what's the python way to write this perl: while(<>) {print $_} ?
<13> for line in sys.stdin: is coming close, but it doesn't do the same thing - for lin in sys.stdin; will wait till eof, and then process all the lines
<14> Who's a good candidate to implement a Python-based (presumably as part of Twisted) WebDAV server?
<14> I'm personally too backed up. Phaseit can pay a modest bounty.
<14> #twisted
<13> is there a better solution than while True: try: line = raw_input() except: break?
<0> is there any other option to get URL source without urllib2 ?
<0> someone know something about irclib ?


Name:

Comments:

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






Return to #python
or
Go to some related logs:

#cisco
#tcl
#beginner
#beginner
drag PT91 turbo
MovieClip.Scroll Script
#mirc
#nhl
#beginner
#slackware



Home  |  disclaimer  |  contact  |  submit quotes