20 Jul
2005
20 Jul
'05
12:35 p.m.
--On 20. Juli 2005 17:37:12 +0200 Hans-Peter Jansen <hpj@urpla.net> wrote:
Hi,
ich muß typische escaped ASCII Strings zu binären Strings wandeln, also etwas in der Art: \f -> ^L \033@\033k\000 -> ^[@^[k^@ (rvalues in Terminal Schreibweise)
suxmac:~ ajung$ python2.3 Python 2.3.5 (#2, Feb 26 2005, 09:14:17) [GCC 3.3 20030304 (Apple Computer, Inc. build 1666)] on darwin Type "help", "copyright", "credits" or "license" for more information.
s = '\033@\033k\000' print s k print repr(s) '\x1b@\x1bk\x00' print len(s) 5
-aj _______________________________________________ python-de maillist - python-de@python.net http://python.net/mailman/listinfo/python-de