patch-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Patch-gnuradio] Wrapper for blocks.


From: Ben Reynwar
Subject: [Patch-gnuradio] Wrapper for blocks.
Date: Mon, 20 Sep 2010 21:18:36 -0700

Hi all,

I'm working on better documentation for the python interface to
gnuradio.  I'd like to get the inline help (python help function)
returning useful responses and would like to get useful html
documentation generated.

The current representation of the blocks in python makes this
difficult.  For example gnuradio.gr.head maps to gr_make_head which is
a function that produces an instance of gr_head_sptr.  It would be
nicer for the sake of documentation generation if gnuradio.gr.head was
a class that looked like gr_head_sptr.

This patch wraps the swig generated gr_XXX_sptr classes in much the
same way as is currently done for the top_block.  I think this
additional indirection is justified for the added simplicity it gives
to the python interface.

I ran "make check" and it didn't appear to break anything, which
surprises me.  It may be that I'm not "make check"ing correctly.

Cheers,
Ben

Attachment: block_wrapper.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]