This repository has been archived on 2020-08-02. You can view files and clone it, but cannot push or open issues/pull-requests.
uniborg/uniborg/hacks.py

9 lines
280 B
Python
Raw Permalink Normal View History

2018-04-07 20:20:16 +00:00
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
2018-04-08 14:44:09 +00:00
2018-04-07 20:20:16 +00:00
class ReverseList(list):
def __iter__(self):
return reversed(self)