]> granicus.if.org Git - python/log
python
17 years agoNew tests for basic behavior of smtplib.SMTP and
Facundo Batista [Tue, 24 Jul 2007 21:20:42 +0000 (21:20 +0000)]
New tests for basic behavior of smtplib.SMTP and
smtpd.DebuggingServer. Change to use global host & port number
variables. Modified the 'server' to take a string to send back in
order to vary test server responses. Added a test for the reaction of
smtplib.SMTP to a non-200 HELO response. [GSoC - Alan McIntyre]

17 years agoTry to get rid of spurious failure in test_resource on the Debian buildbots by changi...
Nick Coghlan [Tue, 24 Jul 2007 14:39:23 +0000 (14:39 +0000)]
Try to get rid of spurious failure in test_resource on the Debian buildbots by changing the file size limit before attempting to close the file

17 years agoFix an incompatibility between the -i and -m command line switches as reported on...
Nick Coghlan [Tue, 24 Jul 2007 13:58:28 +0000 (13:58 +0000)]
Fix an incompatibility between the -i and -m command line switches as reported on python-dev by PJE - runpy.run_module now leaves any changes it makes to the sys module intact after the function terminates

17 years agoTweak runpy test to do a better job of confirming that sys has been manipulated correctly
Nick Coghlan [Tue, 24 Jul 2007 13:07:38 +0000 (13:07 +0000)]
Tweak runpy test to do a better job of confirming that sys has been manipulated correctly

17 years agoCorrectly cleanup sys.modules after executing runpy relative import
Nick Coghlan [Mon, 23 Jul 2007 13:41:45 +0000 (13:41 +0000)]
Correctly cleanup sys.modules after executing runpy relative import
tests
Restore Python 2.4 ImportError when attempting to execute a package
(as imports cannot be guaranteed to work properly if you try it)

17 years agoAdd explicit relative import tests for runpy.run_module
Nick Coghlan [Sun, 22 Jul 2007 10:18:07 +0000 (10:18 +0000)]
Add explicit relative import tests for runpy.run_module

17 years agoSelectively enable tests for asyncore.readwrite based on the presence
Facundo Batista [Sun, 22 Jul 2007 00:13:00 +0000 (00:13 +0000)]
Selectively enable tests for asyncore.readwrite based on the presence
of poll support in the select module (since this is the only case in
which readwrite can be called). [GSoC - Alan McIntyre]

17 years agoPEP 3123: Provide forward compatibility with Python 3.0, while keeping
Martin v. Löwis [Sat, 21 Jul 2007 06:55:02 +0000 (06:55 +0000)]
PEP 3123: Provide forward compatibility with Python 3.0, while keeping
backwards compatibility. Add Py_Refcnt, Py_Type, Py_Size, and
PyVarObject_HEAD_INIT.

17 years agoAdded a select.select call in the test server loop to make sure the
Facundo Batista [Thu, 19 Jul 2007 23:57:38 +0000 (23:57 +0000)]
Added a select.select call in the test server loop to make sure the
socket is ready to be read from before attempting a read (this
prevents an error 10035 on some Windows platforms). [GSoC - Alan
McIntyre]

