def
and
os
__init__
120
"Python Language"
3.14
==
@
//=
import numpy as np
import numpy as np
if seconds_since_ping() * 60 >= KEEP_ALIVE:
if seconds_since_ping() * 60 >= KEEP_ALIVE:
up = requests.get("https://status.python.org")
up = requests.get("https://status.python.org")
up = requests.get("https://status.python.org")
up = requests.get("https://status.python.org")
'up' NAME '=' EQUAL 'requests' NAME '.' DOT 'get' NAME '(' LPAR '"https://status.python.org"' STRING ')' RPAR '\n' NEWLINE
'up' NAME '=' EQUAL 'requests' NAME '.' DOT 'get' NAME '(' LPAR '"https://status.python.org"' STRING ')' RPAR '\n' NEWLINE
Assign( targets=[ Name(id='up')], value=Call( func=Attribute( value=Name(id='requests'), attr='get'), args=[ Constant(value='https://status.python.org')], keywords=[]))
Assign( targets=[ Name(id='up')], value=Call( func=Attribute( value=Name(id='requests'), attr='get'), args=[ Constant(value='https://status.python.org')], keywords=[]))
01100101 LOAD_NAME (requests) 10100000 LOAD_METHOD (get) 01100100 LOAD_CONST ('https://status.python.org') 10100001 CALL_METHOD 01011010 STORE_NAME (up)
01100101 LOAD_NAME (requests) 10100000 LOAD_METHOD (get) 01100100 LOAD_CONST ('https://status.python.org') 10100001 CALL_METHOD 01011010 STORE_NAME (up)
up = requests.get("https://status.python.org")
up = requests.get("https://status.python.org")
up := requests-get{"https://"++"status.python.org"}
up := requests-get{"https://"++"status.python.org"}
rule: definition
rule: definition
cheese stick
cheese stick
cheese | banana
cheese | banana
cheese (stick | wheel)
cheese (stick | wheel)
[cheese stick]
[cheese stick]
banana?
banana?
cheese*
cheese*
cheese+
cheese+
','.cheese
','.cheese
&cheese
&cheese
!cheese
!cheese
~ cheese
~ cheese
assignment: | NAME ':' expression ['=' annotated_rhs] | ('(' single_target ')' | single_subscript_attribute_target) ':' expression ['=' annotated_rhs] | (star_targets '=')+ (yield_expr | star_expressions) !'=' [TYPE_COMMENT] | single_target augassign ~ (yield_expr | star_expressions)
assignment: | NAME ':' expression ['=' annotated_rhs] | ('(' single_target ')' | single_subscript_attribute_target) ':' expression ['=' annotated_rhs] | (star_targets '=')+ (yield_expr | star_expressions) !'=' [TYPE_COMMENT] | single_target augassign ~ (yield_expr | star_expressions)
star_targets: | star_target !',' | star_target (',' star_target )* [',']
star_targets: | star_target !',' | star_target (',' star_target )* [',']
star_target: | '*' (!'*' star_target) | target_with_star_atom
star_target: | '*' (!'*' star_target) | target_with_star_atom
target_with_star_atom: | t_primary '.' NAME !t_lookahead | t_primary '[' slices ']' !t_lookahead | star_atom
target_with_star_atom: | t_primary '.' NAME !t_lookahead | t_primary '[' slices ']' !t_lookahead | star_atom
star_atom: | NAME | '(' target_with_star_atom ')' | '(' [star_targets_tuple_seq] ')' | '[' [star_targets_list_seq] ']'
star_atom: | NAME | '(' target_with_star_atom ')' | '(' [star_targets_tuple_seq] ')' | '[' [star_targets_list_seq] ']'
star_expressions: | star_expression (',' star_expression)+ [','] | star_expression ',' | star_expression
star_expressions: | star_expression (',' star_expression)+ [','] | star_expression ',' | star_expression
star_expression -> expression -> disjunction -> conjunction -> inversion -> comparison -> bitwise_or -> bitwise_xor -> bitwise_and -> shift_expr -> sum -> term -> factor -> power -> await_primary -> primary
star_expression -> expression -> disjunction -> conjunction -> inversion -> comparison -> bitwise_or -> bitwise_xor -> bitwise_and -> shift_expr -> sum -> term -> factor -> power -> await_primary -> primary
primary: | primary '.' NAME | primary genexp | primary '(' [arguments] ')' | primary '[' slices ']' | atom
primary: | primary '.' NAME | primary genexp | primary '(' [arguments] ')' | primary '[' slices ']' | atom
primary: | primary '.' NAME | primary genexp | primary '(' [arguments] ')' | primary '[' slices ']' | atom
primary: | primary '.' NAME | primary genexp | primary '(' [arguments] ')' | primary '[' slices ']' | atom
atom: | NAME | 'True' | 'False' | 'None' | &STRING strings | NUMBER | &'(' (tuple | group | genexp) | &'[' (list | listcomp) | &'{' (dict | set | dictcomp | setcomp) | '...'
atom: | NAME | 'True' | 'False' | 'None' | &STRING strings | NUMBER | &'(' (tuple | group | genexp) | &'[' (list | listcomp) | &'{' (dict | set | dictcomp | setcomp) | '...'
arguments: args [','] &')'
arguments: args [','] &')'
args: | ','.(starred_expression | ( assignment_expression | expression !':=') !'=')+ [',' kwargs] | kwargs
args: | ','.(starred_expression | ( assignment_expression | expression !':=') !'=')+ [',' kwargs] | kwargs
atom: | NAME | 'True' | 'False' | 'None' | &STRING strings | NUMBER | &'(' (tuple | group | genexp) | &'[' (list | listcomp) | &'{' (dict | set | dictcomp | setcomp) | '...'
atom: | NAME | 'True' | 'False' | 'None' | &STRING strings | NUMBER | &'(' (tuple | group | genexp) | &'[' (list | listcomp) | &'{' (dict | set | dictcomp | setcomp) | '...'
strings: STRING+
strings: STRING+