appnexus / pyrobuf

A Cython alternative to Google's Python Protobuf library
Other
554 stars 76 forks source link

perf_lists.py not python3 compatible #130

Open twmr opened 5 years ago

twmr commented 5 years ago
$> python tests/perf_lists.py
list took 0.190504 seconds
TypedList took 0.554765 seconds
DoubleList took 0.281462 seconds
FloatList took 0.274609 seconds
array 'f' took 0.293115 seconds
Traceback (most recent call last):
  File "tests/perf_lists.py", line 140, in <module>
    main()
  File "tests/perf_lists.py", line 77, in main
    for i in xrange(1000000):
NameError: name 'xrange' is not defined
tburmeister commented 5 years ago

Good catch @thisch ! I just merged in a fix.