SIGN IN SIGN UP

Don't write "if self.dict: self.dict.close()"; just write

"self.dict.close()" and ignore the exception.  The "if self.dict:"
part would be calculated through len(self.dict.keys()), which is very
expensive for a large dictionary...
G
Guido van Rossum committed
65e5399081e23d7b1efbf685096c65d0a0ab912b
Parent: 3ec38f0