$92 GRAYBYTE WORDPRESS FILE MANAGER $33

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.23
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/python37/lib/python3.7/site-packages/future/builtins/__pycache__/

HOME
Current File : /opt/alt/python37/lib/python3.7/site-packages/future/builtins/__pycache__//newsuper.cpython-37.pyc
B

�A�[2�@s`dZddlmZddlZddlmZddlmZmZe	Z
e�Zeedfdd�Z
d	d
�ZdgZdS)ah
This module provides a newsuper() function in Python 2 that mimics the
behaviour of super() in Python 3. It is designed to be used as follows:

    from __future__ import division, absolute_import, print_function
    from future.builtins import super

And then, for example:

    class VerboseList(list):
        def append(self, item):
            print('Adding an item')
            super().append(item)        # new simpler super() function

Importing this module on Python 3 has no effect.

This is based on (i.e. almost identical to) Ryan Kelly's magicsuper
module here:

    https://github.com/rfk/magicsuper.git

Excerpts from Ryan's docstring:

  "Of course, you can still explicitly pass in the arguments if you want
  to do something strange.  Sometimes you really do want that, e.g. to
  skip over some classes in the method resolution order.

  "How does it work?  By inspecting the calling frame to determine the
  function object being executed and the object on which it's being
  called, and then walking the object's __mro__ chain to find out where
  that function was defined.  Yuck, but it seems to work..."
�)�absolute_importN)�FunctionType)�PY3�PY26�cCsf|tk�rJt�|�}y|j|jjd}Wn ttfk
rJtd��YnXy
|j	}WnBt
tfk
r�y|jj	}Wnt
k
r�td��YnXYnXx�|D]�}x�|j�
�D]�}yVxPt|t��st|t�r�|j}q�y
|j}Wq�t
k
�r|�||�}Yq�Xq�WWnt
tfk
�r&w�YnX|j|jkr�Pq�Wq�Pq�Wtd��|tk	�r^t||�St|�S)z�Like builtin super(), but capable of magic.

    This acts just like the builtin super() function, but if called
    without any arguments it attempts to infer them at runtime.
    rz'super() used in a function with no argsz&super() used with a non-newstyle classzsuper() called outside a method)�	_SENTINEL�sys�	_getframe�f_locals�f_code�co_varnames�
IndexError�KeyError�RuntimeError�__mro__�AttributeError�	__class__�__dict__�values�
isinstancer�property�fget�__func__�__get__�	TypeError�	func_code�_builtin_super)�typZtype_or_obj�
framedepth�f�mro�meth�r"�I/opt/alt/python37/lib/python3.7/site-packages/future/builtins/newsuper.py�newsuper-sB







r$cOs(t�d�}|jj}ttdd�|�||�S)Nr�)r)rr	r�co_name�getattrr$)�args�kwdsr�nmr"r"r#�supermls
r+)�__doc__�
__future__rr�typesrZfuture.utilsrr�superr�objectrr$r+�__all__r"r"r"r#�<module> s?


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
3 Mar 2024 11.10 PM
root / linksafe
0755
__init__.cpython-37.opt-1.pyc
1.201 KB
14 Nov 2023 12.35 PM
root / linksafe
0644
__init__.cpython-37.pyc
1.201 KB
14 Nov 2023 12.35 PM
root / linksafe
0644
disabled.cpython-37.opt-1.pyc
2.293 KB
14 Nov 2023 12.35 PM
root / linksafe
0644
disabled.cpython-37.pyc
2.293 KB
14 Nov 2023 12.35 PM
root / linksafe
0644
iterators.cpython-37.opt-1.pyc
1.468 KB
14 Nov 2023 12.35 PM
root / linksafe
0644
iterators.cpython-37.pyc
1.468 KB
14 Nov 2023 12.35 PM
root / linksafe
0644
misc.cpython-37.opt-1.pyc
2.708 KB
14 Nov 2023 12.35 PM
root / linksafe
0644
misc.cpython-37.pyc
2.708 KB
14 Nov 2023 12.35 PM
root / linksafe
0644
newnext.cpython-37.opt-1.pyc
1.944 KB
14 Nov 2023 12.35 PM
root / linksafe
0644
newnext.cpython-37.pyc
1.944 KB
14 Nov 2023 12.35 PM
root / linksafe
0644
newround.cpython-37.opt-1.pyc
2.698 KB
14 Nov 2023 12.35 PM
root / linksafe
0644
newround.cpython-37.pyc
2.698 KB
14 Nov 2023 12.35 PM
root / linksafe
0644
newsuper.cpython-37.opt-1.pyc
2.773 KB
14 Nov 2023 12.35 PM
root / linksafe
0644
newsuper.cpython-37.pyc
2.773 KB
14 Nov 2023 12.35 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF