cpython/Lib
Tim Peters f1827cfaab SF bug 801631: file.truncate fault on windows.
file_truncate():  C doesn't define what fflush(fp) does if fp is open
for update, and the preceding I/O operation on fp was input.  On Windows,
fflush() actually changes the current file position then.  Because
Windows doesn't support ftruncate() directly, this not only caused
Python's file.truncate() to change the file position (contra our docs),
it also caused the file not to change size.

Repaired by getting the initial file position at the start, restoring
it at the end, and tossing all the complicated micro-efficiency checks
trying to avoid "provably unnecessary" seeks.  file.truncate() can't
be a frequent operation, and seeking to the current file position has
got to be cheap anyway.

Bugfix candidate.
2003-09-07 03:30:18 +00:00
..
bsddb Support DBEnv.set_shm_key() to allow multi-threaded multi-process 2003-08-28 21:50:30 +00:00
compiler Fix SF bug [ 788011 ] compiler.compileFile fails on csv.py 2003-08-28 02:09:26 +00:00
curses Modernize code a bit: use isinstance instead of type(); return True/False 2003-09-02 11:52:06 +00:00
distutils Patch from John Anderson to enable VC 7.1 support. 2003-07-17 14:41:07 +00:00
email test_get_param_with_semis_in_quotes(): Test case for SF bug #794466. 2003-09-03 04:10:52 +00:00
encodings Support trailing dots in DNS names. Fixes #782510. Will backport to 2.3. 2003-08-05 06:19:47 +00:00
hotshot
idlelib Catch locale.error as well. Fixes #788378. Will backport to 2.3. 2003-09-03 05:13:14 +00:00
lib-old
lib-tk Add HIDDEN. Fixes #777664. 2003-08-09 09:53:51 +00:00
logging SF patch #761519: Fixes for bugs 760703 and 757821 2003-06-27 21:43:39 +00:00
plat-aix3
plat-aix4
plat-atheos
plat-beos5
plat-darwin
plat-freebsd2
plat-freebsd3
plat-freebsd4
plat-freebsd5
plat-generic
plat-irix5
plat-irix6
plat-linux1 Remove obsolete entries from regen scripts. 2001-07-31 08:47:55 +00:00
plat-linux2
plat-mac Backport from r23c1-branch: 2003-07-21 20:47:11 +00:00
plat-netbsd1
plat-next3
plat-os2emx Extend the pwd & grp emulations to support accessing the pwd/grp 2003-07-10 12:52:54 +00:00
plat-riscos Patch #734231: Update RiscOS support. In particular, correct 2003-05-10 07:36:56 +00:00
plat-sunos4
plat-sunos5
plat-unixware7
site-packages
test SF bug 801631: file.truncate fault on windows. 2003-09-07 03:30:18 +00:00
xml Add missing self. before curNode. This may need to be committed 2003-06-29 04:50:34 +00:00
BaseHTTPServer.py SF patch #747364: BaseHTTPServer doesn't need StringIO intermediary 2003-08-09 05:01:41 +00:00
Bastion.py
CGIHTTPServer.py SF bug #770601: CGIHTTPServer and environment variables (bug + solution) 2003-07-14 06:56:32 +00:00
ConfigParser.py SF patch #790443: add SafeConfigParser to __all__ 2003-09-01 23:30:44 +00:00
Cookie.py
DocXMLRPCServer.py Patch #727805: Remove extra line ending from CGI responses. 2003-05-01 05:05:09 +00:00
FCNTL.py
HTMLParser.py
MimeWriter.py
Queue.py Add __all__ . 2003-07-01 05:34:27 +00:00
SimpleHTTPServer.py
SimpleXMLRPCServer.py whitespace normalization 2003-06-29 04:19:37 +00:00
SocketServer.py
StringIO.py
TERMIOS.py
UserDict.py
UserList.py SF #754014: list.index() should accept optional start, end arguments 2003-06-17 05:05:49 +00:00
UserString.py Remove a typo. (Or is this some markup I don't understand? ;-) 2003-08-27 10:48:12 +00:00
__future__.py
__phello__.foo.py
_strptime.py Make sure parentheses are escaped when used in the format string. 2003-08-29 02:28:54 +00:00
aifc.py
anydbm.py
asynchat.py
asyncore.py
atexit.py
audiodev.py
base64.py
bdb.py
binhex.py
bisect.py
calendar.py
cgi.py
cgitb.py Whitespace normalization. 2003-06-29 05:46:54 +00:00
chunk.py
cmd.py
code.py
codecs.py
codeop.py Don't replace an empty line with "pass" when symbol == "eval", where 2003-05-16 01:24:30 +00:00
colorsys.py
commands.py
compileall.py Fix typo in docstring: The switch is '-x', not '-s'. 2003-08-27 20:19:35 +00:00
copy.py Copy builtin functions as atomic. Fixes #746304. Will backport to 2.2. 2003-06-14 07:10:06 +00:00
copy_reg.py Revert previous checkin and just add a comment about constructor_ob. 2003-06-27 16:58:43 +00:00
csv.py **kwds arg was missing from __init__ for Dict{Reader,Writer} classes. 2003-09-06 19:52:12 +00:00
dbhash.py typo 2003-05-05 14:16:41 +00:00
difflib.py Fix faulty doctests. There is no results attribute. 2003-07-16 04:32:32 +00:00
dircache.py
dis.py
doctest.py SF 798269: bug fix for doctest (sf bug id: 798254 2003-09-02 02:09:05 +00:00
dumbdbm.py Give dumbdbm a sync() method which Shelve can call. Should solve some 2003-07-14 12:15:15 +00:00
dummy_thread.py Cause calling interrupt_main in main thread raise KeyboardInterrupt instantly. 2003-06-13 23:56:32 +00:00
dummy_threading.py
filecmp.py SF bug #453515: filecmp.dircmp case sensitivity bug 2003-09-02 05:42:02 +00:00
fileinput.py
fnmatch.py SF patch #765238: fix fnmatch.__all__ 2003-07-13 16:06:26 +00:00
formatter.py
fpformat.py
ftplib.py
getopt.py
getpass.py
gettext.py GNUTranslations._parse(): Fix SF bug #658233, where continuation lines 2003-05-20 17:26:48 +00:00
glob.py
gopherlib.py
gzip.py
heapq.py
hmac.py
htmlentitydefs.py Add two dictionaries to htmlentitydefs: name2codepoint maps 2003-04-16 09:46:13 +00:00
htmllib.py
httplib.py Fix sf bug 666219: assertion error in httplib. 2003-06-29 17:55:05 +00:00
ihooks.py
imaplib.py Comment out cap, it was unused. 2003-06-29 04:21:43 +00:00
imghdr.py
imputil.py
inspect.py Whitespace normalization. 2003-06-29 05:46:54 +00:00
keyword.py
linecache.py Whitespace normalization. 2003-06-29 16:59:43 +00:00
locale.py
macpath.py
macurl2path.py
mailbox.py
mailcap.py
markupbase.py Whitespace normalization. 2003-04-24 16:02:54 +00:00
mhlib.py
mimetools.py choose_boundary(): This no longer uses random, so stop importing it. 2003-06-15 22:12:23 +00:00
mimetypes.py guess_all_extensions(): Return the empty list instead of None when 2003-06-09 22:27:41 +00:00
mimify.py
modulefinder.py up the b/w compatibility requirement to 2.2 2003-07-18 15:31:40 +00:00
multifile.py
mutex.py
netrc.py SF bug 557704: netrc module can't handle all passwords 2003-04-24 20:11:20 +00:00
new.py
nntplib.py - Several methods of nntplib.NNTP have grown an optional file argument 2003-04-19 18:04:57 +00:00
ntpath.py
nturl2path.py
opcode.py Revert the previous enhancement to the bytecode optimizer. 2003-04-24 05:45:23 +00:00
optparse.py Update to Optik 1.4.1+: adds __all__ (Optik SF bug #728563). 2003-05-08 01:38:52 +00:00
os.py SF #764121, docstring for spawnlp incorrect 2003-07-02 02:49:33 +00:00
os2emxpath.py
pdb.doc
pdb.py Whitespace normalization. 2003-06-15 23:26:30 +00:00
pickle.py Fix grammar in comment. 2003-06-29 16:59:59 +00:00
pickletools.py
pipes.py
pkgutil.py
platform.py Bug fix for #780461: 'sysu' gestalt selector is meaningless on MacOSX, 2003-08-11 11:08:49 +00:00
popen2.py Use Boolean values for the capturestderr flag. 2003-07-07 21:36:19 +00:00
poplib.py
posixfile.py
posixpath.py back out the darwin supports_unicode_filenames patch; it causes deep problems with the tests 2003-07-17 15:11:49 +00:00
pprint.py Revert 1.25, as overloaded __repr__ is not considered. 2003-06-07 20:47:37 +00:00
pre.py
profile.doc
profile.py
pstats.py - add a dump_stats() method similar to that of the profile.Profile class 2003-05-14 14:28:09 +00:00
pty.py
py_compile.py
pyclbr.py
pydoc.py (HTML|Text)Repr.repr1: Guard against objects whos types have no __name__ 2003-06-27 15:45:41 +00:00
quopri.py
random.py SF bug #801342: Bug (documentation or real, your choice) in random.sample. 2003-09-06 04:25:54 +00:00
re.py
reconvert.py
regex_syntax.py
regsub.py
repr.py
rexec.py
rfc822.py
rlcompleter.py
robotparser.py
sched.py
sets.py Improvements to set.py: 2003-08-17 08:34:09 +00:00
sgmllib.py Allow "@" in unquoted attribute values. 2003-04-29 22:12:55 +00:00
shelve.py Fixup bare try/except. 2003-05-27 06:30:52 +00:00
shlex.py - Changed shlex.split() method to have more useful and 2003-04-20 01:57:03 +00:00
shutil.py
site.py Repair operator error. 2003-07-18 17:45:33 +00:00
smtpd.py
smtplib.py
sndhdr.py
socket.py Always unwrap _socketobj in socket.ssl. Revert httplib.py 1.25. 2003-06-14 13:30:53 +00:00
sre.py Addendum to #764548: restore 2.1 compatibility. 2003-07-02 21:37:16 +00:00
sre_compile.py Addendum to #764548: restore 2.1 compatibility. 2003-07-02 21:37:16 +00:00
sre_constants.py Fully support 32-bit codes. Enable BIGCHARSET in UCS-4 builds. 2003-04-19 12:56:08 +00:00
sre_parse.py Patch #681152: Support escaped Unicode characters in classes. Fixes #612074. 2003-04-19 08:37:24 +00:00
stat.py
statcache.py
statvfs.py
string.py Attempt to make all the various string *strip methods the same. 2003-04-10 22:35:32 +00:00
stringold.py
stringprep.py Whitespace normalization. 2003-04-24 16:02:54 +00:00
sunau.py
sunaudio.py
symbol.py
symtable.py
tabnanny.py
tarfile.py Fix by Lars Gustaebel for bug 721871: don't get upset if the prefix 2003-04-22 22:03:11 +00:00
telnetlib.py
tempfile.py Windows fix: When PYTHONCASEOK is set, or for any other reason imports 2003-07-22 02:50:01 +00:00
textwrap.py SF bug 797650: Infinite loop in textwrap.py 2003-08-30 14:43:55 +00:00
this.py
threading.py Make the classes exposed by threading.py new-style classes. This is 2003-07-01 20:01:55 +00:00
timeit.py remove unused import math 2003-06-29 04:18:15 +00:00
toaiff.py
token.py
tokenize.py
trace.py Make the prefix 7 spaces long, so the lines are properly aligned. 2003-07-15 10:34:02 +00:00
traceback.py
tty.py
types.py
tzparse.py
unittest.py delete unused local variable (pychecker caught) 2003-07-13 15:18:12 +00:00
urllib.py [Bug #776542] open_https() generates a bad Authorization header because it calls .putheader() wrongly. Reported by Steffen Ries. 2003-08-29 18:12:23 +00:00
urllib2.py Patch 549151, rev4: redirect posts for 301 also. Will backport to 2.2. 2003-07-12 07:33:32 +00:00
urlparse.py
user.py
uu.py
warnings.py Change warnings to avoid importing re module during startup. 2003-07-11 15:37:59 +00:00
wave.py
weakref.py SF 742860: WeakKeyDictionary __delitem__ uses iterkeys 2003-05-25 01:45:11 +00:00
webbrowser.py
whichdb.py patch #766650 - whichdb not identifying dbm DBs when dbm linked with gdbm 2003-07-11 12:16:48 +00:00
whrandom.py
xdrlib.py
xmllib.py
xmlrpclib.py Patch #764470: Fix marshalling of faults. Will backport to 2.2. 2003-07-12 07:53:04 +00:00
zipfile.py SF patch #756996: Bare except in ZipFile.testzip() 2003-06-27 22:25:03 +00:00