moved isinstance and issubclass to the start of operator because they were being overwritten "by" is and "in"

This commit is contained in:
Faraphel 2022-07-19 18:14:57 +02:00
parent 5207e18928
commit 47f191c9be

View file

@ -5,9 +5,10 @@ common_token_map = { # these operators and function are considered safe to use
operator: operator operator: operator
for operator in for operator in
["+", "-", "*", "/", "%", "**", ",", "(", ")", "[", "]", "==", "!=", "in", ">", "<", ">=", "<=", "and", "or", "&", ["+", "-", "*", "/", "%", "**", ",", "(", ")", "[", "]", "==", "!=", "in", ">", "<", ">=", "<=", "and", "or", "&",
"|", "^", "~", "<<", ">>", ":", "not", "is", "if", "else", "abs", "int", "bin", "hex", "oct", "chr", "ord", "len", "|", "^", "~", "<<", ">>", ":", "isinstance", "issubclass", "not", "is", "if", "else", "abs", "int",
"str", "bool", "float", "round", "min", "max", "sum", "zip", "any", "all", "issubclass", "reversed", "enumerate", "bin", "hex", "oct", "chr", "ord", "len", "str", "bool", "float", "round", "min", "max", "sum", "zip",
"list", "sorted", "hasattr", "for", "range", "type", "isinstance", "repr", "None", "True", "False", "getattr" "any", "all", "reversed", "enumerate", "list", "sorted", "hasattr", "for", "range", "type", "repr", "None",
"True", "False", "getattr"
] ]
} | { # these methods are considered safe, except for the magic methods } | { # these methods are considered safe, except for the magic methods
f".{method}": f".{method}" f".{method}": f".{method}"