[Python-checkins] python/dist/src/Python future.c, 2.12.2.4, 2.12.2.5 newcompile.c, 1.1.2.63, 1.1.2.64

nnorwitz at projects.sourceforge.net nnorwitz at projects.sourceforge.net
Mon Jan 26 09:39:02 EST 2004


Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8105/Python

Modified Files:
      Tag: ast-branch
	future.c newcompile.c 
Log Message:
Stop exec "from __future__ import ..." from crashing, update known bugs

Index: future.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/future.c,v
retrieving revision 2.12.2.4
retrieving revision 2.12.2.5
diff -C2 -d -r2.12.2.4 -r2.12.2.5
*** future.c	30 Aug 2002 20:15:55 -0000	2.12.2.4
--- future.c	26 Jan 2004 14:38:58 -0000	2.12.2.5
***************
*** 22,26 ****
  	names = s->v.ImportFrom.names;
  	for (i = 0; i < asdl_seq_LEN(names); i++) {
! 		feature = PyString_AsString(asdl_seq_GET(names, i));
  		if (!feature)
  			return 0;
--- 22,27 ----
  	names = s->v.ImportFrom.names;
  	for (i = 0; i < asdl_seq_LEN(names); i++) {
!                 alias_ty name = asdl_seq_GET(names, i);
! 		feature = PyString_AsString(name->name);
  		if (!feature)
  			return 0;

Index: newcompile.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/Attic/newcompile.c,v
retrieving revision 1.1.2.63
retrieving revision 1.1.2.64
diff -C2 -d -r1.1.2.63 -r1.1.2.64
*** newcompile.c	24 Jan 2004 19:51:32 -0000	1.1.2.63
--- newcompile.c	26 Jan 2004 14:38:58 -0000	1.1.2.64
***************
*** 20,29 ****
         		# -*- coding: iso-8859-1 -*-
          needs to be implemented (see also Python/ast.c encoding_decl)
!      #: exec 'from __future__ import division' seg faults
!         exec generally still has problems
       #: test_errno fails because stackdepth() isn't implemented (assert'ed)
  
     Inappropriate Exceptions:
       #: problem with cell objects (see test_builtins::test_map)
       #: x = [1] ; x[0] += 1 
          raises TypeError: object does not support item assignment
--- 20,29 ----
         		# -*- coding: iso-8859-1 -*-
          needs to be implemented (see also Python/ast.c encoding_decl)
!      #: exec generally still has problems
       #: test_errno fails because stackdepth() isn't implemented (assert'ed)
  
     Inappropriate Exceptions:
       #: problem with cell objects (see test_builtins::test_map)
+         (closures need to be fully implemented)
       #: x = [1] ; x[0] += 1 
          raises TypeError: object does not support item assignment
***************
*** 33,38 ****
  
     Invalid behaviour:
       #: vars() doesn't return local variables
!      #: co_names doesn't contain any names
       #: doc strings at class scope are POPed, not stored
          In interactive mode, they are printed. :-)
--- 33,42 ----
  
     Invalid behaviour:
+      #: name mangling in classes (__vars) doesn't work
+      #: doing from __future__ import division doesn't work 
+         doesn't output BINARY_TRUE_DIVISION
       #: vars() doesn't return local variables
!      #: co_names & co_varnames don't contain the correct names
!              u_names & u_varnames are not used properly
       #: doc strings at class scope are POPed, not stored
          In interactive mode, they are printed. :-)




More information about the Python-checkins mailing list