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 /
includes /
Delete
Unzip
Name
Size
Permission
Date
Action
sqlite3
[ DIR ]
drwxr-xr-x
2024-03-19 22:46
custom.c
987
B
-rw-r--r--
2024-03-19 22:46
custom2.c
3.38
KB
-rw-r--r--
2024-03-19 22:46
custom3.c
4.52
KB
-rw-r--r--
2024-03-19 22:46
custom4.c
4.81
KB
-rw-r--r--
2024-03-19 22:46
dbpickle.py
2.8
KB
-rw-r--r--
2024-03-19 22:46
email-alternative.py
1.68
KB
-rw-r--r--
2024-03-19 22:46
email-dir.py
3
KB
-rw-r--r--
2024-03-19 22:46
email-headers.py
950
B
-rw-r--r--
2024-03-19 22:46
email-mime.py
930
B
-rw-r--r--
2024-03-19 22:46
email-read-alternative.py
2.84
KB
-rw-r--r--
2024-03-19 22:46
email-simple.py
585
B
-rw-r--r--
2024-03-19 22:46
email-unpack.py
1.55
KB
-rw-r--r--
2024-03-19 22:46
minidom-example.py
1.54
KB
-rw-r--r--
2024-03-19 22:46
mp_newtype.py
1.89
KB
-rw-r--r--
2024-03-19 22:46
mp_pool.py
3.8
KB
-rw-r--r--
2024-03-19 22:46
mp_workers.py
1.55
KB
-rw-r--r--
2024-03-19 22:46
run-func.c
1.94
KB
-rw-r--r--
2024-03-19 22:46
setup.py
329
B
-rw-r--r--
2024-03-19 22:46
sublist.c
1.55
KB
-rw-r--r--
2024-03-19 22:46
test.py
3.56
KB
-rw-r--r--
2024-03-19 22:46
turtle-star.py
155
B
-rw-r--r--
2024-03-19 22:46
typestruct.h
2.42
KB
-rw-r--r--
2024-03-19 22:46
tzinfo_examples.py
5.72
KB
-rw-r--r--
2024-03-19 22:46
Save
Rename
"""Test module for the custom examples Custom 1: >>> import custom >>> c1 = custom.Custom() >>> c2 = custom.Custom() >>> del c1 >>> del c2 Custom 2 >>> import custom2 >>> c1 = custom2.Custom('jim', 'fulton', 42) >>> c1.first 'jim' >>> c1.last 'fulton' >>> c1.number 42 >>> c1.name() 'jim fulton' >>> c1.first = 'will' >>> c1.name() 'will fulton' >>> c1.last = 'tell' >>> c1.name() 'will tell' >>> del c1.first >>> c1.name() Traceback (most recent call last): ... AttributeError: first >>> c1.first Traceback (most recent call last): ... AttributeError: first >>> c1.first = 'drew' >>> c1.first 'drew' >>> del c1.number Traceback (most recent call last): ... TypeError: can't delete numeric/char attribute >>> c1.number=2 >>> c1.number 2 >>> c1.first = 42 >>> c1.name() '42 tell' >>> c2 = custom2.Custom() >>> c2.name() ' ' >>> c2.first '' >>> c2.last '' >>> del c2.first >>> c2.first Traceback (most recent call last): ... AttributeError: first >>> c2.first Traceback (most recent call last): ... AttributeError: first >>> c2.name() Traceback (most recent call last): File "<stdin>", line 1, in ? AttributeError: first >>> c2.number 0 >>> n3 = custom2.Custom('jim', 'fulton', 'waaa') Traceback (most recent call last): File "<stdin>", line 1, in ? TypeError: an integer is required (got type str) >>> del c1 >>> del c2 Custom 3 >>> import custom3 >>> c1 = custom3.Custom('jim', 'fulton', 42) >>> c1 = custom3.Custom('jim', 'fulton', 42) >>> c1.name() 'jim fulton' >>> del c1.first Traceback (most recent call last): File "<stdin>", line 1, in ? TypeError: Cannot delete the first attribute >>> c1.first = 42 Traceback (most recent call last): File "<stdin>", line 1, in ? TypeError: The first attribute value must be a string >>> c1.first = 'will' >>> c1.name() 'will fulton' >>> c2 = custom3.Custom() >>> c2 = custom3.Custom() >>> c2 = custom3.Custom() >>> n3 = custom3.Custom('jim', 'fulton', 'waaa') Traceback (most recent call last): File "<stdin>", line 1, in ? TypeError: an integer is required (got type str) >>> del c1 >>> del c2 Custom 4 >>> import custom4 >>> c1 = custom4.Custom('jim', 'fulton', 42) >>> c1.first 'jim' >>> c1.last 'fulton' >>> c1.number 42 >>> c1.name() 'jim fulton' >>> c1.first = 'will' >>> c1.name() 'will fulton' >>> c1.last = 'tell' >>> c1.name() 'will tell' >>> del c1.first Traceback (most recent call last): ... TypeError: Cannot delete the first attribute >>> c1.name() 'will tell' >>> c1.first = 'drew' >>> c1.first 'drew' >>> del c1.number Traceback (most recent call last): ... TypeError: can't delete numeric/char attribute >>> c1.number=2 >>> c1.number 2 >>> c1.first = 42 Traceback (most recent call last): ... TypeError: The first attribute value must be a string >>> c1.name() 'drew tell' >>> c2 = custom4.Custom() >>> c2 = custom4.Custom() >>> c2 = custom4.Custom() >>> c2 = custom4.Custom() >>> c2.name() ' ' >>> c2.first '' >>> c2.last '' >>> c2.number 0 >>> n3 = custom4.Custom('jim', 'fulton', 'waaa') Traceback (most recent call last): ... TypeError: an integer is required (got type str) Test cyclic gc(?) >>> import gc >>> gc.disable() >>> class Subclass(custom4.Custom): pass ... >>> s = Subclass() >>> s.cycle = [s] >>> s.cycle.append(s.cycle) >>> x = object() >>> s.x = x >>> del s >>> sys.getrefcount(x) 3 >>> ignore = gc.collect() >>> sys.getrefcount(x) 2 >>> gc.enable() """ import os import sys from distutils.util import get_platform PLAT_SPEC = "%s-%d.%d" % (get_platform(), *sys.version_info[:2]) src = os.path.join("build", "lib.%s" % PLAT_SPEC) sys.path.append(src) if __name__ == "__main__": import doctest, __main__ doctest.testmod(__main__)