]> granicus.if.org Git - python/log
python
18 years agoBug #1546052: clarify that PyString_FromString(AndSize) copies the
Georg Brandl [Sat, 30 Sep 2006 12:03:02 +0000 (12:03 +0000)]
Bug #1546052: clarify that PyString_FromString(AndSize) copies the
string pointed to by its parameter.
 (backport from rev. 52078)

18 years agoBug #1446043: correctly raise a LookupError if an encoding name given
Georg Brandl [Sat, 30 Sep 2006 11:22:35 +0000 (11:22 +0000)]
Bug #1446043: correctly raise a LookupError if an encoding name given
to encodings.search_function() contains a dot.
 (backport from rev. 52075)

18 years agoBug #1556784: allow format strings longer than 127 characters in
Georg Brandl [Sat, 30 Sep 2006 11:17:43 +0000 (11:17 +0000)]
Bug #1556784: allow format strings longer than 127 characters in
datetime's strftime function.
 (backport from rev. 52072)

18 years agoBug #1560617: in pyclbr, return full module name not only for classes,
Georg Brandl [Sat, 30 Sep 2006 11:06:55 +0000 (11:06 +0000)]
Bug #1560617: in pyclbr, return full module name not only for classes,
but also for functions.
 (backport from rev. 52069)

18 years agoBug #1566602: correct failure of posixpath unittest when $HOME ends
Georg Brandl [Sat, 30 Sep 2006 09:13:29 +0000 (09:13 +0000)]
Bug #1566602: correct failure of posixpath unittest when $HOME ends
with a slash.
 (backport from rev. 52065)

18 years agoBug #1566663: remove obsolete example from datetime docs.
Georg Brandl [Sat, 30 Sep 2006 09:06:49 +0000 (09:06 +0000)]
Bug #1566663: remove obsolete example from datetime docs.
 (backport from rev. 52063)

18 years agoBug #1566800: make sure that EnvironmentError can be called with any
Georg Brandl [Sat, 30 Sep 2006 09:03:45 +0000 (09:03 +0000)]
Bug #1566800: make sure that EnvironmentError can be called with any
number of arguments, as was the case in Python 2.4.
 (backport from rev. 52061)

18 years agoPatch #1567691: super() and new.instancemethod() now don't accept
Georg Brandl [Sat, 30 Sep 2006 08:43:50 +0000 (08:43 +0000)]
Patch #1567691: super() and new.instancemethod() now don't accept
keyword arguments any more (previously they accepted them, but didn't
use them).
 (backport from rev. 52058)

18 years agoBug #1565661: in webbrowser, split() the command for the default
Georg Brandl [Sat, 30 Sep 2006 07:32:00 +0000 (07:32 +0000)]
Bug #1565661: in webbrowser, split() the command for the default
GNOME browser in case it is a command with args.
 (backport from rev. 52056)

18 years agoBug #1567375: a minor logical glitch in example description.
Georg Brandl [Sat, 30 Sep 2006 07:24:56 +0000 (07:24 +0000)]
Bug #1567375: a minor logical glitch in example description.
 (backport from rev. 52053)

18 years agofix: DB.stat flags and txn keyword arguments were backwards.
Gregory P. Smith [Sat, 30 Sep 2006 06:05:07 +0000 (06:05 +0000)]
fix: DB.stat flags and txn keyword arguments were backwards.

18 years agoSF bug #1567976 : fix typo(backport from r52048)
George Yoshida [Sat, 30 Sep 2006 05:22:23 +0000 (05:22 +0000)]
SF bug #1567976 : fix typo(backport from r52048)

Since this paragraph is about exception's message attribute(2.5 feature),
I will not backport to 2.4 branch.

18 years agoMake examples do error checking on Py_InitModule
Andrew M. Kuchling [Wed, 27 Sep 2006 19:24:27 +0000 (19:24 +0000)]
Make examples do error checking on Py_InitModule

18 years agoBackport rev. 51972:
Georg Brandl [Mon, 25 Sep 2006 07:04:10 +0000 (07:04 +0000)]
Backport rev. 51972:

Bug #1557232: fix seg fault with def f((((x)))) and def f(((x),)).

These tests should be improved.  Hopefully this fixes variations when
flipping back and forth between fpdef and fplist.

