Package pypat :: Package behavioral :: Module null :: Class Null
[hide private]
[frames] | no frames]

Class Null

source code

object --+
         |
        Null


A Null object class as part of the Null object design pattern.

- External Usage documentation: U{https://github.com/tylerlaberge/PyPatterns/wiki/Behavioral-Pattern-Usage}
- External Null Object Pattern documentation: U{https://en.wikipedia.org/wiki/Null_Object_pattern}

Instance Methods [hide private]
 
__init__(self, *args, **kwargs)
Do nothing.
source code
Null
__call__(self, *args, **kwargs)
Do nothing.
source code
Null
__getattr__(self, name)
Do nothing.
source code
Null
__setattr__(self, name, value)
Do nothing.
source code
Null
__delattr__(self, name)
Do nothing.
source code
String
__repr__(self)
Null object string representation is the empty string.
source code
String
__str__(self)
Null object string representation is the empty string.
source code
Boolean
__bool__(self)
Null object evaluates to False.
source code

Inherited from object: __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __sizeof__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args, **kwargs)
(Constructor)

source code 

Do nothing.

Overrides: object.__init__

__call__(self, *args, **kwargs)
(Call operator)

source code 

Do nothing.

Returns: Null
This object instance.

__getattr__(self, name)
(Qualification operator)

source code 

Do nothing.

Returns: Null
This object instance.

__setattr__(self, name, value)

source code 

Do nothing.

Returns: Null
This object instance.
Overrides: object.__setattr__

__delattr__(self, name)

source code 

Do nothing.

Returns: Null
This object instance.
Overrides: object.__delattr__

__repr__(self)
(Representation operator)

source code 

Null object string representation is the empty string.

Returns: String
An empty string.
Overrides: object.__repr__

__str__(self)
(Informal representation operator)

source code 

Null object string representation is the empty string.

Returns: String
An empty string.
Overrides: object.__str__

__bool__(self)

source code 

Null object evaluates to False.

Returns: Boolean
False.