consts.py 468 B

1234567891011121314151617181920212223
  1. # operation flags
  2. OP_ASSIGN = 'OP_ASSIGN'
  3. OP_DELETE = 'OP_DELETE'
  4. OP_APPLY = 'OP_APPLY'
  5. SC_LOCAL = 1
  6. SC_GLOBAL_IMPLICIT = 2
  7. SC_GLOBAL_EXPLICIT = 3
  8. SC_FREE = 4
  9. SC_CELL = 5
  10. SC_UNKNOWN = 6
  11. CO_OPTIMIZED = 0x0001
  12. CO_NEWLOCALS = 0x0002
  13. CO_VARARGS = 0x0004
  14. CO_VARKEYWORDS = 0x0008
  15. CO_NESTED = 0x0010
  16. CO_GENERATOR = 0x0020
  17. CO_GENERATOR_ALLOWED = 0
  18. CO_FUTURE_DIVISION = 0x2000
  19. CO_FUTURE_ABSIMPORT = 0x4000
  20. CO_FUTURE_WITH_STATEMENT = 0x8000
  21. CO_FUTURE_PRINT_FUNCTION = 0x10000