Gregory P. Smith
0736c53cea
- pybsddb Bug #1527939 : bsddb module DBEnv dbremove and dbrename
...
methods now allow their database parameter to be None as the
sleepycat API allows.
also adds a testcase.
backport of trunk commit 50889 to 2.4.
2006-07-28 03:16:53 +00:00
Andrew M. Kuchling
34749f7328
[Bug #1471938 ] Fix build problem on Solaris 8 by conditionalizing the use of mvwgetnstr(); it was conditionalized a few lines below. Fix from Paul Eggert. I also tried out the STRICT_SYSV_CURSES case and am therefore removing the 'untested' comment.
2006-07-26 17:25:53 +00:00
Martin v. Löwis
e3f1ab7255
Bug #1524310 : Properly report errors from FindNextFile in os.listdir.
2006-07-24 12:57:47 +00:00
Neal Norwitz
dd3c51a4b7
Backport 47139:
...
Fix bug #1512695 : cPickle.loads could crash if it was interrupted with
a KeyboardInterrupt since PyTuple_Pack was passed a NULL.
2006-06-28 06:38:25 +00:00
Andrew M. Kuchling
f8f1783eb5
Check for error on module creation
2006-06-09 13:55:00 +00:00
Brett Cannon
dbda788a51
Backport change to binascii.hexlify() to use s# for its arguments instead of t#
...
in order to match its documentation.
2006-06-08 16:24:56 +00:00
Gregory P. Smith
2e56541d45
- Bug #1493322 : bsddb: the __len__ method of a DB object has been fixed to
...
return correct results. It could previously incorrectly return 0 in some
cases. Fixes SF bug 1493322 (pybsddb bug 1184012).
2006-06-06 00:23:21 +00:00
Hye-Shik Chang
04d547e397
(Backport from trunk) Fix a potentially invalid memory access of
...
CJKCodecs' shift-jis decoder.
2006-06-05 01:09:46 +00:00
Gregory P. Smith
ee6ca70548
fix potential use of uninitialized char ** to construct a list if log_archive
...
is called with the (unsupported and unexported in this version) flag DB_ARCH_REMOVE.
also fix a log_list memory leak on error return in the event that python can't create
a new list object.
2006-06-05 00:40:31 +00:00
Andrew M. Kuchling
02647d411a
[Bug #1497414 ] _self is a reserved word in the WATCOM 10.6 C compiler.
...
Fix by renaming the variable.
In a different module, Neal fixed it by renaming _self to self. There's
already a variable named 'self' here, so I used selfptr.
2006-06-03 20:34:33 +00:00
Martin v. Löwis
cd9a3bbc0f
Backport of 46010
...
- Test for sys/statvfs.h before including it, as statvfs is present
on some OSX installations, but its header file is not.
2006-05-16 07:06:33 +00:00
Thomas Wouters
4c99867d4b
Backport SF bug/patch #1433877 : string parameter to ioctl not null terminated
...
The new char-array used in ioctl calls wasn't explicitly NUL-terminated;
quite probably the cause for the test_pty failures on Solaris that we
circumvented earlier.
2006-05-05 10:52:43 +00:00
Martin v. Löwis
bab8ace8d9
Work around deadlock risk.
2006-05-01 06:29:06 +00:00
Georg Brandl
8ac119237a
Bug #1473625 : stop pickling in text mode make floats locale dependent.
2006-04-30 11:12:03 +00:00
Georg Brandl
fee327c85a
Bug #1478429 : make datetime.datetime.fromtimestamp accept every float,
...
possibly "rounding up" to the next whole second.
(backport from rev. 45792)
2006-04-28 19:09:29 +00:00
Thomas Wouters
eba52802cd
Backport trunk's r45715:
...
Define MAXPATHLEN to be at least PATH_MAX, if that's defined. Python uses
MAXPATHLEN-sized buffers for various output-buffers (like to realpath()),
and that's correct on BSD platforms, but not Linux (which uses PATH_MAX, and
does not define MAXPATHLEN.) Cursory googling suggests Linux is following a
newer standard than BSD, but in cases like this, who knows. Using the
greater of PATH_MAX and 1024 as a fallback for MAXPATHLEN seems to be the
most portable solution.
2006-04-25 15:33:48 +00:00
Martin v. Löwis
41a1a9ea54
Patch #1191065 : Fix preprocessor problems on systems where recvfrom
...
is a macro.
2006-04-15 08:35:45 +00:00
Armin Rigo
dfdc6af572
Backport of r45303: buffer overflow.
2006-04-12 12:04:10 +00:00
Georg Brandl
e539fad2e7
Clear errno before calling opendir() and readdir().
...
(backport from rev. 45262)
2006-04-11 07:04:09 +00:00
Georg Brandl
653d87d1d7
Bug #1467952 : backport: make os.listdir() raise if readdir() fails
2006-04-11 06:51:25 +00:00
Gregory P. Smith
44c2fd34b1
Fix bsddb.db.DBError derived exceptions so they can be unpickled.
...
(backport of trunk commit 43729)
2006-04-08 07:34:08 +00:00
Georg Brandl
369444609e
Patch #1459631 : documnent zlib.Decompress.flush() length parameter.
...
(backport from rev. 43525)
2006-04-01 07:39:45 +00:00
Georg Brandl
a7993a7f82
Bug #1460564 : document that socket.fromfd() duplicates the given
...
file descriptor.
(backport from rev. 43523)
2006-04-01 07:33:22 +00:00
Thomas Wouters
fe1c16f4be
Backport trunk's r43510: In the fdopen(fd, 'a') case on UNIX, don't try to
...
set fd's flags to -1 if fcntl() and fdopen() both fail.
2006-03-31 22:39:56 +00:00
Georg Brandl
5c1498057a
Add guards against fcntl() not being available on Windows.
...
(backport from rev. 43504)
2006-03-31 20:27:27 +00:00