Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

RODeco a read only function decorator

Project Description
RODeco a read only function decorator

Use Cases

Let's say you're using a python module, and you don't like an inner working.
This module allows you to override any function inside a module, at run-time, as long it is not a builtin.

Afterwards, any call to this function, by anyone (you, or the module itself), will use what you defined.


import os

os.path.basename('./test') # Will output "test"

import RODeco

@RODeco.RODeco(os.path.basename, "_old_basename")
def newbasename(s):
return "~/" + _old_basename(s)

os.path.basename('./test') # Will output "~/test"
Release History

Release History

This version
History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
RODeco-1.1.tar.gz (1.9 kB) Copy SHA256 Checksum SHA256 Source Jan 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