[chirp_devel] Python and slices
Joe Pizzi
Sat Aug 21 13:57:18 PDT 2021
I'm working the port to Python3. One strangeness I've found is that
sometimes
name = 'memory'
for i in memory[:3]:
Doesn't work. I get:
TypeError: int() argument must be a string, a bytes-like object or a number,
not 'NoneType'
I must explicitly add the zero:
for i in memory[0:3]:
Anybody know why this is? I've tried searching, but cannot find anything
that states this doesn't work.
Joe Pizzi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://intrepid.danplanet.com/pipermail/chirp_devel/attachments/20210821/bd257a6f/attachment-0001.html
More information about the chirp_devel
mailing list