discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] PMT Python Bug


From: Martin Braun (CEL)
Subject: Re: [Discuss-gnuradio] PMT Python Bug
Date: Tue, 6 Aug 2013 16:55:22 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

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

Attachment: pgpROQpp6COZb.pgp
Description: PGP signature


reply via email to

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