On Tue, Aug 06, 2013 at 04:25:09PM +0200, Johannes Schmitz wrote: > When I go to pmt and back to Python with a dict ints are converted > to long. Is that on purpose? > > import pmt > > a = {'asdf': 34, 'qwer': 3.7} > > In [26]: pmt.to_python(pmt.to_pmt(a)) > Out[26]: {'asdf': 34L, 'qwer': 3.7}
PMTs don't distinguish between 'int's and 'long's. (In fact, the underlying call is pmt.to_long). So yes, that's intended behaviour. MB -- Karlsruhe Institute of Technology (KIT) Communications Engineering Lab (CEL) Dipl.-Ing. Martin Braun Research Associate Kaiserstraße 12 Building 05.01 76131 Karlsruhe Phone: +49 721 608-43790 Fax: +49 721 608-46071 www.cel.kit.edu KIT -- University of the State of Baden-Württemberg and National Laboratory of the Helmholtz Association
pgpoM2n1b84Zq.pgp
Description: PGP signature
_______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio