- Notifications
You must be signed in to change notification settings - Fork 103
Expand file tree
/
Copy pathtest.py
More file actions
Latest commit
143 lines (95 loc) · 2.65 KB
/
Copy pathtest.py
File metadata and controls
143 lines (95 loc) · 2.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# Above the run-comment and file encoding comment.
# Comments.
# TODO FIXME XXX
# Keywords.
withbreakcontinuedelexecreturnpassprintraiseglobalassertlambdayield
forwhileifelifelseimportfromastryexceptfinallyandinisnotor
yieldfrom
deffunctionname
classClassname
defфункция
classКласс
await
asyncdefTest
asyncwith
asyncfor
# Builtin objects.
TrueFalseEllipsisNoneNotImplemented
# Builtin function and types.
__import__absallanyapplybasestringboolbuffercallablechrclassmethod
cmpcoercecompilecomplexdelattrdictdirdivmodenumerateevalexecfilefile
filterfloatfrozensetgetattrglobalshasattrhashhelphexidinputint
internisinstanceissubclassiterlenlistlocalslongmapmaxminobjectoct
openordpowpropertyrangeraw_inputreducereloadreprreversedroundset
setattrslicesortedstaticmethodstrsumsupertupletypeunichrunicodevars
xrangezip
# Builtin exceptions and warnings.
BaseExceptionExceptionStandardErrorArithmeticErrorLookupError
EnvironmentError
AssertionErrorAttributeErrorEOFErrorFloatingPointErrorGeneratorExitIOError
ImportErrorIndexErrorKeyErrorKeyboardInterruptMemoryErrorNameError
NotImplementedErrorOSErrorOverflowErrorReferenceErrorRuntimeError
StopIterationSyntaxErrorIndentationErrorTabErrorSystemErrorSystemExit
TypeErrorUnboundLocalErrorUnicodeErrorUnicodeEncodeErrorUnicodeDecodeError
UnicodeTranslateErrorValueErrorWindowsErrorZeroDivisionError
WarningUserWarningDeprecationWarningPendingDepricationWarningSyntaxWarning
RuntimeWarningFutureWarningImportWarningUnicodeWarning
# Decorators.
@ decoratorname
@ object.__init__(arg1, arg2)
@ декоратор
@ декоратор.décorateur
# Numbers
0129100x1f.312.340j0j34.2E-30b100o7710234340x0
# Erroneous numbers
077100L0xfffffffL0L080xk0x0b1020o780o123LaB
# Strings
" test "' test '
"""
test
"""
'''
test
'''
" \a\b\c\"\'\n\r\x34\077\08 \xag"
r" \" \' "
"testтест"
b"test"
b"test\r\n\xffff"
b"тестtest"
br"test"
br"\a\b\n\r"
# Formattings
" %f "
b" %f "
"{0.name!r:b} {0[n]} {name!s: } {{test}} {{}} {} {.__len__:s}"
b"{0.name!r:b} {0[n]} {name!s: } {{test}} {{}} {} {.__len__:s}"
"${test} ${test ${test}aname $$$ $test+nope"
b"${test} ${test ${test}aname $$$ $test+nope"
# Doctests.
"""
Test:
>>> a = 5
>>> a
5
Test
"""
'''
Test:
>>> a = 5
>>> a
5
Test
'''
# Erroneous symbols or bad variable names.
$ ? 6xav
&&||===
# Indentation errors.
break
# Trailing space errors.
break
"""
test
"""