Skip to content

Instantly share code, notes, and snippets.

@bricef
Created August 10, 2011 19:10
Show Gist options
  • Save bricef/1137848 to your computer and use it in GitHub Desktop.
Save bricef/1137848 to your computer and use it in GitHub Desktop.
Python script to be used from Java
#!/usr/bin/env python
class PythonClass:
def __init__(self):
"""A dummy constructor"""
def mySimpleMethod(self):
return "Hello World!"
anInstance = PythonClass()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment