diff Python/compile.c @ 40894:0ea24f4f2467

Bytes literal.
author Thomas Wouters <thomas@python.org>
date Fri, 23 Feb 2007 19:56:57 +0000
parents e9a6234b26af
children 2ca14d6a369b
line wrap: on
line diff
--- a/Python/compile.c	Fri Feb 23 15:07:44 2007 +0000
+++ b/Python/compile.c	Fri Feb 23 19:56:57 2007 +0000
@@ -789,6 +789,8 @@
 			return 1-oparg;
 		case BUILD_MAP:
 			return 1;
+		case MAKE_BYTES:
+			return 0;
 		case LOAD_ATTR:
 			return 0;
 		case COMPARE_OP:
@@ -3077,6 +3079,10 @@
 	case Str_kind:
 		ADDOP_O(c, LOAD_CONST, e->v.Str.s, consts);
 		break;
+	case Bytes_kind:
+		ADDOP_O(c, LOAD_CONST, e->v.Bytes.s, consts);
+		ADDOP(c, MAKE_BYTES);
+		break;
 	case Ellipsis_kind:
 		ADDOP_O(c, LOAD_CONST, Py_Ellipsis, consts);
 		break;
@@ -3426,7 +3432,6 @@
 	return compiler_handle_subscr(c, kindname, ctx);
 }
 
-
 /* End of the compiler section, beginning of the assembler section */
 
 /* do depth-first search of basic block graph, starting with block.