Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.112
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
src /
Python-3.10.14 /
Doc /
library /
Delete
Unzip
Name
Size
Permission
Date
Action
2to3.rst
16.15
KB
-rw-r--r--
2024-03-19 22:46
__future__.rst
6
KB
-rw-r--r--
2024-03-19 22:46
__main__.rst
12.34
KB
-rw-r--r--
2024-03-19 22:46
_thread.rst
7.88
KB
-rw-r--r--
2024-03-19 22:46
abc.rst
12.19
KB
-rw-r--r--
2024-03-19 22:46
aifc.rst
7.48
KB
-rw-r--r--
2024-03-19 22:46
allos.rst
678
B
-rw-r--r--
2024-03-19 22:46
archiving.rst
440
B
-rw-r--r--
2024-03-19 22:46
argparse.rst
80.31
KB
-rw-r--r--
2024-03-19 22:46
array.rst
10.45
KB
-rw-r--r--
2024-03-19 22:46
ast.rst
75.95
KB
-rw-r--r--
2024-03-19 22:46
asynchat.rst
8.44
KB
-rw-r--r--
2024-03-19 22:46
asyncio-api-index.rst
4.61
KB
-rw-r--r--
2024-03-19 22:46
asyncio-dev.rst
7.31
KB
-rw-r--r--
2024-03-19 22:46
asyncio-eventloop.rst
59.33
KB
-rw-r--r--
2024-03-19 22:46
asyncio-exceptions.rst
1.7
KB
-rw-r--r--
2024-03-19 22:46
asyncio-future.rst
8.31
KB
-rw-r--r--
2024-03-19 22:46
asyncio-llapi-index.rst
14.06
KB
-rw-r--r--
2024-03-19 22:46
asyncio-platforms.rst
3.03
KB
-rw-r--r--
2024-03-19 22:46
asyncio-policy.rst
9.17
KB
-rw-r--r--
2024-03-19 22:46
asyncio-protocol.rst
31.55
KB
-rw-r--r--
2024-03-19 22:46
asyncio-queue.rst
5.5
KB
-rw-r--r--
2024-03-19 22:46
asyncio-stream.rst
14.88
KB
-rw-r--r--
2024-03-19 22:46
asyncio-subprocess.rst
11.4
KB
-rw-r--r--
2024-03-19 22:46
asyncio-sync.rst
8.84
KB
-rw-r--r--
2024-03-19 22:46
asyncio-task.rst
32.29
KB
-rw-r--r--
2024-03-19 22:46
asyncio.rst
2.63
KB
-rw-r--r--
2024-03-19 22:46
asyncore.rst
13.43
KB
-rw-r--r--
2024-03-19 22:46
atexit.rst
3.84
KB
-rw-r--r--
2024-03-19 22:46
audioop.rst
10.59
KB
-rw-r--r--
2024-03-19 22:46
audit_events.rst
2.29
KB
-rw-r--r--
2024-03-19 22:46
base64.rst
10.87
KB
-rw-r--r--
2024-03-19 22:46
bdb.rst
14.54
KB
-rw-r--r--
2024-03-19 22:46
binary.rst
654
B
-rw-r--r--
2024-03-19 22:46
binascii.rst
7.66
KB
-rw-r--r--
2024-03-19 22:46
binhex.rst
1.69
KB
-rw-r--r--
2024-03-19 22:46
bisect.rst
9.06
KB
-rw-r--r--
2024-03-19 22:46
builtins.rst
1.43
KB
-rw-r--r--
2024-03-19 22:46
bz2.rst
11.87
KB
-rw-r--r--
2024-03-19 22:46
calendar.rst
14.17
KB
-rw-r--r--
2024-03-19 22:46
cgi.rst
21.49
KB
-rw-r--r--
2024-03-19 22:46
cgitb.rst
3.75
KB
-rw-r--r--
2024-03-19 22:46
chunk.rst
5.1
KB
-rw-r--r--
2024-03-19 22:46
cmath.rst
9.42
KB
-rw-r--r--
2024-03-19 22:46
cmd.rst
13.6
KB
-rw-r--r--
2024-03-19 22:46
code.rst
7.64
KB
-rw-r--r--
2024-03-19 22:46
codecs.rst
75.37
KB
-rw-r--r--
2024-03-19 22:46
codeop.rst
3
KB
-rw-r--r--
2024-03-19 22:46
collections.abc.rst
16.73
KB
-rw-r--r--
2024-03-19 22:46
collections.rst
52.13
KB
-rw-r--r--
2024-03-19 22:46
colorsys.rst
1.77
KB
-rw-r--r--
2024-03-19 22:46
compileall.rst
13.45
KB
-rw-r--r--
2024-03-19 22:46
concurrency.rst
685
B
-rw-r--r--
2024-03-19 22:46
concurrent.futures.rst
20.76
KB
-rw-r--r--
2024-03-19 22:46
concurrent.rst
171
B
-rw-r--r--
2024-03-19 22:46
configparser.rst
49.91
KB
-rw-r--r--
2024-03-19 22:46
constants.rst
3.77
KB
-rw-r--r--
2024-03-19 22:46
contextlib.rst
34.35
KB
-rw-r--r--
2024-03-19 22:46
contextvars.rst
8.32
KB
-rw-r--r--
2024-03-19 22:46
copy.rst
3.39
KB
-rw-r--r--
2024-03-19 22:46
copyreg.rst
1.97
KB
-rw-r--r--
2024-03-19 22:46
crypt.rst
5.84
KB
-rw-r--r--
2024-03-19 22:46
crypto.rst
411
B
-rw-r--r--
2024-03-19 22:46
csv.rst
20.91
KB
-rw-r--r--
2024-03-19 22:46
ctypes.rst
90.63
KB
-rw-r--r--
2024-03-19 22:46
curses.ascii.rst
8.85
KB
-rw-r--r--
2024-03-19 22:46
curses.panel.rst
2.7
KB
-rw-r--r--
2024-03-19 22:46
curses.rst
77.03
KB
-rw-r--r--
2024-03-19 22:46
custominterp.rst
569
B
-rw-r--r--
2024-03-19 22:46
dataclasses.rst
29.22
KB
-rw-r--r--
2024-03-19 22:46
datatypes.rst
817
B
-rw-r--r--
2024-03-19 22:46
datetime.rst
101.93
KB
-rw-r--r--
2024-03-19 22:46
dbm.rst
15.05
KB
-rw-r--r--
2024-03-19 22:46
debug.rst
611
B
-rw-r--r--
2024-03-19 22:46
decimal.rst
76.21
KB
-rw-r--r--
2024-03-19 22:46
development.rst
719
B
-rw-r--r--
2024-03-19 22:46
devmode.rst
7.28
KB
-rw-r--r--
2024-03-19 22:46
dialog.rst
6.12
KB
-rw-r--r--
2024-03-19 22:46
difflib.rst
29.76
KB
-rw-r--r--
2024-03-19 22:46
dis.rst
35.33
KB
-rw-r--r--
2024-03-19 22:46
distribution.rst
452
B
-rw-r--r--
2024-03-19 22:46
distutils.rst
2.09
KB
-rw-r--r--
2024-03-19 22:46
doctest.rst
69.87
KB
-rw-r--r--
2024-03-19 22:46
email.charset.rst
7.83
KB
-rw-r--r--
2024-03-19 22:46
email.compat32-message.rst
32.89
KB
-rw-r--r--
2024-03-19 22:46
email.contentmanager.rst
8.9
KB
-rw-r--r--
2024-03-19 22:46
email.encoders.rst
2.92
KB
-rw-r--r--
2024-03-19 22:46
email.errors.rst
4.8
KB
-rw-r--r--
2024-03-19 22:46
email.examples.rst
1.87
KB
-rw-r--r--
2024-03-19 22:46
email.generator.rst
13.49
KB
-rw-r--r--
2024-03-19 22:46
email.header.rst
8.97
KB
-rw-r--r--
2024-03-19 22:46
email.headerregistry.rst
18.04
KB
-rw-r--r--
2024-03-19 22:46
email.iterators.rst
2.73
KB
-rw-r--r--
2024-03-19 22:46
email.message.rst
32.25
KB
-rw-r--r--
2024-03-19 22:46
email.mime.rst
11.45
KB
-rw-r--r--
2024-03-19 22:46
email.parser.rst
13.76
KB
-rw-r--r--
2024-03-19 22:46
email.policy.rst
26.39
KB
-rw-r--r--
2024-03-19 22:46
email.rst
6.63
KB
-rw-r--r--
2024-03-19 22:46
email.utils.rst
9.17
KB
-rw-r--r--
2024-03-19 22:46
ensurepip.rst
4.9
KB
-rw-r--r--
2024-03-19 22:46
enum.rst
35.96
KB
-rw-r--r--
2024-03-19 22:46
errno.rst
7.81
KB
-rw-r--r--
2024-03-19 22:46
exceptions.rst
29.86
KB
-rw-r--r--
2024-03-19 22:46
faulthandler.rst
6.51
KB
-rw-r--r--
2024-03-19 22:46
fcntl.rst
7.99
KB
-rw-r--r--
2024-03-19 22:46
filecmp.rst
5.89
KB
-rw-r--r--
2024-03-19 22:46
fileformats.rst
273
B
-rw-r--r--
2024-03-19 22:46
fileinput.rst
8.99
KB
-rw-r--r--
2024-03-19 22:46
filesys.rst
946
B
-rw-r--r--
2024-03-19 22:46
fnmatch.rst
3.31
KB
-rw-r--r--
2024-03-19 22:46
fractions.rst
6.2
KB
-rw-r--r--
2024-03-19 22:46
frameworks.rst
391
B
-rw-r--r--
2024-03-19 22:46
ftplib.rst
18.13
KB
-rw-r--r--
2024-03-19 22:46
functional.rst
365
B
-rw-r--r--
2024-03-19 22:46
functions.rst
84.5
KB
-rw-r--r--
2024-03-19 22:46
functools.rst
25.99
KB
-rw-r--r--
2024-03-19 22:46
gc.rst
11.16
KB
-rw-r--r--
2024-03-19 22:46
getopt.rst
6.4
KB
-rw-r--r--
2024-03-19 22:46
getpass.rst
1.84
KB
-rw-r--r--
2024-03-19 22:46
gettext.rst
27.35
KB
-rw-r--r--
2024-03-19 22:46
glob.rst
5.07
KB
-rw-r--r--
2024-03-19 22:46
graphlib.rst
8.56
KB
-rw-r--r--
2024-03-19 22:46
grp.rst
2.32
KB
-rw-r--r--
2024-03-19 22:46
gzip.rst
9.7
KB
-rw-r--r--
2024-03-19 22:46
hashlib-blake2-tree.png
10.81
KB
-rw-r--r--
2024-03-19 22:46
hashlib.rst
27.32
KB
-rw-r--r--
2024-03-19 22:46
heapq.rst
13.59
KB
-rw-r--r--
2024-03-19 22:46
hmac.rst
4.93
KB
-rw-r--r--
2024-03-19 22:46
html.entities.rst
1.31
KB
-rw-r--r--
2024-03-19 22:46
html.parser.rst
11.02
KB
-rw-r--r--
2024-03-19 22:46
html.rst
1.27
KB
-rw-r--r--
2024-03-19 22:46
http.client.rst
20.86
KB
-rw-r--r--
2024-03-19 22:46
http.cookiejar.rst
27.68
KB
-rw-r--r--
2024-03-19 22:46
http.cookies.rst
8.79
KB
-rw-r--r--
2024-03-19 22:46
http.rst
7.61
KB
-rw-r--r--
2024-03-19 22:46
http.server.rst
19.68
KB
-rw-r--r--
2024-03-19 22:46
i18n.rst
408
B
-rw-r--r--
2024-03-19 22:46
idle.rst
38.83
KB
-rw-r--r--
2024-03-19 22:46
imaplib.rst
21.42
KB
-rw-r--r--
2024-03-19 22:46
imghdr.rst
3.01
KB
-rw-r--r--
2024-03-19 22:46
imp.rst
15.15
KB
-rw-r--r--
2024-03-19 22:46
importlib.metadata.rst
12.12
KB
-rw-r--r--
2024-03-19 22:46
importlib.rst
66.95
KB
-rw-r--r--
2024-03-19 22:46
index.rst
2.37
KB
-rw-r--r--
2024-03-19 22:46
inspect.rst
59.36
KB
-rw-r--r--
2024-03-19 22:46
internet.rst
923
B
-rw-r--r--
2024-03-19 22:46
intro.rst
2.95
KB
-rw-r--r--
2024-03-19 22:46
io.rst
44.14
KB
-rw-r--r--
2024-03-19 22:46
ipaddress.rst
35.22
KB
-rw-r--r--
2024-03-19 22:46
ipc.rst
643
B
-rw-r--r--
2024-03-19 22:46
itertools.rst
42.1
KB
-rw-r--r--
2024-03-19 22:46
json.rst
28.07
KB
-rw-r--r--
2024-03-19 22:46
keyword.rst
1.12
KB
-rw-r--r--
2024-03-19 22:46
language.rst
494
B
-rw-r--r--
2024-03-19 22:46
linecache.rst
2.49
KB
-rw-r--r--
2024-03-19 22:46
locale.rst
26.03
KB
-rw-r--r--
2024-03-19 22:46
logging.config.rst
36.69
KB
-rw-r--r--
2024-03-19 22:46
logging.handlers.rst
47.53
KB
-rw-r--r--
2024-03-19 22:46
logging.rst
66.77
KB
-rw-r--r--
2024-03-19 22:46
lzma.rst
16.95
KB
-rw-r--r--
2024-03-19 22:46
mailbox.rst
61.47
KB
-rw-r--r--
2024-03-19 22:46
mailcap.rst
4.43
KB
-rw-r--r--
2024-03-19 22:46
markup.rst
679
B
-rw-r--r--
2024-03-19 22:46
marshal.rst
5.35
KB
-rw-r--r--
2024-03-19 22:46
math.rst
21.01
KB
-rw-r--r--
2024-03-19 22:46
mimetypes.rst
9.96
KB
-rw-r--r--
2024-03-19 22:46
mm.rst
331
B
-rw-r--r--
2024-03-19 22:46
mmap.rst
13.41
KB
-rw-r--r--
2024-03-19 22:46
modulefinder.rst
3.16
KB
-rw-r--r--
2024-03-19 22:46
modules.rst
381
B
-rw-r--r--
2024-03-19 22:46
msilib.rst
18.51
KB
-rw-r--r--
2024-03-19 22:46
msvcrt.rst
4.5
KB
-rw-r--r--
2024-03-19 22:46
multiprocessing.rst
108.08
KB
-rw-r--r--
2024-03-19 22:46
multiprocessing.shared_memory.rst
14.44
KB
-rw-r--r--
2024-03-19 22:46
netdata.rst
314
B
-rw-r--r--
2024-03-19 22:46
netrc.rst
3.32
KB
-rw-r--r--
2024-03-19 22:46
nis.rst
2.07
KB
-rw-r--r--
2024-03-19 22:46
nntplib.rst
21.25
KB
-rw-r--r--
2024-03-19 22:46
numbers.rst
8.09
KB
-rw-r--r--
2024-03-19 22:46
numeric.rst
696
B
-rw-r--r--
2024-03-19 22:46
operator.rst
18.84
KB
-rw-r--r--
2024-03-19 22:46
optparse.rst
75.3
KB
-rw-r--r--
2024-03-19 22:46
os.path.rst
17.4
KB
-rw-r--r--
2024-03-19 22:46
os.rst
168.21
KB
-rw-r--r--
2024-03-19 22:46
ossaudiodev.rst
17.56
KB
-rw-r--r--
2024-03-19 22:46
pathlib-inheritance.png
6.28
KB
-rw-r--r--
2024-03-19 22:46
pathlib-inheritance.svg
55.23
KB
-rw-r--r--
2024-03-19 22:46
pathlib.rst
39.66
KB
-rw-r--r--
2024-03-19 22:46
pdb.rst
20.26
KB
-rw-r--r--
2024-03-19 22:46
persistence.rst
591
B
-rw-r--r--
2024-03-19 22:46
pickle.rst
46.52
KB
-rw-r--r--
2024-03-19 22:46
pickletools.rst
3.64
KB
-rw-r--r--
2024-03-19 22:46
pipes.rst
2.72
KB
-rw-r--r--
2024-03-19 22:46
pkgutil.rst
10.26
KB
-rw-r--r--
2024-03-19 22:46
platform.rst
9.7
KB
-rw-r--r--
2024-03-19 22:46
plistlib.rst
5.32
KB
-rw-r--r--
2024-03-19 22:46
poplib.rst
8.98
KB
-rw-r--r--
2024-03-19 22:46
posix.rst
3.52
KB
-rw-r--r--
2024-03-19 22:46
pprint.rst
16.34
KB
-rw-r--r--
2024-03-19 22:46
profile.rst
29.55
KB
-rw-r--r--
2024-03-19 22:46
pty.rst
4.5
KB
-rw-r--r--
2024-03-19 22:46
pwd.rst
2.67
KB
-rw-r--r--
2024-03-19 22:46
py_compile.rst
6.52
KB
-rw-r--r--
2024-03-19 22:46
pyclbr.rst
4.45
KB
-rw-r--r--
2024-03-19 22:46
pydoc.rst
5.01
KB
-rw-r--r--
2024-03-19 22:46
pyexpat.rst
29.52
KB
-rw-r--r--
2024-03-19 22:46
python.rst
480
B
-rw-r--r--
2024-03-19 22:46
queue.rst
10
KB
-rw-r--r--
2024-03-19 22:46
quopri.rst
2.51
KB
-rw-r--r--
2024-03-19 22:46
random.rst
22.98
KB
-rw-r--r--
2024-03-19 22:46
re.rst
68.48
KB
-rw-r--r--
2024-03-19 22:46
readline.rst
12.13
KB
-rw-r--r--
2024-03-19 22:46
reprlib.rst
5.12
KB
-rw-r--r--
2024-03-19 22:46
resource.rst
13
KB
-rw-r--r--
2024-03-19 22:46
rlcompleter.rst
2.24
KB
-rw-r--r--
2024-03-19 22:46
runpy.rst
8.09
KB
-rw-r--r--
2024-03-19 22:46
sched.rst
5.05
KB
-rw-r--r--
2024-03-19 22:46
secrets.rst
5.96
KB
-rw-r--r--
2024-03-19 22:46
security_warnings.rst
1.56
KB
-rw-r--r--
2024-03-19 22:46
select.rst
27.78
KB
-rw-r--r--
2024-03-19 22:46
selectors.rst
8.72
KB
-rw-r--r--
2024-03-19 22:46
shelve.rst
8.6
KB
-rw-r--r--
2024-03-19 22:46
shlex.rst
17.62
KB
-rw-r--r--
2024-03-19 22:46
shutil.rst
31.13
KB
-rw-r--r--
2024-03-19 22:46
signal.rst
25.12
KB
-rw-r--r--
2024-03-19 22:46
site.rst
10.38
KB
-rw-r--r--
2024-03-19 22:46
smtpd.rst
10.79
KB
-rw-r--r--
2024-03-19 22:46
smtplib.rst
23.66
KB
-rw-r--r--
2024-03-19 22:46
sndhdr.rst
2.09
KB
-rw-r--r--
2024-03-19 22:46
socket.rst
77.52
KB
-rw-r--r--
2024-03-19 22:46
socketserver.rst
24.01
KB
-rw-r--r--
2024-03-19 22:46
spwd.rst
3.03
KB
-rw-r--r--
2024-03-19 22:46
sqlite3.rst
66.94
KB
-rw-r--r--
2024-03-19 22:46
ssl.rst
104.53
KB
-rw-r--r--
2024-03-19 22:46
stat.rst
9.89
KB
-rw-r--r--
2024-03-19 22:46
statistics.rst
35.59
KB
-rw-r--r--
2024-03-19 22:46
stdtypes.rst
205.7
KB
-rw-r--r--
2024-03-19 22:46
string.rst
38.87
KB
-rw-r--r--
2024-03-19 22:46
stringprep.rst
4.18
KB
-rw-r--r--
2024-03-19 22:46
struct.rst
24.29
KB
-rw-r--r--
2024-03-19 22:46
subprocess.rst
57.99
KB
-rw-r--r--
2024-03-19 22:46
sunau.rst
7.24
KB
-rw-r--r--
2024-03-19 22:46
superseded.rst
561
B
-rw-r--r--
2024-03-19 22:46
symtable.rst
5.14
KB
-rw-r--r--
2024-03-19 22:46
sys.rst
76.36
KB
-rw-r--r--
2024-03-19 22:46
sysconfig.rst
9.7
KB
-rw-r--r--
2024-03-19 22:46
syslog.rst
4.55
KB
-rw-r--r--
2024-03-19 22:46
tabnanny.rst
1.96
KB
-rw-r--r--
2024-03-19 22:46
tarfile.rst
47.13
KB
-rw-r--r--
2024-03-19 22:46
telnetlib.rst
8.03
KB
-rw-r--r--
2024-03-19 22:46
tempfile.rst
15.69
KB
-rw-r--r--
2024-03-19 22:46
termios.rst
3.66
KB
-rw-r--r--
2024-03-19 22:46
test.rst
54.87
KB
-rw-r--r--
2024-03-19 22:46
text.rst
584
B
-rw-r--r--
2024-03-19 22:46
textwrap.rst
11.18
KB
-rw-r--r--
2024-03-19 22:46
threading.rst
42.74
KB
-rw-r--r--
2024-03-19 22:46
time.rst
36.47
KB
-rw-r--r--
2024-03-19 22:46
timeit.rst
13.32
KB
-rw-r--r--
2024-03-19 22:46
tk.rst
1.6
KB
-rw-r--r--
2024-03-19 22:46
tk_msg.png
14.63
KB
-rw-r--r--
2024-03-19 22:46
tkinter.colorchooser.rst
906
B
-rw-r--r--
2024-03-19 22:46
tkinter.dnd.rst
2.07
KB
-rw-r--r--
2024-03-19 22:46
tkinter.font.rst
2.91
KB
-rw-r--r--
2024-03-19 22:46
tkinter.messagebox.rst
1.27
KB
-rw-r--r--
2024-03-19 22:46
tkinter.rst
40.8
KB
-rw-r--r--
2024-03-19 22:46
tkinter.scrolledtext.rst
1.18
KB
-rw-r--r--
2024-03-19 22:46
tkinter.tix.rst
21.59
KB
-rw-r--r--
2024-03-19 22:46
tkinter.ttk.rst
61.02
KB
-rw-r--r--
2024-03-19 22:46
token-list.inc
2.62
KB
-rw-r--r--
2024-03-19 22:46
token.rst
2.7
KB
-rw-r--r--
2024-03-19 22:46
tokenize.rst
10.55
KB
-rw-r--r--
2024-03-19 22:46
trace.rst
6.82
KB
-rw-r--r--
2024-03-19 22:46
traceback.rst
18.93
KB
-rw-r--r--
2024-03-19 22:46
tracemalloc.rst
24.96
KB
-rw-r--r--
2024-03-19 22:46
tty.rst
1.07
KB
-rw-r--r--
2024-03-19 22:46
tulip_coro.dia
4.35
KB
-rw-r--r--
2024-03-19 22:46
tulip_coro.png
35.95
KB
-rw-r--r--
2024-03-19 22:46
turtle-star.pdf
4.31
KB
-rw-r--r--
2024-03-19 22:46
turtle-star.png
33.02
KB
-rw-r--r--
2024-03-19 22:46
turtle-star.ps
13.48
KB
-rw-r--r--
2024-03-19 22:46
turtle.rst
72.59
KB
-rw-r--r--
2024-03-19 22:46
types.rst
14.9
KB
-rw-r--r--
2024-03-19 22:46
typing.rst
77.48
KB
-rw-r--r--
2024-03-19 22:46
unicodedata.rst
5.83
KB
-rw-r--r--
2024-03-19 22:46
unittest.mock-examples.rst
47.14
KB
-rw-r--r--
2024-03-19 22:46
unittest.mock.rst
97.32
KB
-rw-r--r--
2024-03-19 22:46
unittest.rst
99.8
KB
-rw-r--r--
2024-03-19 22:46
unix.rst
397
B
-rw-r--r--
2024-03-19 22:46
urllib.error.rst
2.15
KB
-rw-r--r--
2024-03-19 22:46
urllib.parse.rst
32.65
KB
-rw-r--r--
2024-03-19 22:46
urllib.request.rst
59.94
KB
-rw-r--r--
2024-03-19 22:46
urllib.robotparser.rst
3.19
KB
-rw-r--r--
2024-03-19 22:46
urllib.rst
466
B
-rw-r--r--
2024-03-19 22:46
uu.rst
2.67
KB
-rw-r--r--
2024-03-19 22:46
uuid.rst
9.95
KB
-rw-r--r--
2024-03-19 22:46
venv.rst
25.52
KB
-rw-r--r--
2024-03-19 22:46
warnings.rst
23.71
KB
-rw-r--r--
2024-03-19 22:46
wave.rst
6.68
KB
-rw-r--r--
2024-03-19 22:46
weakref.rst
21.22
KB
-rw-r--r--
2024-03-19 22:46
webbrowser.rst
9.83
KB
-rw-r--r--
2024-03-19 22:46
windows.rst
258
B
-rw-r--r--
2024-03-19 22:46
winreg.rst
25.18
KB
-rw-r--r--
2024-03-19 22:46
winsound.rst
5.01
KB
-rw-r--r--
2024-03-19 22:46
wsgiref.rst
32.61
KB
-rw-r--r--
2024-03-19 22:46
xdrlib.rst
8.02
KB
-rw-r--r--
2024-03-19 22:46
xml.dom.minidom.rst
11
KB
-rw-r--r--
2024-03-19 22:46
xml.dom.pulldom.rst
5.16
KB
-rw-r--r--
2024-03-19 22:46
xml.dom.rst
38.62
KB
-rw-r--r--
2024-03-19 22:46
xml.etree.elementtree.rst
58.55
KB
-rw-r--r--
2024-03-19 22:46
xml.rst
6.49
KB
-rw-r--r--
2024-03-19 22:46
xml.sax.handler.rst
16.43
KB
-rw-r--r--
2024-03-19 22:46
xml.sax.reader.rst
11.97
KB
-rw-r--r--
2024-03-19 22:46
xml.sax.rst
7.09
KB
-rw-r--r--
2024-03-19 22:46
xml.sax.utils.rst
3.81
KB
-rw-r--r--
2024-03-19 22:46
xmlrpc.client.rst
22.52
KB
-rw-r--r--
2024-03-19 22:46
xmlrpc.rst
475
B
-rw-r--r--
2024-03-19 22:46
xmlrpc.server.rst
16.25
KB
-rw-r--r--
2024-03-19 22:46
zipapp.rst
17.85
KB
-rw-r--r--
2024-03-19 22:46
zipfile.rst
29.76
KB
-rw-r--r--
2024-03-19 22:46
zipimport.rst
6.79
KB
-rw-r--r--
2024-03-19 22:46
zlib.rst
13.83
KB
-rw-r--r--
2024-03-19 22:46
zoneinfo.rst
15.66
KB
-rw-r--r--
2024-03-19 22:46
Save
Rename
:mod:`collections.abc` --- Abstract Base Classes for Containers =============================================================== .. module:: collections.abc :synopsis: Abstract base classes for containers .. moduleauthor:: Raymond Hettinger <python at rcn.com> .. sectionauthor:: Raymond Hettinger <python at rcn.com> .. versionadded:: 3.3 Formerly, this module was part of the :mod:`collections` module. **Source code:** :source:`Lib/_collections_abc.py` .. testsetup:: * from collections.abc import * import itertools __name__ = '<doctest>' -------------- This module provides :term:`abstract base classes <abstract base class>` that can be used to test whether a class provides a particular interface; for example, whether it is :term:`hashable` or whether it is a mapping. An :func:`issubclass` or :func:`isinstance` test for an interface works in one of three ways. 1) A newly written class can inherit directly from one of the abstract base classes. The class must supply the required abstract methods. The remaining mixin methods come from inheritance and can be overridden if desired. Other methods may be added as needed: .. testcode:: class C(Sequence): # Direct inheritance def __init__(self): ... # Extra method not required by the ABC def __getitem__(self, index): ... # Required abstract method def __len__(self): ... # Required abstract method def count(self, value): ... # Optionally override a mixin method .. doctest:: >>> issubclass(C, Sequence) True >>> isinstance(C(), Sequence) True 2) Existing classes and built-in classes can be registered as "virtual subclasses" of the ABCs. Those classes should define the full API including all of the abstract methods and all of the mixin methods. This lets users rely on :func:`issubclass` or :func:`isinstance` tests to determine whether the full interface is supported. The exception to this rule is for methods that are automatically inferred from the rest of the API: .. testcode:: class D: # No inheritance def __init__(self): ... # Extra method not required by the ABC def __getitem__(self, index): ... # Abstract method def __len__(self): ... # Abstract method def count(self, value): ... # Mixin method def index(self, value): ... # Mixin method Sequence.register(D) # Register instead of inherit .. doctest:: >>> issubclass(D, Sequence) True >>> isinstance(D(), Sequence) True In this example, class :class:`D` does not need to define ``__contains__``, ``__iter__``, and ``__reversed__`` because the :ref:`in-operator <comparisons>`, the :term:`iteration <iterable>` logic, and the :func:`reversed` function automatically fall back to using ``__getitem__`` and ``__len__``. 3) Some simple interfaces are directly recognizable by the presence of the required methods (unless those methods have been set to :const:`None`): .. testcode:: class E: def __iter__(self): ... def __next__(next): ... .. doctest:: >>> issubclass(E, Iterable) True >>> isinstance(E(), Iterable) True Complex interfaces do not support this last technique because an interface is more than just the presence of method names. Interfaces specify semantics and relationships between methods that cannot be inferred solely from the presence of specific method names. For example, knowing that a class supplies ``__getitem__``, ``__len__``, and ``__iter__`` is insufficient for distinguishing a :class:`Sequence` from a :class:`Mapping`. .. versionadded:: 3.9 These abstract classes now support ``[]``. See :ref:`types-genericalias` and :pep:`585`. .. _collections-abstract-base-classes: Collections Abstract Base Classes --------------------------------- The collections module offers the following :term:`ABCs <abstract base class>`: .. tabularcolumns:: |l|L|L|L| ============================== ====================== ======================= ==================================================== ABC Inherits from Abstract Methods Mixin Methods ============================== ====================== ======================= ==================================================== :class:`Container` [1]_ ``__contains__`` :class:`Hashable` [1]_ ``__hash__`` :class:`Iterable` [1]_ [2]_ ``__iter__`` :class:`Iterator` [1]_ :class:`Iterable` ``__next__`` ``__iter__`` :class:`Reversible` [1]_ :class:`Iterable` ``__reversed__`` :class:`Generator` [1]_ :class:`Iterator` ``send``, ``throw`` ``close``, ``__iter__``, ``__next__`` :class:`Sized` [1]_ ``__len__`` :class:`Callable` [1]_ ``__call__`` :class:`Collection` [1]_ :class:`Sized`, ``__contains__``, :class:`Iterable`, ``__iter__``, :class:`Container` ``__len__`` :class:`Sequence` :class:`Reversible`, ``__getitem__``, ``__contains__``, ``__iter__``, ``__reversed__``, :class:`Collection` ``__len__`` ``index``, and ``count`` :class:`MutableSequence` :class:`Sequence` ``__getitem__``, Inherited :class:`Sequence` methods and ``__setitem__``, ``append``, ``reverse``, ``extend``, ``pop``, ``__delitem__``, ``remove``, and ``__iadd__`` ``__len__``, ``insert`` :class:`ByteString` :class:`Sequence` ``__getitem__``, Inherited :class:`Sequence` methods ``__len__`` :class:`Set` :class:`Collection` ``__contains__``, ``__le__``, ``__lt__``, ``__eq__``, ``__ne__``, ``__iter__``, ``__gt__``, ``__ge__``, ``__and__``, ``__or__``, ``__len__`` ``__sub__``, ``__xor__``, and ``isdisjoint`` :class:`MutableSet` :class:`Set` ``__contains__``, Inherited :class:`Set` methods and ``__iter__``, ``clear``, ``pop``, ``remove``, ``__ior__``, ``__len__``, ``__iand__``, ``__ixor__``, and ``__isub__`` ``add``, ``discard`` :class:`Mapping` :class:`Collection` ``__getitem__``, ``__contains__``, ``keys``, ``items``, ``values``, ``__iter__``, ``get``, ``__eq__``, and ``__ne__`` ``__len__`` :class:`MutableMapping` :class:`Mapping` ``__getitem__``, Inherited :class:`Mapping` methods and ``__setitem__``, ``pop``, ``popitem``, ``clear``, ``update``, ``__delitem__``, and ``setdefault`` ``__iter__``, ``__len__`` :class:`MappingView` :class:`Sized` ``__len__`` :class:`ItemsView` :class:`MappingView`, ``__contains__``, :class:`Set` ``__iter__`` :class:`KeysView` :class:`MappingView`, ``__contains__``, :class:`Set` ``__iter__`` :class:`ValuesView` :class:`MappingView`, ``__contains__``, ``__iter__`` :class:`Collection` :class:`Awaitable` [1]_ ``__await__`` :class:`Coroutine` [1]_ :class:`Awaitable` ``send``, ``throw`` ``close`` :class:`AsyncIterable` [1]_ ``__aiter__`` :class:`AsyncIterator` [1]_ :class:`AsyncIterable` ``__anext__`` ``__aiter__`` :class:`AsyncGenerator` [1]_ :class:`AsyncIterator` ``asend``, ``athrow`` ``aclose``, ``__aiter__``, ``__anext__`` ============================== ====================== ======================= ==================================================== .. rubric:: Footnotes .. [1] These ABCs override :meth:`object.__subclasshook__` to support testing an interface by verifying the required methods are present and have not been set to :const:`None`. This only works for simple interfaces. More complex interfaces require registration or direct subclassing. .. [2] Checking ``isinstance(obj, Iterable)`` detects classes that are registered as :class:`Iterable` or that have an :meth:`__iter__` method, but it does not detect classes that iterate with the :meth:`__getitem__` method. The only reliable way to determine whether an object is :term:`iterable` is to call ``iter(obj)``. Collections Abstract Base Classes -- Detailed Descriptions ---------------------------------------------------------- .. class:: Container ABC for classes that provide the :meth:`__contains__` method. .. class:: Hashable ABC for classes that provide the :meth:`__hash__` method. .. class:: Sized ABC for classes that provide the :meth:`__len__` method. .. class:: Callable ABC for classes that provide the :meth:`__call__` method. .. class:: Iterable ABC for classes that provide the :meth:`__iter__` method. Checking ``isinstance(obj, Iterable)`` detects classes that are registered as :class:`Iterable` or that have an :meth:`__iter__` method, but it does not detect classes that iterate with the :meth:`__getitem__` method. The only reliable way to determine whether an object is :term:`iterable` is to call ``iter(obj)``. .. class:: Collection ABC for sized iterable container classes. .. versionadded:: 3.6 .. class:: Iterator ABC for classes that provide the :meth:`~iterator.__iter__` and :meth:`~iterator.__next__` methods. See also the definition of :term:`iterator`. .. class:: Reversible ABC for iterable classes that also provide the :meth:`__reversed__` method. .. versionadded:: 3.6 .. class:: Generator ABC for generator classes that implement the protocol defined in :pep:`342` that extends iterators with the :meth:`~generator.send`, :meth:`~generator.throw` and :meth:`~generator.close` methods. See also the definition of :term:`generator`. .. versionadded:: 3.5 .. class:: Sequence MutableSequence ByteString ABCs for read-only and mutable :term:`sequences <sequence>`. Implementation note: Some of the mixin methods, such as :meth:`__iter__`, :meth:`__reversed__` and :meth:`index`, make repeated calls to the underlying :meth:`__getitem__` method. Consequently, if :meth:`__getitem__` is implemented with constant access speed, the mixin methods will have linear performance; however, if the underlying method is linear (as it would be with a linked list), the mixins will have quadratic performance and will likely need to be overridden. .. versionchanged:: 3.5 The index() method added support for *stop* and *start* arguments. .. class:: Set MutableSet ABCs for read-only and mutable sets. .. class:: Mapping MutableMapping ABCs for read-only and mutable :term:`mappings <mapping>`. .. class:: MappingView ItemsView KeysView ValuesView ABCs for mapping, items, keys, and values :term:`views <dictionary view>`. .. class:: Awaitable ABC for :term:`awaitable` objects, which can be used in :keyword:`await` expressions. Custom implementations must provide the :meth:`__await__` method. :term:`Coroutine <coroutine>` objects and instances of the :class:`~collections.abc.Coroutine` ABC are all instances of this ABC. .. note:: In CPython, generator-based coroutines (generators decorated with :func:`types.coroutine` or :func:`asyncio.coroutine`) are *awaitables*, even though they do not have an :meth:`__await__` method. Using ``isinstance(gencoro, Awaitable)`` for them will return ``False``. Use :func:`inspect.isawaitable` to detect them. .. versionadded:: 3.5 .. class:: Coroutine ABC for coroutine compatible classes. These implement the following methods, defined in :ref:`coroutine-objects`: :meth:`~coroutine.send`, :meth:`~coroutine.throw`, and :meth:`~coroutine.close`. Custom implementations must also implement :meth:`__await__`. All :class:`Coroutine` instances are also instances of :class:`Awaitable`. See also the definition of :term:`coroutine`. .. note:: In CPython, generator-based coroutines (generators decorated with :func:`types.coroutine` or :func:`asyncio.coroutine`) are *awaitables*, even though they do not have an :meth:`__await__` method. Using ``isinstance(gencoro, Coroutine)`` for them will return ``False``. Use :func:`inspect.isawaitable` to detect them. .. versionadded:: 3.5 .. class:: AsyncIterable ABC for classes that provide ``__aiter__`` method. See also the definition of :term:`asynchronous iterable`. .. versionadded:: 3.5 .. class:: AsyncIterator ABC for classes that provide ``__aiter__`` and ``__anext__`` methods. See also the definition of :term:`asynchronous iterator`. .. versionadded:: 3.5 .. class:: AsyncGenerator ABC for asynchronous generator classes that implement the protocol defined in :pep:`525` and :pep:`492`. .. versionadded:: 3.6 Examples and Recipes -------------------- ABCs allow us to ask classes or instances if they provide particular functionality, for example:: size = None if isinstance(myvar, collections.abc.Sized): size = len(myvar) Several of the ABCs are also useful as mixins that make it easier to develop classes supporting container APIs. For example, to write a class supporting the full :class:`Set` API, it is only necessary to supply the three underlying abstract methods: :meth:`__contains__`, :meth:`__iter__`, and :meth:`__len__`. The ABC supplies the remaining methods such as :meth:`__and__` and :meth:`isdisjoint`:: class ListBasedSet(collections.abc.Set): ''' Alternate set implementation favoring space over speed and not requiring the set elements to be hashable. ''' def __init__(self, iterable): self.elements = lst = [] for value in iterable: if value not in lst: lst.append(value) def __iter__(self): return iter(self.elements) def __contains__(self, value): return value in self.elements def __len__(self): return len(self.elements) s1 = ListBasedSet('abcdef') s2 = ListBasedSet('defghi') overlap = s1 & s2 # The __and__() method is supported automatically Notes on using :class:`Set` and :class:`MutableSet` as a mixin: (1) Since some set operations create new sets, the default mixin methods need a way to create new instances from an iterable. The class constructor is assumed to have a signature in the form ``ClassName(iterable)``. That assumption is factored-out to an internal classmethod called :meth:`_from_iterable` which calls ``cls(iterable)`` to produce a new set. If the :class:`Set` mixin is being used in a class with a different constructor signature, you will need to override :meth:`_from_iterable` with a classmethod or regular method that can construct new instances from an iterable argument. (2) To override the comparisons (presumably for speed, as the semantics are fixed), redefine :meth:`__le__` and :meth:`__ge__`, then the other operations will automatically follow suit. (3) The :class:`Set` mixin provides a :meth:`_hash` method to compute a hash value for the set; however, :meth:`__hash__` is not defined because not all sets are :term:`hashable` or immutable. To add set hashability using mixins, inherit from both :meth:`Set` and :meth:`Hashable`, then define ``__hash__ = Set._hash``. .. seealso:: * `OrderedSet recipe <https://code.activestate.com/recipes/576694/>`_ for an example built on :class:`MutableSet`. * For more about ABCs, see the :mod:`abc` module and :pep:`3119`.