From a7fccd8b14885a76525e11baa1f9db7792d9a26c Mon Sep 17 00:00:00 2001 From: Senthil Kumaran <senthil@uthcode.com> Date: Sun, 11 Mar 2012 21:04:56 -0700 Subject: 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 3b211ae..079cfdf 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 -- cgit v0.12 From d279e286f2e7035836d779bfad5e93d22eb42cf0 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson <benjamin@python.org> Date: Mon, 12 Mar 2012 09:27:36 -0700 Subject: 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 be9f05e..10be487 100644 --- a/Lib/test/test_ast.py +++ b/Lib/test/test_ast.py @@ -196,9 +196,6 @@ class AST_Tests(unittest.TestCase): x.vararg with self.assertRaises(AttributeError): - x.foobar = 21 - - with self.assertRaises(AttributeError): ast.AST(lineno=2) with self.assertRaises(TypeError): -- cgit v0.12