will monkeypatch my app then flame their dev forums
|tjs||or perhaps just slash the dudes tyres|
|sanxiyn||I am suddenly interested in things like Atmospheric General Circulation Model...|
|Leeds||sanxiyn: worried about how the fallout will drift?|
|sanxiyn||Leeds: Eh, no. Well, more about global warming.|
|Leeds||eh, we'll never last long enough for it to matter|
Leeds: Well, what's your estimate of the end of the world? Global warming can start to screw us fairly soon...
|jesusphreak||I had a quick question concerning Unicode: is Utf-8 any 'worse' than Utf-16? Can it deal with a smaller range of languages?|
|sanxiyn||jesusphreak: No. UTF-8 covers full unicode.|
jesusphreak: It can encode any characters present in Unicode standard.
|jesusphreak||okay, so they are just different ways of doing things|
So what is the advantage of UTF-16?
|sanxiyn||It 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.
|jesusphreak||sanxiyn: thanks for the info|
|Yhg1s||however, 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_deltrino||how do i get rid of duplicates in a list? i want the equivalent of a SELECT DISTINCT FROM list|
|Yhg1s||jack_deltrino: list(set(thelist)), if the items are hashable (like strings or numbers.)|
|linuxmigration||jack_deltrino: use a set? set(foolist)|
jack_deltrino: what Yhg1s said
|Yhg1s||jack_deltrino: it loses order, though.|
|jack_deltrino||ah, is there some --omg-optimized version for sys.argv?|
|Yhg1s||jack_deltrino: what would that do?|
|jesusphreak||ha, one more question concerning the GPL.....|
|jack_deltrino||Yhg1s: i just meant is there something optimized for sys.argv?|
|sanxiyn||jesusphreak: Go ahead|
|jack_deltrino||like sys.argv.reduce_duplicates or something better named|
|jesusphreak||can 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?|
|Yhg1s||jack_deltrino: I'm not sure what kind of optimization you're asking after. sys.argv is a normal list.|
|jesusphreak||reading the GPL info, they seem to suggest that would be a violation of the GPL|
|Yhg1s||jack_deltrino: no, lists don't have a 'remove duplicates' method.|