Guido van Rossum
f984a65267
Fix suggested by Sjoerd (long ago!) to get a better error message when
...
there's a syntax error. (In particular, display the correct
filename). This changes the API: if there's a syntax error, the
function now returns normally after dumping the error to sys.stderr.
I changed Sjoerd's use of string.join(string.split(...)) with
string.replace().
1998-09-29 15:57:42 +00:00
Guido van Rossum
9279ec2504
On the mac, shouldn't change the creator+type of the *source* file!
1998-08-11 14:13:44 +00:00
Guido van Rossum
45e2fbc2e7
Mass check-in after untabifying all files that need it.
1998-03-26 21:13:24 +00:00
Guido van Rossum
d8c5b8c90f
Typo (coestring -> codestring) discovered by Mark Hammond.
1998-03-02 02:40:39 +00:00
Guido van Rossum
63566e2ef2
Added docstrings.
...
Added an optional third parameter giving the purported filename for
error messages from the module.
Append a newline to the code string if needed.
1998-01-19 04:01:26 +00:00
Guido van Rossum
e6c128f428
Use fstat if we can; write MAGIC into file last.
1997-11-22 21:48:26 +00:00
Fred Drake
ef8dc06c01
compile(): Use the __debug__ flag to determine the proper filename extension
...
to use for the cached module code object.
1997-03-13 14:13:16 +00:00
Guido van Rossum
9b67621b66
Cast mtime gotten from stat() to long int -- else it won't work
...
on the Mac.
Jack! Please fix this in the Mac distributions!
1996-10-24 13:42:30 +00:00
Guido van Rossum
dc42b8aa3d
change Mac creator/type
1996-05-28 23:01:05 +00:00
Sjoerd Mullender
2e5168c9fc
Get magic number from interpreter (using module imp).
1995-07-19 11:21:47 +00:00
Jack Jansen
e99c824bad
Mac-specific code for setting filetype was outdated.
1995-04-23 22:06:57 +00:00
Guido van Rossum
7e4b2def34
changes for the Mac
1995-01-27 02:41:45 +00:00
Guido van Rossum
3bb5448767
New way of generating .pyc files, thanks to Sjoerd.
...
urllib.py: '+' is not always safe (even though the RFC says so :-( )
whrandom.py: throw away top bits of time to avoid overflow on Mac
(where times can be negative)
1994-08-29 10:52:58 +00:00