Terry J. Reedy <tjre...@udel.edu> added the comment: Alternatively, range objects could have a .__eq__ method that compares the (hidden) start, stop, and step attributes used to print the representations.
As a workaround, str(r1)==str(rs) will work as expected. ---------- nosy: +tjreedy _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue5953> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com