18 years agoBackport rev. 51971:
Georg Brandl [Mon, 25 Sep 2006 06:58:00 +0000 (06:58 +0000)]
Backport rev. 51971:

Fix %zd string formatting on Mac OS X so it prints negative numbers.

In addition to testing positive numbers, verify negative numbers work in configure.
In order to avoid compiler warnings on OS X 10.4, also change the order of the check
for the format character to use (PY_FORMAT_SIZE_T) in the sprintf format
for Py_ssize_t.  This patch changes PY_FORMAT_SIZE_T from "" to "l" if it wasn't
defined at configure time.  Need to verify the buildbot results.

18 years agoBackport rev. 51987: superfluous semicola.
Georg Brandl [Mon, 25 Sep 2006 06:53:42 +0000 (06:53 +0000)]
Backport rev. 51987: superfluous semicola.

18 years agoFix a bug in traceback.format_exception_only() that led to an error
Georg Brandl [Sun, 24 Sep 2006 12:50:28 +0000 (12:50 +0000)]
Fix a bug in traceback.format_exception_only() that led to an error
being raised when print_exc() was called without an exception set.
In version 2.4, this printed "None", restored that behavior.
 (backport from rev. 51995)

18 years agoFix a bug in the parser's future statement handling that led to "with"
Georg Brandl [Sun, 24 Sep 2006 12:35:40 +0000 (12:35 +0000)]
Fix a bug in the parser's future statement handling that led to "with"
not being recognized as a keyword after, e.g., this statement:
from __future__ import division, with_statement
 (backport from rev. 51993)

18 years agoFix webbrowser.BackgroundBrowser on Windows.
Georg Brandl [Sun, 24 Sep 2006 10:36:08 +0000 (10:36 +0000)]
Fix webbrowser.BackgroundBrowser on Windows.
 (backport from rev. 51991)

18 years agoSF Bug #1563963, add missing word and cleanup first sentance
Neal Norwitz [Sat, 23 Sep 2006 18:10:12 +0000 (18:10 +0000)]
SF Bug #1563963, add missing word and cleanup first sentance

18 years agoadded itertools.count(-n) fix
Jack Diederich [Thu, 21 Sep 2006 20:38:39 +0000 (20:38 +0000)]
added itertools.count(-n) fix

18 years agobackport of r51950
Jack Diederich [Thu, 21 Sep 2006 18:32:11 +0000 (18:32 +0000)]
backport of r51950
* regression bug, count_next was coercing a Py_ssize_t to an unsigned Py_size_t
  which breaks negative counts
* added test for negative numbers

18 years agoBackport of fix to allow exception instances to be sliced once again.
Brett Cannon [Thu, 21 Sep 2006 18:12:15 +0000 (18:12 +0000)]
Backport of fix to allow exception instances to be sliced once again.

18 years agoTagging for release of Python 2.5
Anthony Baxter [Tue, 19 Sep 2006 01:05:18 +0000 (01:05 +0000)]
Tagging for release of Python 2.5

18 years agoPreparing for 2.5 final. v2.5
Anthony Baxter [Mon, 18 Sep 2006 06:51:50 +0000 (06:51 +0000)]
Preparing for 2.5 final.

(damn, it's nice to see the line
  #define PY_VERSION              "2.5"
in patchlevel.h)

18 years agobetter wording
Anthony Baxter [Mon, 18 Sep 2006 06:45:59 +0000 (06:45 +0000)]
better wording

18 years agoMention that GCC 4.1 is also affected, and that
Martin v. Löwis [Mon, 18 Sep 2006 06:23:06 +0000 (06:23 +0000)]
Mention that GCC 4.1 is also affected, and that
adding -fwrapv helps.

18 years agoDiscourage using GCC 4.2 for Python.
Martin v. Löwis [Mon, 18 Sep 2006 06:00:52 +0000 (06:00 +0000)]
Discourage using GCC 4.2 for Python.

18 years agoWorkaround for bug #1558983
Ronald Oussoren [Sun, 17 Sep 2006 18:40:15 +0000 (18:40 +0000)]
Workaround for bug #1558983

There is an issue with custom icons on directories in the 2.5c2 installer,
don't set a custom icon on "/Applications/MacPython 2.5" for now.

Also make sure that the installer doesn't crap out when the Makefile in the
system's python installation has other customizations than we expect.

