I'm sort of mystified by the print hex to char conversion

2009-04-18 Thread grocery_stocker
I'm just really not seeing how something like x63 and/or x61 gets converted by 'print' to the corresponding chars in the following output... [cdal...@localhost oakland]$ python Python 2.4.3 (#1, Oct 1 2006, 18:00:19) [GCC 4.1.1 20060928 (Red Hat 4.1.1-28)] on linux2 Type help, copyright, credits

Re: I'm sort of mystified by the print hex to char conversion

2009-04-18 Thread Wojtek Walczak
On Sat, 18 Apr 2009 11:45:09 -0700 (PDT), grocery_stocker wrote: I'm just really not seeing how something like x63 and/or x61 gets converted by 'print' to the corresponding chars in the following output... ... print \x63h\x61d chad Does print just do this magically? Not only print does

Re: I'm sort of mystified by the print hex to char conversion

2009-04-18 Thread Peter Pearson
On Sat, 18 Apr 2009 11:45:09 -0700 (PDT), grocery_stocker wrote: I'm just really not seeing how something like x63 and/or x61 gets converted by 'print' to the corresponding chars in the following output... [cdal...@localhost oakland]$ python Python 2.4.3 (#1, Oct 1 2006, 18:00:19) [GCC

Re: I'm sort of mystified by the print hex to char conversion

2009-04-18 Thread Dave Angel
grocery_stocker wrote: I'm just really not seeing how something like x63 and/or x61 gets converted by 'print' to the corresponding chars in the following output... [cdal...@localhost oakland]$ python Python 2.4.3 (#1, Oct 1 2006, 18:00:19) [GCC 4.1.1 20060928 (Red Hat 4.1.1-28)] on linux2 Type