| insanekane | JohnQ: if you consider it private, then yes |
| nzk | i use %s no |
| JohnQ | I 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 |
| nzk | My script works! It even outputs into meters Why is bram_ going home? Where was he before? |
| Zal | work perhaps? |
| cracki | nzk hint: 3.2808399 is 1/0.3048 (actual conversion factor, 30.48cm in a foot), in case someone asks what the constants are |
| d1me0 | hi! Does a "Timed event" exists in Tkinter? found (http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/82965) thanks anyway |
| AlexCONRAD | Hi, 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 ? |
| deltab | AlexCONRAD: is there a locale that describes the collation you want? |
| AlexCONRAD | a locale ? deltab: here is the list: http://www.iso.org/iso/fr/prods-services/iso3166ma/02iso-3166-code-lists/list-en1-semic.txt |
| nzk | cracki, "constants"? |
| cracki | nzk numbers, factors |
| AlexCONRAD | deltab: but I'm actually iterating over a dict (this list is converted and stored as a dict) |
| deltab | stored how? dicts don't record order |
| nzk | cracki, but why would someone ask? |
| TyRiOn-MX | wewe |
| ardiem | __import__(m) <-- is not using modules and vars that occur in the file where m gets imported... |
| cracki | nzk maybe. i guess it's some task you were given. |
| ardiem | what should i do? |
| AlexCONRAD | deltab: I know, so I'm iterating over the dict, convert it to a list, order my list, but "land Islands" goes at the end |
| deltab | why convert it to a dict and lose the order? |
| nzk | cracki, no, i code for fun |
| smithj | argh, i need regex help. i can't figure out why this is happening: http://pastebin.ca/373300 |
| AlexCONRAD | deltab: because that dict gives me the country name country["en"]["CO"], which returns "columbia". I could also do country["fr"]["CO"], which returns "colombie" |
| smithj | basically, i want the regex to match anything with a # which doesn't also have a ' or " |
| hap | hi http://deadbeefbabe.org/paste/3803 |
| Zal | smithj you need "negative look-ahead" |