18 years agorevise explanation of returns_unicode to reflect bool values
Fred Drake [Fri, 15 Sep 2006 16:10:25 +0000 (16:10 +0000)]
revise explanation of returns_unicode to reflect bool values
and to include the default value

18 years ago- fix module name in links in formatted documentation
Fred Drake [Fri, 15 Sep 2006 14:14:55 +0000 (14:14 +0000)]
- fix module name in links in formatted documentation
- minor markup cleanup

18 years agoBackport uuid doc cleanup from rev. 51883.
Georg Brandl [Fri, 15 Sep 2006 05:26:17 +0000 (05:26 +0000)]
Backport uuid doc cleanup from rev. 51883.

18 years agoCorrect elementtree module index entry.
Georg Brandl [Fri, 15 Sep 2006 05:20:57 +0000 (05:20 +0000)]
Correct elementtree module index entry.
 (backport)

18 years agoBackport rev 51866-51868 from trunk (sqlite3 documentation fixes).
Georg Brandl [Thu, 14 Sep 2006 05:05:42 +0000 (05:05 +0000)]
Backport rev 51866-51868 from trunk (sqlite3 documentation fixes).

18 years agoAdd sgml_input.html.
Martin v. Löwis [Tue, 12 Sep 2006 09:16:28 +0000 (09:16 +0000)]
Add sgml_input.html.

18 years agoTagging for release of Python 2.5c2
Anthony Baxter [Tue, 12 Sep 2006 01:00:45 +0000 (01:00 +0000)]
Tagging for release of Python 2.5c2

18 years agoremove 2.5 final section from NEWS.txt until after rc2 (reduced confusion) v2.5c2
Anthony Baxter [Mon, 11 Sep 2006 15:32:50 +0000 (15:32 +0000)]
remove 2.5 final section from NEWS.txt until after rc2 (reduced confusion)

18 years agopreparing for 2.5c2
Anthony Baxter [Mon, 11 Sep 2006 15:30:13 +0000 (15:30 +0000)]
preparing for 2.5c2

18 years agoBuilding with HP's cc on HP-UX turned up a couple of problems.
Neal Norwitz [Mon, 11 Sep 2006 08:51:17 +0000 (08:51 +0000)]
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.)

18 years agoProperly handle a NULL returned from PyArena_New().
Neal Norwitz [Mon, 11 Sep 2006 04:06:23 +0000 (04:06 +0000)]
Properly handle a NULL returned from PyArena_New().

Klocwork #364.  Will port to head.

18 years agoAs mentioned on python-dev, reverting patch #1504333 because it introduced
Neal Norwitz [Mon, 11 Sep 2006 04:05:18 +0000 (04:05 +0000)]
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.

18 years agoAdd NEWS entries for ctypes backports.
Neal Norwitz [Mon, 11 Sep 2006 04:03:07 +0000 (04:03 +0000)]
Add NEWS entries for ctypes backports.

18 years agoBackport rev 51820 from Thomas Heller
Neal Norwitz [Mon, 11 Sep 2006 04:02:43 +0000 (04:02 +0000)]
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.

18 years agoBackport rev 51819 from Thomas Heller
Neal Norwitz [Mon, 11 Sep 2006 04:01:57 +0000 (04:01 +0000)]
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).

18 years agoRemove __unicode__ method so that ``unicode(BaseException)`` succeeds.
Brett Cannon [Sat, 9 Sep 2006 07:18:44 +0000 (07:18 +0000)]
Remove __unicode__ method so that ``unicode(BaseException)`` succeeds.

Fixes bug #1551432.

18 years agoFix typo in example
Andrew M. Kuchling [Fri, 8 Sep 2006 14:06:42 +0000 (14:06 +0000)]
Fix typo in example

18 years agoUse native SQLite types
Andrew M. Kuchling [Fri, 8 Sep 2006 14:03:19 +0000 (14:03 +0000)]
Use native SQLite types

18 years agoExplain SQLite a bit more clearly
Andrew M. Kuchling [Fri, 8 Sep 2006 13:36:57 +0000 (13:36 +0000)]
Explain SQLite a bit more clearly

18 years agoBackport inspect.py fix from rev 51803
Nick Coghlan [Fri, 8 Sep 2006 10:01:23 +0000 (10:01 +0000)]
Backport inspect.py fix from rev 51803

