Actually,. I found the aliases in Lib/encodings/aliases.py and added an alias:
>>> deco = bytes("I sure hate apples.", encoding='ubom') >>> deco b'\xef\xbb\xbfI sure hate apples.' >>> Tricky, though - if you don't put a comma at the end of your alias, it breaks Python (or my Pyscripter editor, anyway ;') -- Jim _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor