kr.motd.maven.sphinx.dist.future.builtins.newround$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
???? 1\ f$0 R(Lorg/python/core/PyFrame;Lorg/python/core/ThreadState;)Lorg/python/core/PyObject; __doc__ D
``python-future``: pure Python implementation of Python 3 round().
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.utils java/lang/String PYPY PY26 bind_method org/python/core/imp !
importFrom \(Ljava/lang/String;[Ljava/lang/String;Lorg/python/core/PyFrame;I)[Lorg/python/core/PyObject; # $
" % setlocal '
( decimal * Decimal , ROUND_HALF_EVEN . org/python/core/PyObject 0 None 2 getname .(Ljava/lang/String;)Lorg/python/core/PyObject; 4 5
6 org/python/core/PyFunction 8 f_globals Lorg/python/core/PyObject; : ; <
newround$1?
See Python 3 documentation: uses Banker's Rounding.
Delegates to the __round__ method if for some reason this exists.
If not, rounds a number to a given precision in decimal digits (default
0 digits). This returns an int when called with one argument,
otherwise the same type as the number. ndigits may be negative.
See the test_round method in future/tests/test_builtins.py for
examples.
? False A getglobal C 5
D (ILorg/python/core/PyObject;)V ' F
G getlocal (I)Lorg/python/core/PyObject; I J
K _is 6(Lorg/python/core/PyObject;)Lorg/python/core/PyObject; M N
1 O __nonzero__ ()Z Q R
1 S True U org/python/core/Py W
newInteger (I)Lorg/python/core/PyInteger; Y Z
X [ hasattr ] __round__ _ __call__ m(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; a b
1 c __getattr__ e 5
1 f S(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; a h
1 i f_lasti I k l m _lt o N
1 p NotImplementedError r "negative ndigits not supported yet t
makeException 9(Lorg/python/core/PyObject;)Lorg/python/core/PyException; v w
X x 10 z __neg__ ()Lorg/python/core/PyObject; | }
1 ~ _pow ? N
1 ? numpy ? repr ? type ? _in ? N
1 ? float ? __not__ ? }
1 ?
from_float ? quantize ? rounding ? g(Lorg/python/core/ThreadState;[Lorg/python/core/PyObject;[Ljava/lang/String;)Lorg/python/core/PyObject; a ?
1 ?
from_float_26 ? int ? future/builtins/newround$py ? Lorg/python/core/PyCode; > ? ? ? j(Lorg/python/core/PyObject;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;Lorg/python/core/PyObject;)V ? ?
9 ? newround ? EmptyObjects [Lorg/python/core/PyObject; ? ? X ? from_float_26$2?Converts a float to a decimal number, exactly.
Note that Decimal.from_float(0.1) is not the same as Decimal('0.1').
Since 0.1 is not exactly representable in binary floating point, the
value is stored as the nearest representable value which is
0x1.999999999999ap-4. The exact equivalent of the value in decimal
is 0.1000000000000000055511151231257827021181583404541015625.
>>> Decimal.from_float(0.1)
Decimal('0.1000000000000000055511151231257827021181583404541015625')
>>> Decimal.from_float(float('nan'))
Decimal('NaN')
>>> Decimal.from_float(float('inf'))
Decimal('Infinity')
>>> Decimal.from_float(-float('inf'))
Decimal('-Infinity')
>>> Decimal.from_float(-0.0)
Decimal('-0')
? math ? importOneAs H(Ljava/lang/String;Lorg/python/core/PyFrame;I)Lorg/python/core/PyObject; ? ?
" ? _dec_from_triple ?
isinstance ? org/python/core/PyTuple ? long ? ([Lorg/python/core/PyObject;)V ? ?
? ? isinf ? isnan ? copysign ??? newFloat (D)Lorg/python/core/PyFloat; ? ?
X ? _eq ? N
1 ? abs ? as_integer_ratio ? 9(Lorg/python/core/ThreadState;)Lorg/python/core/PyObject; a ?
1 ? unpackSequence 8(Lorg/python/core/PyObject;I)[Lorg/python/core/PyObject; ? ?
X ? bit_length$3 _ne ? N
1 ? len ? bin ? _sub ? N
1 ? ? ? ? ? str ? _mul ? N
1 ? ?(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; a ?
1 ? ? ? ? ? org/python/core/PyList ?
? ? __all__ ? 2 ; X ? (Ljava/lang/String;)V org/python/core/PyFunctionTable ? ()V ? ?
? ? self Lfuture/builtins/newround$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;
X ? ? number ndigits
return_int exponent d f _math sign n
bit_length k result! getMain ()Lorg/python/core/PyCode; main ([Ljava/lang/String;)V ? ? ?
?(#$
?* org/python/core/CodeLoader, createSimpleBootstrap 9(Lorg/python/core/PyCode;)Lorg/python/core/CodeBootstrap;./
-0 runMain 5(Lorg/python/core/CodeBootstrap;[Ljava/lang/String;)V23
X4 getCodeBootstrap !()Lorg/python/core/CodeBootstrap; #org/python/core/PyRunnableBootstrap8 )getFilenameConstructorReflectionBootstrap 2(Ljava/lang/Class;)Lorg/python/core/CodeBootstrap;:;
9<
call_function S(ILorg/python/core/PyFrame;Lorg/python/core/ThreadState;)Lorg/python/core/PyObject;
?@ >
?B ?
?D ?
?F org/python/core/PyRunnableH 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/newround.py org/python/core/ThreadStateR [Ljava/lang/String;T ? Code LineNumberTable StackMap
SourceFile RuntimeVisibleAnnotations ! ? ? I ? ? > ? ? ? ? ? W Z .+? ? +? ? W+? ? N-S-S- S-+? &N-2:+? ):-2:+? ):-2:+ ? ):+ ? +? N--S-/S-+? &N-2:+-? ):-2:+/? ):+? ? 1N+3? 7-__S? 9Y+? =-? ?@? ? ?N+?-? )N+7? ? ?N? 9Y+? =-? ??? ? ?N+?-? )N+c? ? ?Y? 1Y?? S? ?N+?-? )N+? n? ?? X 7 c > W ? ?+? @? W+? +B? EN+-? HN+? +? LN+3? E-_? PN? T? .+? +V? EN+-? HN+? ? \N+-? HN? +? +^? E,+? L`? ? d? T? $+? +? L`? g,+? L? jN+? n-?+ ? +? L:? \_? q:? T? +!? +s? E,u? ? j? y?+"? +-? E,{? ? j+? L? ? ?:+? H:+$? +? E? T? _+&? ?? :+?? E,+?? E,+? L? j? j_? ?:? T? '+'? +?? E,+? L? j:+? H:? ? +)? +? E? ?? T? e+*? +-? E?? g,+? L? j?? g,? 1:+? L__S+/? E__S? :?S? ?::+? H:? ]+-? +?? E,+? L? j?? g,? 1:+? L__S+/? E__S? :?S? ?::+? H:+/? +? L? T? +0? +?? E,+? L? jN+? n-?+2? +?? E,+? L? jN+? n-? X N ! " $ &