diff options
author | Guido van Rossum <guido@python.org> | 2006-03-15 04:58:47 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2006-03-15 04:58:47 (GMT) |
commit | 45aecf451a64fb1ebe5e74d0b00965ac8d99dff6 (patch) | |
tree | a7edcfb45ceafcffde68a3542aeba67089ea81cb /Python/import.c | |
parent | f3175f6341ae207543a0d2d3be36c457349066e6 (diff) | |
download | cpython-45aecf451a64fb1ebe5e74d0b00965ac8d99dff6.zip cpython-45aecf451a64fb1ebe5e74d0b00965ac8d99dff6.tar.gz cpython-45aecf451a64fb1ebe5e74d0b00965ac8d99dff6.tar.bz2 |
Checkpoint. 218 tests are okay; 53 are failing. Done so far:
- all classes are new-style (but ripping out classobject.[ch] isn't done)
- int/int -> float
- all exceptions must derive from BaseException
- absolute import
- 'as' and 'with' are keywords
Diffstat (limited to 'Python/import.c')
-rw-r--r-- | Python/import.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Python/import.c b/Python/import.c index 73051a2..b64594d 100644 --- a/Python/import.c +++ b/Python/import.c @@ -28,7 +28,7 @@ extern time_t PyOS_GetLastModificationTime(char *, FILE *); a .pyc file in text mode the magic number will be wrong; also, the Apple MPW compiler swaps their values, botching string constants. - The magic numbers must be spaced apart atleast 2 values, as the + The magic numbers must be spaced apart at least 2 values, as the -U interpeter flag will cause MAGIC+1 being used. They have been odd numbers for some time now. @@ -56,9 +56,10 @@ extern time_t PyOS_GetLastModificationTime(char *, FILE *); Python 2.5a0: 62081 (ast-branch) Python 2.5a0: 62091 (with) Python 2.5a0: 62092 (changed WITH_CLEANUP opcode) + Python 3000: 3000 . */ -#define MAGIC (62092 | ((long)'\r'<<16) | ((long)'\n'<<24)) +#define MAGIC (3000 | ((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 |