__gmon_start__ _init _fini __cxa_finalize _Jv_RegisterClasses _Py_NoneStruct PyInt_FromSsize_t PyLong_FromSsize_t PyString_FromStringAndSize _PyFloat_Unpack8 PyFloat_FromDouble PyErr_Occurred _PyFloat_Unpack4 PyNumber_Index PyLong_FromLong PyExc_TypeError PyErr_ExceptionMatches PyErr_Clear PyFloat_Type PyType_IsSubtype PyExc_DeprecationWarning PyErr_WarnEx PyErr_SetString _PyLong_AsByteArray PyInt_FromLong PyLong_FromUnsignedLongLong PyLong_FromLongLong PyLong_FromUnsignedLong PyObject_IsTrue PyBool_FromLong PyLong_AsVoidPtr PyLong_FromVoidPtr PyLong_AsUnsignedLongLong PyLong_AsLongLong _PyArg_ParseTupleAndKeywords_SizeT __ctype_b_loc malloc free PyErr_NoMemory PyObject_ClearWeakRefs PyTuple_New PyBuffer_Release PyErr_Format PyTuple_Pack _PyArg_ParseTuple_SizeT memset memcpy strchr PyExc_OverflowError PyObject_AsWriteBuffer PyInt_AsSsize_t PyFloat_AsDouble _PyFloat_Pack8 _PyFloat_Pack4 PyLong_AsLong PyString_Size PyString_AsString PyArg_UnpackTuple PyDict_GetItem PyDict_New PyObject_CallFunctionObjArgs PyDict_Size PyDict_SetItem PyDict_Clear PyLong_AsUnsignedLong PyTuple_GetSlice init_struct PyString_FromString Py_InitModule4 PyType_Type PyType_Ready PyModule_AddObject PyModule_AddIntConstant PyErr_NewException PyObject_GenericGetAttr PyObject_GenericSetAttr PyType_GenericAlloc PyObject_Free libc.so.6 _edata __bss_start _end GLIBC_2.1.3 GLIBC_2.3 GLIBC_2.0
integer argument expected, got float integer argument expected, got non-integer (implicit conversion using __int__ is deprecated) __int__ method returned non-integer cannot convert argument to integer unpack_from requires a buffer argument unpack_from requires a buffer of at least %zd bytes unpack requires a string argument of length %zd argument for 's' must be a string argument for 'p' must be a string integer out of range for '%c' format code pack_into expected buffer argument pack_into expected offset argument pack_into expected %zd items for packing (got %zd) pack_into requires a buffer of at least %zd bytes pack expected %zd items for packing (got %zd) required argument is not a float byte format requires -128 <= number <= 127 char format require string of length 1 ushort format requires 0 <= number <= USHRT_MAX '%c' format requires %zd <= number <= %zd short format requires SHRT_MIN <= number <= SHRT_MAX ubyte format requires 0 <= number <= 255 '%c' format requires 0 <= number <= %zu S:Struct bad char in struct format total struct size too long z*|n:unpack_from s*:unpack bBhHiIlLqQ missing format argument 0.2 _struct struct.error __version__ _PY_STRUCT_RANGE_CHECKING _PY_STRUCT_FLOAT_COERCE _clearcache calcsize pack_into buffer offset __sizeof__ struct format string struct size in bytes s = = = = = = = = = = = = = = = = = = = = = = = = = = Z R s = `
@w 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 !: same as > The remaining chars indicate types of args and must match exactly; these can be preceded by a decimal repeat count: x: pad byte (no data); c:char; b:signed byte; B:unsigned byte; ?: _Bool (requires C99; if not available, char is used instead) h:short; H:unsigned short; i:int; I:unsigned int; l:long; L:unsigned long; f:float; d:double. Special cases (preceding decimal count indicates length): s:string (array of char); p: pascal string (with count byte). Special case (only available in native format): P:an integer type that is wide enough to hold a pointer. Special case (not in native mode unless 'long long' in platform C): q:long long; Q:unsigned long long Whitespace between formats is ignored. The variable struct.error is an exception raised on errors. Clear the internal cache. Return size of C struct described by format string fmt. Return string containing values v1, v2, ... packed according to fmt. Pack the values v1, v2, ... according to fmt. Write the packed bytes into the writable buffer buf starting at offset. Unpack the string containing packed C structure data, according to fmt. Requires len(string) == calcsize(fmt). Unpack the buffer, containing packed C structure data, according to fmt, starting at offset. Requires len(buffer[offset:]) >= calcsize(fmt). Compiled struct object S.pack(v1, v2, ...) -> string Return a string containing values v1, v2, ... packed according to this Struct's format. See struct.__doc__ for more on format strings. S.pack_into(buffer, offset, v1, v2, ...) Pack the values v1, v2, ... according to this Struct's format, write the packed bytes into the writable buffer buf starting at offset. Note that the offset is not an optional argument. See struct.__doc__ for more on format strings. S.unpack(str) -> (v1, v2, ...) Return tuple containing values unpacked according to this Struct's format. Requires len(str) == self.size. See struct.__doc__ for more on format strings. S.unpack_from(buffer[, offset]) -> (v1, v2, ...) Return tuple containing values unpacked according to this Struct's format. Unlike unpack, unpack_from can unpack values from any object supporting the buffer API, not just str. Requires len(buffer[offset:]) >= self.size. See struct.__doc__ for more on format strings. S.__sizeof__() -> size of S in memory, in bytes T Y| +T 0F | S @G | 4T J } S < } S I ~ x b " `; B " B c @ < s p h `" A H 0" ? i " @@ I ' > l ! ? L `' = q 0& * Q $ ) ? ( ( f ` 8 d 0 p8 P P) ( x b " `; B " B c @ < s p h ! @E H & 0C i ! @E I & 0C l ! @E L & 0C q P$ Q " ? `( ' f `: d p `9 x b " `; B " B c @ < s p h p! @ H ' 0D i p! @ I ' 0D l p! @ L ' 0D q @% Q # ? `( ' f : d 9 >T ET hS S 7 ~ 4T 6 S @3 S 2 LT hS WT /T lT NS 0 ~ ` * 0
GCC: (GNU) 4.2.3 (Ubuntu 4.2.3-2ubuntu7) GCC: (GNU) 4.6.x-google 20120106 (prerelease) GCC: (GNU) 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
.symtab .strtab .shstrtab .hash .dynsym .dynstr .gnu.version .gnu.version_r .rel.dyn .rel.plt .init .text .fini .rodata .eh_frame_hdr .eh_frame .ctors .dtors .jcr .dynamic .got .got.plt .data .bss .comment .debug_aranges .debug_info .debug_abbrev .debug_line .debug_ranges
initfini.c crtstuff.c __CTOR_LIST__ __DTOR_LIST__ __JCR_LIST__ __do_global_dtors_aux completed.5467 dtor_idx.5469 frame_dummy __CTOR_END__ __FRAME_END__ __JCR_END__ __do_global_ctors_aux _struct.c s_new s_get_format clearcache cache s_get_size s_sizeof nu_char bu_double lu_double nu_double nu_float bu_float lu_float get_pylong StructError bp_ulonglong bp_longlong lp_ulonglong lp_longlong bu_int lu_int nu_long nu_int nu_ushort nu_short nu_ubyte nu_byte bu_ulonglong lu_ulonglong nu_ulonglong bu_longlong lu_longlong nu_longlong bu_uint lu_uint nu_ulong nu_uint bp_bool np_bool bu_bool nu_bool np_void_p nu_void_p np_ulonglong np_longlong s_init kwlist.9316 native_table lilendian_table bigendian_table s_dealloc s_unpack_internal.isra.2 s_unpack_from kwlist.9354 s_unpack s_pack_internal.isra.4 s_pack_into s_pack np_double np_float bp_double lp_double bp_float lp_float np_byte np_char unpack PyStructType np_ulong np_uint np_ushort np_long np_int lp_int np_short np_ubyte bp_uint lp_uint bp_int calcsize pack unpack_from pack_into module_doc module_functions clearcache_doc calcsize_doc pack_doc pack_into_doc unpack_doc unpack_from_doc s__doc__ s_methods s_getsetlist s_pack__doc__ s_pack_into__doc__ s_unpack__doc__ s_unpack_from__doc__ s_sizeof__doc__ .L180 .L179 .L257 .L182 .L231 _GLOBAL_OFFSET_TABLE_ __x86.get_pc_thunk.bx __dso_handle __DTOR_END__ _DYNAMIC PyModule_AddObject PyString_AsString PyArg_UnpackTuple PyType_Ready PyLong_FromVoidPtr PyLong_AsVoidPtr PyLong_FromUnsignedLong PyLong_FromUnsignedLongLong __gmon_start__ _Jv_RegisterClasses _PyArg_ParseTuple_SizeT PyBool_FromLong PyObject_AsWriteBuffer strchr@@GLIBC_2.0 _fini PyErr_NoMemory PyObject_CallFunctionObjArgs PyObject_IsTrue PyExc_TypeError memset@@GLIBC_2.0 _PyLong_AsByteArray PyString_FromStringAndSize PyLong_AsLong PyString_Size PyModule_AddIntConstant PyErr_Format PyFloat_FromDouble _PyFloat_Unpack4 PyErr_ExceptionMatches PyErr_Occurred free@@GLIBC_2.0 PyTuple_GetSlice PyObject_GenericSetAttr _PyFloat_Unpack8 PyFloat_Type __ctype_b_loc@@GLIBC_2.3 PyExc_DeprecationWarning init_struct PyString_FromString memcpy@@GLIBC_2.0 PyTuple_Pack PyInt_FromLong PyInt_AsSsize_t PyDict_Size PyDict_GetItem PyObject_GenericGetAttr PyType_IsSubtype PyType_Type _PyFloat_Pack4 PyErr_WarnEx _PyFloat_Pack8 PyFloat_AsDouble PyObject_ClearWeakRefs __bss_start malloc@@GLIBC_2.0 _Py_NoneStruct PyExc_OverflowError PyErr_NewException PyLong_AsLongLong PyLong_FromLong PyLong_AsUnsignedLongLong PyLong_FromLongLong PyInt_FromSsize_t Py_InitModule4 PyObject_Free _end PyErr_Clear PyTuple_New PyLong_FromSsize_t PyErr_SetString _edata _PyArg_ParseTupleAndKeywords_SizeT PyBuffer_Release PyType_GenericAlloc __cxa_finalize@@GLIBC_2.1.3 PyDict_Clear PyNumber_Index PyDict_SetItem PyLong_AsUnsignedLong _init PyDict_New