Andrew M. Kuchling
4281902545
[Patch #827559 from Chris Gonnerman] Make SimpleHTTPServer redirect when a directory URL is missing the trailing slash; this lets relative links work.
2006-12-22 19:06:16 +00:00
Andrew M. Kuchling
ee0e6d16b3
[Patch #783050 from Patrick Lynch] The emulation of forkpty() is incorrect;
...
the master should close the slave fd.
Added a test to test_pty.py that reads from the master_fd after doing
a pty.fork(); without the fix it hangs forever instead of raising an
exception. (<crossing fingers for the buildbots>)
2.5 backport candidate.
2006-12-22 18:41:42 +00:00
Andrew M. Kuchling
3fa5e6ee45
[Bug #776202 ] Apply Walter Doerwald's patch to use text mode for encoded files
2006-12-22 16:43:26 +00:00
Andrew M. Kuchling
9ef0ef5b72
[Bug #802128 continued] Modify mode depending on the process umask.
...
Is there really no other way to read the umask than to set it?
Hope this works on Windows...
2006-12-22 15:16:58 +00:00
Andrew M. Kuchling
dc26758ffe
[Bug #802128 ] Make the mode argument of dumbdbm actually work the way it's
...
described, and add a test for it.
2.5 bugfix candidate, maybe; arguably this patch changes the API of
dumbdbm and shouldn't be added in a point-release.
2006-12-22 15:04:45 +00:00
Andrew M. Kuchling
b29069d6b6
[Bug #737202 ; fix from Titus Brown] Make CGIHTTPServer work for scripts in sub-directories
2006-12-22 13:25:02 +00:00
Andrew M. Kuchling
eabc0e87af
Typo fix
2006-12-22 00:50:56 +00:00
Thomas Heller
d5624cf6c9
Fix wrong markup of an argument in a method signature.
...
Will backport.
2006-12-21 18:30:56 +00:00
Walter Dörwald
fd7e162eb9
Fix typo.
2006-12-21 18:06:30 +00:00
Andrew M. Kuchling
4a8d272dca
Mention the os.SEEK_* constants
2006-12-21 13:40:29 +00:00
Neal Norwitz
b6060dbed1
Lars asked for permission on on python-dev for work on tarfile.py
2006-12-21 04:38:00 +00:00
Andrew M. Kuchling
2dd7c8c41e
[Bug #1619680 ] in_dll() arguments are documented in the wrong order
2006-12-20 20:20:42 +00:00
Andrew M. Kuchling
a490d59fbb
Some other built-in functions are described with 'sequence' arguments
...
that should really be 'iterable'; this commit changes them.
Did I miss any? Did I introduce any errors?
2006-12-20 20:11:12 +00:00
Andrew M. Kuchling
b688573766
Two grammar fixes
2006-12-20 19:58:11 +00:00
Andrew M. Kuchling
1be2ac9cd6
[Bug #1619674 ] Make sum() use the term iterable, not sequence
2006-12-20 19:57:10 +00:00
Andrew M. Kuchling
eca4c31267
[Apply length-checking.diff from bug #1599254 ]
...
Add length checking to single-file mailbox formats: before doing a
flush() on a mailbox, seek to the end and verify its length is
unchanged, raising ExternalClashError if the file's length has
changed.
This fix avoids potential data loss if some other process appends to
the mailbox file after the table of contents has been generated;
instead of overwriting the modified file, you'll get the exception.
I also noticed that the self._lookup() call in self.flush() wasn't
necessary (everything that sets self._pending to True also calls
self.lookup()), and replaced it by an assertion.
2.5 backport candidate.
2006-12-20 19:48:20 +00:00
Georg Brandl
ded1c4df0b
Testcase for patch #1484695 .
2006-12-20 11:55:16 +00:00
Raymond Hettinger
94547f7646
Bug #1590891 : random.randrange don't return correct value for big number
...
Needs to be backported.
2006-12-20 06:42:06 +00:00
Georg Brandl
ebbeed781d
Patch #1484695 : The tarfile module now raises a HeaderError exception
...
if a buffer given to frombuf() is invalid.
2006-12-19 22:06:46 +00:00
Vinay Sajip
8183c635bc
Updated documentation for findCaller() to indicate that a 3-tuple is now returned, rather than a 2-tuple.
2006-12-19 18:29:11 +00:00
Andrew M. Kuchling
29ff461c83
[Patch #1587139 by kxroberto] Protect lock acquisition/release with
...
try...finally to ensure the lock is always released. This could use
the 'with' statement, but the patch uses 'finally'.
2.5 backport candidate.
2006-12-19 15:43:10 +00:00
Andrew M. Kuchling
c911e916d4
[Patch #1600491 from Jim Jewett] Describe how to build help files on Windows
2006-12-19 15:18:12 +00:00
Andrew M. Kuchling
522785732f
[Patch #1617413 from Dug Song] Fix HTTP Basic authentication via HTTPS
2006-12-19 15:11:41 +00:00
Andrew M. Kuchling
8d0baae7cd
Comment typo
2006-12-19 14:29:04 +00:00
Andrew M. Kuchling
64df22bdb5
[Bug #1613651 ] Document socket.recv_into, socket.recvfrom_into
...
Also, the text for recvfrom told you to read recv() for an explanation of the
'flags' argument, but recv() just pointed you at the man page. Copied the
man-page text to recvfrom(), recvfrom_into, recv_into to avoid the pointless
redirection.
I don't have LaTeX on this machine; hope my markup is OK.
2006-12-19 14:28:23 +00:00
Andrew M. Kuchling
8fe2d2015d
[Patch #1618455 by Ben Maurer] Improve speed of HMAC by using str.translate()
...
instead of a more general XOR that has to construct a list.
Slightly modified from Maurer's patch: the _strxor() function is no longer
necessary at all.
2006-12-19 14:13:05 +00:00
Thomas Wouters
e3a985fe9a
Make sre's SubPattern objects accept slice objects like it already accepts
...
simple slices.
2006-12-19 08:17:50 +00:00
Andrew M. Kuchling
ab4b873f81
Fix markup
2006-12-18 21:29:07 +00:00
Andrew M. Kuchling
44b054b84a
[Patch #1615868 by Lars Gustaebel] Use Py_off_t to fix BZ2File.seek() for offsets > 2Gb
2006-12-18 19:22:24 +00:00
Andrew M. Kuchling
9059843a60
Describe new methods in Queue module
2006-12-18 17:38:14 +00:00
Andrew M. Kuchling
0693ae147c
[Bug #1616726 ] Fix description of generator.close(); if you raise some random exception, the exception is raised and doesn't trigger a RuntimeError
2006-12-18 17:22:07 +00:00
Andrew M. Kuchling
ff5c229ef2
Bump version
2006-12-18 17:16:05 +00:00
Andrew M. Kuchling
4cd69d43e8
[Bug #1618083 ] Add missing word; make a few grammar fixes
2006-12-18 17:12:31 +00:00
Kurt B. Kaiser
c3200b97d6
1. Avoid hang when encountering a duplicate in a completion list. Bug 1571112.
...
2. Duplicate some old entries from Python's NEWS to IDLE's NEWS.txt
M AutoCompleteWindow.py
M NEWS.txt
2006-12-15 05:13:11 +00:00
Andrew M. Kuchling
1646568b5e
[Patch #1599256 from David Watson] check that os.fsync is available before using it
2006-12-14 18:57:53 +00:00
Vinay Sajip
76fdb8c050
Added news on recent changes to logging
2006-12-14 08:53:55 +00:00
George Yoshida
7366fcecdf
Note that guard_warnings_filter was added in 2.6
2006-12-14 02:22:44 +00:00
Brett Cannon
6d9520c4f0
Add test.test_support.guard_warnings_filter . This function returns a context
...
manager that protects warnings.filter from being modified once the context is
exited.
2006-12-13 23:09:53 +00:00
Brett Cannon
c745df8519
Remove unneeded imports of 'warnings'.
2006-12-13 23:02:38 +00:00
Brett Cannon
905820ccba
Remove an unneeded import of 'warnings'.
2006-12-13 22:31:37 +00:00
Walter Dörwald
da1ad32cec
Fix typo.
2006-12-12 21:55:31 +00:00
Vinay Sajip
66a1726620
Patch by "cuppatea" (SF #1503765 )
2006-12-11 14:26:23 +00:00
Vinay Sajip
5492e1722a
Patch by Jeremy Katz (SF #1609407 )
2006-12-11 14:07:16 +00:00
Georg Brandl
f54a63b3b5
Move errno imports back to individual functions.
2006-12-11 07:56:33 +00:00
Neal Norwitz
0adf0846ce
Fix a typo
2006-12-11 01:01:06 +00:00
Matthias Klose
ebde1498e7
- Fix the build of the library reference in info format.
2006-12-09 12:15:27 +00:00
Georg Brandl
b130743e97
Patch #1608267 : fix a race condition in os.makedirs() is the directory
...
to be created is already there.
2006-12-09 09:08:29 +00:00
Georg Brandl
66fab425a8
#1577756 : svnversion doesn't react to LANG=C, use LC_ALL=C to force
...
English output.
2006-12-08 20:46:11 +00:00
Raymond Hettinger
c789f341bb
Add test for SF bug 1576657
2006-12-08 17:35:25 +00:00
Raymond Hettinger
9c14ffbc78
Port Georg's dictobject.c fix keys that were tuples got unpacked on the way to setting a KeyError (svn revision 52535, sf bug
...
1576657).
2006-12-08 04:57:50 +00:00