Ignore:
Timestamp:
2013-03-18T21:36:08Z (12 years ago)
Author:
Nick Murdoch <nick@…>
Children:
26f3b5f
Parents:
e38c6d8
Message:

Turn bpython.c into an extension module with a dummy method from the Extending Python guide.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/python/examples/sampleplugin.py

    re38c6d8 r93302ef  
    66
    77import sys
     8import bpython
    89print "hello, I'm a test plugin running on Python", sys.version_info
    910
    1011# plugin name:
    1112name = 'moose'
     13
     14print bpython.register_protocol
     15
     16bpython.register_protocol('echo "hello"')
Note: See TracChangeset for help on using the changeset viewer.