17 years agoDocument that codecs.lookup() returns a CodecInfo object.
Walter Dörwald [Thu, 19 Jul 2007 13:04:38 +0000 (13:04 +0000)]
Document that codecs.lookup() returns a CodecInfo object.
(fixes SF bug #1754453).

17 years agoAdd description for wave.setcomptype() values
Georg Brandl [Wed, 18 Jul 2007 22:36:53 +0000 (22:36 +0000)]
Add description for wave.setcomptype() values

17 years agoFix failing unicode test caused by change to ast.c at r56441
Kurt B. Kaiser [Wed, 18 Jul 2007 19:58:42 +0000 (19:58 +0000)]
Fix failing unicode test caused by change to ast.c at r56441

17 years agoSF patch# 1755885 by Kurt Kaiser: show location of Unicode escape errors.
Guido van Rossum [Wed, 18 Jul 2007 17:19:14 +0000 (17:19 +0000)]
SF patch# 1755885 by Kurt Kaiser: show location of Unicode escape errors.
(Slightly tweaked for style and refcounts.)

17 years agoUse "Unix" as platform name, not "UNIX".
Georg Brandl [Wed, 18 Jul 2007 06:37:55 +0000 (06:37 +0000)]
Use "Unix" as platform name, not "UNIX".

17 years agoPrevent asyncore.dispatcher tests from hanging by adding loop counters
Facundo Batista [Tue, 17 Jul 2007 02:19:39 +0000 (02:19 +0000)]
Prevent asyncore.dispatcher tests from hanging by adding loop counters
to server & client, and by adding asyncore.close_all calls in
tearDown. Also choose correct expected logging results based on the
value of __debug__  [Alan McIntyre - GSoC]

18 years agoChanged the used port and commented out some tests that uses
Facundo Batista [Sun, 15 Jul 2007 20:30:39 +0000 (20:30 +0000)]
Changed the used port and commented out some tests that uses
a non documented function that appers to uses resources
not present in Windows.

18 years agoFirst version. Includes tests for helper functions: read, write,
Facundo Batista [Sat, 14 Jul 2007 22:41:45 +0000 (22:41 +0000)]
First version.  Includes tests for helper functions: read, write,
_exception, readwrite, closeall, compact_traceback; and for classes
dispatcher, dispatcher_with_send, and file_wrapper.
[Alan McIntyre - GSoC]

18 years agoAvoid exception if there's a stray directory inside a Maildir folder.
Andrew M. Kuchling [Sat, 14 Jul 2007 21:56:19 +0000 (21:56 +0000)]
Avoid exception if there's a stray directory inside a Maildir folder.

The Maildir specification doesn't seem to say anything about this
situation, and it can happen if you're keeping a Maildir mailbox in
Subversion (.svn directories) or some similar system.  The patch just
ignores directories in the cur/, new/, tmp/ folders.

18 years agoTypo fix
Andrew M. Kuchling [Sat, 14 Jul 2007 20:58:21 +0000 (20:58 +0000)]
Typo fix

18 years agoClarify webbrowser.open description.
Georg Brandl [Sat, 14 Jul 2007 17:32:41 +0000 (17:32 +0000)]
Clarify webbrowser.open description.

18 years agoBug #1753406: missing \versionadded for subprocess.check_call.
Georg Brandl [Sat, 14 Jul 2007 17:12:23 +0000 (17:12 +0000)]
Bug #1753406: missing \versionadded for subprocess.check_call.

18 years agoIn response to this SF bug:
Barry Warsaw [Fri, 13 Jul 2007 22:12:58 +0000 (22:12 +0000)]
In response to this SF bug:

1752723 ] email.message_from_string: initial line gets discarded

I added a test to assert that when the first line of text passed to
message_from_string() contains a leading space, the message ends up with the
appropriate FirstHeaderLineIsContinuationDefect on its defects list.

The bug is invalid.

18 years agoPyType_stgdict() returns a borrowed reference which must not be
Thomas Heller [Fri, 13 Jul 2007 19:51:55 +0000 (19:51 +0000)]
PyType_stgdict() returns a borrowed reference which must not be
Py_DECREF'd.

18 years agoFix for SF# 1649098: avoid zero-sized array declaration in structure.
Thomas Heller [Fri, 13 Jul 2007 17:46:54 +0000 (17:46 +0000)]
Fix for SF# 1649098: avoid zero-sized array declaration in structure.

18 years agoFix for SF# 1701409: segfault in c_char_p of ctypes. The repr output
Thomas Heller [Fri, 13 Jul 2007 17:12:23 +0000 (17:12 +0000)]
Fix for SF# 1701409: segfault in c_char_p of ctypes.  The repr output
of c_char_p and c_wchar_p has changed as a sideeffect.

