File: //usr/local/lib/python3.10/test/__pycache__/test_doctest2.cpython-310.opt-1.pyc
o
�io � @ sl d Z ddlZddlZejjdkre�d��G dd� de�ZG dd� dej�Z dd l
T ed
kr4e�� dS dS )u� A module to test whether doctest recognizes some 2.2 features,
like static and class methods.
>>> print('yup') # 1
yup
We include some (random) encoded (utf-8) text in the text surrounding
the example. It should be ignored:
ЉЊЈЁЂ
� N� zCannot test docstrings with -O2c @ sf e Zd ZdZdd� Zdd� ZG dd� de�Zdd � Zd
d� Z e
ee dd
�Zedd� �Z
edd� �ZdS )�Cu� Class C.
>>> print(C()) # 2
42
We include some (random) encoded (utf-8) text in the text surrounding
the example. It should be ignored:
ЉЊЈЁЂ
c C � dS )z;C.__init__.
>>> print(C()) # 3
42
N� ��selfr r �//usr/local/lib/python3.10/test/test_doctest2.py�__init__! � z
C.__init__c C r )z/
>>> print(C()) # 4
42
Z42r r r r r �__str__( s z C.__str__c @ s e Zd ZdZdd� ZdS )zC.DzJA nested D class.
>>> print("In D!") # 5
In D!
c C r )z8
>>> print(3) # 6
3
Nr r r r r �nested6 r
z
C.D.nestedN)�__name__�
__module__�__qualname__�__doc__r r r r r �D/ s r c C s | j S )zg
>>> c = C() # 7
>>> c.x = 12 # 8
>>> print(c.x) # 9
-12
�Z_xr r r r �getx<