# Path: core/ezdxf/tools/c23.py
# PY3 = sys.version_info.major > 2
# def isstring(s):


from collections import namedtuple
from ..tools.c23 import ustr
# License: MIT License

from __future__ import unicode_literals
__author__ = "mozman <mozman@gmx.at>"



DXFTag = namedtuple('DXFTag', 'code value')
NONE_TAG = DXFTag(None, None)
TAG_STRING_FORMAT = '%3d\n%s\n'


def point_tuple(value):
    return tuple(float(f) for f in value)


def _build_type_table(types):
    table = {}
    for caster, codes in types:
        for code in codes:
            table[code] = caster
    return table


def internal_type(value):
    return value


TYPE_TABLE = _build_type_table([
    (internal_type, (-10, )),  # spacial tags for internal use

# Path: core/ezdxf/tools/c23.py
# PY3 = sys.version_info.major > 2
# def isstring(s):


# Path: core/ezdxf/lldxf/types.py
from collections import namedtuple
from ..tools.c23 import ustr

# License: MIT License

from __future__ import unicode_literals
__author__ = "mozman <mozman@gmx.at>"



DXFTag = namedtuple('DXFTag', 'code value')
NONE_TAG = DXFTag(None, None)
TAG_STRING_FORMAT = '%3d\n%s\n'


def point_tuple(value):
    return tuple(float(f) for f in value)


def _build_type_table(types):
    table = {}
    for caster, codes in types:
        for code in codes:
            table[code] = caster
    return table


def internal_type(value):
    return value


TYPE_TABLE = _build_type_table([
    (internal_type, (-10, )),  # spacial tags for internal use

    (ustr, range(0, 10)),