Skip to content

Commit

Permalink
Add nice shields.
Browse files Browse the repository at this point in the history
  • Loading branch information
c0fec0de committed Apr 30, 2017
1 parent a6439cb commit 1b93c9b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
.. image:: https://codeclimate.com/github/c0fec0de/defaultlist.png
:target: https://codeclimate.com/github/c0fec0de/defaultlist

.. image:: https://img.shields.io/pypi/pyversions/defaultlist.svg
:target: https://pypi.python.org/pypi/defaultlist

.. image:: https://landscape.io/github/c0fec0de/defaultlist/master/landscape.svg?style=flat
:target: https://landscape.io/github/c0fec0de/defaultlist/master

Documentation
=============

Expand All @@ -39,6 +45,13 @@ Added indicies are filled with None by default.
>>> l
[None, None, 'C', None, None]

Slices and negative indicies are supported likewise

>>> l[1:4]
[None, 'C', None]
>>> l[-3]
'C'

Simple factory functions can be created via lambda.

>>> l = defaultlist(lambda: 'empty')
Expand Down
6 changes: 6 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ defaultlist
.. image:: https://codeclimate.com/github/c0fec0de/defaultlist.png
:target: https://codeclimate.com/github/c0fec0de/defaultlist

.. image:: https://img.shields.io/pypi/pyversions/defaultlist.svg
:target: https://pypi.python.org/pypi/defaultlist

.. image:: https://landscape.io/github/c0fec0de/defaultlist/master/landscape.svg?style=flat
:target: https://landscape.io/github/c0fec0de/defaultlist/master

Usage
=====

Expand Down

0 comments on commit 1b93c9b

Please sign in to comment.