GithubHelp home page GithubHelp logo

ambv / null Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 1.0 140 KB

Implements the null object pattern. This is a synchronized copy from Bitbucket kept for Travis support.

Home Page: https://bitbucket.org/ambv/null

Python 100.00%

null's Introduction

null

https://secure.travis-ci.org/ambv/null.png

Implements the 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

Use Bitbucket to report issues:

https://bitbucket.org/ambv/null

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.

null's People

Contributors

ambv avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.