{
    "mode": "pydoc",
    "parameter": "xdrlib",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/pydoc/xdrlib/json",
    "generated": "2026-06-02T15:03:38Z",
    "sections": {
        "NAME": {
            "content": "xdrlib - Implements (a subset of) Sun XDR -- eXternal Data Representation.\n",
            "subsections": []
        },
        "MODULE REFERENCE": {
            "content": "https://docs.python.org/3.10/library/xdrlib.html\n\nThe following documentation is automatically generated from the Python\nsource files.  It may be incomplete, incorrect or include features that\nare considered implementation detail and may vary between Python\nimplementations.  When in doubt, consult the module reference at the\nlocation listed above.\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "See: RFC 1014\n",
            "subsections": []
        },
        "CLASSES": {
            "content": "builtins.Exception(builtins.BaseException)\nError\nConversionError\nbuiltins.object\nPacker\nUnpacker\n",
            "subsections": [
                {
                    "name": "class ConversionError",
                    "content": "|  ConversionError(msg)\n|\n|  Method resolution order:\n|      ConversionError\n|      Error\n|      builtins.Exception\n|      builtins.BaseException\n|      builtins.object\n|\n|  Methods inherited from Error:\n|\n|  init(self, msg)\n|      Initialize self.  See help(type(self)) for accurate signature.\n|\n|  repr(self)\n|      Return repr(self).\n|\n|  str(self)\n|      Return str(self).\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors inherited from Error:\n|\n|  weakref\n|      list of weak references to the object (if defined)\n|\n|  ----------------------------------------------------------------------\n|  Static methods inherited from builtins.Exception:\n|\n|  new(*args, kwargs) from builtins.type\n|      Create and return a new object.  See help(type) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from builtins.BaseException:\n|\n|  delattr(self, name, /)\n|      Implement delattr(self, name).\n|\n|  getattribute(self, name, /)\n|      Return getattr(self, name).\n|\n|  reduce(...)\n|      Helper for pickle.\n|\n|  setattr(self, name, value, /)\n|      Implement setattr(self, name, value).\n|\n|  setstate(...)\n|\n|  withtraceback(...)\n|      Exception.withtraceback(tb) --\n|      set self.traceback to tb and return self.\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors inherited from builtins.BaseException:\n|\n|  cause\n|      exception cause\n|\n|  context\n|      exception context\n|\n|  dict\n|\n|  suppresscontext\n|\n|  traceback\n|\n|  args\n"
                },
                {
                    "name": "class Error",
                    "content": "|  Error(msg)\n|\n|  Exception class for this module. Use:\n|\n|  except xdrlib.Error as var:\n|      # var has the Error instance for the exception\n|\n|  Public ivars:\n|      msg -- contains the message\n|\n|  Method resolution order:\n|      Error\n|      builtins.Exception\n|      builtins.BaseException\n|      builtins.object\n|\n|  Methods defined here:\n|\n|  init(self, msg)\n|      Initialize self.  See help(type(self)) for accurate signature.\n|\n|  repr(self)\n|      Return repr(self).\n|\n|  str(self)\n|      Return str(self).\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors defined here:\n|\n|  weakref\n|      list of weak references to the object (if defined)\n|\n|  ----------------------------------------------------------------------\n|  Static methods inherited from builtins.Exception:\n|\n|  new(*args, kwargs) from builtins.type\n|      Create and return a new object.  See help(type) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from builtins.BaseException:\n|\n|  delattr(self, name, /)\n|      Implement delattr(self, name).\n|\n|  getattribute(self, name, /)\n|      Return getattr(self, name).\n|\n|  reduce(...)\n|      Helper for pickle.\n|\n|  setattr(self, name, value, /)\n|      Implement setattr(self, name, value).\n|\n|  setstate(...)\n|\n|  withtraceback(...)\n|      Exception.withtraceback(tb) --\n|      set self.traceback to tb and return self.\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors inherited from builtins.BaseException:\n|\n|  cause\n|      exception cause\n|\n|  context\n|      exception context\n|\n|  dict\n|\n|  suppresscontext\n|\n|  traceback\n|\n|  args\n"
                },
                {
                    "name": "class Packer",
                    "content": "|  Pack various data representations into a buffer.\n|\n|  Methods defined here:\n|\n|  init(self)\n|      Initialize self.  See help(type(self)) for accurate signature.\n|\n|  getbuf = getbuffer(self)\n|\n|  getbuffer(self)\n|\n|  packarray(self, list, packitem)\n|\n|  packbool(self, x)\n|\n|  packbytes = packstring(self, s)\n|\n|  packdouble(self, x)\n|\n|  packenum = packint(self, x)\n|\n|  packfarray(self, n, list, packitem)\n|\n|  packfloat(self, x)\n|\n|  packfopaque = packfstring(self, n, s)\n|\n|  packfstring(self, n, s)\n|\n|  packhyper = packuhyper(self, x)\n|\n|  packint(self, x)\n|\n|  packlist(self, list, packitem)\n|\n|  packopaque = packstring(self, s)\n|\n|  packstring(self, s)\n|\n|  packuhyper(self, x)\n|\n|  packuint(self, x)\n|\n|  reset(self)\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors defined here:\n|\n|  dict\n|      dictionary for instance variables (if defined)\n|\n|  weakref\n|      list of weak references to the object (if defined)\n"
                },
                {
                    "name": "class Unpacker",
                    "content": "|  Unpacker(data)\n|\n|  Unpacks various data representations from the given buffer.\n|\n|  Methods defined here:\n|\n|  init(self, data)\n|      Initialize self.  See help(type(self)) for accurate signature.\n|\n|  done(self)\n|\n|  getbuffer(self)\n|\n|  getposition(self)\n|\n|  reset(self, data)\n|\n|  setposition(self, position)\n|\n|  unpackarray(self, unpackitem)\n|\n|  unpackbool(self)\n|\n|  unpackbytes = unpackstring(self)\n|\n|  unpackdouble(self)\n|\n|  unpackenum = unpackint(self)\n|\n|  unpackfarray(self, n, unpackitem)\n|\n|  unpackfloat(self)\n|\n|  unpackfopaque = unpackfstring(self, n)\n|\n|  unpackfstring(self, n)\n|\n|  unpackhyper(self)\n|\n|  unpackint(self)\n|\n|  unpacklist(self, unpackitem)\n|\n|  unpackopaque = unpackstring(self)\n|\n|  unpackstring(self)\n|\n|  unpackuhyper(self)\n|\n|  unpackuint(self)\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors defined here:\n|\n|  dict\n|      dictionary for instance variables (if defined)\n|\n|  weakref\n|      list of weak references to the object (if defined)\n"
                }
            ]
        },
        "DATA": {
            "content": "all = ['Error', 'Packer', 'Unpacker', 'ConversionError']\n",
            "subsections": []
        },
        "FILE": {
            "content": "/usr/lib/python3.10/xdrlib.py\n\n",
            "subsections": []
        }
    },
    "summary": "xdrlib - Implements (a subset of) Sun XDR -- eXternal Data Representation.",
    "flags": [],
    "examples": [],
    "see_also": []
}