#musicbrainz

/

      • outsidecontext
        luks: ping
      • 2008-12-01 33609, 2008

      • nikki
        does anyone know if python has a function like perl's tr///?
      • 2008-12-01 33600, 2008

      • symphonick has quit
      • 2008-12-01 33649, 2008

      • warp
        nikki: "string".translate() ?
      • 2008-12-01 33659, 2008

      • nikki looks it up
      • 2008-12-01 33614, 2008

      • MightyJay has quit
      • 2008-12-01 33615, 2008

      • nikki
        blah... perl's is less work :P
      • 2008-12-01 33614, 2008

      • Muzzz
        \o/ perl
      • 2008-12-01 33656, 2008

      • warp
        haha
      • 2008-12-01 33643, 2008

      • warp
        oh, reading it now it does seem like a bunch of hassle.
      • 2008-12-01 33653, 2008

      • luks
        outsidecontext: pong
      • 2008-12-01 33647, 2008

      • outsidecontext
        luks: hey, still awake :)
      • 2008-12-01 33617, 2008

      • outsidecontext
        luks: i noticed you have uploaded the translations to launchpad
      • 2008-12-01 33619, 2008

      • luks
        watching a movie actually
      • 2008-12-01 33622, 2008

      • luks
        yes
      • 2008-12-01 33635, 2008

      • outsidecontext
        but ther should be new strings. something is wrong
      • 2008-12-01 33617, 2008

      • Yllona has quit
      • 2008-12-01 33640, 2008

      • luks
        the template was not uploaded yet, as far as I can see
      • 2008-12-01 33636, 2008

      • outsidecontext
        ah, i thought it was because all the "newly translated in launchpad" marks disappeared
      • 2008-12-01 33655, 2008

      • luks
        hm, but it's not in the queue. weird
      • 2008-12-01 33623, 2008

      • outsidecontext
        afaik the translation weren't updated the last time, either. i supposed it was because of the xgettext bug in update.py
      • 2008-12-01 33641, 2008

      • luks
        ah, not, it's approved but not imported yet
      • 2008-12-01 33651, 2008

      • luks
      • 2008-12-01 33616, 2008

      • luks
        I think the new translations will be added only after importing the .pot file
      • 2008-12-01 33632, 2008

      • outsidecontext
        ok, looks good.
      • 2008-12-01 33635, 2008

      • sonium has quit
      • 2008-12-01 33642, 2008

      • outsidecontext
        i'm never sure what launchpad is about to do :)
      • 2008-12-01 33625, 2008

      • outsidecontext
      • 2008-12-01 33635, 2008

      • luks
        me neither, especially the translations stuff
      • 2008-12-01 33645, 2008

      • luks
        I've seen it
      • 2008-12-01 33656, 2008

      • outsidecontext
        another launchpad weirdness
      • 2008-12-01 33624, 2008

      • luks
        the guy is talking about different types of uploads, but I don't see any options how to do that
      • 2008-12-01 33639, 2008

      • luks
      • 2008-12-01 33640, 2008

      • outsidecontext
        haha
      • 2008-12-01 33654, 2008

      • outsidecontext
        anyway, not that important :)
      • 2008-12-01 33607, 2008

      • outsidecontext
        I'll go to bed soon. have a nice evening
      • 2008-12-01 33617, 2008

      • luks
        good night
      • 2008-12-01 33619, 2008

      • outsidecontext
        or rather night
      • 2008-12-01 33631, 2008

      • outsidecontext has quit
      • 2008-12-01 33607, 2008

      • nikki sighs
      • 2008-12-01 33639, 2008

      • nikki
        I hate that stupid unicode decode error python always gives me :( I never remember what to do to make it happy
      • 2008-12-01 33617, 2008

      • FauxFaux
        Generate locales? Change you session/shell/etc.'s LC_ALL / locale?
      • 2008-12-01 33627, 2008

      • nikki
        no
      • 2008-12-01 33631, 2008

      • nikki
        python doesn't care about locales
      • 2008-12-01 33643, 2008

      • FauxFaux
        Fail.
      • 2008-12-01 33601, 2008

      • nikki
        I can run it from a utf-8 locale but it won't print utf-8 unless I tell it to in the right way
      • 2008-12-01 33658, 2008

      • Muzzz
        import unicode something or other ain't it?
      • 2008-12-01 33601, 2008

      • nikki
        no idea
      • 2008-12-01 33609, 2008

      • nikki wonders how to run perl scripts from python...
      • 2008-12-01 33619, 2008

      • nikki
        would probably be faster ¬_¬
      • 2008-12-01 33645, 2008

      • Muzzz
        os.system("foo.pl")
      • 2008-12-01 33636, 2008

      • warp
        nikki: atleast that will be more-or-less fixed in python 3.0
      • 2008-12-01 33601, 2008

      • luks
        I still don't see how it is broken
      • 2008-12-01 33603, 2008

      • FauxFaux
        MYTH.
      • 2008-12-01 33632, 2008

      • nikki
        it's not obvious to me why it's not working
      • 2008-12-01 33655, 2008

      • nikki
        I told it the encoding of the file and told it to encode it when I print, but it still doesn't work
      • 2008-12-01 33606, 2008

      • warp
        luks: it's annoying to have to be so explicit about string/unicode conversion. having everything as unicode by default will make using python a lot easier IMHO.
      • 2008-12-01 33612, 2008

      • luks
        can you pastebin the codee and the error?
      • 2008-12-01 33651, 2008

      • luks
        warp: but unicode is not easy, for example there are 3 different run-time encodings used for different things on windows
      • 2008-12-01 33613, 2008

      • FauxFaux
        warp: Everything as code points, or as glyphs? ¬_¬
      • 2008-12-01 33620, 2008

      • warp
        luks: i know it's not. you can save a file on osx and it won't exist afterwards because osx decided to normalize the unicode to non-combined characters or whatever.
      • 2008-12-01 33621, 2008

      • warp
        FauxFaux: the python unicode type.
      • 2008-12-01 33639, 2008

      • FauxFaux
        What does it present to the programmer?
      • 2008-12-01 33645, 2008

      • chefkoch has quit
      • 2008-12-01 33650, 2008

      • nikki
      • 2008-12-01 33657, 2008

      • luks
        FauxFaux: codepoints
      • 2008-12-01 33659, 2008

      • warp
        FauxFaux: unicode characters :)
      • 2008-12-01 33604, 2008

      • warp
        ok
      • 2008-12-01 33610, 2008

      • FauxFaux
        Mmm.
      • 2008-12-01 33639, 2008

      • luks
        nikki: maketrans apparently can't work with unicode
      • 2008-12-01 33644, 2008

      • nikki
        oh
      • 2008-12-01 33650, 2008

      • luks
        nikki: unicode.translate is different from str.translate
      • 2008-12-01 33612, 2008

      • luks
        nikki: the unicode version accepts a dict, the str version accept a 256 bytes long str bytestring
      • 2008-12-01 33600, 2008

      • nikki
        if only I understood that :/
      • 2008-12-01 33613, 2008

      • nikki
        aha
      • 2008-12-01 33626, 2008

      • nikki got python to run the perl script >D
      • 2008-12-01 33626, 2008

      • warp can't get the unicode.translate() to work yet.
      • 2008-12-01 33648, 2008

      • luks
      • 2008-12-01 33612, 2008

      • luks
        it's a really weird method
      • 2008-12-01 33636, 2008

      • luks
        "the given translation table which must be a mapping of Unicode ordinals to Unicode ordinals, Unicode strings or None"
      • 2008-12-01 33602, 2008

      • warp
        ouch
      • 2008-12-01 33607, 2008

      • warp
        luks: thanks.
      • 2008-12-01 33609, 2008

      • nikki
        so I can't use ranges?
      • 2008-12-01 33620, 2008

      • luks
        there seems to be no function to convert ranges to such a table
      • 2008-12-01 33643, 2008

      • intrados joined the channel
      • 2008-12-01 33619, 2008

      • intrados has quit
      • 2008-12-01 33643, 2008

      • nikki
        ew :/
      • 2008-12-01 33612, 2008

      • nikki
        python obviously wasn't designed for people like me then :P