Commit b1a8796f authored by Stefan Marr's avatar Stefan Marr

Added a comment to clarify how Symbol/Bytecode names now work

See 81bb9103Signed-off-by: default avatarStefan Marr <git@stefan-marr.de>
parent 81bb9103
......@@ -35,6 +35,9 @@ class Symbol(object):
def _sorted_symbols(cls):
"NOT_RPYTHON"
"""This function is only called a single time, at load time of this module.
For RPypthon, this means, during translation of the module.
"""
return [key for value, key in \
sorted([(value, key) for key, value in cls.__dict__.items()]) \
if isinstance(value, int)
......
......@@ -86,6 +86,9 @@ def bytecode_as_str(bytecode):
def _sorted_bytecode_names(cls):
"NOT_RPYTHON"
"""This function is only called a single time, at load time of this module.
For RPypthon, this means, during translation of the module.
"""
return [key.upper() for value, key in \
sorted([(value, key) for key, value in cls.__dict__.items()]) \
if isinstance(value, int) and key[0] != "_"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment