[Jython-checkins] jython (2.5): #1749 fixed: function descriptor doesn't work in interactive console.

frank.wierzbicki jython-checkins at python.org
Tue Mar 20 05:42:32 CET 2012


http://hg.python.org/jython/rev/2923c6c259f9
changeset:   6426:2923c6c259f9
branch:      2.5
parent:      6424:7f45511459a8
user:        Frank Wierzbicki <fwierzbicki at gmail.com>
date:        Mon Mar 19 21:41:51 2012 -0700
summary:
  #1749 fixed: function descriptor doesn't work in interactive console.

files:
  NEWS                    |  1 +
  grammar/PythonPartial.g |  3 ++-
  2 files changed, 3 insertions(+), 1 deletions(-)


diff --git a/NEWS b/NEWS
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,7 @@
 
 Jython 2.5.3b2
   Bugs Fixed
+    - [ 1749 ] function descriptor doesn't work in interactive console
     - [ 1721 ] NPE when using JSR 223 (TestCase+Patch)
     - [ 1536 ] NPE in org.python.jsr223.PyScriptEngine:187
     - [ 1829 ] test_socket.py failing on Ubuntu (Oneiric)
diff --git a/grammar/PythonPartial.g b/grammar/PythonPartial.g
--- a/grammar/PythonPartial.g
+++ b/grammar/PythonPartial.g
@@ -481,7 +481,8 @@
     | try_stmt
     | with_stmt
     | (decorators? DEF) => funcdef
-    | classdef
+    | (decorators? CLASS) => classdef
+    | decorators
     ;
 
 //if_stmt: 'if' test ':' suite ('elif' test ':' suite)* ['else' ':' suite]

-- 
Repository URL: http://hg.python.org/jython


More information about the Jython-checkins mailing list