Re: How to pack a string variable of length 1 as a char using struct.pack?

2014-08-05 Thread Thomas Orozco
On Tue, Aug 5, 2014 at 2:15 PM, wrote: > Hi, > How to pack a string variable of length 1 as a char using struct.pack? > The following works fine: > p = struct.pack('c', b'1') > > Whereas this causes an error "char format requires a bytes object of > length 1": > s = '1' > p = struct.pack('c', s)

Re: [ANN] Jedi Python Autocomplete in Zeus IDE

2014-09-17 Thread Thomas Orozco
On Wed, Sep 17, 2014 at 8:32 AM, Steven D'Aprano wrote: > > jumppanen.ju...@gmail.com wrote: > > > On Wednesday, September 17, 2014 9:42:16 PM UTC+10, Steven D'Aprano wrote: > [...] > >> According to the screen shot there, if you have typed > >> > >> self.balan > >> > >> the autocomplete will