kr.motd.maven.sphinx.dist.future.builtins.newsuper$py.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sphinx-maven-plugin Show documentation
Show all versions of sphinx-maven-plugin Show documentation
Maven plugin that creates the site with Sphinx
???? 1F f$0 R(Lorg/python/core/PyFrame;Lorg/python/core/ThreadState;)Lorg/python/core/PyObject; __doc__ j
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..."
org/python/core/PyString fromInterned .(Ljava/lang/String;)Lorg/python/core/PyString;
org/python/core/PyFrame
setglobal /(Ljava/lang/String;Lorg/python/core/PyObject;)V
setline (I)V
__future__ java/lang/String absolute_import org/python/core/imp
importFrom \(Ljava/lang/String;[Ljava/lang/String;Lorg/python/core/PyFrame;I)[Lorg/python/core/PyObject;
! setlocal #
$ sys & importOne H(Ljava/lang/String;Lorg/python/core/PyFrame;I)Lorg/python/core/PyObject; ( )
* types , FunctionType . future.utils 0 PY3 2 PY26 4 super 6 getname .(Ljava/lang/String;)Lorg/python/core/PyObject; 8 9
: _builtin_super < object > org/python/core/PyObject @ __call__ 9(Lorg/python/core/ThreadState;)Lorg/python/core/PyObject; B C
A D _SENTINEL F org/python/core/Py H
newInteger (I)Lorg/python/core/PyInteger; J K
I L org/python/core/PyFunction N f_globals Lorg/python/core/PyObject; P Q R
newsuper$1 ?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.
U getlocal (I)Lorg/python/core/PyObject; W X
Y getglobal [ 9
\ _is 6(Lorg/python/core/PyObject;)Lorg/python/core/PyObject; ^ _
A ` __nonzero__ ()Z b c
A d _getframe f __getattr__ h 9
A i S(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; B k
A l (ILorg/python/core/PyObject;)V # n
o f_locals q f_code s co_varnames u __getitem__ w _
A x setException M(Ljava/lang/Throwable;Lorg/python/core/PyFrame;)Lorg/python/core/PyException; z {
I | org/python/core/PyTuple ~
IndexError ? KeyError ? ([Lorg/python/core/PyObject;)V ? ?
? org/python/core/PyException ? match (Lorg/python/core/PyObject;)Z ? ?
? ? RuntimeError ? 'super() used in a function with no args ?
makeException 9(Lorg/python/core/PyObject;)Lorg/python/core/PyException; ? ?
I ? java/lang/Throwable ? __mro__ ? AttributeError ? __class__ ? &super() used with a non-newstyle class ? __iter__ ()Lorg/python/core/PyObject; ? ?
A ? __dict__ ? values ?
isinstance ? property ? m(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; B ?
A ? fget ? __func__ ? __get__ ? __not__ ? ?
A ? TypeError ? func_code ? __iternext__ ? ?
A ? super() called outside a method ? _isnot ? _
A ? f_lasti I ? ? ? future/builtins/newsuper$py ? Lorg/python/core/PyCode; T ? ? ? j(Lorg/python/core/PyObject;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;Lorg/python/core/PyObject;)V ? ?
O ? newsuper ? EmptyObjects [Lorg/python/core/PyObject; ? ? I ? superm$2 co_name ? getattr ?
framedepth ? g(Lorg/python/core/ThreadState;[Lorg/python/core/PyObject;[Ljava/lang/String;)Lorg/python/core/PyObject; B ?
A ?
_callextra ~([Lorg/python/core/PyObject;[Ljava/lang/String;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; ? ?
A ? ? ? ? ? superm ? org/python/core/PyList ?
? ? __all__ ? None ? Q I ? (Ljava/lang/String;)V org/python/core/PyFunctionTable ? ()V ? ?
? ? self Lfuture/builtins/newsuper$py; ? ? ? ? ? newCode ?(I[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IZZLorg/python/core/PyFunctionTable;I[Ljava/lang/String;[Ljava/lang/String;II)Lorg/python/core/PyCode; ? ?
I ? ? ? typ type_or_obj f mro meth
args kwds nm getMain ()Lorg/python/core/PyCode; main ([Ljava/lang/String;)V ? ? ?
?
? org/python/core/CodeLoader createSimpleBootstrap 9(Lorg/python/core/PyCode;)Lorg/python/core/CodeBootstrap;
runMain 5(Lorg/python/core/CodeBootstrap;[Ljava/lang/String;)V!"
I# getCodeBootstrap !()Lorg/python/core/CodeBootstrap; #org/python/core/PyRunnableBootstrap' )getFilenameConstructorReflectionBootstrap 2(Ljava/lang/Class;)Lorg/python/core/CodeBootstrap;)*
(+
call_function S(ILorg/python/core/PyFrame;Lorg/python/core/ThreadState;)Lorg/python/core/PyObject;
?/ T
?1 ?
?3 org/python/core/PyRunnable5 Lorg/python/compiler/APIVersion; value % Lorg/python/compiler/MTime; `9 G? Lorg/python/compiler/Filename; b/home/trustin/Workspaces/sphinx-maven-plugin/target/update-sphinx/dist/future/builtins/newsuper.py org/python/core/ThreadState? Code LineNumberTable StackMap
SourceFile RuntimeVisibleAnnotations ! ? ? 6 ? ? ? T ? ? ? A ? ?+? ? + ? ? W+"? ? N-S-+? "N-2:+? %:+#? '+? +N+'-? %N+$? -? N-/S-+? "N-2:+/? %:+&? 1? N-3S-5S-+? "N-2:+3? %:-2:+5? %:+)? +7? ;N+=-? %N++? +?? ;,? EN+G-? %N+-? ? AN+G? ;-__S+G? ;-__S? M-__S? OY+? S-? ?V? ? ?N+?-? %N+l? ? ?N? OY+? S-? ?? ?N+?-? %N+r? ? ?Y? AYѸ S? ?N+?-? %N+? Dz ? B *
" # $ &