Re: How to port bytes formatting to Python 3.x ?

2011-01-01 Thread Stefan Behnel
Baptiste Lepilleur, 01.01.2011 12:53: 2011/1/1 Stefan Behnel Baptiste Lepilleur, 01.01.2011 10:01: I'm trying to port a small library to Python 3.x, and I'm wondering what is the best way to port statements such as the one belows that are frequently found in network protocol implementation: ...

Re: How to port bytes formatting to Python 3.x ?

2011-01-01 Thread Baptiste Lepilleur
2011/1/1 Stefan Behnel > Baptiste Lepilleur, 01.01.2011 10:01: > > Hi, >> I'm trying to port a small library to Python 3.x, and I'm wondering what >> is >> the best way to port statements such as the one belows that are >> frequently >> found in network protocol implementation: >> ... >> > See

Re: How to port bytes formatting to Python 3.x ?

2011-01-01 Thread Stefan Behnel
Baptiste Lepilleur, 01.01.2011 10:01: Hi, I'm trying to port a small library to Python 3.x, and I'm wondering what is the best way to port statements such as the one belows that are frequently found in network protocol implementation: headerparts = ("%s:%s\n" % (key, value) for key, va

How to port bytes formatting to Python 3.x ?

2011-01-01 Thread Baptiste Lepilleur
Hi, I'm trying to port a small library to Python 3.x, and I'm wondering what is the best way to port statements such as the one belows that are frequently found in network protocol implementation: headerparts = ("%s:%s\n" % (key, value) for key, value in headers.iteritems()) frame