1 2 package org.python.core; 3 4 public class CompilerFlags extends Object { 5 6 public CompilerFlags() {} 7 8 public CompilerFlags(int co_flags) { 9 if ((co_flags & org.python.core.PyTableCode.CO_NESTED) != 0) 10 nested_scopes = true; 11 if ((co_flags & org.python.core.PyTableCode.CO_FUTUREDIVISION) != 0) 12 division = true; 13 if ((co_flags & org.python.core.PyTableCode.CO_GENERATOR_ALLOWED) != 0) 14 generator_allowed = true; 15 } 16 17 public boolean nested_scopes = true; 18 public boolean division; 19 public boolean generator_allowed; 20 21 public String encoding; 22 } 23 | Popular Tags |