From a7fccd8b14885a76525e11baa1f9db7792d9a26c Mon Sep 17 00:00:00 2001 From: Senthil Kumaran Date: Sun, 11 Mar 2012 21:04:56 -0700 Subject: [PATCH 1/2] closes issue14257 - 3.2 minor error in glossary wording regarding __hash__ --- Doc/glossary.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/glossary.rst b/Doc/glossary.rst index 3b211aedefb..079cfdfd17b 100644 --- a/Doc/glossary.rst +++ b/Doc/glossary.rst @@ -147,7 +147,7 @@ Glossary dictionary An associative array, where arbitrary keys are mapped to values. The keys - can be any object with :meth:`__hash__` function and :meth:`__eq__` + can be any object with :meth:`__hash__` method and :meth:`__eq__` methods. Called a hash in Perl. docstring From d279e286f2e7035836d779bfad5e93d22eb42cf0 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Mon, 12 Mar 2012 09:27:36 -0700 Subject: [PATCH 2/2] every other ast object has a dict, so I think AST should, too --- Lib/test/test_ast.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/Lib/test/test_ast.py b/Lib/test/test_ast.py index be9f05eb466..10be487bf7d 100644 --- a/Lib/test/test_ast.py +++ b/Lib/test/test_ast.py @@ -195,9 +195,6 @@ class AST_Tests(unittest.TestCase): with self.assertRaises(AttributeError): x.vararg - with self.assertRaises(AttributeError): - x.foobar = 21 - with self.assertRaises(AttributeError): ast.AST(lineno=2)