Closed
Description
Some of the code -- as shown in #16 -- doesn't work in Python 3.x, while some doesn't act as expected. This includes:
- Calling
dict.keys()
in returns adict_keys
object that can't be accessed by-index. (TypeError when calling usr.friends #16) - Float division in
errors.py:76
causing all checks inraiseAppropriateException
to fail and, consequently, raise a debug exception thrown bydebug.no_return
. - Name-encoding in
SteamObject.__repr__
causes the resulting string to be abytes
object instead and end up..."b'Smiley'"...
instead of..."Smiley"...
. - Use
range
instead ofxrange
(xrange
becamerange
on 3.x, theoretical performance changes on 2.x are acceptable)
This needs to be fixed as soon as possible, since Python 3 is very much in use and considered standard Python.