18 years agoDo not try to load the GLUT library in the ctypes tests. This test
Thomas Heller [Fri, 13 Jul 2007 16:50:43 +0000 (16:50 +0000)]
Do not try to load the GLUT library in the ctypes tests.  This test
adds little value, but has a large problem on OS X, as explained in
SF# 1581906.

18 years agoAdd tests for _ctypes.COMError.
Thomas Heller [Fri, 13 Jul 2007 14:18:06 +0000 (14:18 +0000)]
Add tests for _ctypes.COMError.

18 years agoRepair COMError. Since exceptions are new style classes now, setting
Thomas Heller [Fri, 13 Jul 2007 13:59:39 +0000 (13:59 +0000)]
Repair COMError.  Since exceptions are new style classes now, setting
the methods and docstring after the type creation does not work, they
must be in the dictionary before creating the type.

18 years agoCorrect the docs for takewhile(). Improve the recipe for nth(). Should be backported
Raymond Hettinger [Fri, 13 Jul 2007 12:09:41 +0000 (12:09 +0000)]
Correct the docs for takewhile().  Improve the recipe for nth().  Should be backported

18 years agoAdded tests for basic behavior of DateTime, Binary, and Fault classes
Facundo Batista [Fri, 13 Jul 2007 10:43:44 +0000 (10:43 +0000)]
Added tests for basic behavior of DateTime, Binary, and Fault classes
and the escape function. Check that marshalling recursive sequences &
dicts raises TypeError. Check that marshalling out-of-range ints
raises OverflowError [Alan McIntyre - GSoC]

18 years agoPatch #1675424: Added tests for uncovered code in the zipfile module.
Georg Brandl [Thu, 12 Jul 2007 09:59:22 +0000 (09:59 +0000)]
Patch #1675424: Added tests for uncovered code in the zipfile module.
  The KeyError raised by Zipfile.getinfo for nonexistent names now has
  a descriptive message.

18 years agoBug #1637365: add subsection about "__name__ == __main__" to the
Georg Brandl [Thu, 12 Jul 2007 09:37:49 +0000 (09:37 +0000)]
Bug #1637365: add subsection about "__name__ == __main__" to the
Python tutorial.

18 years agoPatch #1731169: clean up expected skips list.
Georg Brandl [Thu, 12 Jul 2007 09:24:04 +0000 (09:24 +0000)]
Patch #1731169: clean up expected skips list.

18 years agoPatch #1731659: improve time.strptime docs.
Georg Brandl [Thu, 12 Jul 2007 09:06:41 +0000 (09:06 +0000)]
Patch #1731659: improve time.strptime docs.

18 years agoPatch #1673759: add a missing overflow check when formatting floats
Georg Brandl [Thu, 12 Jul 2007 08:38:00 +0000 (08:38 +0000)]
Patch #1673759: add a missing overflow check when formatting floats
with %G.

18 years agoPatch #1739696: use code.co_code only if really necessary
Georg Brandl [Thu, 12 Jul 2007 08:11:29 +0000 (08:11 +0000)]
Patch #1739696: use code.co_code only if really necessary

18 years agoPatch #1752270, #1750931: complain if urllib2 add_handler called
Georg Brandl [Thu, 12 Jul 2007 08:05:45 +0000 (08:05 +0000)]
Patch #1752270, #1750931: complain if urllib2 add_handler called
without handler.

18 years agoFix #1752132: wrong comment in opcode description.
Georg Brandl [Wed, 11 Jul 2007 19:41:49 +0000 (19:41 +0000)]
Fix #1752132: wrong comment in opcode description.

18 years agoPatch 1673122: be explicit about which libtool to use, to avoid name clashes
Ronald Oussoren [Mon, 9 Jul 2007 08:41:15 +0000 (08:41 +0000)]
Patch 1673122: be explicit about which libtool to use, to avoid name clashes
when a users install GNU libtool early in his PATH

