This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

Double down

A silly example of a python decorator.

Simply calls the decorated function twice.

Installation

Double down has been published to python package index and is available via pip:

pip install double_down

Otherwise, if you want to install it manually:

git clone git@github.com:smelnicki/double_down.git
sudo python setup.py install

Usage

This is about as simple as it gets when it comes to decorators. It literally makes your function code execute twice.

For example, see below:

# example.py
from double_down import double_down

@double_down
def hello():
    print "Hello, Python"

if __name__ == "__main__":
  hello()

Then in your terminal:

> python example.py
Hello, Python
Hello, Python

Questions

This project was just a fun little foray into learning how decorators work. In all honesty, it’d be a big stretch of the imagination to justify its use in some real life application.

If you’re curious how decorators work or want to get some hands on experience, I’d strongly encourage making one of your own. There’s plenty of documentation out there to use.

Release History

Release History

1.0.1

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.0.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
double_down-1.0.1.tar.gz (2.1 kB) Copy SHA256 Checksum SHA256 Source Aug 4, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting