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
Mark Summerfield
d92e871ad8
Added note in footnote about string comparisons about
...
unicodedata.normalize().
2007-10-03 08:53:21 +00:00
Facundo Batista
be6c7ba72a
Added a class to store the digits of log(10), so that they can be made
...
available when necessary without recomputing. Thanks Mark Dickinson
2007-10-02 18:21:18 +00:00
Facundo Batista
1a191df14d
Made the various is_* operations return booleans. This was discussed
...
with Cawlishaw by mail, and he basically confirmed that to these is_*
operations, there's no need to return Decimal(0) and Decimal(1) if
the language supports the False and True booleans.
Also added a few tests for the these functions in extra.decTest, since
they are mostly untested (apart from the doctests).
Thanks Mark Dickinson
2007-10-02 17:01:24 +00:00
Brett Cannon
31ba8480d8
Fix error introduced by r58288; if a tuple is length 0 return its repr and
...
don't worry about any self-referring tuples.
2007-09-30 20:37:19 +00:00
Brett Cannon
0b14f243c4
tuple.__repr__ did not consider a reference loop as it is not possible from
...
Python code; but it is possible from C. object.__str__ had the issue of not
expecting a type to doing something within it's tp_str implementation that
could trigger an infinite recursion, but it could in C code.. Both found
thanks to BaseException and how it handles its repr.
Closes issue #1686386 . Thanks to Thomas Herve for taking an initial stab at
coming up with a solution.
2007-09-30 19:45:10 +00:00
Vinay Sajip
c537881caa
Change to LogRecord.__init__() to fix #1206 . Note that archaic use of type(x) == types.DictType is because of keeping 1.5.2 compatibility. While this is much less relevant these days, there probably needs to be a separate commit for removing all archaic constructs at the same time.
2007-09-27 07:35:10 +00:00
Vinay Sajip
66ba9ffcb1
Minor date change.
2007-09-27 06:56:13 +00:00
Georg Brandl
ba2e519082
#1208 : document match object's boolean value.
2007-09-27 06:26:58 +00:00
Vinay Sajip
90d93615d6
Change to basicConfig() to fix #1021 .
2007-09-27 05:38:51 +00:00
Vinay Sajip
4df367c08d
Change to flush and close logic to fix #1760556 .
2007-09-27 05:34:45 +00:00
Andrew M. Kuchling
99479ebf9e
Add various items
2007-09-25 00:09:42 +00:00
Andrew M. Kuchling
6d407e4d3d
Typo fix
2007-09-24 23:46:28 +00:00
Andrew M. Kuchling
9c90635bcb
Remove stray odd character; grammar fix
2007-09-24 23:45:51 +00:00
Georg Brandl
9b915673b7
#1177 : accept 2xx responses for https too, not only http.
2007-09-24 18:08:24 +00:00
Georg Brandl
e4186252b1
#1196 : document default radix for int().
2007-09-24 17:59:28 +00:00
Georg Brandl
97ca58370a
Fix typo and double word.
2007-09-24 17:55:47 +00:00
Guido van Rossum
ad8fb0d47c
Patch # 188 by Philip Jenvey.
...
Make tell() mark CRLF as a newline.
With unit test.
2007-09-22 20:18:03 +00:00