Georg Brandl
7478096148
Typos.
2007-03-10 07:38:14 +00:00
Thomas Heller
2456a3c02a
Bug #1651235 : When a tuple was passed to a ctypes function call,
...
Python would crash instead of raising an error.
The crash was caused by a section of code that should have been
removed long ago, at that time ctypes had other ways to pass
parameters to function calls.
2007-03-09 20:39:22 +00:00
Thomas Heller
c2f7725c86
Fix bug #1646630 : ctypes.string_at(buf, 0) and ctypes.wstring_at(buf, 0)
...
returned string up to the first NUL character.
2007-03-09 19:21:28 +00:00
Georg Brandl
49aafc9f2c
Variant of patch #697613 : don't exit the interpreter on a SystemExit
...
exception if the -i command line option or PYTHONINSPECT environment
variable is given, but break into the interactive interpreter just like
on other exceptions or normal program exit.
(backport)
2007-03-07 00:34:46 +00:00
Walter Dörwald
d391f0855c
Patch for bug #1633621 : if curses.resizeterm() or
...
curses.resize_term() is called, update _curses.LINES,
_curses.COLS, curses.LINES and curses.COLS.
2007-03-06 20:38:57 +00:00
Georg Brandl
40c626159d
Patch #1654417 : make operator.{get,set,del}slice use the full range
...
of Py_ssize_t.
2007-03-06 18:59:11 +00:00
Guido van Rossum
2054ee9b6f
Patch #1646728 : datetime.fromtimestamp fails with negative
...
fractional times. With unittest.
Somebody please backport to 2.5.
2007-03-06 15:50:01 +00:00
Georg Brandl
b51a57eb32
Fix another reincarnation of bug #1576657 in defaultdict.
2007-03-06 13:32:52 +00:00
Raymond Hettinger
eb9798892d
Prepare collections module for pure python code entries.
2007-02-28 18:37:52 +00:00
Raymond Hettinger
1b6ca54c44
Remove filler struct item and fix leak.
2007-02-21 17:22:05 +00:00
Raymond Hettinger
d36862cf78
Add itertools.izip_longest().
2007-02-21 05:20:38 +00:00
Martin v. Löwis
382abeff0f
Patch #1490190 : posixmodule now includes os.chflags() and os.lchflags()
...
functions on platforms where the underlying system calls are available.
2007-02-19 10:55:19 +00:00
Martin v. Löwis
f228482735
Update 1432399 to removal of _BT_SOCKADDR_MEMB.
2007-02-14 11:30:07 +00:00
Martin v. Löwis
45423a7571
Patch #1432399 : Add HCI sockets.
2007-02-14 10:07:37 +00:00
Martin v. Löwis
b1cc1d407b
Patch #1657276 : Make NETLINK_DNRTMSG conditional.
...
Will backport.
2007-02-13 12:14:19 +00:00
Martin v. Löwis
4c11a92625
Bug #1653736 : Complain about keyword arguments to time.isoformat.
...
Will backport to 2.5.
2007-02-08 09:13:36 +00:00
Raymond Hettinger
6d121f168c
Do not let overflows in enumerate() and count() pass silently.
2007-02-08 00:07:32 +00:00
Raymond Hettinger
5a0217efea
Check for a common user error with defaultdict().
2007-02-07 21:42:17 +00:00
Georg Brandl
7a28447d4c
Bug #1645944 : os.access now returns bool but docstring is not updated
2007-01-27 19:38:50 +00:00
Thomas Heller
4378215474
Fix for #1643874 : When calling SysAllocString, create a PyCObject
...
which will eventually call SysFreeString to free the BSTR resource.
2007-01-25 18:34:14 +00:00
Georg Brandl
b84c13792d
Bug #1486663 : don't reject keyword arguments for subclasses of builtin
...
types.
2007-01-21 10:28:43 +00:00
Martin v. Löwis
aef4c6bc00
Patch #1610575 : Add support for _Bool to struct.
2007-01-21 09:33:07 +00:00
Thomas Heller
2e07810ef0
Replace C++ comments with C comments.
2007-01-17 09:40:34 +00:00
Guido van Rossum
bb2cc698c1
Patch #1635058 by Mark Roberts: ensure that htonl and friends never accept or
...
return negative numbers, per the underlying C implementation.
2007-01-14 17:03:32 +00:00
Gerhard Häring
0741a60ca7
Merged changes from standalone version 2.3.3. This should probably all be
...
merged into the 2.5 maintenance branch:
- self->statement was not checked while fetching data, which could
lead to crashes if you used the pysqlite API in unusual ways.
Closing the cursor and continuing to fetch data was enough.
- Converters are stored in a converters dictionary. The converter name
is uppercased first. The old upper-casing algorithm was wrong and
was replaced by a simple call to the Python string's upper() method
instead.
-Applied patch by Glyph Lefkowitz that fixes the problem with
subsequent SQLITE_SCHEMA errors.
- Improvement to the row type: rows can now be iterated over and have a keys()
method. This improves compatibility with both tuple and dict a lot.
- A bugfix for the subsecond resolution in timestamps.
- Corrected the way the flags PARSE_DECLTYPES and PARSE_COLNAMES are
checked for. Now they work as documented.
- gcc on Linux sucks. It exports all symbols by default in shared
libraries, so if symbols are not unique it can lead to problems with
symbol lookup. pysqlite used to crash under Apache when mod_cache
was enabled because both modules had the symbol cache_init. I fixed
this by applying the prefix pysqlite_ almost everywhere. Sigh.
2007-01-14 01:43:50 +00:00
Thomas Heller
8138c26a83
Fixes for 64-bit Windows: In ctypes.wintypes, correct the definitions
...
of HANDLE, WPARAM, LPARAM data types. Make parameterless foreign
function calls work.
2007-01-11 21:18:56 +00:00
Thomas Heller
9ae562efb1
Must change the version number in the _ctypes extension as well.
2007-01-10 20:51:19 +00:00
Raymond Hettinger
51c2f6cd18
Fix zero-length corner case for iterating over a mutating deque.
2007-01-08 18:09:20 +00:00
Brett Cannon
d14ef77ae1
Silence a warning from gcc 4.0.1 by specifying a function's parameter list is
...
'void' instead of just a set of empty parentheses.
2007-01-05 21:45:09 +00:00
Gregory P. Smith
11a70c3c96
bump module version to match supported berkeleydb version
2007-01-05 02:06:17 +00:00
Gregory P. Smith
8b96a35d14
Support linking of the bsddb module against BerkeleyDB 4.5.x
...
(will backport to 2.5)
2007-01-05 01:59:42 +00:00
Martin v. Löwis
7b7c9d4208
Bug #1566280 : Explicitly invoke threading._shutdown from Py_Main,
...
to avoid relying on atexit.
Will backport to 2.5.
2007-01-04 21:06:12 +00:00
Walter Dörwald
fd7e162eb9
Fix typo.
2006-12-21 18:06:30 +00:00
Andrew M. Kuchling
8d0baae7cd
Comment typo
2006-12-19 14:29:04 +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
Martin v. Löwis
046c4d13be
Patch #1544279 : Improve thread-safety of the socket module by moving
...
the sock_addr_t storage out of the socket object.
Will backport to 2.5.
2006-12-03 11:23:45 +00:00
Thomas Heller
ef583a4992
Fix #1563807 : _ctypes built on AIX fails with ld ffi error.
...
The contents of ffi_darwin.c must be compiled unless __APPLE__ is
defined and __ppc__ is not.
Will backport.
2006-11-28 20:21:54 +00:00
Thomas Heller
25d208bd46
Fix bug #1598620 : A ctypes structure cannot contain itself.
2006-11-24 18:45:39 +00:00
Neal Norwitz
4fe442383d
Bug #1599782 : Fix segfault on bsddb.db.DB().type().
...
The problem is that _DB_get_type() can't be called without the GIL
because it calls a bunch of PyErr_* APIs when an error occurs.
There were no other cases in this file that it was called without the GIL.
Removing the BEGIN/END THREAD around _DB_get_type() made everything work.
Will backport.
2006-11-21 05:26:22 +00:00
Neal Norwitz
45e230a8e1
Speed up function calls into the math module by using METH_O.
...
There should be no functional changes. However, the error msgs are
slightly different. Also verified that the module dict is not NULL on init.
2006-11-19 21:26:53 +00:00
Martin v. Löwis
cffcc8b195
Make cStringIO.truncate raise IOError for negative
...
arguments (even for -1). Fixes the last bit of
#1359365 .
2006-11-19 10:41:41 +00:00
Georg Brandl
25aabf4cbb
Bug #1588217 : don't parse "= " as a soft line break in binascii's
...
a2b_qp() function, instead leave it in the string as quopri.decode()
does.
2006-11-16 17:08:45 +00:00
Walter Dörwald
6fc2382883
Replace C++ comment with C comment (fixes SF bug #1593525 ).
2006-11-09 16:23:26 +00:00
Neal Norwitz
97a57220e8
Fix crash in test on HP-UX. Apparently, it's not possible to delete a lock if
...
it's held (even by the current thread).
Will backport.
2006-10-28 21:17:51 +00:00
Neal Norwitz
837ce9389e
Add some asserts. In sysmodule, I think these were to try to silence
...
some warnings from Klokwork. They verify the assumptions of the format
of svn version output.
The assert in the thread module helped debug a problem on HP-UX.
2006-10-28 21:15:30 +00:00
Martin v. Löwis
0347a9a491
Get DBL_MAX from float.h not values.h. Will backport.
2006-10-27 07:06:52 +00:00
Martin v. Löwis
443ccc73f3
Check for values.h. Will backport.
2006-10-27 06:42:27 +00:00
Martin v. Löwis
b5bc537c5e
Patch #1549049 : Rewrite type conversion in structmember.
...
Fixes #1545696 and #1566140 . Will backport to 2.5.
2006-10-27 06:16:31 +00:00
Martin v. Löwis
1b2f627f96
- Patch #1560695 : Add .note.GNU-stack to ctypes' sysv.S so that
...
ctypes isn't considered as requiring executable stacks.
Will backport to 2.5.
2006-10-22 10:55:15 +00:00
Ronald Oussoren
10168f25ad
Patch #1580674 : with this patch os.readlink uses the filesystem encoding to
...
decode unicode objects and returns an unicode object when the argument is one.
2006-10-22 10:45:18 +00:00