18 years agoPatch 1693258: Fix for duplicate "preferences" menu-OS X
Ronald Oussoren [Mon, 9 Jul 2007 06:02:21 +0000 (06:02 +0000)]
Patch 1693258: Fix for duplicate "preferences" menu-OS X

18 years agoFix typo in comment
Neal Norwitz [Fri, 6 Jul 2007 04:13:39 +0000 (04:13 +0000)]
Fix typo in comment

18 years agoMany calls to tk.call involve an arglist containing a single tuple.
Kurt B. Kaiser [Thu, 5 Jul 2007 22:03:39 +0000 (22:03 +0000)]
Many calls to tk.call involve an arglist containing a single tuple.
Calls using METH_OLDARGS unpack this tuple; calls using METH_VARARG
don't.  Tcl's concatenation of args was affected; IDLE doesn't start.

Modify Tkapp_Call() to unpack single tuple arglists.

Bug 1733943
Ref http://mail.python.org/pipermail/python-checkins/2007-May/060454.html

18 years agocopy built files to the PCBuild directory, where tools like
Mark Hammond [Wed, 4 Jul 2007 02:03:10 +0000 (02:03 +0000)]
copy built files to the PCBuild directory, where tools like
distutils or external build processes can find them.

18 years agoRemove duplicate sentence from alarm() doc.
Georg Brandl [Mon, 2 Jul 2007 11:54:28 +0000 (11:54 +0000)]
Remove duplicate sentence from alarm() doc.

18 years agoFix a few webbrowser.py problems.
Georg Brandl [Sun, 1 Jul 2007 08:11:35 +0000 (08:11 +0000)]
Fix a few webbrowser.py problems.

18 years agoDocument smtp.SMTPAuthenticationError.
Georg Brandl [Sat, 30 Jun 2007 11:01:01 +0000 (11:01 +0000)]
Document smtp.SMTPAuthenticationError.

18 years agoFix a variable name in winreg docs.
Georg Brandl [Wed, 27 Jun 2007 14:09:56 +0000 (14:09 +0000)]
Fix a variable name in winreg docs.

18 years agoBug #1742901: document None behavior of shlex.split.
Georg Brandl [Mon, 25 Jun 2007 15:21:23 +0000 (15:21 +0000)]
Bug #1742901: document None behavior of shlex.split.

18 years agoBug #1739115: make shutil.rmtree docs clear wrt. file deletion.
Georg Brandl [Tue, 19 Jun 2007 12:38:20 +0000 (12:38 +0000)]
Bug #1739115: make shutil.rmtree docs clear wrt. file deletion.

18 years agoBug #1737864: allow empty message in logging format routines.
Georg Brandl [Tue, 19 Jun 2007 12:36:00 +0000 (12:36 +0000)]
Bug #1737864: allow empty message in logging format routines.

18 years agoAdded missing \versionchanged tag for the new exclude
Lars Gustäbel [Mon, 18 Jun 2007 20:05:55 +0000 (20:05 +0000)]
Added missing \versionchanged tag for the new exclude
parameter.

18 years agoAdded exclude keyword argument to the TarFile.add() method.
Lars Gustäbel [Mon, 18 Jun 2007 11:42:11 +0000 (11:42 +0000)]
Added exclude keyword argument to the TarFile.add() method.

18 years agoRevert last change for SF #1738754, there's no print in there.
Neal Norwitz [Mon, 18 Jun 2007 02:50:15 +0000 (02:50 +0000)]
Revert last change for SF #1738754, there's no print in there.

18 years agoSF #1738754, remove extra backslash in string
Neal Norwitz [Mon, 18 Jun 2007 02:46:36 +0000 (02:46 +0000)]
SF #1738754, remove extra backslash in string

18 years agoSF #1738670, make example in doc work
Neal Norwitz [Sun, 17 Jun 2007 18:48:32 +0000 (18:48 +0000)]
SF #1738670, make example in doc work

18 years agoAdd missing \versionadded.
Georg Brandl [Sat, 16 Jun 2007 17:10:12 +0000 (17:10 +0000)]
Add missing \versionadded.

