New submission from Xinmeng Xia <xi...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue37753>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to