Georg Brandl
c7c51147c7
Fix refleak in socketmodule. Replace bogus Py_BuildValue calls.
...
Fix refleak in exceptions.
2006-05-29 09:46:51 +00:00
Georg Brandl
964f5978dc
METH_NOARGS functions do get called with two args.
2006-05-28 22:38:57 +00:00
Georg Brandl
660222f955
Convert audioop over to METH_VARARGS.
2006-05-28 22:34:51 +00:00
Georg Brandl
fbef5888e7
Fix C function calling conventions in _sre module.
2006-05-28 22:14:04 +00:00
Georg Brandl
c26025c562
Fix ref-antileak in _struct.c which eventually lead to deallocating None.
2006-05-28 21:42:54 +00:00
Bob Ippolito
cd51ca5b11
fix struct regression on 64-bit platforms
2006-05-27 15:53:49 +00:00
Jack Diederich
2d40077b4f
needforspeed: use PyObject_MALLOC instead of system malloc for small
...
allocations. Use PyMem_MALLOC for larger (1k+) chunks. 1%-2% speedup.
2006-05-27 15:44:34 +00:00
Richard Jones
7b9558d37d
Conversion of exceptions over from faked-up classes to new-style C types.
2006-05-27 12:29:24 +00:00
Bob Ippolito
1fcdc232db
Fix up struct docstrings, add struct.pack_to function for symmetry
2006-05-27 12:11:36 +00:00
Bob Ippolito
90bd0a554e
Remove the range checking and int usage #defines from _struct and strip out the now-dead code
2006-05-27 11:47:12 +00:00
Martin v. Löwis
d532ba0746
Explain why 'consumed' is initialized.
2006-05-27 08:54:29 +00:00
Martin v. Löwis
d004fc810a
Patch 1494554: Update numeric properties to Unicode 4.1.
2006-05-27 08:36:52 +00:00
Neal Norwitz
2f3136b8f0
Fix compiler warning (and whitespace) on Mac OS 10.4. (A lot of this code looked duplicated, I wonder if a utility function could help reduce the duplication here.)
2006-05-27 05:18:57 +00:00
Bob Ippolito
aa70a17e13
enable all of the struct tests, use ssize_t, fix some whitespace
2006-05-26 20:25:23 +00:00
Georg Brandl
7784f12d74
Replace Py_BuildValue("OO") by PyTuple_Pack.
2006-05-26 20:04:44 +00:00
Tim Peters
735ae484f0
Repair Windows compiler warnings about mixing
...
signed and unsigned integral types in comparisons.
2006-05-26 16:49:28 +00:00
Bob Ippolito
0cbf2c5785
fix signed/unsigned mismatch in struct
2006-05-26 16:23:28 +00:00
Bob Ippolito
1d2b0e3f61
Enable PY_USE_INT_WHEN_POSSIBLE in struct
2006-05-26 14:29:35 +00:00
Bob Ippolito
685dda8b95
Fix _struct typo that broke some 64-bit platforms
2006-05-26 14:23:21 +00:00
Bob Ippolito
ad647859f4
Fix distutils so that libffi will cross-compile between darwin/x86 and darwin/ppc
2006-05-26 14:07:23 +00:00
Bob Ippolito
e27337b5d0
fix #1229380 No struct.pack exception for some out of range integers
2006-05-26 13:15:44 +00:00
Martin Blais
2856e5f390
Support for buffer protocol for socket and struct.
...
* Added socket.recv_buf() and socket.recvfrom_buf() methods, that use the buffer
protocol (send and sendto already did).
* Added struct.pack_to(), that is the corresponding buffer compatible method to
unpack_from().
* Fixed minor typos in arraymodule.
2006-05-26 12:03:27 +00:00
Jack Diederich
6c433a91d5
use Py_ssize_t in places that may need it
2006-05-26 11:15:17 +00:00
Tim Peters
c285e62d76
Repair idiot typo, and complete the job of trying to
...
use the Windows time.clock() implementation on Win64.
2006-05-25 22:25:25 +00:00
Brett Cannon
4c803f1c81
Move over to use of METH_O and METH_NOARGS.
2006-05-25 22:00:14 +00:00
Bob Ippolito
45c6472f99
Add missing files from x86 darwin ctypes patch
2006-05-25 21:58:05 +00:00
Tim Peters
7a822dabad
Some Win64 pre-release in 2000 didn't support
...
QueryPerformanceCounter(), but we believe Win64 does
support it now. So use in time.clock().
It would be peachy if someone with a Win64 box tried
this ;-)
2006-05-25 21:50:17 +00:00
Ronald Oussoren
f5bc414334
Fix minor typo in prep_cif.c
2006-05-25 21:30:54 +00:00
Bob Ippolito
964e02a901
fix test_float regression and 64-bit size mismatch issue
2006-05-25 21:09:45 +00:00
Bob Ippolito
66c0935d67
enable darwin/x86 support for libffi and hence ctypes (doesn't yet support --enable-universalsdk)
2006-05-25 19:59:56 +00:00
Bob Ippolito
a99865b12e
Use faster struct pack/unpack functions for the endian table that matches the host's
2006-05-25 19:56:56 +00:00
Bob Ippolito
04ab994dca
Use LONG_MIN and LONG_MAX to check Python integer bounds instead of the incorrect INT_MIN and INT_MAX
2006-05-25 19:33:38 +00:00
Georg Brandl
684fd0c8ec
Replace PyObject_CallFunction calls with only object args
...
with PyObject_CallFunctionObjArgs, which is 30% faster.
2006-05-25 19:15:31 +00:00
Bob Ippolito
3b0cae9cc0
fix a struct regression where long would be returned for short unsigned integers
2006-05-25 19:15:27 +00:00
Bob Ippolito
3fc2bb9ccd
Fix Cygwin compiler issue
2006-05-25 19:03:19 +00:00
Bob Ippolito
94f68ee8ba
Struct now unpacks to PY_LONG_LONG directly when possible, also include #ifdef'ed out code that will return int instead of long when in bounds (not active since it's an API and doc change)
2006-05-25 18:44:50 +00:00
Bob Ippolito
eb62127842
refactor unpack, add unpack_from
2006-05-24 15:32:06 +00:00
Bob Ippolito
07c023b10e
fix typo in _struct
2006-05-23 19:32:25 +00:00
Bob Ippolito
d3611eb3c6
forward declaration for PyStructType
2006-05-23 19:31:23 +00:00
Bob Ippolito
4de3f998bf
fix linking issue, warnings, in struct
2006-05-23 19:25:52 +00:00
Bob Ippolito
232f3c91f9
patch #1493701 : performance enhancements for struct module
2006-05-23 19:12:41 +00:00
Bob Ippolito
7ccc95a315
patch #1493701 : performance enhancements for struct module
2006-05-23 19:11:34 +00:00
Bob Ippolito
27abce5ba8
revert #1493701
2006-05-23 19:09:51 +00:00
Bob Ippolito
fb8b84af54
Patch #1493701 : performance enhancements for struct module.
2006-05-23 18:46:41 +00:00
Martin v. Löwis
a43190bc78
Patch #1492356 : Port to Windows CE (patch set 1).
2006-05-22 09:15:18 +00:00
Georg Brandl
378d592617
Patch #1490224 : set time.altzone correctly on Cygwin.
2006-05-17 14:26:50 +00:00
Georg Brandl
9e5b5e4fe1
Fix typo in os.utime docstring (patch #1490189 )
2006-05-17 14:18:20 +00:00
Tim Peters
402cc242f0
PyZlib_copy(), PyZlib_uncopy(): Repair leaks on the normal-case path.
2006-05-17 01:30:11 +00:00
Georg Brandl
8d3342b489
Patch #1435422 : zlib's compress and decompress objects now have a
...
copy() method.
2006-05-16 07:38:27 +00:00
Martin v. Löwis
5f5d99c215
- Test for sys/statvfs.h before including it, as statvfs is present
...
on some OSX installation, but its header file is not.
Will backport to 2.4
2006-05-16 07:05:37 +00:00
Martin v. Löwis
e3edaea33d
Fix memory leak.
2006-05-15 05:51:36 +00:00
Tim Peters
375f06b175
Remove lie in new comment.
2006-05-13 23:33:19 +00:00
Tim Peters
8931ff1f67
Teach PyString_FromFormat, PyErr_Format, and PyString_FromFormatV
...
about "%u", "%lu" and "%zu" formats.
Since PyString_FromFormat and PyErr_Format have exactly the same rules
(both inherited from PyString_FromFormatV), it would be good if someone
with more LaTeX Fu changed one of them to just point to the other.
Their docs were way out of synch before this patch, and I just did a
mass copy+paste to repair that.
Not a backport candidate (this is a new feature).
2006-05-13 23:28:20 +00:00
Martin v. Löwis
77c176d5b5
Fix alignment error on Itanium.
2006-05-12 17:22:04 +00:00
Martin v. Löwis
682b1bb95f
Dynamically allocate path name buffer for Unicode
...
path name in listdir. Fixes #1431582 .
Stop overallocating MAX_PATH characters for ANSI
path names. Stop assigning to errno.
2006-05-12 12:27:28 +00:00
Neal Norwitz
38e3b7d2d3
Don't mask a no memory error with a less meaningful one as discussed on python-checkins
2006-05-11 07:51:59 +00:00
Neal Norwitz
c6a989ac3a
Fix problems found by Coverity.
...
longobject.c: also fix an ssize_t problem
<a> could have been NULL, so hoist the size calc to not use <a>.
_ssl.c: under fail: self is DECREF'd, but it would have been NULL.
_elementtree.c: delete self if there was an error.
_csv.c: I'm not sure if lineterminator could have been anything other than
a string. However, other string method calls are checked, so check this
one too.
2006-05-10 06:57:58 +00:00
Martin v. Löwis
9f485bcd68
Add missing PyMem_Free.
2006-05-08 05:25:56 +00:00
Martin v. Löwis
d4e3bb3d39
Port access, chmod, parts of getcwdu, mkdir, and utime to direct Win32 API.
2006-05-06 16:32:54 +00:00
Thomas Heller
9b83fc67ea
Clean up.
2006-05-05 19:14:24 +00:00
Thomas Heller
21a929f5ab
Export the 'free' standard C function for use in the test suite.
2006-05-05 18:42:14 +00:00
Martin v. Löwis
4fc2bda8d9
Drop now-unnecessary arguments to posix_2str.
2006-05-04 12:04:27 +00:00
Martin v. Löwis
8e0d494e41
Implement os.{chdir,rename,rmdir,remove} using Win32 directly.
2006-05-04 10:08:42 +00:00
Guido van Rossum
da5b701aee
Get rid of __context__, per the latest changes to PEP 343 and python-dev
...
discussion.
There are two places of documentation that still mention __context__:
Doc/lib/libstdtypes.tex -- I wasn't quite sure how to rewrite that without
spending a whole lot of time thinking about it; and whatsnew, which Andrew
usually likes to change himself.
2006-05-02 19:47:52 +00:00
Neal Norwitz
9652baaf44
Fix breakage from patch 1471883 (r45800 & r45808) on OSF/1.
...
The problem was that pyconfig.h was being included before some system headers
which caused redefinitions and other breakage. This moves system headers
after expat_config.h which includes pyconfig.h.
2006-05-02 07:27:47 +00:00
Martin v. Löwis
8672519ac0
Work around deadlock risk. Will backport.
2006-05-01 06:28:01 +00:00
Georg Brandl
de9b624fb9
Bug #1473625 : stop cPickle making float dumps locale dependent in protocol 0.
...
On the way, add a decorator to test_support to facilitate running single
test functions in different locales with automatic cleanup.
2006-04-30 11:13:56 +00:00
Martin v. Löwis
b75d43d374
Further changes for #1471883 : Edit Misc/NEWS, and
...
add expat_config.h.
2006-04-29 12:37:25 +00:00
Georg Brandl
6d78a582ec
Bug #1478429 : make datetime.datetime.fromtimestamp accept every float,
...
possibly "rounding up" to the next whole second.
2006-04-28 19:09:24 +00:00
Neal Norwitz
82d4cc27c6
Fix some warnings on Mac OS X 10.4
2006-04-28 05:28:05 +00:00
Hye-Shik Chang
f4795c82df
Fix build on MIPS for libffi. I haven't tested this yet because I
...
don't have an access on MIPS machines. Will be tested by buildbot. :)
2006-04-26 19:20:26 +00:00
Neal Norwitz
57a0361a9e
Patch from Aldo Cortesi (OpenBSD buildbot owner).
...
After the patch (45590) to add extra debug stats to the gc module, Python
was crashing on OpenBSD due to:
Fatal Python error: Interpreter not initialized (version mismatch?)
This seems to occur due to calling collect() when initialized (in pythonrun.c)
is set to 0. Now, the import will occur in the init function which
shouldn't suffer this problem.
2006-04-26 05:34:03 +00:00
Thomas Heller
4e1777de63
Fix compiler warnings on Darwin.
...
Patch by Brett Canon, see
https://sourceforge.net/tracker/?func=detail&atid=532156&aid=1475959&group_id=71702
2006-04-25 18:26:08 +00:00
Thomas Wouters
1ddba60e3d
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:29:46 +00:00
Thomas Wouters
0452049b6f
Fix SF bug #1476111 : SystemError in socket sendto. The AF_INET6 and
...
AF_PACKET cases in getsockaddrarg were missing their own checks for
tuple-ness of the address argument, which means a confusing SystemError was
raised by PyArg_ParseTuple instead.
2006-04-25 15:08:10 +00:00
Thomas Wouters
6dbff33be8
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. (I wasn't able to reproduce it with this patch, but it
has been somewhat elusive to start with.)
2006-04-25 13:53:23 +00:00
Gerhard Häring
3e99c0ad64
Updated the sqlite3 module to the external pysqlite 2.2.2 version.
2006-04-23 15:24:26 +00:00
Ronald Oussoren
32fd16ece9
Patch 1471761 - test for broken poll at runtime
...
This patch checks if poll is broken when the select module is loaded instead
of doing so at configure-time. This functionality is only active on Mac OS X.
2006-04-23 12:36:23 +00:00
Ronald Oussoren
d06b6f28a0
Patch 1471925 - Weak linking support for OSX
...
This patch causes several symbols in the socket and posix module to be weakly
linked on OSX and disables usage of ftime on OSX. These changes make it possible
to use a binary build on OSX 10.4 on a 10.3 system.
2006-04-23 11:59:25 +00:00
Martin v. Löwis
6685128b97
Fix more ssize_t issues.
2006-04-22 11:40:03 +00:00
Martin v. Löwis
26fd9607c7
Fix more ssize_t problems.
2006-04-22 11:15:41 +00:00
Andrew M. Kuchling
6ce35a9691
Fix comment typo
2006-04-22 01:58:40 +00:00
Thomas Heller
4b75a7c1cf
Merge in changes from ctypes 0.9.9.6 upstream version.
2006-04-21 16:48:56 +00:00
Hye-Shik Chang
db8955bc54
Backport p3yk r45619:
...
Add empty __init__ methods for stateful multibytecodec instances.
This resolves a problem found by Thomas Wouters:
http://mail.python.org/pipermail/python-dev/2006-April/064051.html
2006-04-21 16:28:34 +00:00
Skip Montanaro
c34b931d78
This is a long-ago patch I submitted to SF (1100924) to time the gc passes.
...
Barry approved it awhile ago. Been sitting in my sandbox for awhile as
well.
2006-04-21 01:33:40 +00:00
Neal Norwitz
449b24ebe9
Address issues brought up by MvL on python-checkins.
...
I tested this with valgrind on amd64.
The man pages I found for diff architectures are inconsistent on this.
I'm not entirely sure this change is correct for all architectures either.
Perhaps we should just over-allocate and not worry about it?
2006-04-20 06:56:05 +00:00
Neal Norwitz
0d21b1ed54
Whitespace, fix indentation
2006-04-20 06:44:42 +00:00
Skip Montanaro
94785ef142
Correct implementation and documentation of os.confstr. Add a simple test
...
case. I've yet to figure out how to provoke a None return I can test.
2006-04-20 01:29:48 +00:00
Armin Rigo
a9017c39ce
SF Patch #1062014 : AF_UNIX sockets under Linux have a special
...
abstract namespace that is now fully supported.
2006-04-19 11:50:27 +00:00
Thomas Heller
b6dfaed903
Rename remaining StgDictObject's ffi_type fields to ffi_type_pointer.
2006-04-18 20:09:27 +00:00
Skip Montanaro
058be9adbc
C++ compiler cleanup: the typical few casts, and ... C++ didn't like that
...
the StgDictObject's ffi_type member had the same name as its type. I
changed that to ffi_type_pointer. Feel free to change it to something else
more meaningful, just not ffi_type.
2006-04-18 19:45:17 +00:00
Skip Montanaro
cbe2e491bc
C++ compiler cleanup: a cast here, a cast there... still does not compile under C++ though...
2006-04-18 19:39:48 +00:00
Skip Montanaro
14f8899dc2
C++ compiler cleanup: "typename" is a C++ keyword
2006-04-18 19:35:04 +00:00
Thomas Heller
9d89299fea
Fix refcounting.
...
This makes 'import ctypes; reload(ctypes)' no longer leak reference counts.
2006-04-18 14:57:39 +00:00
Skip Montanaro
816a162265
C++ compiler cleanup: proper casts
2006-04-18 11:53:09 +00:00
Skip Montanaro
9582c148b6
correct function signature
2006-04-18 01:01:41 +00:00
Skip Montanaro
dd527fcbcd
reset errno before calling confstr - use confstr() doc to simplify checks afterwards
2006-04-18 00:49:49 +00:00
Neal Norwitz
c859b5c04e
Remove unused field
2006-04-17 01:49:28 +00:00
Neal Norwitz
88c97845c6
No reason to export get_decomp_record, make static
2006-04-17 00:36:29 +00:00
Martin v. Löwis
19ab6c98cf
Initialize structseq types only once.
2006-04-16 18:55:50 +00:00
Neal Norwitz
195e4e67e7
Fix valgrind problem with invalid memory read
2006-04-16 03:37:19 +00:00
Neal Norwitz
5b03065087
Fix memory leak
2006-04-16 03:28:17 +00:00
Neal Norwitz
035b1857ed
err is no longer used
2006-04-16 00:02:59 +00:00
Thomas Wouters
b3deb94dc6
Add missing PyObject_GC_Track call, causing *some* itertools.tee objects to
...
not be tracked by GC. This fixes 254 of test_generators' refleaks on my
machine, but I'm sure something else will make them come back :>
Not adding a separate test for this kind of cycle, since the existing
fib/m235 already test them in more extensive ways than any 'minimal' test
has been able to manage.
2006-04-15 22:33:13 +00:00
Thomas Wouters
c6e55068ca
Use Py_VISIT in all tp_traverse methods, instead of traversing manually or
...
using a custom, nearly-identical macro. This probably changes how some of
these functions are compiled, which may result in fractionally slower (or
faster) execution. Considering the nature of traversal, visiting much of the
address space in unpredictable patterns, I'd argue the code readability and
maintainability is well worth it ;P
2006-04-15 21:47:09 +00:00
Thomas Heller
eb6f1835b1
Fix for FreeBSD. Fixes http://python.org/sf/1470353 .
...
Looks like a libffi bug.
2006-04-15 20:23:54 +00:00
Thomas Wouters
73536e039b
Remove partial change (don't edit, commit and think at the same time :P)
2006-04-15 17:36:42 +00:00
Thomas Wouters
2742c5ed63
Re-instate backward compatibility by defining Py_CLEAR if it isn't
...
available.
2006-04-15 17:33:14 +00:00
Thomas Wouters
edf17d8798
Use Py_CLEAR instead of in-place DECREF/XDECREF or custom macros, for
...
tp_clear methods.
2006-04-15 17:28:34 +00:00
Martin v. Löwis
7e75f1aafb
Patch #1191065 : Fix preprocessor problems on systems where recvfrom
...
is a macro.
2006-04-15 08:35:59 +00:00
Thomas Wouters
3cfea2dc98
Coverity-found bug: datetime_strptime() failed to check for NULL return from
...
PySequence_GetItem of the time.strptime() result. Not a high probability
bug, but not inconceivable either, considering people can provide their own
'time' module.
2006-04-14 21:23:42 +00:00
Martin v. Löwis
f24de1e990
Patch #1470300 : Port _hotshot to QNX4.25 port.
2006-04-14 15:07:46 +00:00
Martin v. Löwis
0f48d98b74
Patch #1324762 : Change --with-cxx to --with-cxx-main.
2006-04-14 14:34:26 +00:00
Georg Brandl
7f573f7319
Add a test for Py_ssize_t. Correct typo in getargs.c.
2006-04-13 07:59:30 +00:00
Martin v. Löwis
b1ed7fac12
Replace INT_MAX with PY_SSIZE_T_MAX.
2006-04-13 07:52:27 +00:00
Martin v. Löwis
2308915b2f
Replace INT_MAX with PY_SSIZE_T_MAX.
2006-04-13 07:34:09 +00:00
Georg Brandl
635af32bdf
Add PY_SSIZE_T_MIN/MAX to _testcapi.
2006-04-13 07:29:18 +00:00
Anthony Baxter
7cbc0f5524
C++ compiler changes. casts, rename variables with reserved names.
2006-04-13 07:19:01 +00:00
Martin v. Löwis
3c6e4188ed
Support NFD of very long strings.
2006-04-13 06:36:31 +00:00
Anthony Baxter
1ad9ec276e
whoops. missed one in an auto-generated file. another extern "C" {} for C++ compiler compatibility
2006-04-13 04:49:25 +00:00
Anthony Baxter
ac6bd46d5c
spread the extern "C" { } magic pixie dust around. Python itself builds now
...
using a C++ compiler. Still lots and lots of errors in the modules built by
setup.py, and a bunch of warnings from g++ in the core.
2006-04-13 02:06:09 +00:00
Thomas Heller
55d031ef23
Fix for a bug found by Armin Rigo, plus test.
...
https://sourceforge.net/tracker/?func=detail&atid=532154&aid=1467852&group_id=71702
2006-04-12 19:07:36 +00:00
Armin Rigo
2db15505be
Off-by-one buffer overflow error.
2006-04-12 11:59:26 +00:00
Neal Norwitz
4b194fabdf
Update for new grammar
2006-04-12 05:24:39 +00:00
Anthony Baxter
d6495b5944
remove forward declarations. No constructors to move for these files. Makes
...
code work with C++ compilers.
2006-04-12 04:29:01 +00:00
Anthony Baxter
aefd8ca701
Move constructors, add some casts to make C++ compiler happy. Still a problem
...
with the getstring() results in pattern_subx. Will come back to that.
2006-04-12 04:26:11 +00:00
Anthony Baxter
5576b54bec
remove forward declarations, move constructor functions. makes code C++ safe.
2006-04-12 04:08:46 +00:00
Anthony Baxter
64182fe0b3
Some more changes to make code compile under a C++ compiler.
2006-04-11 12:14:09 +00:00
Georg Brandl
05e89b86d6
Clear errno before calling opendir() and readdir().
2006-04-11 07:04:06 +00:00
Georg Brandl
bbfe4fad36
Bug #1467952 : os.listdir() now correctly raises an error if readdir()
...
fails with an error condition.
2006-04-11 06:47:43 +00:00
Phillip J. Eby
2ba96610bf
SF Patch #1463867 : Improved generator finalization to allow generators
...
that are suspended outside of any try/except/finally blocks to be
garbage collected even if they are part of a cycle. Generators that
suspend inside of an active try/except or try/finally block (including
those created by a ``with`` statement) are still not GC-able if they
are part of a cycle, however.
2006-04-10 17:51:05 +00:00
Neal Norwitz
84a98e07f5
Fix warning about ptsname not being a prototype on Solaris. Is this prototype even necessary anymore?
2006-04-10 07:44:23 +00:00
Neal Norwitz
65c05b20e9
Get rid of warnings about using chars as subscripts
...
on Alpha (and possibly other platforms) by using Py_CHARMASK().
2006-04-10 02:17:47 +00:00
Neal Norwitz
b183a25c29
Fix some warnings on HP-UX when using cc/aCC
2006-04-10 01:03:32 +00:00
Neal Norwitz
4c842a4db0
Fix problem (not checking return result) reported by Coverity
2006-04-09 04:07:39 +00:00
Gregory P. Smith
7f5b6f4b33
Fix bsddb.db.DBError derived exceptions so they can be unpickled.
...
Also adds some backwards compatibility when compiling _bsddb.c on earlier
python versions (needed for pybsddb).
2006-04-08 07:10:51 +00:00
Martin v. Löwis
5fe60e7a4c
Patch #1462080 : Conditionalize some NETLINK defines.
2006-04-06 22:29:33 +00:00
Thomas Heller
fff61ea025
Expose RTLD_LOCAL and RTLD_GLOBAL always from the _ctypes extension module.
...
If RTLD_LOCAL is not #defined in any header file (Windows), set it to 0.
If RTLD_GLOBAL is not #defined, set it equal to RTLD_LOCAL.
This should fix ctypes on cygwin.
2006-04-06 15:23:16 +00:00
Thomas Heller
430947ac66
Replace a few more 'char' types with 'signed char', to fix test failures
...
on platforms (ppc debian) where 'char' is unsigned.
2006-04-06 09:02:58 +00:00
Neal Norwitz
b43199822b
This change shouldn't have any functional effect. Coverity was
...
complaining because it seemed like parameters_iter could be NULL.
2006-04-06 08:43:16 +00:00
Neal Norwitz
d126200aeb
Fix unchecked return result from Coverity.
2006-04-06 08:41:59 +00:00
Neal Norwitz
ffb0d90a6e
Handle ssize_t
2006-04-06 08:07:25 +00:00
Neal Norwitz
915ae41b3a
Handle error conditions from PyString_ConcatAndDel().
2006-04-06 08:06:52 +00:00
Neal Norwitz
b038333d4b
Handle ssize_t
...
No need to INCREF then let PyString_ConcatAndDel() DECREF. Just
use PyString_Concat().
Handle error condition if we can't concat.
2006-04-06 08:05:53 +00:00
Thomas Heller
3c423a04ba
Explicitely use 'signed char', to avoid problems on platforms with unsigned char type.
2006-04-05 20:34:18 +00:00
Thomas Heller
0890de3be0
Explicitely use 'signed char', to avoid problems on platforms with unsigned char type.
2006-04-05 19:51:19 +00:00
Anthony Baxter
8e7b490890
upgrade to final version of pysqlite 2.2.0
2006-04-05 18:25:33 +00:00
Fredrik Lundh
4aaaa49bac
docstring tweak
2006-04-04 16:51:13 +00:00
Anthony Baxter
3b8ff31055
SF Bug #1448488 - make collectionsmodule build on Cygwin, using the same
...
techniques as in Modules/xxsubtype.c
2006-04-04 15:05:23 +00:00
Neal Norwitz
c410d6ce28
Fix a couple of memory issues
2006-04-04 07:25:25 +00:00