Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(16)  |  Call(8)  |  Derive(0)  |  Import(8)
chr(i) -> character

Return a string of one character with ordinal i; 0 <= i < 256.

src/p/y/pyelftools-0.22/elftools/construct/lib/hex.py   pyelftools(Download)
from .py3compat import byte2int, int2byte, bytes2str
 
 
# Map an integer in the inclusive range 0-255 to its string byte representation
_printable = dict((i, ".") for i in range(256))
_printable.update((i, bytes2str(int2byte(i))) for i in range(32, 128))

src/p/y/pyelftools-HEAD/elftools/construct/lib/hex.py   pyelftools(Download)
from .py3compat import byte2int, int2byte, bytes2str
 
 
# Map an integer in the inclusive range 0-255 to its string byte representation
_printable = dict((i, ".") for i in range(256))
_printable.update((i, bytes2str(int2byte(i))) for i in range(32, 128))

src/p/y/pyelftools-0.22/elftools/common/utils.py   pyelftools(Download)
from contextlib import contextmanager
from .exceptions import ELFParseError, ELFError, DWARFError
from .py3compat import int2byte
from ..construct import ConstructError
 
def bytelist2string(bytelist):
    """ Convert a list of byte values (e.g. [0x10 0x20 0x00]) to a bytes object
        (e.g. b'\x10\x20\x00').
    """
    return b''.join(int2byte(b) for b in bytelist)

src/p/y/pyelftools-HEAD/elftools/common/utils.py   pyelftools(Download)
from contextlib import contextmanager
from .exceptions import ELFParseError, ELFError, DWARFError
from .py3compat import int2byte
from ..construct import ConstructError
 
def bytelist2string(bytelist):
    """ Convert a list of byte values (e.g. [0x10 0x20 0x00]) to a bytes object
        (e.g. b'\x10\x20\x00').
    """
    return b''.join(int2byte(b) for b in bytelist)

src/p/s/pss-1.39/psslib/utils.py   pss(Download)
# This code is in the public domain
#-------------------------------------------------------------------------------
from .py3compat import int2byte
from . import colorama
 
 
_text_characters = (
        b''.join(int2byte(i) for i in range(32, 127)) +

src/p/y/pyelftools-0.22/elftools/construct/lib/binary.py   pyelftools(Download)
from .py3compat import int2byte
 
 
def int_to_bin(number, width=32):
    r"""
_bin_to_char = {}
for i in range(256):
    ch = int2byte(i)
    bin = int_to_bin(i, 8)
    # Populate with for both keys i and ch, to support Python 2 & 3

src/p/s/pss-HEAD/psslib/utils.py   pss(Download)
# This code is in the public domain
#-------------------------------------------------------------------------------
from .py3compat import int2byte
from . import colorama
 
 
_text_characters = (
        b''.join(int2byte(i) for i in range(32, 127)) +

src/p/y/pyelftools-HEAD/elftools/construct/lib/binary.py   pyelftools(Download)
from .py3compat import int2byte
 
 
def int_to_bin(number, width=32):
    r"""
_bin_to_char = {}
for i in range(256):
    ch = int2byte(i)
    bin = int_to_bin(i, 8)
    # Populate with for both keys i and ch, to support Python 2 & 3