🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

null

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

null

Implements the null object pattern.

0.6.1
PyPI
Maintainers
1

==== null

Implements the null object pattern <http://en.wikipedia.org/wiki/Null_Object_pattern>_.

Provides:

  • a Null singleton that can be used like None (but is not None and is not equal to None)

  • a NullList that returns Null instead of raising IndexError

  • a NullDict that returns Null instead of raising KeyError

  • a nullify() routine that converts mappings and sequences to the nullified variant

  • an unset singleton for clearing up APIs to distinguish between a keyword argument that is set by the user as None and simply not set by the user

How do I run the tests?

The easiest way would be to extract the source tarball and run::

$ python test/test_null.py

Change Log

0.6.1


* ``MANIFEST.in`` will forever be my favourite gotcha of Python packaging

* PEP8-fied the sources

0.6.0
  • long overdue Python 3 support

0.5.0


* initial published version

Authors
-------

Glued together by `Łukasz Langa <mailto:lukasz@langa.pl>`_.

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts