#python - Mon 5 Mar 2007 between 00:00 and 00:16

NY Lost Funds



tjsty
will monkeypatch my app then flame their dev forums
sanxiyn:)
tjsor perhaps just slash the dudes tyres
;)
ty :)
sanxiynI am suddenly interested in things like Atmospheric General Circulation Model...
Leedssanxiyn: worried about how the fallout will drift?
sanxiynLeeds: Eh, no. Well, more about global warming.
Leedseh, we'll never last long enough for it to matter
anyway...
actionsanxiyn back
sanxiynback
Leeds: Well, what's your estimate of the end of the world? Global warming can start to screw us fairly soon...
jesusphreakI had a quick question concerning Unicode: is Utf-8 any 'worse' than Utf-16? Can it deal with a smaller range of languages?
sanxiynjesusphreak: No. UTF-8 covers full unicode.
jesusphreak: It can encode any characters present in Unicode standard.
jesusphreakokay, so they are just different ways of doing things
So what is the advantage of UTF-16?
sanxiynIt is said to offer constant time indexing.
Well, not really...
Strictly speaking, both UTF-8 and UTF-16 are variable-length encoding, so you need to decode everything to get character in specific position.
jesusphreak: Main advantage you can get by using UTF-16 is interoperating with UTF-16-using softwares, I think. Haha.
jesusphreaksanxiyn: thanks for the info
Yhg1showever, most people just use UTF-16 as a fixed-width encoding (so they are actually using UCS-2, a subset of UTF-16 that is fixed-width, but lacks the higher character planes directly.)
jack_deltrinohow do i get rid of duplicates in a list? i want the equivalent of a SELECT DISTINCT FROM list
Gimpyd-compython pwns
Yhg1sjack_deltrino: list(set(thelist)), if the items are hashable (like strings or numbers.)
linuxmigrationjack_deltrino: use a set? set(foolist)
jack_deltrino: what Yhg1s said
Yhg1sjack_deltrino: it loses order, though.
jack_deltrinoah, is there some --omg-optimized version for sys.argv?
Yhg1sjack_deltrino: what would that do?
jesusphreakha, one more question concerning the GPL.....
jack_deltrinoYhg1s: i just meant is there something optimized for sys.argv?
sanxiynjesusphreak: Go ahead
jack_deltrinolike sys.argv.reduce_duplicates or something better named
jesusphreakcan you offer a commercial non-GPLed program...and then on a website or something mention a GPL library that can be used with your program?
Yhg1sjack_deltrino: I'm not sure what kind of optimization you're asking after. sys.argv is a normal list.
jesusphreakreading the GPL info, they seem to suggest that would be a violation of the GPL
Yhg1sjack_deltrino: no, lists don't have a 'remove duplicates' method.

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

IrcArchive

NY Lost Funds