Txs all, i wont to respond to who asked why i needed it: I'm using python on GSM modules and the informations i have to move goes along GPRS/UMTS connections so it's beatiful for me to transfer more informations with less space... imagine i have to send this simple data....
41.232323,12.345678 i can send it as it's or use the nibble trick and on the receiving station 'unlift" the data and rebuild the original information... isn'it??? cheers + TXS, Gianmaria ps: now i'm gonna read all your answers in details... txs again Firma Gianmaria Iaculo "Gianmaria Iaculo - NVENTA" <[EMAIL PROTECTED]> ha scritto nel messaggio news:[EMAIL PROTECTED] > Hi there, > I'm so new to python (coming from .net so excuse me for the stupid > question) and i'm tring to do a very simple thing,with bytes. > > My problem is this: > > i've a byte that naturally is composed from 2 nibbles hi&low, and two > chars.. like A nd B. What i wonna do is to write A to the High nibble and > B to the the lower nibble. > Or an other example can be i've 2 numbers.. like 7 and 8 and whant to do > the same as for chars. > > I'm really confused on how t do it, maybe cause python is type-less > (dynamic typed) > > > Any Help? > > Cheers, > Gianmaria > ITALY > > -- http://mail.python.org/mailman/listinfo/python-list