18 years agoBackport rev. 51798 from trunk:
Georg Brandl [Fri, 8 Sep 2006 06:02:26 +0000 (06:02 +0000)]
Backport rev. 51798 from trunk:
fix setobject.c refcounts and error checks.

18 years agoBackport from trunk r51737:
Hye-Shik Chang [Thu, 7 Sep 2006 12:50:38 +0000 (12:50 +0000)]
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.

18 years agoRemove one glaring error and update several version numbers.
Ronald Oussoren [Thu, 7 Sep 2006 12:00:43 +0000 (12:00 +0000)]
Remove one glaring error and update several version numbers.

18 years agoNo, the problem was actually because buildbot uses a StringIO in
Gustavo Niemeyer [Wed, 6 Sep 2006 23:15:24 +0000 (23:15 +0000)]
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.

18 years agoFixed bug #1531862: Do not close standard file descriptors in subprocess.
Gustavo Niemeyer [Wed, 6 Sep 2006 22:44:51 +0000 (22:44 +0000)]
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).

18 years agoBackport bug fix for SF bug report #1546372.
Marc-André Lemburg [Wed, 6 Sep 2006 20:38:50 +0000 (20:38 +0000)]
Backport bug fix for SF bug report #1546372.

18 years agoFix missing import of the types module in logging.config.
Georg Brandl [Wed, 6 Sep 2006 20:06:27 +0000 (20:06 +0000)]
Fix missing import of the types module in logging.config.
 (backport from rev. 51785)

18 years agoBackport of r51379 from trunk:
Thomas Heller [Wed, 6 Sep 2006 17:48:56 +0000 (17:48 +0000)]
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.

18 years agoBug #1542051: Exceptions now correctly call PyObject_GC_UnTrack.
Georg Brandl [Wed, 6 Sep 2006 06:47:02 +0000 (06:47 +0000)]
Bug #1542051: Exceptions now correctly call PyObject_GC_UnTrack.
Also make sure that every exception class has __module__ set to
'exceptions'.
 (backport)

18 years agoBug #1550983: emit better error messages for erroneous relative
Georg Brandl [Wed, 6 Sep 2006 06:09:34 +0000 (06:09 +0000)]
Bug #1550983: emit better error messages for erroneous relative
imports (if not in package and if beyond toplevel package).
 (backport from rev. 51765)

18 years agoBug #1551427: fix a wrong NULL pointer check in the win32 version
Georg Brandl [Wed, 6 Sep 2006 06:04:06 +0000 (06:04 +0000)]
Bug #1551427: fix a wrong NULL pointer check in the win32 version
of os.urandom().
 (backport from rev. 51762)

18 years agoRevert 51759 because it broke all the buildbots
Neal Norwitz [Wed, 6 Sep 2006 03:58:59 +0000 (03:58 +0000)]
Revert 51759 because it broke all the buildbots

18 years agoBackporting fix for bug #1531862, committed in 51758, into 2.5,
Gustavo Niemeyer [Wed, 6 Sep 2006 02:05:35 +0000 (02:05 +0000)]
Backporting fix for bug #1531862, committed in 51758, into 2.5,
making subprocess not close standard file descriptors.

18 years agoFixing an improperly escaped grep in .spec file, pointed out by Neal Norwitz.
Sean Reifscheider [Tue, 5 Sep 2006 13:39:06 +0000 (13:39 +0000)]
Fixing an improperly escaped grep in .spec file, pointed out by Neal Norwitz.

18 years agoRearrange example a bit, and show rpartition() when separator is not found
Andrew M. Kuchling [Tue, 5 Sep 2006 13:11:33 +0000 (13:11 +0000)]
Rearrange example a bit, and show rpartition() when separator is not found

18 years agoBug #1552618: change docs of dict.has_key() to reflect recommendation
Georg Brandl [Tue, 5 Sep 2006 12:45:18 +0000 (12:45 +0000)]
Bug #1552618: change docs of dict.has_key() to reflect recommendation
to use "in".
 (backport from rev. 51740)

18 years agoAdd another NEWS entry for a fix already in 2.5c1
Neal Norwitz [Tue, 5 Sep 2006 04:49:45 +0000 (04:49 +0000)]
Add another NEWS entry for a fix already in 2.5c1

