On this page
signal.Signals
Prev: signal.signal | Up: signal | Next: signal.sigpending
Rel: signal.alarm, signal.default_int_handler, signal.getitimer, signal.getsignal
Ref: docs.python.org — signal.Signals
Tags: #public #python3 #stdlib #signal
Import
import signal
from signal import Signals
Signature & Overview
signal.Signals(*values)
An enumeration.
Methods & Attributes
Signals.as_integer_ratio(self, /)— Return a pair of integers, whose ratio is equal to the original int.Signals.bit_count(self, /)— Number of ones in the binary representation of the absolute value of self.Signals.bit_length(self, /)— Number of bits necessary to represent self in binary.Signals.conjugate(self, /)— Returns self, the complex conjugate of any int.Signals.from_bytes(bytes, byteorder='big', *, signed=False)— Return the integer represented by the given array of bytes.Signals.is_integer(self, /)— Returns True. Exists for duck type compatibility with float.is_integer.Signals.to_bytes(self, /, length=1, byteorder='big', *, signed=False)— Return an array of bytes representing an integer.
Usage
import signal
assert isinstance(signal.SIGINT, signal.Signals) and signal.SIGINT.name == 'SIGINT'
Gotchas
IntEnumof all signals supported on this OS.
REPL Inspect
from signal import Signals
help(Signals)
Linked from
Related notes
- tuts/python3/stdlib_module/signal/signal Linked here; links to this page; shared tags: #signal, #stdlib
- tuts/python3/stdlib_module/signal/sigpending Linked here; links to this page; shared tags: #signal, #stdlib
- tuts/python3/stdlib_module/signal/alarm Linked here; shared tags: #signal, #stdlib
- tuts/python3/stdlib_module/signal/default_int_handler Linked here; shared tags: #signal, #stdlib
- tuts/python3/stdlib_module/signal/getitimer Linked here; shared tags: #signal, #stdlib
- tuts/python3/stdlib_module/signal/getsignal Linked here; shared tags: #signal, #stdlib
- tuts/python3/stdlib_module/signal links to this page; shared tags: #stdlib
- tuts/c/stdlib/signal shared tags: #signal, #stdlib
- tuts/c/stdlib/signal/signal shared tags: #signal, #stdlib
- tuts/python3/stdlib_module/signal/Handlers shared tags: #signal, #stdlib