18 years agoMention Senthil Kumaran.
Martin v. Löwis [Sat, 16 Jun 2007 10:08:43 +0000 (10:08 +0000)]
Mention Senthil Kumaran.

18 years agoAdd a word
Andrew M. Kuchling [Fri, 15 Jun 2007 22:43:03 +0000 (22:43 +0000)]
Add a word

18 years agourllib2_localnet says it leaks probably due to threads. So ignore it.
Neal Norwitz [Fri, 15 Jun 2007 03:11:41 +0000 (03:11 +0000)]
urllib2_localnet says it leaks probably due to threads. So ignore it.
popen2 is also complaining probably for similar reasons.
make install always reports failure, so don't mail in this case.

18 years agoPatch #1734014: Use _I64_MAX instead of LLONG_MAX.
Martin v. Löwis [Thu, 14 Jun 2007 20:46:25 +0000 (20:46 +0000)]
Patch #1734014: Use _I64_MAX instead of LLONG_MAX.
Will backport to 2.5.

18 years agoAdd T_PYSSIZET in structmember.h: This can be used for
Walter Dörwald [Wed, 13 Jun 2007 16:57:12 +0000 (16:57 +0000)]
Add T_PYSSIZET in structmember.h: This can be used for
Py_ssize_t members.

Simplify the implementation of UnicodeError objects:
start and end attributes are now stored directly as
Py_ssize_t members, which simplifies various get and
set functions.

18 years agoBuild bzip2.
Thomas Heller [Wed, 13 Jun 2007 07:54:57 +0000 (07:54 +0000)]
Build bzip2.

18 years agoNotes about building tcl/tk for windows/AMD64.
Thomas Heller [Wed, 13 Jun 2007 07:07:41 +0000 (07:07 +0000)]
Notes about building tcl/tk for windows/AMD64.

18 years agoDo not hardcode the buildbot's directory name.
Thomas Heller [Wed, 13 Jun 2007 07:07:03 +0000 (07:07 +0000)]
Do not hardcode the buildbot's directory name.

18 years agoProvide PY_LLONG_MAX on all systems having long long.
Martin v. Löwis [Wed, 13 Jun 2007 03:42:19 +0000 (03:42 +0000)]
Provide PY_LLONG_MAX on all systems having long long.
Will backport to 2.5.

18 years agoDon't rebuild Berkeley DB if not needed (this was committed by accident).
Thomas Heller [Tue, 12 Jun 2007 19:56:12 +0000 (19:56 +0000)]
Don't rebuild Berkeley DB if not needed (this was committed by accident).

18 years agoAdd bufferoverflowU.lib to PCBuild\_bsddb.vcproj.
Thomas Heller [Tue, 12 Jun 2007 19:02:59 +0000 (19:02 +0000)]
Add bufferoverflowU.lib to PCBuild\_bsddb.vcproj.
Build sqlite3.dll and bsddb.

18 years agoSpecify the bufferoverflowU.lib to the makefile on the command line
Thomas Heller [Tue, 12 Jun 2007 17:28:31 +0000 (17:28 +0000)]
Specify the bufferoverflowU.lib to the makefile on the command line
(for ReleaseAMD64 builds).

18 years agoRevert this change, since it breaks the win32 build:
Thomas Heller [Tue, 12 Jun 2007 16:23:19 +0000 (16:23 +0000)]
Revert this change, since it breaks the win32 build:

Add bufferoverflowU.lib to the libraries needed by _ssl (is this the
right thing to do?).

