diff Python/import.c @ 24844:cf5928fab108 legacy-trunk

This is my patch [ 587993 ] SET_LINENO killer Remove SET_LINENO. Tracing is now supported by inspecting co_lnotab. Many sundry changes to document and adapt to this change.
author Michael W. Hudson <mwh@python.net>
date Thu, 15 Aug 2002 14:59:02 +0000
parents 8142f8d668a0
children 5fe4d93df429
line wrap: on
line diff
--- a/Python/import.c	Thu Aug 15 14:01:14 2002 +0000
+++ b/Python/import.c	Thu Aug 15 14:59:02 2002 +0000
@@ -49,6 +49,9 @@
        algorithm relying on the above scheme. Perhaps we should simply
        start counting in increments of 10 from now on ?!
 
+       MWH, 2002-08-03: Removed SET_LINENO.  Couldn't be bothered figuring
+       out the MAGIC schemes, so just incremented it by 10.
+
    Known values:
        Python 1.5:   20121
        Python 1.5.1: 20121
@@ -60,8 +63,9 @@
        Python 2.1.2: 60202
        Python 2.2:   60717
        Python 2.3a0: 62011
+       Python 2.3a0: 62021
 */
-#define MAGIC (62011 | ((long)'\r'<<16) | ((long)'\n'<<24))
+#define MAGIC (62021 | ((long)'\r'<<16) | ((long)'\n'<<24))
 
 /* Magic word as global; note that _PyImport_Init() can change the
    value of this global to accommodate for alterations of how the