Skip to main content

Python monkey patching for humans.

Project description

Altered States tries to take the concept of “Python for Humans” (http://python-for-humans.heroku.com/) to the world of monkey patching.

Read more here: https://github.com/Plexical/altered.states/blob/master/README.rst

Initial announcement: http://www.plexical.com/blog/2012/03/06/altered-states/

0.8.6

  • Better handling of objects that override __getitem__ (thanks to @merwok).

  • Drop support for Python 2.5 (no sane way to solve issue #4 there).

0.8.5

  • Added a new API entry point: alter(), that can be used to perform a two-step reversible alteration.

0.8.2

  • Updated test suites to use @pytest.fixture notation for fixtures (now requires py.test > 2.3)

  • Fixes a bug causing os.environ not to be patchable.

Fixing bug #2 means switching the dict -like object check from isinstance(x, dict) to hasattr(x, ‘__getitem__’). This change is thought to not break backwards compatibility but if you encounter unexpected behaviour in dict / object detection this might be it. I’d be very interested to know about that if you do.

0.8.1

  • Alias Expando as E for optional terseness.

0.8.0

Initial release.

Project details


Download files

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

Source Distribution

altered.states-0.8.6.tar.gz (9.4 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page