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
Anthony Baxter
72289a616c
Update to pysqlite 2.2.0
2006-04-04 06:29:05 +00:00
Martin v. Löwis
5fe715f049
Properly support empty woperation in win32_startfile;
...
correct arguments to ShellExecuteW.
2006-04-03 23:01:24 +00:00
Thomas Heller
cdab455f9a
Try to fix the build on Mac OS X 10.3. The 'live_support' segment
...
attribute is not supported in this version.
2006-04-03 20:12:41 +00:00
Matthias Klose
739281148d
- add missing chunk for patch #1117961
2006-04-03 16:59:32 +00:00
Matthias Klose
8e39ec78bc
- Patch #360466 : Replace the MD5 implementation from RSA Data Security Inc
...
with the implementation from http://sourceforge.net/projects/libmd5-rfc/ .
2006-04-03 16:27:50 +00:00
Thomas Heller
db5483be64
Try to fix the tests on OpenBSD. Apparently OpenBSD passes
...
structure parameters differently than other posix-like systems.
2006-04-03 16:19:45 +00:00
Georg Brandl
ad89dc8794
Bug #1451503 : allow unicode filenames in os.startfile().
2006-04-03 12:26:26 +00:00
Neal Norwitz
92a6be4318
Whitespace: break long line
2006-04-03 04:46:28 +00:00
Neal Norwitz
95f0e4c401
Make ssize_t clean
2006-04-01 09:08:06 +00:00
Anthony Baxter
07f5b35e19
backport r243 from the pysqlite2 svn repository - lowers the required version
...
of SQLite3 from 3.2.2 to 3.0.8, by providing an alternative to
sqlite3_transfer_bindings. setup.py also handles the common (in debian
and ubuntu, at least) case of a buggy sqlite3.h SQLITE_VERSION_NUMBER.
2006-04-01 08:36:27 +00:00
Georg Brandl
22a9dc889d
Patch #1459631 : documnent zlib.Decompress.flush() length parameter.
2006-04-01 07:39:41 +00:00
Georg Brandl
dcfdae7d72
Bug #1460564 : document that socket.fromfd() duplicates the given
...
file descriptor.
2006-04-01 07:33:08 +00:00
Anthony Baxter
c51ee69b27
merged the sqlite-integration branch.
...
This is based on pysqlite2.1.3, and provides a DB-API interface in
the standard library. You'll need sqlite 3.2.2 or later to build
this - if you have an earlier version, the C extension module will
not be built.
2006-04-01 00:57:31 +00:00