Commit Graph

35956 Commits

Author SHA1 Message Date
Georg Brandl 44850ea12a Backport rev 51866-51868 from trunk (sqlite3 documentation fixes). 2006-09-14 05:05:42 +00:00
Martin v. Löwis af22c52fd4 Add sgml_input.html. 2006-09-12 09:16:28 +00:00
Anthony Baxter 29be05444f Tagging for release of Python 2.5c2 2006-09-12 01:00:45 +00:00
Anthony Baxter 72345f2a0b remove 2.5 final section from NEWS.txt until after rc2 (reduced confusion) 2006-09-11 15:32:50 +00:00
Anthony Baxter 2d4183c5f6 preparing for 2.5c2 2006-09-11 15:30:13 +00:00
Neal Norwitz 0bcafac29e Building with HP's cc on HP-UX turned up a couple of problems.
_PyGILState_NoteThreadState was declared as static inconsistently.
Make it static as it's not necessary outside of this module.

Some tests failed because errno was reset to 0. (I think the tests
that failed were at least: test_fcntl and test_mailbox).
Ensure that errno doesn't change after a call to Py_END_ALLOW_THREADS.
This only affected debug builds.

This needs to be ported to HEAD.  I'll try to remember to do that tomorrow.
(Anyone, feel free to port it.)
2006-09-11 08:51:17 +00:00
Neal Norwitz ece448efa0 Properly handle a NULL returned from PyArena_New().
Klocwork #364.  Will port to head.
2006-09-11 04:06:23 +00:00
Neal Norwitz 48829ba61d As mentioned on python-dev, reverting patch #1504333 because it introduced
an infinite loop in rev 47154.

This patch also adds a test to prevent the regression.

Will backport to 2.4 and head later.
2006-09-11 04:05:18 +00:00
Neal Norwitz 2e488fdebf Add NEWS entries for ctypes backports. 2006-09-11 04:03:07 +00:00
Neal Norwitz 5728c27c74 Backport rev 51820 from Thomas Heller
The cast function did not accept c_char_p or c_wchar_p instances
as first argument, and failed with a 'bad argument to internal function'
error message.
2006-09-11 04:02:43 +00:00
Neal Norwitz 71e2aa0cc5 Backport rev 51819 from Thomas Heller
Anonymous structure fields that have a bit-width specified did not work,
and they gave a strange error message from PyArg_ParseTuple:
   function takes exactly 2 arguments (3 given).
2006-09-11 04:01:57 +00:00
Brett Cannon 19d76c5aa8 Remove __unicode__ method so that ``unicode(BaseException)`` succeeds.
Fixes bug #1551432.
2006-09-09 07:18:44 +00:00
Andrew M. Kuchling b3304c129f Fix typo in example 2006-09-08 14:06:42 +00:00
Andrew M. Kuchling 9cd0036a2b Use native SQLite types 2006-09-08 14:03:19 +00:00
Andrew M. Kuchling f36dddafc1 Explain SQLite a bit more clearly 2006-09-08 13:36:57 +00:00
Nick Coghlan 62f19e4281 Backport inspect.py fix from rev 51803 2006-09-08 10:01:23 +00:00
Georg Brandl 8de403a56a Backport rev. 51798 from trunk:
fix setobject.c refcounts and error checks.
2006-09-08 06:02:26 +00:00
Hye-Shik Chang 137ae0cf7c Backport from trunk r51737:
Fixed a few bugs on cjkcodecs:
- gbk and gb18030 codec now handle U+30FB KATAKANA MIDDLE DOT correctly.
- iso2022_jp_2 codec now encodes into G0 for KS X 1001, GB2312
  codepoints to conform the standard.
- iso2022_jp_3 and iso2022_jp_2004 codec can encode JIS X 0213:2
  codepoints now.