18 years agoAdd bufferoverflowU.lib to the libraries needed by _ssl (is this the
Thomas Heller [Tue, 12 Jun 2007 16:08:27 +0000 (16:08 +0000)]
Add bufferoverflowU.lib to the libraries needed by _ssl (is this the
right thing to do?).

Set the /XP64 /RETAIL build enviroment in the makefile when building
ReleaseAMD64.

18 years agoCheckout, but do not yet try to build, exernal sources.
Thomas Heller [Tue, 12 Jun 2007 15:36:22 +0000 (15:36 +0000)]
Checkout, but do not yet try to build, exernal sources.

18 years agoAdd patch #1726668: Windows Vista support.
Marc-André Lemburg [Tue, 12 Jun 2007 09:26:49 +0000 (09:26 +0000)]
Add patch #1726668: Windows Vista support.

18 years agoApply patch #1734945 to support TurboLinux as distribution.
Marc-André Lemburg [Tue, 12 Jun 2007 09:09:58 +0000 (09:09 +0000)]
Apply patch #1734945 to support TurboLinux as distribution.

18 years agoAdded versionchanged flag to all the methods which received
Facundo Batista [Mon, 11 Jun 2007 16:27:08 +0000 (16:27 +0000)]
Added versionchanged flag to all the methods which received
a new optional timeout parameter, and a versionadded flag to
the socket.create_connection function.

18 years agoUse "O&" in calls to PyArg_Parse when we need a 'void*' instead of "k"
Thomas Heller [Mon, 11 Jun 2007 15:58:33 +0000 (15:58 +0000)]
Use "O&" in calls to PyArg_Parse when we need a 'void*' instead of "k"
or "K" codes.

18 years agoReflow long line
Neal Norwitz [Mon, 11 Jun 2007 07:36:24 +0000 (07:36 +0000)]
Reflow long line

18 years agoBug #1734723: Fix repr.Repr() so it doesn't ignore the maxtuple attribute.
Neal Norwitz [Mon, 11 Jun 2007 07:29:43 +0000 (07:29 +0000)]
Bug #1734723: Fix repr.Repr() so it doesn't ignore the maxtuple attribute.

Will backport

18 years agoNot sure why this only fails sometimes on Unix machines. Better
Neal Norwitz [Mon, 11 Jun 2007 06:16:48 +0000 (06:16 +0000)]
Not sure why this only fails sometimes on Unix machines. Better
to disable it and only import msvccompiler on Windows since that's
the only place it can work anyways.

18 years agoSF #1734732, lower case the module names per PEP 8.
Neal Norwitz [Mon, 11 Jun 2007 05:35:10 +0000 (05:35 +0000)]
SF #1734732, lower case the module names per PEP 8.

Will backport.

18 years agoAdd all of the distuils modules that don't seem to have explicit tests. :-(
Neal Norwitz [Mon, 11 Jun 2007 05:28:45 +0000 (05:28 +0000)]
Add all of the distuils modules that don't seem to have explicit tests. :-(
Move an import in mworkscompiler so that this module can be imported on
any platform.  Hopefully this works on all platforms.

18 years agoPrevent hang if the port cannot be opened.
Neal Norwitz [Mon, 11 Jun 2007 04:52:37 +0000 (04:52 +0000)]
Prevent hang if the port cannot be opened.

18 years agoFix a bug when there was a newline in the string expandtabs was called on.
Neal Norwitz [Mon, 11 Jun 2007 02:16:10 +0000 (02:16 +0000)]
Fix a bug when there was a newline in the string expandtabs was called on.
This also catches another condition that can overflow.

Will backport.

18 years agoPrevent these tests from running on Win64 since they don\'t apply there either
Neal Norwitz [Mon, 11 Jun 2007 02:14:39 +0000 (02:14 +0000)]
Prevent these tests from running on Win64 since they don\'t apply there either

18 years agoIgnore config.status.lineno which seems new (new autoconf?)
Neal Norwitz [Mon, 11 Jun 2007 01:48:46 +0000 (01:48 +0000)]
Ignore config.status.lineno which seems new (new autoconf?)

18 years agoIgnore valgrind problems on Ubuntu from ld
Neal Norwitz [Mon, 11 Jun 2007 01:22:03 +0000 (01:22 +0000)]
Ignore valgrind problems on Ubuntu from ld

18 years agoAdd Atul Varma for patch # 1667860
Neal Norwitz [Mon, 11 Jun 2007 00:42:11 +0000 (00:42 +0000)]
Add Atul Varma for patch # 1667860

18 years agoRevert commit 55855.
Thomas Heller [Sun, 10 Jun 2007 21:01:17 +0000 (21:01 +0000)]
Revert commit 55855.

18 years agoNeed to set the environment variables, otherwise devenv.com is not found.
Thomas Heller [Sun, 10 Jun 2007 18:27:54 +0000 (18:27 +0000)]
Need to set the environment variables, otherwise devenv.com is not found.

18 years agoFor now, disable the _bsddb, _sqlite3, _ssl, _testcapi, _tkinter
Thomas Heller [Sun, 10 Jun 2007 17:55:51 +0000 (17:55 +0000)]
For now, disable the _bsddb, _sqlite3, _ssl, _testcapi, _tkinter
modules in the ReleaseAMD64 configuration because they do not compile.

18 years agoFirst version of build scripts for Windows/AMD64 (no external
Thomas Heller [Sun, 10 Jun 2007 15:59:17 +0000 (15:59 +0000)]
First version of build scripts for Windows/AMD64 (no external
components are built yet, and 'kill_python' is disabled).

18 years agoProvide LLONG_MAX for S390.
Martin v. Löwis [Sat, 9 Jun 2007 10:10:26 +0000 (10:10 +0000)]
Provide LLONG_MAX for S390.

18 years agoFix Windows build.
Martin v. Löwis [Sat, 9 Jun 2007 07:58:05 +0000 (07:58 +0000)]
Fix Windows build.

18 years agoPatch #1733960: Allow T_LONGLONG to accept ints.
Martin v. Löwis [Sat, 9 Jun 2007 07:42:52 +0000 (07:42 +0000)]
Patch #1733960: Allow T_LONGLONG to accept ints.
Will backport to 2.5.

18 years agoUse macro version of GET_SIZE to avoid Coverity warning (#150) about a possible error.
Neal Norwitz [Sat, 9 Jun 2007 04:48:22 +0000 (04:48 +0000)]
Use macro version of GET_SIZE to avoid Coverity warning (#150) about a possible error.

18 years agoPrevent expandtabs() on string and unicode objects from causing a segfault when
Neal Norwitz [Sat, 9 Jun 2007 03:36:34 +0000 (03:36 +0000)]
Prevent expandtabs() on string and unicode objects from causing a segfault when
a large width is passed on 32-bit platforms.  Found by Google.

It would be good for people to review this especially carefully and verify
I don't have an off by one error and there is no other way to cause overflow.

18 years agoFix warnings by using proper function prototype.
Thomas Heller [Fri, 8 Jun 2007 19:14:23 +0000 (19:14 +0000)]
Fix warnings by using proper function prototype.

18 years agoFix wrong documentation, and correct the punktuation.
Thomas Heller [Fri, 8 Jun 2007 19:08:31 +0000 (19:08 +0000)]
Fix wrong documentation, and correct the punktuation.
Closes [1700455].

18 years agoFix gcc warnings intruduced by passing Py_ssize_t to PyErr_Format calls.
Thomas Heller [Fri, 8 Jun 2007 19:01:06 +0000 (19:01 +0000)]
Fix gcc warnings intruduced by passing Py_ssize_t to PyErr_Format calls.

18 years ago[ 1715718 ] x64 clean compile patch for _ctypes, by Kristj?n Valur
Thomas Heller [Fri, 8 Jun 2007 18:20:09 +0000 (18:20 +0000)]
1715718 ] x64 clean compile patch for _ctypes, by Kristj?n Valur
with small modifications.

18 years agoBug #1733488: Fix compilation of bufferobject.c on AIX.
Martin v. Löwis [Fri, 8 Jun 2007 17:29:20 +0000 (17:29 +0000)]
Bug #1733488: Fix compilation of bufferobject.c on AIX.
Will backport to 2.5.