Linux evo.fastest-server.com 5.14.0-284.1101.el9.tuxcare.11.els11.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Aug 14 13:30:35 UTC 2026 x86_64
LiteSpeed
Server IP : 103.249.112.113 & Your IP : 216.73.217.135
Domains : 988 Domain
User : tanishks
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
python3.9 /
site-packages /
future /
types /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2026-09-04 11:38
__init__.py
6.67
KB
-rw-r--r--
2023-01-13 03:16
newbytes.py
15.92
KB
-rw-r--r--
2023-01-13 03:16
newdict.py
1.96
KB
-rw-r--r--
2023-01-13 03:16
newint.py
13.04
KB
-rw-r--r--
2023-01-13 03:16
newlist.py
2.23
KB
-rw-r--r--
2023-01-13 03:16
newmemoryview.py
712
B
-rw-r--r--
2023-01-13 03:16
newobject.py
3.28
KB
-rw-r--r--
2023-01-13 03:16
newopen.py
810
B
-rw-r--r--
2023-01-13 03:16
newrange.py
5.17
KB
-rw-r--r--
2023-01-13 03:16
newstr.py
15.39
KB
-rw-r--r--
2023-01-13 03:16
Save
Rename
""" A dict subclass for Python 2 that behaves like Python 3's dict Example use: >>> from builtins import dict >>> d1 = dict() # instead of {} for an empty dict >>> d2 = dict(key1='value1', key2='value2') The keys, values and items methods now return iterators on Python 2.x (with set-like behaviour on Python 2.7). >>> for d in (d1, d2): ... assert not isinstance(d.keys(), list) ... assert not isinstance(d.values(), list) ... assert not isinstance(d.items(), list) """ import sys from future.utils import with_metaclass from future.types.newobject import newobject _builtin_dict = dict ver = sys.version_info class BaseNewDict(type): def __instancecheck__(cls, instance): if cls == newdict: return isinstance(instance, _builtin_dict) else: return issubclass(instance.__class__, cls) class newdict(with_metaclass(BaseNewDict, _builtin_dict)): """ A backport of the Python 3 dict object to Py2 """ if ver >= (3,): # Inherit items, keys and values from `dict` in 3.x pass elif ver >= (2, 7): items = dict.viewitems keys = dict.viewkeys values = dict.viewvalues else: items = dict.iteritems keys = dict.iterkeys values = dict.itervalues def __new__(cls, *args, **kwargs): """ dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list. For example: dict(one=1, two=2) """ return super(newdict, cls).__new__(cls, *args) def __native__(self): """ Hook for the future.utils.native() function """ return dict(self) __all__ = ['newdict']