Posting messages from outside the work function in Python

Hello,

I would like to write a block in Python that is a message source (no IO
ports, only message port). I’ve found a few examples in C++ of blocks
that
don’t do signal processing and don’t rely on the work() function, but
what
would be the equivalent in python? If it is possible, how would I handle
posting messages without relying on the work() function?

BR,
Michal

On Thu, Jul 17, 2014 at 8:59 AM, Michal J. [email protected]
wrote:

Here are some examples:

https://github.com/jmalsbury/gr-mac/blob/master/python/packet_framer.py

Tom