2006-09-07 12:50:38 +00:00
Ronald Oussoren d6872b1ecf Remove one glaring error and update several version numbers. 2006-09-07 12:00:43 +00:00
Gustavo Niemeyer d83e7994f2 No, the problem was actually because buildbot uses a StringIO in
place of sys.stdout while running tests. Removing one more test
to make buildbot happy.
2006-09-06 23:15:24 +00:00
Gustavo Niemeyer d1b1b8c882 Fixed bug #1531862: Do not close standard file descriptors in subprocess.
Let's try that once more. Buildbots were broken last time, but probably
because tests were sending data to stderr for testing it (sending to a
file doesn't touch the problem).

The fix is still the same, but tests were reduced (removing tests to
be able to fix something is weird, but oh well).
2006-09-06 22:44:51 +00:00
Marc-André Lemburg 8a230b50a1 Backport bug fix for SF bug report #1546372. 2006-09-06 20:38:50 +00:00
Georg Brandl 4dc095249e Fix missing import of the types module in logging.config.
(backport from rev. 51785)
2006-09-06 20:06:27 +00:00
Thomas Heller 291a1b89c6 Backport of r51379 from trunk:
Add asserts to check for 'impossible' NULL values, with comments.
In one place where I'm not 1000% sure about the non-NULL, raise
a RuntimeError for safety.

This should fix the klocwork issues that Neal sent me.  If so,
it should be applied to the release25-maint branch also.
2006-09-06 17:48:56 +00:00
Georg Brandl ecab623e13 Bug #1542051: Exceptions now correctly call PyObject_GC_UnTrack.
Also make sure that every exception class has __module__ set to
'exceptions'.
 (backport)
2006-09-06 06:47:02 +00:00
Georg Brandl 37a9e579ec Bug #1550983: emit better error messages for erroneous relative
imports (if not in package and if beyond toplevel package).
 (backport from rev. 51765)
2006-09-06 06:09:34 +00:00
Georg Brandl b20cb33f7f Bug #1551427: fix a wrong NULL pointer check in the win32 version
of os.urandom().
 (backport from rev. 51762)
2006-09-06 06:04:06 +00:00
Neal Norwitz f3ce2ab2f1 Revert 51759 because it broke all the buildbots 2006-09-06 03:58:59 +00:00
Gustavo Niemeyer 63d675ce82 Backporting fix for bug #1531862, committed in 51758, into 2.5,
making subprocess not close standard file descriptors.
2006-09-06 02:05:35 +00:00
Sean Reifscheider d7357791e8 Fixing an improperly escaped grep in .spec file, pointed out by Neal Norwitz. 2006-09-05 13:39:06 +00:00
Andrew M. Kuchling a8ed1b01a1 Rearrange example a bit, and show rpartition() when separator is not found 2006-09-05 13:11:33 +00:00
Georg Brandl 08f6f476d9 Bug #1552618: change docs of dict.has_key() to reflect recommendation
to use "in".
 (backport from rev. 51740)
2006-09-05 12:45:18 +00:00
Neal Norwitz 9a2447943e Add another NEWS entry for a fix already in 2.5c1 2006-09-05 04:49:45 +00:00
Neal Norwitz 24b6f208ae Add some NEWS for fixes already in 2.5c1 2006-09-05 04:43:56 +00:00
Neal Norwitz fe50f8e961 Backport 51669: Make sure memory is properly cleaned up in file_init (even though this should not be able to happen since we already parsed the args) 2006-09-05 04:32:06 +00:00
Neal Norwitz 3b3aae013b Bug #1520864 (again): unpacking singleton tuples in list comprehensions and
generator expressions (x for x, in ... ) works again.

Sigh, I only fixed for loops the first time, not list comps and genexprs too.
I couldn't find any more unpacking cases where there is a similar bug lurking.
2006-09-05 03:56:01 +00:00
Neal Norwitz 541a48b262 Patch #1540470, for OpenBSD 4.0. Backport candidate for 2.[34]. 2006-09-05 02:54:42 +00:00
Neal Norwitz 716692ff13 Backport fix from 51683. 2006-09-05 02:33:44 +00:00
Neal Norwitz 7ae5f29465 Backport fix for SF bug #1550714, itertools.tee raises SystemError 2006-09-05 02:30:10 +00:00
Neal Norwitz 29a5fdb7ca Fix str.rpartition(sep) when sep is not found in str.
Partially from SF patch #1551339, but also taken from head.
2006-09-05 02:21:38 +00:00
Neal Norwitz 8dc71f2161 This was found by Guido AFAIK on p3yk (sic) branch. 2006-09-05 02:00:21 +00:00
Neal Norwitz d3da7d394a Fix SF bug #1546288, crash in dict_equal 2006-09-05 01:54:06 +00:00
Neal Norwitz 8568752268 Fix SF #1552093, eval docstring typo (3 ps in mapping) 2006-09-05 01:52:00 +00:00
Tim Peters cbdd350dd7 i_divmod(): As discussed on Python-Dev, changed the overflow
checking to live happily with recent gcc optimizations that
assume signed integer arithmetic never overflows.
2006-09-05 01:47:53 +00:00
Neal Norwitz 3467352fe2 SF patch #1551340 ] Updated spec file for 2.5 release (c2) 2006-09-05 01:36:43 +00:00
Neal Norwitz 8bd1c0d8ce Backport docos 2006-09-03 20:01:05 +00:00
Neal Norwitz 665a3ae0af Backport doco 2006-09-03 20:00:39 +00:00
Nick Coghlan 08c496d81d NEWS entry for decimal module changes 2006-09-03 01:13:06 +00:00
Nick Coghlan c48daf5bc4 Backport of decimal module context management updates from rev 51694 to 2.5 release branch 2006-09-03 01:08:30 +00:00
Neal Norwitz f07b590d7e Backport 51663:
Doc fix: hashlib objects don't always return a digest of 16 bytes.
2006-09-03 00:04:26 +00:00