# re-assemble python

**URL:** <https://forums.digi.com/t/re-assemble-python/15926>\
**Category:** XBee - Zigbee\
**Tags:** python\
**Created:** [December 10, 2015, 11:09am UTC](https://forums.digi.com/t/re-assemble-python/15926 "2015-12-10T11:09:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rolland](https://avatars.discourse-cdn.com/v4/letter/r/b9e5f3/32.png) [@Rolland](https://forums.digi.com/u/Rolland)\
**Post date:** [December 10, 2015, 11:09am UTC](https://forums.digi.com/t/re-assemble-python/15926/1 "2015-12-10T11:09:40Z")

</div>

Dear,  
I’m a newbie: how can I do in Python to re-assemble some payload like:

```
  uint16 value ;
  uint8 payload [170];

  payload[k]= value &gt;&gt; 8 &amp; 0xff;
  payload[k+1]= value &amp; 0xff;

```

Best regards.
