HEX
Server: LiteSpeed
System: Linux standart9.isimtescil.net 3.10.0-962.3.2.lve1.5.26.7.el7.x86_64 #1 SMP Wed Oct 2 07:53:12 EDT 2019 x86_64
User: karalev (5310)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: //opt/alt/python27/lib/python2.7/site-packages/future/types/newdict.pyo
�
�A�[c@s�dZddlZddlmZddlmZeZejd Z	de
fd��YZdeee�fd	��YZdgZ
dS(
s�
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)
i����N(twith_metaclass(t	newobjectitBaseNewDictcBseZd�ZRS(cCs-|tkrt|t�St|j|�SdS(N(tnewdictt
isinstancet
_builtin_dictt
issubclasst	__class__(tclstinstance((sE/opt/alt/python27/lib/python2.7/site-packages/future/types/newdict.pyt__instancecheck__s
(t__name__t
__module__R
(((sE/opt/alt/python27/lib/python2.7/site-packages/future/types/newdict.pyRsRcBs;eZdZd�Zd�Zd�Zd�Zd�ZRS(s7
    A backport of the Python 3 dict object to Py2
    cCsFtdkr|j�Stdkr,|j�Std	krB|j�SdS(
s�
        On Python 2.7+:
            D.items() -> a set-like object providing a view on D's items
        On Python 2.6:
            D.items() -> an iterator over D's items
        iiiiiN(ii(ii(ii(tvert	viewitemst	iteritemstitems(tself((sE/opt/alt/python27/lib/python2.7/site-packages/future/types/newdict.pyR)s

cCsFtdkr|j�Stdkr,|j�Std	krB|j�SdS(
s�
        On Python 2.7+:
            D.keys() -> a set-like object providing a view on D's keys
        On Python 2.6:
            D.keys() -> an iterator over D's keys
        iiiiiN(ii(ii(ii(R
tviewkeystiterkeystkeys(R((sE/opt/alt/python27/lib/python2.7/site-packages/future/types/newdict.pyR7s

cCsFtdkr|j�Stdkr,|j�Std	krB|j�SdS(
s�
        On Python 2.7+:
            D.values() -> a set-like object providing a view on D's values
        On Python 2.6:
            D.values() -> an iterator over D's values
        iiiiiN(ii(ii(ii(R
t
viewvaluest
itervaluestvalues(R((sE/opt/alt/python27/lib/python2.7/site-packages/future/types/newdict.pyREs

cOsnt|�dkr(tt|�j|�St|d�tkrK|d}n
|d}tt|�j||�S(s�
        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)
        i(tlentsuperRt__new__ttype(Rtargstkwargstvalue((sE/opt/alt/python27/lib/python2.7/site-packages/future/types/newdict.pyRSs


cCs
t|�S(s=
        Hook for the future.utils.native() function
        (tdict(R((sE/opt/alt/python27/lib/python2.7/site-packages/future/types/newdict.pyt
__native__hs(RRt__doc__RRRRR (((sE/opt/alt/python27/lib/python2.7/site-packages/future/types/newdict.pyR%s				(R!tsystfuture.utilsRtfuture.types.newobjectRRRtversion_infoR
RRRt__all__(((sE/opt/alt/python27/lib/python2.7/site-packages/future/types/newdict.pyt<module>s
J