diff options
author | Ben Reynwar <ben@reynwar.net> | 2013-05-19 01:32:36 -0700 |
---|---|---|
committer | Ben Reynwar <ben@reynwar.net> | 2013-05-19 01:32:36 -0700 |
commit | 0fa219774dcf9141ae91204f948c029b05673f3f (patch) | |
tree | 32a12974c9bd34edb895b8d33df47bf9db959001 /gnuradio-runtime/python/pmt/__init__.py | |
parent | b1f802015fe5ce88c45f68f09d81fce0cdb75411 (diff) | |
parent | 318da62b6104e4bca182d94aec4abc0618debffd (diff) |
Merge with next branch.
Diffstat (limited to 'gnuradio-runtime/python/pmt/__init__.py')
-rw-r--r-- | gnuradio-runtime/python/pmt/__init__.py | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/gnuradio-runtime/python/pmt/__init__.py b/gnuradio-runtime/python/pmt/__init__.py index bc933e80a5..7900a6e7a8 100644 --- a/gnuradio-runtime/python/pmt/__init__.py +++ b/gnuradio-runtime/python/pmt/__init__.py @@ -22,7 +22,21 @@ # The presence of this file turns this directory into a Python package ''' -The GNU Radio Utility Etcetera Library's Polymorphic Types for Python. +Polymorphic Types. + +The type can really be used to store anything, but also has simple +conversion methods for common data types such as bool, long, or a +vector. + +The polymorphic type simplifies message passing between blocks, as all +of the data is of the same type, including the message. Tags also use +PMTs as data type, so a stream tag can be of any logical data type. In +a sense, PMTs are a way to extend C++' strict typing with something +more flexible. + +The PMT library supports the following major types: +bool, symbol (string), integer, real, complex, null, pair, list, +vector, dict, uniform_vector, any (boost::any cast) ''' from pmt_swig import * |