18 years agoAdd some NEWS for fixes already in 2.5c1
Neal Norwitz [Tue, 5 Sep 2006 04:43:56 +0000 (04:43 +0000)]
Add some NEWS for fixes already in 2.5c1

18 years agoBackport 51669: Make sure memory is properly cleaned up in file_init (even though...
Neal Norwitz [Tue, 5 Sep 2006 04:32:06 +0000 (04:32 +0000)]
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)

18 years agoBug #1520864 (again): unpacking singleton tuples in list comprehensions and
Neal Norwitz [Tue, 5 Sep 2006 03:56:01 +0000 (03:56 +0000)]
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.

18 years agoPatch #1540470, for OpenBSD 4.0. Backport candidate for 2.[34].
Neal Norwitz [Tue, 5 Sep 2006 02:54:42 +0000 (02:54 +0000)]
Patch #1540470, for OpenBSD 4.0.  Backport candidate for 2.[34].

18 years agoBackport fix from 51683.
Neal Norwitz [Tue, 5 Sep 2006 02:33:44 +0000 (02:33 +0000)]
Backport fix from 51683.

18 years agoBackport fix for SF bug #1550714, itertools.tee raises SystemError
Neal Norwitz [Tue, 5 Sep 2006 02:30:10 +0000 (02:30 +0000)]
Backport fix for SF bug #1550714, itertools.tee raises SystemError

18 years agoFix str.rpartition(sep) when sep is not found in str.
Neal Norwitz [Tue, 5 Sep 2006 02:21:38 +0000 (02:21 +0000)]
Fix str.rpartition(sep) when sep is not found in str.
Partially from SF patch #1551339, but also taken from head.

18 years agoThis was found by Guido AFAIK on p3yk (sic) branch.
Neal Norwitz [Tue, 5 Sep 2006 02:00:21 +0000 (02:00 +0000)]
This was found by Guido AFAIK on p3yk (sic) branch.

18 years agoFix SF bug #1546288, crash in dict_equal
Neal Norwitz [Tue, 5 Sep 2006 01:54:06 +0000 (01:54 +0000)]
Fix SF bug #1546288, crash in dict_equal

18 years agoFix SF #1552093, eval docstring typo (3 ps in mapping)
Neal Norwitz [Tue, 5 Sep 2006 01:52:00 +0000 (01:52 +0000)]
Fix SF #1552093, eval docstring typo (3 ps in mapping)

18 years agoi_divmod(): As discussed on Python-Dev, changed the overflow
Tim Peters [Tue, 5 Sep 2006 01:47:53 +0000 (01:47 +0000)]
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.

18 years agoSF patch #1551340 ] Updated spec file for 2.5 release (c2)
Neal Norwitz [Tue, 5 Sep 2006 01:36:43 +0000 (01:36 +0000)]
SF patch #1551340 ] Updated spec file for 2.5 release (c2)

18 years agoBackport docos
Neal Norwitz [Sun, 3 Sep 2006 20:01:05 +0000 (20:01 +0000)]
Backport docos

18 years agoBackport doco
Neal Norwitz [Sun, 3 Sep 2006 20:00:39 +0000 (20:00 +0000)]
Backport doco

18 years agoNEWS entry for decimal module changes
Nick Coghlan [Sun, 3 Sep 2006 01:13:06 +0000 (01:13 +0000)]
NEWS entry for decimal module changes

18 years agoBackport of decimal module context management updates from rev 51694 to 2.5 release...
Nick Coghlan [Sun, 3 Sep 2006 01:08:30 +0000 (01:08 +0000)]
Backport of decimal module context management updates from rev 51694 to 2.5 release branch

18 years agoBackport 51663:
Neal Norwitz [Sun, 3 Sep 2006 00:04:26 +0000 (00:04 +0000)]
Backport 51663:
  Doc fix: hashlib objects don't always return a digest of 16 bytes.

18 years agoSF #1547931, fix typo (missing and). Backport candidate for 2.3/2.4 too
Neal Norwitz [Sat, 2 Sep 2006 02:45:43 +0000 (02:45 +0000)]
SF #1547931, fix typo (missing and).  Backport candidate for 2.3/2.4 too

