[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/talent-source-code/msgpack-python/master/msgpack/__init__.py [Back]  [Original]

# coding: utf-8
from msgpack._version import version
from msgpack.exceptions import *

from collections import namedtuple


class ExtType(namedtuple('ExtType', 'code data')):
    """ExtType represents ext type in msgpack."""
    def __new__(cls, code, data):
        if not isinstance(code, int):
            raise TypeError("code must be int")
        if not isinstance(data, bytes):
            raise TypeError("data must be bytes")
        if not 0 

Web Proxy Viewer  |  New URL  |  Original Page