#python - Mon 26 Feb 2007 between 14:13 and 14:34

NY Lost Funds



insanekaneJohnQ: if you consider it private, then yes
nzki use %s no
JohnQI see. thanks
jmalicki_nzk: no.
cracki%s is string
nzk%s actually worked, though
it worked the same as %f
jmalicki_nzk: hah, %s probably would work ;)
its not the most efficient way though
bram_because behind the scenes python is converting your float to a string
laters people :-) time to go ho-o-o-o-o-ome
nzkMy script works!
It even outputs into meters
Why is bram_ going home? Where was he before?
Zalwork perhaps?
crackinzk hint: 3.2808399 is 1/0.3048 (actual conversion factor, 30.48cm in a foot), in case someone asks what the constants are
d1me0hi! Does a "Timed event" exists in Tkinter?
found (http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/82965) thanks anyway
AlexCONRADHi, I have a list of names, but containing special characters... how could I sort() this list as I'd like to have "land Islands" before "Algeria" (right now, "land Islands" is after "Zimbabwe"). How could I do that ?
deltabAlexCONRAD: is there a locale that describes the collation you want?
AlexCONRADa locale ?
deltab: here is the list: http://www.iso.org/iso/fr/prods-services/iso3166ma/02iso-3166-code-lists/list-en1-semic.txt
nzkcracki, "constants"?
crackinzk numbers, factors
AlexCONRADdeltab: but I'm actually iterating over a dict (this list is converted and stored as a dict)
deltabstored how? dicts don't record order
nzkcracki, but why would someone ask?
TyRiOn-MXwewe
ardiem__import__(m) <-- is not using modules and vars that occur in the file where m gets imported...
crackinzk maybe. i guess it's some task you were given.
ardiemwhat should i do?
AlexCONRADdeltab: I know, so I'm iterating over the dict, convert it to a list, order my list, but "land Islands" goes at the end
deltabwhy convert it to a dict and lose the order?
nzkcracki, no, i code for fun
smithjargh, i need regex help. i can't figure out why this is happening: http://pastebin.ca/373300
AlexCONRADdeltab: because that dict gives me the country name country["en"]["CO"], which returns "columbia". I could also do country["fr"]["CO"], which returns "colombie"
smithjbasically, i want the regex to match anything with a # which doesn't also have a ' or "
haphi
http://deadbeefbabe.org/paste/3803
Zalsmithj you need "negative look-ahead"

Page: 2 9 16 23 30 37 44 51 58 65 72 79 86 

IrcArchive

NY Lost Funds