unsigned int \ long

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Roman Yakovenko

    unsigned int \ long

    Hi. I need to work with integer as unsigned integer, but
    I can't find documentation how can I do it.

    Some reference on this will be appreciated.

    For example (unsigned int)(-1) == 0xFFFFFFFF.

    Thanks.

    Roman.

  • Terry Reedy

    #2
    Re: unsigned int \ long


    "Roman Yakovenko" <romany@actimiz e.com> wrote in message
    news:mailman.10 60753100.20465. [email protected] ...[color=blue]
    >Hi. I need to work with integer as unsigned integer, but
    >I can't find documentation how can I do it.[/color]
    [color=blue]
    >Some reference on this will be appreciated.[/color]
    [color=blue]
    >For example (unsigned int)(-1) == 0xFFFFFFFF.[/color]

    Python does not have a separate count type. Just use 0 and positive
    ints and longs.

    TJR


    Comment

    • Andres Viikmaa

      #3
      Re: unsigned int \ long

      look module struct -- Interpret strings as packed binary data

      Andres

      "Roman Yakovenko" <romany@actimiz e.com> wrote in message
      news:mailman.10 60753100.20465. [email protected] ...
      Hi. I need to work with integer as unsigned integer, but
      I can't find documentation how can I do it.

      Some reference on this will be appreciated.

      For example (unsigned int)(-1) == 0xFFFFFFFF.

      Thanks.

      Roman.


      Comment

      Working...