| Server IP : 121.121.20.254 / Your IP : 216.73.216.41 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Python312/Lib/test/test_doctest/__pycache__/ |
Upload File : |
�
���g� � �� � d Z ddlZddlZej j dk\ r ej
d� � G d� de� Z G d� dej � Z dd l
� ed
k( r ej � yy)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 �t � e Zd ZdZd� Zd� Z G d� de� Zd� Zd� Z e
ee d� � Zed
� � Z
ed� � Zy)
�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 � � y)z;C.__init__.
>>> print(C()) # 3
42
N� ��selfs �4C:\Python312\\Lib\test\test_doctest\test_doctest2.py�__init__z
C.__init__! � � � c � � y)z/
>>> print(C()) # 4
42
�42r r s r
�__str__z C.__str__( s � �
r
c � � e Zd ZdZd� Zy)�C.DzJA nested D class.
>>> print("In D!") # 5
In D!
c � � y)z8
>>> print(3) # 6
3
Nr r s r
�nestedz
C.D.nested6 r r
N)�__name__�
__module__�__qualname__�__doc__r r r
r
�Dr / s � � � r
r c � � | j S )zg
>>> c = C() # 7
>>> c.x = 12 # 8
>>> print(c.x) # 9
-12
��_xr s r
�getxzC.getx<