API

Package falsifier

A base class for creating objects that evaluate to False in boolean contexts. This functionality is useful for creating sentinel objects, absence indicators, and other specialized falsey types that need distinct identities and proper comparison behavior.

  • Falsifier: A base class that produces objects which evaluate to False in boolean contexts. Each instance has a unique identity and supports proper equality comparison and hashing.

Module falsifier.objects

Falsifier object.

class falsifier.objects.Falsifier

Bases: object

Produces falsey objects.

Module falsifier.exceptions

Family of exceptions for package API.

  • Omniexception: Base for all package exceptions

  • Omnierror: Base for all package errors

exception falsifier.exceptions.Omnierror

Bases: Omniexception, Exception

Base for error exceptions raised by package API.

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

args
exception falsifier.exceptions.Omniexception

Bases: BaseException

Base for all exceptions raised by package API.

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

args