kr.motd.maven.sphinx.dist.libpasteurize.fixes.fix_unpacking$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
Fixer for:
(a,)* *b (,c)* [,] = s
for (a,)* *b (,c)* [,] in d: ...
org/python/core/PyUnicode fromInterned /(Ljava/lang/String;)Lorg/python/core/PyUnicode;
org/python/core/PyFrame
setglobal /(Ljava/lang/String;Lorg/python/core/PyObject;)V
setline (I)V
lib2to3 java/lang/String
fixer_base org/python/core/imp
importFrom \(Ljava/lang/String;[Ljava/lang/String;Lorg/python/core/PyFrame;I)[Lorg/python/core/PyObject;
! setlocal #
$ itertools & count ( lib2to3.fixer_util * Assign , Comma . Call 0 Newline 2 Name 4 Number 6 token 8 syms : Node < Leaf > libfuturize.fixer_util @ indentation B suitify D commatize F org/python/core/Py H EmptyObjects [Lorg/python/core/PyObject; J K I L org/python/core/PyFunction N f_globals Lorg/python/core/PyObject; P Q R assignment_source$1 ?
Accepts num_pre and num_post, which are counts of values
before and after the starg (not including the starg)
Returns a source fit for Assign() from fixer_util
U org/python/core/PyList W ([Lorg/python/core/PyObject;)V Y Z
X [ (ILorg/python/core/PyObject;)V # ]
^ unicode ` getglobal .(Ljava/lang/String;)Lorg/python/core/PyObject; b c
d getlocal (I)Lorg/python/core/PyObject; f g
h org/python/core/PyObject j __call__ S(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; l m
k n
newInteger (I)Lorg/python/core/PyInteger; p q
I r _gt 6(Lorg/python/core/PyObject;)Lorg/python/core/PyObject; t u
k v __nonzero__ ()Z x y
k z power | __getattr__ ~ c
k trailer ? LSQB ? [ ? m(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; l ?
k ? subscript ? COLON ? : ? RSQB ? ] ? append ? PLUS ? + ? ? prefix ? g(Lorg/python/core/ThreadState;[Lorg/python/core/PyObject;[Ljava/lang/String;)Lorg/python/core/PyObject; l ?
k ? ? factor ? MINUS ? - ?
arith_expr ? f_lasti I ? ? ? $libpasteurize/fixes/fix_unpacking$py ? Lorg/python/core/PyCode; T ? ? ? j(Lorg/python/core/PyObject;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;Lorg/python/core/PyObject;)V Y ?
O ? assignment_source ? getname ? c
? BaseFix ? FixUnpacking ? FixUnpacking$2
__module__ ? __name__ ?9
expl=expr_stmt< testlist_star_expr<
pre=(any ',')*
star_expr< '*' name=NAME >
post=(',' any)* [','] > '=' source=any > |
impl=for_stmt< 'for' lst=exprlist<
pre=(any ',')*
star_expr< '*' name=NAME >
post=(',' any)* [','] > 'in' it=any ':' suite=any> ? PATTERN ? fix_explicit_context$3 to_cell (II)V ? ?
? f$4 __iter__ ()Lorg/python/core/PyObject; ? ?
k ? getderef ? g
? get ? java/lang/Object ?
f_savedlocals [Ljava/lang/Object; ? ? ? getGeneratorInput ()Ljava/lang/Object; ? ?
? org/python/core/PyException ? java/lang/Throwable ? __iternext__ ? ?
k ? None ? Q I ? ? ? ? ?
getclosure ? g
? ?(Lorg/python/core/PyObject;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;Lorg/python/core/PyObject;[Lorg/python/core/PyObject;)V Y ?
O ? org/python/core/PyTuple ? pre ? name ? post ? source ?
? [ java/util/Arrays ? fill (([Ljava/lang/Object;Ljava/lang/Object;)V
unpackSequence 8(Lorg/python/core/PyObject;I)[Lorg/python/core/PyObject;
I ()V Y
X
type NAME _eq u
k clone 9(Lorg/python/core/ThreadState;)Lorg/python/core/PyObject; l
k dellocal
__setattr__
k _add u
k LISTNAME! list# len% ITERNAME' ?(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;Lorg/python/core/PyObject;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; l)
k* ? ? ?, fix_explicit_context. fix_implicit_context$5 _
Only example of the implicit context is
a for loop, so only fix that.
1 f$63 ? ?4 it60 ? ?8 fix_implicit_context: transform$7?
a,b,c,d,e,f,*g,h,i = range(100) changes to
_3to2list = list(range(100))
a,b,c,d,e,f,g,h,i, = _3to2list[:6] + [_3to2list[6:-2]] + _3to2list[-2:]
and
for a,b,*c,d,e in iter_of_iters: do_stuff changes to
for _3to2iter in iter_of_iters:
_3to2list = list(_3to2iter)
a,b,c,d,e, = _3to2list[:2] + [_3to2list[2:-2]] + _3to2list[-2:]
do_stuff
= new_name? _3to2listA _3to2iterC explE implG ? _isnotJ u
kK parentM append_childO removeQ insert_childS childrenU suiteW __getitem__Y u
kZ value\ lst^ replace`<