var binding = require('bindings')('binding.node'); var debug = require('debug')('node-python'); var warn = require('debug')('node-python:warn'); var util = require('util'); function PythonError (message, value) { if (arguments[0] instanceof Error) { var error = arguments[0]; this.message = error.message; this.stack = error.stack; this.value = error.value; Error.apply(this, arguments); } else { Error.call(this, message, value); } } util.inherits(PythonError, Error); module.exports.PythonError = PythonError; var finalized = false; function pythonFinalized () { if (finalized) { warn('node-python\'s python interpreter has already been