MCPcopy Create free account
hub / github.com/pydata/numexpr / __init__

Method __init__

numexpr3/cpuinfo.py:585–596  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

583
584class CPUID(object):
585 def __init__(self):
586 # Figure out if SE Linux is on and in enforcing mode
587 self.is_selinux_enforcing = False
588
589 # Just return if the SE Linux Status Tool is not installed
590 if not DataSource.has_sestatus():
591 return
592
593 # Figure out if we can execute heap and execute memory
594 can_selinux_exec_heap = DataSource.sestatus_allow_execheap()
595 can_selinux_exec_memory = DataSource.sestatus_allow_execmem()
596 self.is_selinux_enforcing = (not can_selinux_exec_heap or not can_selinux_exec_memory)
597
598 def _asm_func(self, restype=None, argtypes=(), byte_code=[]):
599 byte_code = bytes.join(b'', byte_code)

Callers

nothing calls this directly

Calls 3

has_sestatusMethod · 0.80

Tested by

no test coverage detected