관리-도구
편집 파일: test_namedtuple.cpython-37.pyc
B VX�Y� � @ s� d dl mZ d dlZd dlZd dlmZ yd dlmZ W n4 e k rl G dd� de �ZG dd� de �ZY nX edd g�Zedd dg�ZG dd � d e �ZG dd� de �ZG dd� de �ZG dd� de�Zdd� dd� dd� gZG dd� dej�ZdS )� )�absolute_importN)�StringIO)� namedtuplec @ s e Zd Zdd� Zdd� ZdS )�Valuec G s t �| |�S )N)�tuple�__new__)�cls�args� r �S/opt/alt/python37/lib64/python3.7/site-packages/simplejson/tests/test_namedtuple.pyr s z Value.__new__c C s d| d iS )N�valuer r )�selfr r r �_asdict s z Value._asdictN)�__name__� __module__�__qualname__r r r r r r r s r c @ s e Zd Zdd� Zdd� ZdS )�Pointc G s t �| |�S )N)r r )r r r r r r s z Point.__new__c C s | d | d d�S )Nr � )�x�yr )r r r r r s z Point._asdictN)r r r r r r r r r r s r r r r c @ s e Zd Zdd� Zdd� ZdS )� DuckValuec G s t |� | _d S )N)r r )r r r r r �__init__ s zDuckValue.__init__c C s | j �� S )N)r r )r r r r r s zDuckValue._asdictN)r r r r r r r r r r s r c @ s e Zd Zdd� Zdd� ZdS )� DuckPointc G s t |� | _d S )N)r �point)r r r r r r ! s zDuckPoint.__init__c C s | j �� S )N)r r )r r r r r $ s zDuckPoint._asdictN)r r r r r r r r r r s r c @ s e Zd ZdZdS )�DeadDuckN)r r r r r r r r r '