Wednesday, October 23, 2013

How To Reverse The Order Of A Four Bytes Integer In Python

How To Reverse The Order Of A Four Bytes Integer In Python


by cawan (cawan[at]ieee.org or chuiyewleong[at]hotmail.com)

on 23/10/2013


Just a simple reminder for those who new to python. Instead of using bit wise operation in accomplishing a logical function such as reversing the order of a four bytes integer, it is better to make use to the library which has such identical function. For the case of reversing the order of a four bytes integer, instead of using



it is simpler and easier to use



as alternative.

No comments:

Post a Comment