Python-Prototype

From Jonathan Gardner's Tech Wiki
Jump to: navigation, search

Introduction

The prorotype package allows you to use Javascript's prototyping OO system in Python.

Author & License

Toby Ho came up with the concept and created the initial code. See http://tobyho.com/Prototype_Inheritence_in_Python

I made some very, very minor changes to Toby Ho's original work:

  • Added setup.py
  • Modified the attribute getter to raise an AttributeError for missing attributes instead of returning None, since this is the Python standard.

I assume the code is in the public domain. I don't see any copyright notices attached anywhere. If I am incorrect, I hope Toby Ho will correct me.

PyPI

http://pypi.python.org/pypi?:action=display&name=prototype

GitHub

Toby Ho's original: http://github.com/airportyh/misc/tree/86d360ef5b449f4d2ceb795fbf6015341a82d491/prototype.py

My github: https://github.com/jgardner1/Python-Prototype