> If it works because the bytecode compiler changes x.split(":") into > the moral equivalent of > > try: > x.split(":") > except StrNotBytesError: > x.split(b":") > > that is good enough. And how do you propose to implement that? Regards, Martin