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