18 years agoevalfile() should be execfile().
Georg Brandl [Fri, 1 Sep 2006 22:30:56 +0000 (22:30 +0000)]
evalfile() should be execfile().
 (backport from rev. 51677)

18 years ago- SF patch #1550263: Enhance and correct unittest docs
Fred Drake [Fri, 1 Sep 2006 03:56:22 +0000 (03:56 +0000)]
- SF patch #1550263: Enhance and correct unittest docs
- various minor cleanups for improved consistency

18 years agoPatch #1545507: Exclude ctypes package in Win64 MSI file.
Martin v. Löwis [Fri, 25 Aug 2006 00:11:38 +0000 (00:11 +0000)]
Patch #1545507: Exclude ctypes package in Win64 MSI file.

18 years agoAlexander Belopolsky pointed out that pos is a size_t
Neal Norwitz [Tue, 22 Aug 2006 13:57:07 +0000 (13:57 +0000)]
Alexander Belopolsky pointed out that pos is a size_t

18 years agopatch for documentation for recent uuid changes (from ping)
Anthony Baxter [Tue, 22 Aug 2006 07:36:06 +0000 (07:36 +0000)]
patch for documentation for recent uuid changes (from ping)

18 years ago- Patch #1541585: fix buffer overrun when performing repr() on
Neal Norwitz [Mon, 21 Aug 2006 22:13:11 +0000 (22:13 +0000)]
- Patch #1541585: fix buffer overrun when performing repr() on
  a unicode string in a build with wide unicode (UCS-4) support.

I will forward port to 2.6.  Can someone backport to 2.4?

18 years agoBackport 51443:
Neal Norwitz [Mon, 21 Aug 2006 20:20:59 +0000 (20:20 +0000)]
Backport 51443:
Handle a few more error conditions.

Klocwork 301 and 302.  Will backport.

18 years agoFix a couple of ssize-t issues reported by Alexander Belopolsky on python-dev
Neal Norwitz [Mon, 21 Aug 2006 18:44:09 +0000 (18:44 +0000)]
Fix a couple of ssize-t issues reported by Alexander Belopolsky on python-dev

18 years agoBackport 51432:
Neal Norwitz [Mon, 21 Aug 2006 18:43:51 +0000 (18:43 +0000)]
Backport 51432:
Fix bug #1543303, tarfile adds padding that breaks gunzip.
Patch # 1543897.  (remove the padding)

18 years agoPatch #1542948: fix urllib2 header casing issue. With new test.
Georg Brandl [Sun, 20 Aug 2006 13:15:43 +0000 (13:15 +0000)]
Patch #1542948: fix urllib2 header casing issue. With new test.
 (backport from rev. 51416)

18 years agoSF #1542693: Remove semi-colon at end of PyImport_ImportModuleEx macro
Neal Norwitz [Sat, 19 Aug 2006 04:19:43 +0000 (04:19 +0000)]
SF #1542693: Remove semi-colon at end of PyImport_ImportModuleEx macro

18 years agoMove initialization of interned strings to before allocating the
Neal Norwitz [Sat, 19 Aug 2006 04:19:14 +0000 (04:19 +0000)]
Move initialization of interned strings to before allocating the
object so we don't leak op.  (Fixes an earlier patch to this code)

Klockwork #350

18 years agoMove assert to after NULL check, otherwise we deref NULL in the assert.
Neal Norwitz [Sat, 19 Aug 2006 04:18:39 +0000 (04:18 +0000)]
Move assert to after NULL check, otherwise we deref NULL in the assert.

Klocwork #307

18 years agoMinor edits
Andrew M. Kuchling [Fri, 18 Aug 2006 13:54:33 +0000 (13:54 +0000)]
Minor edits

18 years agoTypo in tp_clear docs.
Georg Brandl [Fri, 18 Aug 2006 07:35:53 +0000 (07:35 +0000)]
Typo in tp_clear docs.
 (backport from rev. 51368)

18 years agoBug #1541682: Fix example in the "Refcount details" API docs.
Georg Brandl [Fri, 18 Aug 2006 07:28:03 +0000 (07:28 +0000)]
Bug #1541682: Fix example in the "Refcount details" API docs.
Additionally, remove a faulty example showing PySequence_SetItem applied
to a newly created list object and add notes that this isn't a good idea.
 (backport from rev. 51364)