@# Quotes DB     useful, funny, interesting





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


Comments:

<0> anyone here that knows how to move buttons in boa constructor when i draw a frame?
<0> i cant drag the buttons arround
<1> which is the best exif module?
<2> are there any estores that use python?
<3> estores?
<3> well, most definitely
<3> take a look at python.org, there's a section about places python is being used (only a small fraction of the total though)
<2> oh
<4> Hola!
<2> does python have any advantages over say, perl?
<5> yes, that you can read it after you have written it, even if a few days p***ed by
<2> are there any other advantages other than readability



<6> It's a high level language.
<3> hund: Weren't you going to bed?
<6> Sleepless.
<6> galbil: Asking for advantages over Perl is hard, since Perl is primarily for glue code.
<6> Stiching together other programs that aren't designed properly to talk to each other.
<2> oh
<7> how do i sort a hash ?
<8> dictionaries don't have an order
<8> you can make a list with list(x) and then sort that
<7> http://www.rafb.net/paste/results/STgODK65.html
<7> that's what i have so far i guess there is no easy way
<7> is there a reason why dictionaries are not fifo'd
<8> ?
<8> it's because they're hash tables
<8> you can't implement them as efficiently and give them an order
<8> if there's a function to remove duplicates from a list, you could iterate through the list
<8> ok, here's what I'd do
<8> generate the counts first
<8> then do lines = list(set(lines))
<8> to remove duplicates
<8> sort it
<8> and iterate through that list
<8> actually no
<8> lines = list(h)
<8> for the list of keys in the dictionary
<7> thanks
<9> yaya python rocks
<10> hey just wondering if it's easy to setup SSL in python
<10> for a network app
<8> I dunno, have you looked at the docs?
<10> yeah a lil i'm not sure what i'm doing though
<10> i want to make a webpage
<10> with an ssl longin
<10> login
<8> that doesn't sound like something I can help you with
<11> I ve been rtfm'ing for my question but havent found a useful answer. I have a string and what i want to do is : save to a variable the first byte of this string, save to another variable the next 4 bytes of the string, and save to the last variable the rest of the string. Can someone tell me how to do this or tell me where to find more info. Thanx in advance
<12> Hello. I have a problem. In my program, I take input from the user, a mathematical operation. ( eg 34-245 * 34.2 ) Then, I print into the screen the result, using the function eval(). But I can't get decimal numbers, if the input is i.e. 7/8, because the user hasn't printed 7.0/8. What can I do, in order to get also decimals? What do you recommend me to do? is there a function that multiples alla the numbers in a (string) mathematical operation, or something? Th
<12> anks in advance.
<12> * a function that multiples all the numbers in a (string) mathematical operation with 1.0
<13> from __future__ import division
<13> s = '7 / 8'
<13> print eval(s)
<12> ceeam: Thanks a lot. You REALY saved me! :D thx again :)
<13> NP :)



<14> isn't there a === operator in python?
<12> na tos
<14> pountos?
<12> Poromenos: geia sou file
<14> hello :p
<15> hi
<14> den exei === i python?
<12> Poromenos: Oxi.
<12> Poromenos: adi na kaneis
<12> if foo === bar
<12> kaneis
<12> if foo == bar and type( foo ) == type( bar )
<14> hmm
<14> pos nomiza oti eixe...
<12> h php exei
<14> a, nai
<14> ok, thanks file
<12> Poromenos: np :)
<16> heya
<16> anyone around familiar with turbogears?
<14> alas, no
<14> i know a bit of django if you want, though :p
<16> any chances its using Kid templates as well?
<14> i don't think so, what are they?
<17> hi
<17> hm... how can I: string(dictionary["filepath"])+"filename" ?
<8> I have no idea what that's supposed to mean
<17> well
<17> i need a string, consisting of a python-dictionary-item (dictionary<=a python datatype) and a string
<17> better? :)
<8> are the values in the dictionary strings?
<17> yup
<8> then you should be able to just do dictionary[something]+"string"
<17> but that wouldn't be a problem (for int, float, etc.)
<8> if you need to convert to a string, use str()
<17> already tried that.
<17> uf... forgot the dictionary[item]. you have to see it to believe it... heheh
<17> madewokhe,thanks anyways
<17> radarada
<18> hi, how can I p*** input to a program I launched with the subprocess module?
<17> re
<17> is it possible to tell the ftplib.retrbinary("RETR " + filename, outfile.write) WHERE to save that file?
<17> i mean without any additional File IO work
<17> lambda is the key.
<17> hm... no i still don't know how to tell it where to save that file... :(
<12> Does anybody know, when you compile our script with py2exe, how you can say that the *.exe file will have an icon? (instead of the standard white)
<12> *when you compile your script
<19> outfile.write
<19> thats a file object
<19> so u have to do
<19> file = open("somthg.zip", "wb")
<19> before that


Name:

Comments:

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






Return to #python
or
Go to some related logs:

MS-13 heavy Metal
#winxp
debian-sys-maint rights
#flash
spoerts extremes
#computers
#linuxhelp
#heroin
#sex
#3dsmax



Home  |  disclaimer  |  contact  |  submit quotes