hi, 
 
is there a way to convert from string to long? for eg: i want to concatenate 
all the arrays into data and make it same type (long) as data1. 
 
####code:
a='0x'
array0 = '00000018000004000000000000000000'
array1 = '00000000000000000000000000000000'
array2 = 'fe000000000000000000000000000000'
array3 = '00000000000000000000000000ffffff'
data = a+array0+array1+array2+array3
print data
print type(data)
data1 = 
0x0000001800000400000000000000000000000000000000000000000000000000fe00000000000000000000000000000000000000000000000000000000ffffff
print type(data1)
 
###result:
0x0000001800000400000000000000000000000000000000000000000000000000fe00000000000000000000000000000000000000000000000000000000ffffff
<type 'str'>
<type 'long'>
######
 
thanks
tcl                                       
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to