Georg Brandl
5fbf663703
Fix email example.
2007-10-13 13:20:03 +00:00
Gregory P. Smith
d40f126fff
Fixes http://bugs.python.org/issue1233 - bsddb.dbshelve.DBShelf.append
...
was useless due to inverted logic. Also adds a test case for RECNO dbs
to test_dbshelve.
2007-10-12 18:44:06 +00:00
Raymond Hettinger
3a0de08d54
Fix test of count.__repr__() to ignore the 'L' if the count is a long
2007-10-12 17:53:11 +00:00
Martin v. Löwis
d476a400b4
Bug #1216 : Restore support for Visual Studio 2002.
...
Will backport to 2.5.
2007-10-12 08:56:52 +00:00
Neal Norwitz
f3ca169bb4
Get this module to compile with bsddb versions prior to 4.3
2007-10-12 03:52:34 +00:00
Neal Norwitz
15f2661758
Fix Coverity 185-186: If the passed in FILE is NULL, uninitialized memory
...
would be accessed.
Will backport.
2007-10-12 03:05:19 +00:00
Neal Norwitz
a7d329a9b2
Fix Coverity 180: Don't overallocate. We don't need structs, but pointers.
...
Also fix a memory leak.
2007-10-12 03:04:18 +00:00
Neal Norwitz
e545ff30a6
Fix Coverity 168: Close the file before returning (exiting).
2007-10-12 03:03:23 +00:00
Neal Norwitz
088beae1f2
Get rid of compiler warning about retval being used (returned) without
...
being initialized. (gcc warning and Coverity 202)
2007-10-12 03:01:54 +00:00
Neal Norwitz
c740d834ee
Get rid of warnings on a bunch of platforms by using a proper prototype.
2007-10-12 03:01:30 +00:00
Neal Norwitz
e77d1031b0
Get rid of warning about not being able to create an existing directory.
2007-10-12 03:01:01 +00:00
Thomas Heller
7fee6dd2a3
On OS X, use os.uname() instead of gestalt.sysv(...) to get the
...
operating system version. This allows to use ctypes when Python
was configured with --disable-toolbox-glue.
2007-10-11 19:51:32 +00:00
Kurt B. Kaiser
631fee6235
show paste if > 80 columns. Patch 1659326 Tal Einat.
2007-10-10 01:06:47 +00:00
Kurt B. Kaiser
cca976b11c
Allow cursor color change w/o restart. Patch 1725576 Tal Einat.
2007-10-10 00:55:40 +00:00
Raymond Hettinger
68995867d5
Accept Jim Jewett's api suggestion to use None instead of -1 to indicate unbounded deques.
2007-10-10 00:26:46 +00:00
Brett Cannon
77ae87c11e
Remove file-level typedefs that were inconsistently used throughout the file.
...
Just move over to the public API names.
Closes issue1238.
2007-10-10 00:07:50 +00:00
Kurt B. Kaiser
c8f65e69da
Allow interrupt only when executing user code in subprocess
...
Patch 1225 Tal Einat modified from IDLE-Spoon.
2007-10-09 19:31:30 +00:00
Gregory P. Smith
e7f4d84830
remove another sleepycat reference
2007-10-09 18:26:02 +00:00
Gregory P. Smith
b7de61bf49
Use the highest cPickle protocol in bsddb.dbshelve. This comes from
...
sourceforge pybsddb patch 1551443 by w_barnes.
2007-10-09 07:19:11 +00:00
Gregory P. Smith
10bed54ae2
Fix a double free when positioning a database cursor to a non-existant
...
string key (and probably a few other situations with string keys).
This was reported with a patch as pybsddb sourceforge bug 1708868 by
jjjhhhlll at gmail.
2007-10-09 06:50:43 +00:00
Gregory P. Smith
392505391e
Splits Modules/_bsddb.c up into bsddb.h and _bsddb.c and adds a C API
...
object available as bsddb.db.api. This is based on the patch submitted
by Duncan Grisby here:
http://sourceforge.net/tracker/index.php?func=detail&aid=1551895&group_id=13900&atid=313900
See this thread for additional info:
http://sourceforge.net/mailarchive/forum.php?thread_name=E1GAVDK-0002rk-Iw%40apasphere.com&forum_name=pybsddb-users
It also cleans up the code a little by removing some ifdef/endifs for
python prior to 2.1 and for unsupported Berkeley DB <= 3.2.
2007-10-09 06:02:21 +00:00
Raymond Hettinger
163f622c03
Make the error messages more specific
2007-10-09 01:36:23 +00:00
Andrew M. Kuchling
4b3074c795
Eliminate camelcase function name
2007-10-08 23:23:03 +00:00
Raymond Hettinger
a48a29947a
Eliminate camelcase function name
2007-10-08 21:26:58 +00:00
Georg Brandl
814b04600c
#1199 : docs for tp_as_{number,sequence,mapping}, by Amaury Forgeot d'Arc.
...
No need to merge this to py3k!
2007-10-08 14:12:47 +00:00
Raymond Hettinger
0e1d606116
Better variable names
2007-10-08 10:11:51 +00:00
Raymond Hettinger
b6893f2bf8
Missed a line in the docs
2007-10-08 09:56:29 +00:00
Raymond Hettinger
2115bbc4da
Add comments to NamedTuple code.
...
Let the field spec be either a string or a non-string sequence (suggested by Martin Blais with use cases).
Improve the error message in the case of a SyntaxError (caused by a duplicate field name).
2007-10-08 09:14:28 +00:00
Georg Brandl
a970c22166
Update docstring of sched, also remove an unused assignment.
2007-10-08 08:06:05 +00:00
Georg Brandl
16fd6c4617
#1123 : fix the docs for the str.split(None, sep) case.
...
Also expand a few other methods' docs, which had more info in the deprecated string module docs.
2007-10-08 07:50:24 +00:00
Neal Norwitz
92abad24d6
Ensure that this test will pass even if another test left an unwritable TESTFN.
...
Also use the safe unlink in test_support instead of rolling our own here.
2007-10-06 19:16:28 +00:00
Gregory P. Smith
71e4fb5877
Use the host the author likely meant in the first place. pop.gmail.com is
...
reliable. gmail.org is someones personal domain.
2007-10-06 15:47:37 +00:00
Gregory P. Smith
1475cd8761
Allows BerkeleyDB 4.6.x >= 4.6.21 for the bsddb module.
2007-10-06 07:51:59 +00:00
Gregory P. Smith
e70be5cbb9
Stab in the dark attempt to fix the test_bsddb3 failure on sparc and S-390
...
ubuntu buildbots.
2007-10-06 07:48:10 +00:00
Raymond Hettinger
556b43d936
Restore BEGIN/END THREADS macros which were squashed in the previous checkin
2007-10-05 19:07:31 +00:00
Neal Norwitz
44f326ef2a
Add a note about fixing some more warnings found by Coverity.
2007-10-05 05:29:17 +00:00
Neal Norwitz
5a29dd30e0
Fix Coverity #159 .
...
This code was broken if save() returned a negative number since i contained
a boolean value and then we compared i < 0 which should never be true.
Will backport (assuming it's necessary)
2007-10-05 05:01:38 +00:00
Neal Norwitz
3adac21762
Fix Coverity #158 : Check the correct variable.
2007-10-05 03:41:19 +00:00
Neal Norwitz
c47cf7debe
dict could be NULL, so we need to XDECREF.
...
Fix a compiler warning about passing a PyTypeObject* instead of PyObject*.
2007-10-05 03:39:17 +00:00
Fred Drake
06f8067acf
move descriptions of ac_(in|out)_buffer_size to the right place
...
http://bugs.python.org/issue1053
2007-10-05 02:48:32 +00:00
Raymond Hettinger
a7fc4b13e0
Add __asdict__() to NamedTuple and refine the docs.
...
Add maxlen support to deque() and fixup docs.
Partially fix __reduce__(). The None as a third arg was no longer supported.
Still needs work on __reduce__() to handle recursive inputs.
2007-10-05 02:47:07 +00:00
Fred Drake
c9b7163da5
wrap lines to <80 characters before fixing errors
2007-10-05 02:46:12 +00:00
Neal Norwitz
6ba1a5f51b
Coverity #151 : Remove deadcode.
...
All this code already exists above starting at line 653.
2007-10-04 06:00:48 +00:00
Kurt B. Kaiser
e3fde8f8cd
configDialog cleanup. Patch 1730217 Tal Einat.
2007-10-04 03:11:12 +00:00
Kurt B. Kaiser
d5f4910afd
textView cleanup. Patch 1718043 Tal Einat.
...
M idlelib/EditorWindow.py
M idlelib/aboutDialog.py
M idlelib/textView.py
M idlelib/NEWS.txt
2007-10-04 02:53:07 +00:00
Kurt B. Kaiser
0b634efcbc
Clean up EditorWindow close.
2007-10-04 02:09:17 +00:00
Kurt B. Kaiser
85897c9b38
Remove unused theme that was causing a fault in p3k.
2007-10-04 02:07:50 +00:00
Kurt B. Kaiser
67bd62fd6c
Assume that the user knows when he wants to end the line; don't insert
...
something he didn't select or complete.
2007-10-04 01:49:54 +00:00
Raymond Hettinger
50e90e265f
itertools.count() no longer limited to sys.maxint.
2007-10-04 00:20:27 +00:00
Raymond Hettinger
8f6693701c
enumerate() is no longer bounded to using sequences shorter than LONG_MAX. The possibility of overflow was sending some newsgroup posters into a tizzy.
2007-10-03 21:18:11 +00:00