Re: Missing codecs in Python 3.0

2009-06-03 Thread Benjamin Peterson
samwyse gmail.com> writes: > > I have a Python 2.6 program (a code generator, actually) that tries > several methods of compressing a string and chooses the most compact. > It then writes out something like this: > { encoding='bz2_codec', data = '...'} In 3.x, all codecs which don't directly

Re: Missing codecs in Python 3.0

2009-06-02 Thread Martin v. Löwis
samwyse wrote: > I have a Python 2.6 program (a code generator, actually) that tries > several methods of compressing a string and chooses the most compact. > It then writes out something like this: > { encoding='bz2_codec', data = '...'} > > I'm having two problems converting this to Py3. Firs

Re: Missing codecs in Python 3.0

2009-06-02 Thread Carl Banks
On Jun 2, 7:35 pm, Chris Rebert wrote: > On Tue, Jun 2, 2009 at 7:15 PM, samwyse wrote: > > I have a Python 2.6 program (a code generator, actually) that tries > > several methods of compressing a string and chooses the most compact. > > It then writes out something like this: > >  { encoding='bz

Re: Missing codecs in Python 3.0

2009-06-02 Thread Chris Rebert
On Tue, Jun 2, 2009 at 7:15 PM, samwyse wrote: > I have a Python 2.6 program (a code generator, actually) that tries > several methods of compressing a string and chooses the most compact. > It then writes out something like this: >  { encoding='bz2_codec', data = '...'} > > I'm having two problem

Missing codecs in Python 3.0

2009-06-02 Thread samwyse
I have a Python 2.6 program (a code generator, actually) that tries several methods of compressing a string and chooses the most compact. It then writes out something like this: { encoding='bz2_codec', data = '...'} I'm having two problems converting this to Py3. First is the absence of the bz2