| Server IP : 3.111.61.48 / Your IP : 216.73.216.67 Web Server : Apache System : Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.2.31 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3.10/test/__pycache__/ |
Upload File : |
o
�9jo � @ 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/lib/python3.10/test/test_doctest2.py�__init__! � z
C.__init__c C r )z/
>>> print(C()) # 4
42
�42r 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
��_xr r r r �getx<