From cce2f217d403dff7344fcc1c381e36dfd075a961 Mon Sep 17 00:00:00 2001 From: Mark Dickinson Date: Thu, 15 Jan 2009 19:32:23 +0000 Subject: Issue 4910, patch 2 of (probably) 3: pave the way for renaming of nb_long: remove last remaining use of nb_long (in the struct module) from the core, set nb_long slots on all builtin and extension types to 0, and remove uses of __long__ in test_complex and test_binop. Reviewed by Benjamin Peterson. --- Lib/test/test_binop.py | 6 ------ 1 file changed, 6 deletions(-) (limited to 'Lib/test/test_binop.py') diff --git a/Lib/test/test_binop.py b/Lib/test/test_binop.py index f60fe3f070..0dc18dd93a 100644 --- a/Lib/test/test_binop.py +++ b/Lib/test/test_binop.py @@ -77,12 +77,6 @@ class Rat(object): repr(self)) raise ValueError("can't convert %s to int" % repr(self)) - def __long__(self): - """Convert a Rat to an long; self.den must be 1.""" - if self.__den == 1: - return int(self.__num) - raise ValueError("can't convert %s to long" % repr(self)) - def __add__(self, other): """Add two Rats, or a Rat and a number.""" if isint(other): -- cgit v1.2.1