Did I find the right examples for you? yes no

All Samples(15)  |  Call(0)  |  Derive(0)  |  Import(15)
Functions to convert between Python values and C structs represented
as Python strings. It uses format strings (explained below) as compact
descriptions of the lay-out of the C structs and the intended conversion
to/from Python values.

The optional first format char indicates byte order, size and alignment:
  @: native order, size & alignment (default)
  =: native order, std. size & alignment
  <: little-endian, std. size & alignment
  >: big-endian, std. size & alignment(more...)

src/s/l/SlopPy-HEAD/Lib/test/test_struct.py   SlopPy(Download)
 
try:
    import _struct
except ImportError:
    PY_STRUCT_RANGE_CHECKING = 0

src/p/l/plexnet-HEAD/third_party/generic/pypy/lib-python/modified-2.5.2/test/test_struct.py   plexnet(Download)
 
try:
    import _struct
except ImportError:
    PY_STRUCT_RANGE_CHECKING = 0

src/p/l/plexnet-HEAD/third_party/generic/pypy/lib-python/2.5.2/test/test_struct.py   plexnet(Download)
 
try:
    import _struct
except ImportError:
    PY_STRUCT_RANGE_CHECKING = 0

src/m/a/main-HEAD/Languages/IronPython/Tests/versions/python26.py   main(Download)
def test_struct_bool():
    import _struct
    for prefix in tuple("<>!=")+('',):
        format = str(prefix + '?')
        packed = _struct.pack(format, {})

src/m/a/main-HEAD/Languages/IronPython/Tests/regressions.py   main(Download)
            raise Exception('foo')
 
    import _struct
    global andCalled
    if is_ironpython: #http://ironpython.codeplex.com/workitem/27901

src/m/a/main-HEAD/Languages/IronPython/Tests/modules/type_related/_struct_test.py   main(Download)
from iptest.assert_util import *
 
import _struct
 
def pack(f, *v):

src/m/a/main-HEAD/Languages/IronPython/Tests/dllsite.py   main(Download)
    import re
    import socket
    import _struct
    import thread
    import time

src/i/n/IncPy-HEAD/Lib/test/test_struct.py   IncPy(Download)
 
try:
    import _struct
except ImportError:
    PY_STRUCT_RANGE_CHECKING = 0

src/f/i/Field-HEAD/Contents/lib/python/test/test_struct.py   Field(Download)
 
try:
    import _struct
except ImportError:
    PY_STRUCT_RANGE_CHECKING = 0

src/o/p/openvault-core-HEAD/hydra-jetty/webapps/media/WEB-INF/lib/Lib/test/test_struct.py   openvault-core(Download)
 
try:
    import _struct
except ImportError:
    PY_STRUCT_RANGE_CHECKING = 0

  1 | 2  Next