'generator' object has no attribute 'next' in disassembler

Bug #1729470 reported by John on 2017-11-01
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-msp430-tools
Undecided
Unassigned

Bug Description

When trying to disassemble this (minimalistic) intel hex file:

:020000003412b8
:00000001ff

with command line command:

msp430-tool dis -i ihex hexfile.hex

I get the following error:

'generator' object has no attribute 'next'

Which I suspect is a problem with the conversion from python2
to python3, which does not have '.next' as a method (it is now
called __next__ or, alternatively next() can be called on the
generator object.

I did a cursory view of the disassembler, but can't find any
'next' there. I'll probably have more time tomorrow.

John (john-jcoppens) on 2017-11-01
tags: added: python3
John (john-jcoppens) wrote :

The problem is 'repairable' replacing .next by .__next__ in disassenbler.py.

Using next() does not work, I suspect there is a method 'next' declared which interferes with Python's next().

Anyway .__next__ works fine and I couldn't find any other incompatibility.

John

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers