|
| 1 | +class F: |
| 2 | + @classmethod |
| 3 | + def meth(cls, a, b=1): |
| 4 | + cls.a = a |
| 5 | + cls.b = b |
| 6 | + print(cls) |
| 7 | + cls() |
| 8 | + cls + 1 |
| 9 | + a.cls = 1 |
| 10 | + a.cls.__name__ |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | +class : meta.class.python, source.python, storage.type.class.python |
| 15 | + : meta.class.python, source.python |
| 16 | +F : entity.name.type.class.python, meta.class.python, source.python |
| 17 | +: : meta.class.python, punctuation.section.class.begin.python, source.python |
| 18 | + : meta.function.decorator.python, source.python |
| 19 | +@ : entity.name.function.decorator.python, meta.function.decorator.python, source.python |
| 20 | +classmethod : meta.function.decorator.python, source.python, support.type.python |
| 21 | + : meta.function.python, source.python |
| 22 | +def : meta.function.python, source.python, storage.type.function.python |
| 23 | + : meta.function.python, source.python |
| 24 | +meth : entity.name.function.python, meta.function.python, source.python |
| 25 | +( : meta.function.parameters.python, meta.function.python, punctuation.definition.parameters.begin.python, source.python |
| 26 | +cls : meta.function.parameters.python, meta.function.python, source.python, variable.parameter.function.language.python, variable.parameter.function.language.special.cls.python |
| 27 | +, : meta.function.parameters.python, meta.function.python, punctuation.separator.parameters.python, source.python |
| 28 | + : meta.function.parameters.python, meta.function.python, source.python |
| 29 | +a : meta.function.parameters.python, meta.function.python, source.python, variable.parameter.function.language.python |
| 30 | +, : meta.function.parameters.python, meta.function.python, punctuation.separator.parameters.python, source.python |
| 31 | + : meta.function.parameters.python, meta.function.python, source.python |
| 32 | +b : meta.function.parameters.python, meta.function.python, source.python, variable.parameter.function.language.python |
| 33 | += : keyword.operator.python, meta.function.parameters.python, meta.function.python, source.python |
| 34 | +1 : constant.numeric.dec.python, meta.function.parameters.python, meta.function.python, source.python |
| 35 | +) : meta.function.parameters.python, meta.function.python, punctuation.definition.parameters.end.python, source.python |
| 36 | +: : meta.function.python, punctuation.section.function.begin.python, source.python |
| 37 | + : source.python |
| 38 | +cls : source.python, variable.language.special.cls.python |
| 39 | +. : source.python |
| 40 | +a : source.python |
| 41 | + : source.python |
| 42 | += : keyword.operator.assignment.python, source.python |
| 43 | + a : source.python |
| 44 | + : source.python |
| 45 | +cls : source.python, variable.language.special.cls.python |
| 46 | +. : source.python |
| 47 | +b : source.python |
| 48 | + : source.python |
| 49 | += : keyword.operator.assignment.python, source.python |
| 50 | + b : source.python |
| 51 | + : source.python |
| 52 | +print : meta.function-call.python, source.python, support.function.builtin.python |
| 53 | +( : meta.function-call.arguments.python, meta.function-call.python, punctuation.definition.arguments.begin.python, source.python |
| 54 | +cls : meta.function-call.arguments.python, meta.function-call.python, source.python, variable.language.special.cls.python |
| 55 | +) : meta.function-call.python, punctuation.definition.arguments.end.python, source.python |
| 56 | + : source.python |
| 57 | +cls : meta.function-call.python, source.python, variable.language.special.cls.python |
| 58 | +( : meta.function-call.arguments.python, meta.function-call.python, punctuation.definition.arguments.begin.python, source.python |
| 59 | +) : meta.function-call.python, punctuation.definition.arguments.end.python, source.python |
| 60 | + : source.python |
| 61 | +cls : source.python, variable.language.special.cls.python |
| 62 | + : source.python |
| 63 | ++ : keyword.operator.python, source.python |
| 64 | + : source.python |
| 65 | +1 : constant.numeric.dec.python, source.python |
| 66 | + a : source.python |
| 67 | +. : source.python |
| 68 | +cls : source.python |
| 69 | + : source.python |
| 70 | += : keyword.operator.assignment.python, source.python |
| 71 | + : source.python |
| 72 | +1 : constant.numeric.dec.python, source.python |
| 73 | + a.cls : source.python |
| 74 | +. : source.python |
| 75 | +__name__ : source.python, support.variable.magic.python |
0 commit comments