base64.encode and decode not correct

2005-08-16 Thread Damir Hakimov
Hi *! I found a strange bug in base64.encode and decode, when I try to encode - decode a file 1728512 bytes lenth. Is somebody meet with this? I don't attach the file because it big, but can send to private. Which solution for transfer file (binary data) via string-only object? Damir. --

Re: base64.encode and decode not correct

2005-08-16 Thread Damir Hakimov
Damir b wrote: Hi *! I found a strange bug in base64.encode and decode, when I try to encode - decode a file 1728512 bytes lenth. Is somebody meet with this? I don't attach the file because it big, but can send to private. Which solution for transfer file (binary data) via string-only object?

bug in property?

2005-08-12 Thread Damir Hakimov
#!/usr/bin/python2.4 class test_property: def __init__(self): self._x=Zero pass def setx(self,x): print set x #this is not work self._x=x def getx(self): return self._x def delx(self): del(self._x) x=property(getx,setx,delx,XXX)

Re: python for microcontrollers

2005-08-09 Thread Damir Hakimov
David Cuthbert wrote: Paul Rubin wrote: I don't think you want to do this. Runtime type tags and the overhead of checking them on every operation will kill you all by themselves. Processors like that haven't been used much as Lisp targets either, for the same reasons. Pick a different

Re: error with examples (UDP broadcast)

2005-08-08 Thread Damir Hakimov
Damir Hakimov wrote: Hi All! I'm writing a small programm which must send and service UDP broadcast packets. As start of it I looked at /usr/share/doc/python2.4/Examples/Demo/sockets/broadcast.py Well, this is the broken code (from examples

error with examples (UDP broadcast)

2005-08-07 Thread Damir Hakimov
Hi All! I'm writing a small programm which must send and service UDP broadcast packets. As start of it I looked at /usr/share/doc/python2.4/Examples/Demo/sockets/broadcast.py [EMAIL PROTECTED]:/usr/share/doc/python2.4/examples/Demo/sockets$ python2.4 broadcast.py Traceback (most recent call