✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ server366.web-hosting.com ​🇻​♯➤ 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP 🇾​♯➤ 2025

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 67.223.118.204 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.216.62
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ 𝗔𝗟𝗟 𝗪𝗢𝗥𝗞𝗜𝗡𝗚....

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /opt/cloudlinux/venv/lib/python3.11/site-packages/dill/tests//test_objects.py
#!/usr/bin/env python
#
# Author: Mike McKerns (mmckerns @caltech and @uqfoundation)
# Copyright (c) 2008-2016 California Institute of Technology.
# Copyright (c) 2016-2023 The Uncertainty Quantification Foundation.
# License: 3-clause BSD.  The full license text is available at:
#  - https://github.com/uqfoundation/dill/blob/master/LICENSE
"""
demonstrate dill's ability to pickle different python types
test pickling of all Python Standard Library objects (currently: CH 1-14 @ 2.7)
"""

import dill as pickle
pickle.settings['recurse'] = True
#pickle.detect.trace(True)
#import pickle

# get all objects for testing
from dill import load_types, objects, extend
load_types(pickleable=True,unpickleable=False)

# uncomment the next two lines to test cloudpickle
#extend(False)
#import cloudpickle as pickle

# helper objects
class _class:
    def _method(self):
        pass

# objects that *fail* if imported
special = {}
special['LambdaType'] = _lambda = lambda x: lambda y: x
special['MethodType'] = _method = _class()._method
special['UnboundMethodType'] = _class._method
objects.update(special)

def pickles(name, exact=False):
    """quick check if object pickles with dill"""
    obj = objects[name]
    try:
        pik = pickle.loads(pickle.dumps(obj))
        if exact:
            try:
                assert pik == obj
            except AssertionError:
                assert type(obj) == type(pik)
                print ("weak: %s %s" % (name, type(obj)))
        else:
            assert type(obj) == type(pik)
    except Exception:
        print ("fails: %s %s" % (name, type(obj)))


def test_objects():
    for member in objects.keys():
       #pickles(member, exact=True)
        pickles(member, exact=False)

if __name__ == '__main__':
    import warnings
    warnings.simplefilter('ignore')
    test_objects()


Current_dir [ 𝗡𝗢𝗧 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
11 Feb 2026 6.01 AM
root / root
0755
__pycache__
--
11 Feb 2026 6.01 AM
root / root
0755
__init__.py
0.489 KB
20 Jan 2026 1.01 PM
root / root
0644
__main__.py
0.878 KB
20 Jan 2026 1.01 PM
root / root
0644
test_abc.py
3.748 KB
20 Jan 2026 1.01 PM
root / root
0644
test_check.py
1.363 KB
20 Jan 2026 1.01 PM
root / root
0644
test_classdef.py
6.992 KB
20 Jan 2026 1.01 PM
root / root
0644
test_dataclasses.py
0.869 KB
20 Jan 2026 1.01 PM
root / root
0644
test_detect.py
3.987 KB
20 Jan 2026 1.01 PM
root / root
0644
test_dictviews.py
1.306 KB
20 Jan 2026 1.01 PM
root / root
0644
test_diff.py
2.604 KB
20 Jan 2026 1.01 PM
root / root
0644
test_extendpickle.py
1.284 KB
20 Jan 2026 1.01 PM
root / root
0644
test_fglobals.py
1.637 KB
20 Jan 2026 1.01 PM
root / root
0644
test_file.py
13.26 KB
20 Jan 2026 1.01 PM
root / root
0644
test_functions.py
4.167 KB
20 Jan 2026 1.01 PM
root / root
0644
test_functors.py
0.908 KB
20 Jan 2026 1.01 PM
root / root
0644
test_logger.py
2.329 KB
20 Jan 2026 1.01 PM
root / root
0644
test_mixins.py
3.913 KB
20 Jan 2026 1.01 PM
root / root
0644
test_module.py
1.897 KB
20 Jan 2026 1.01 PM
root / root
0644
test_moduledict.py
1.154 KB
20 Jan 2026 1.01 PM
root / root
0644
test_nested.py
3.072 KB
20 Jan 2026 1.01 PM
root / root
0644
test_objects.py
1.791 KB
20 Jan 2026 1.01 PM
root / root
0644
test_properties.py
1.314 KB
20 Jan 2026 1.01 PM
root / root
0644
test_pycapsule.py
1.384 KB
20 Jan 2026 1.01 PM
root / root
0644
test_recursive.py
4.084 KB
20 Jan 2026 1.01 PM
root / root
0644
test_registered.py
1.536 KB
20 Jan 2026 1.01 PM
root / root
0644
test_restricted.py
0.765 KB
20 Jan 2026 1.01 PM
root / root
0644
test_selected.py
3.143 KB
20 Jan 2026 1.01 PM
root / root
0644
test_session.py
9.923 KB
20 Jan 2026 1.01 PM
root / root
0644
test_source.py
5.895 KB
20 Jan 2026 1.01 PM
root / root
0644
test_temp.py
2.558 KB
20 Jan 2026 1.01 PM
root / root
0644
test_weakref.py
1.564 KB
20 Jan 2026 1.01 PM
root / root
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF