All Downloads are FREE. Search and download functionalities are using the official Maven repository.

kr.motd.maven.sphinx.dist.future.builtins.newsuper$py.class Maven / Gradle / Ivy

There is a newer version: 2.10.0
Show newest version
????1Ff$0R(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/Stringabsolute_importorg/python/core/imp
importFrom\(Ljava/lang/String;[Ljava/lang/String;Lorg/python/core/PyFrame;I)[Lorg/python/core/PyObject; 
!setlocal#
$sys&	importOneH(Ljava/lang/String;Lorg/python/core/PyFrame;I)Lorg/python/core/PyObject;()
*types,FunctionType.future.utils0PY32PY264super6getname.(Ljava/lang/String;)Lorg/python/core/PyObject;89
:_builtin_super<object>org/python/core/PyObject@__call__9(Lorg/python/core/ThreadState;)Lorg/python/core/PyObject;BC
AD	_SENTINELForg/python/core/PyH
newInteger(I)Lorg/python/core/PyInteger;JK
ILorg/python/core/PyFunctionN	f_globalsLorg/python/core/PyObject;PQ	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.
    Ugetlocal(I)Lorg/python/core/PyObject;WX
Y	getglobal[9
\_is6(Lorg/python/core/PyObject;)Lorg/python/core/PyObject;^_
A`__nonzero__()Zbc
Ad	_getframef__getattr__h9
AiS(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;)Lorg/python/core/PyObject;Bk
Al(ILorg/python/core/PyObject;)V#n
of_localsqf_codesco_varnamesu__getitem__w_
AxsetExceptionM(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?
makeException9(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_lastiI??	?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?EmptyObjectsorg/python/core/PyObject;??	I?superm$2co_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;)Vorg/python/core/PyFunctionTable?()V??
??selfLfuture/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??	?typtype_or_objfmrometh
argskwdsnmgetMain()Lorg/python/core/PyCode;main([Ljava/lang/String;)V???
?
?org/python/core/CodeLoadercreateSimpleBootstrap9(Lorg/python/core/PyCode;)Lorg/python/core/CodeBootstrap;
runMain5(Lorg/python/core/CodeBootstrap;[Ljava/lang/String;)V!"
I#getCodeBootstrap!()Lorg/python/core/CodeBootstrap;#org/python/core/PyRunnableBootstrap')getFilenameConstructorReflectionBootstrap2(Ljava/lang/Class;)Lorg/python/core/CodeBootstrap;)*
(+
call_functionS(ILorg/python/core/PyFrame;Lorg/python/core/ThreadState;)Lorg/python/core/PyObject;
?/T
?1?
?3org/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.pyorg/python/core/ThreadState?CodeLineNumberTableStackMap
SourceFileRuntimeVisibleAnnotations!??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*
 "#$&)+-lrTA	|+2?V?W+4?+?ZN+G?]-_?aN?e??+6?+'?]g?j,+?Z?mN+-?pN+:?+?Zr?j+?Zt?jv?j?M?y?yN+-?pN?J+?}N-?Y?AY+??]SY+??]S?????+E78I9:8J;=8s>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy