[New-bugs-announce] [issue37753] 2to3 not handing "<="
Xinmeng Xia
report at bugs.python.org
Sat Aug 3 10:23:18 EDT 2019
New submission from Xinmeng Xia <xiaxm at smail.nju.edu.cn>:
After conversion of 2to3 , run simple-example.py and the following error will happen.
Traceback (most recent call last):
File "/home/xxm/Desktop/instrument/datasetpy3/nflgame/simple_example.py", line 15, in <module>
plays = nflgame.combine_plays(games)
File "/home/xxm/Desktop/instrument/datasetpy3/nflgame/nflgame/__init__.py", line 396, in combine_plays
chain = itertools.chain(*[g.drives.plays() for g in games])
File "/home/xxm/Desktop/instrument/datasetpy3/nflgame/nflgame/__init__.py", line 396, in <listcomp>
chain = itertools.chain(*[g.drives.plays() for g in games])
File "/home/xxm/Desktop/instrument/datasetpy3/nflgame/nflgame/game.py", line 407, in __getattr__
self.__drives = _json_drives(self, self.home, self.data['drives'])
File "/home/xxm/Desktop/instrument/datasetpy3/nflgame/nflgame/game.py", line 675, in _json_drives
d = Drive(game, i, home_team, data[str(drive_num)])
File "/home/xxm/Desktop/instrument/datasetpy3/nflgame/nflgame/game.py", line 516, in __init__
if self.time_end <= self.time_start \
TypeError: '<=' not supported between instances of 'GameClock' and 'GameClock'
----------
components: 2to3 (2.x to 3.x conversion tool)
files: simple_example.py
messages: 348961
nosy: xxm
priority: normal
severity: normal
status: open
title: 2to3 not handing "<="
type: compile error
versions: Python 3.7
Added file: https://bugs.python.org/file48528/simple_example.py
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37753>
_______________________________________
More information about the New-bugs-announce
mailing list