]> granicus.if.org Git - python/log
python
14 years agounittest: issue 8301. Adding functions to test suites no longer crashes.
Michael Foord [Sat, 8 May 2010 17:06:25 +0000 (17:06 +0000)]
unittest: issue 8301. Adding functions to test suites no longer crashes.

14 years agoupdate pydoc-topics
Benjamin Peterson [Sat, 8 May 2010 17:05:19 +0000 (17:05 +0000)]
update pydoc-topics

14 years agorun and fix enumerate start test cases #8636
Benjamin Peterson [Sat, 8 May 2010 16:44:52 +0000 (16:44 +0000)]
run and fix enumerate start test cases #8636

14 years agoUpdating documentation and adding docstrings to unittest.TestCase.assertRegexpMatches...
Michael Foord [Sat, 8 May 2010 16:40:52 +0000 (16:40 +0000)]
Updating documentation and adding docstrings to unittest.TestCase.assertRegexpMatches and assertNotRegexpMatches. Issue 8038.

14 years agoadd underscore
Benjamin Peterson [Sat, 8 May 2010 15:42:29 +0000 (15:42 +0000)]
add underscore

14 years agor80967 introduced a new scheme
Benjamin Peterson [Sat, 8 May 2010 15:41:44 +0000 (15:41 +0000)]
r80967 introduced a new scheme

14 years agoWrite summary of the 2.7 release; rewrite the future section some more;
Andrew M. Kuchling [Sat, 8 May 2010 15:39:46 +0000 (15:39 +0000)]
Write summary of the 2.7 release; rewrite the future section some more;
mention PYTHONWARNINGS env. var; tweak some examples for readability.

And with this commit, the "What's New" is done... except for a
complete read-through to polish the text, and fixing any reported errors,
but those tasks can easily wait until after beta2.

14 years agoRevert r80963 - it broke compilation everywhere
Antoine Pitrou [Sat, 8 May 2010 15:23:57 +0000 (15:23 +0000)]
Revert r80963 - it broke compilation everywhere

14 years agoDocumenting test discovery from package name and potential problems with test discove...
Michael Foord [Sat, 8 May 2010 15:09:37 +0000 (15:09 +0000)]
Documenting test discovery from package name and potential problems with test discovery importing tests from the wrong location. Issue 7780 and issue 8547.

14 years agoMarkup fixes
Andrew M. Kuchling [Sat, 8 May 2010 13:29:46 +0000 (13:29 +0000)]
Markup fixes

14 years agoAdd logging.dictConfig example; give up on writing a Ttk example
Andrew M. Kuchling [Sat, 8 May 2010 13:28:03 +0000 (13:28 +0000)]
Add logging.dictConfig example; give up on writing a Ttk example

14 years agoIssue 7780. Adding a test for unittest test discovery from a dotted path.
Michael Foord [Sat, 8 May 2010 13:20:07 +0000 (13:20 +0000)]
Issue 7780. Adding a test for unittest test discovery from a dotted path.

14 years agoconfigure.in: Avoid autoconf warning: Assume C89 semantics that
Matthias Klose [Sat, 8 May 2010 11:04:18 +0000 (11:04 +0000)]
configure.in: Avoid autoconf warning: Assume C89 semantics that
RETSIGTYPE is always void (issue #8510).
pyconfig.h: Regenerate

14 years agoconfigure.in: convert all obsolete AC_TRY_* macros to AC_*_IFELSE,
Matthias Klose [Sat, 8 May 2010 11:01:39 +0000 (11:01 +0000)]
configure.in: convert all obsolete AC_TRY_* macros to AC_*_IFELSE,
only whitespace changes in generated configure (diff -uEwB).

14 years agoIssue #8084: ensure that the --user directory
Ronald Oussoren [Sat, 8 May 2010 10:29:06 +0000 (10:29 +0000)]
Issue #8084: ensure that the --user directory
conforms to platforms standars on OSX when
using a python framework.

14 years agoconfigure.in: s/AC_AIX/AC_USE_SYSTEM_EXTENSIONS/
Matthias Klose [Sat, 8 May 2010 10:17:27 +0000 (10:17 +0000)]
configure.in: s/AC_AIX/AC_USE_SYSTEM_EXTENSIONS/

14 years ago- configure.in: Replace AC_HELP_STRING with AS_HELP_STRING
Matthias Klose [Sat, 8 May 2010 10:14:46 +0000 (10:14 +0000)]
- configure.in: Replace AC_HELP_STRING with AS_HELP_STRING

14 years ago- Issue #8510: Update to autoconf2.65.
Matthias Klose [Sat, 8 May 2010 10:00:28 +0000 (10:00 +0000)]
- Issue #8510: Update to autoconf2.65.

14 years agoFix for issue #7724: make it possible to build using
Ronald Oussoren [Sat, 8 May 2010 08:44:37 +0000 (08:44 +0000)]
Fix for issue #7724: make it possible to build using
the OSX 10.4u SDK on MacOSX 10.6 by honoring the specified
SDK when looking for files.

14 years agoIssue #8659: Remove redundant ABS calls. Thanks Daniel Stutzbach.
Mark Dickinson [Sat, 8 May 2010 08:01:19 +0000 (08:01 +0000)]
Issue #8659: Remove redundant ABS calls.  Thanks Daniel Stutzbach.

14 years agoFixing the errors trigerred in test_urllib2net. Related to issue8656.
Senthil Kumaran [Sat, 8 May 2010 05:00:11 +0000 (05:00 +0000)]
Fixing the errors trigerred in test_urllib2net. Related to issue8656.

14 years agoFix Issue8656 - urllib2 mangles file://-scheme URLs
Senthil Kumaran [Sat, 8 May 2010 03:11:50 +0000 (03:11 +0000)]
Fix Issue8656 - urllib2 mangles file://-scheme URLs

14 years agoGet accents correct
Andrew M. Kuchling [Sat, 8 May 2010 01:35:55 +0000 (01:35 +0000)]
Get accents correct

14 years agoAdd two items
Andrew M. Kuchling [Sat, 8 May 2010 01:15:26 +0000 (01:15 +0000)]
Add two items

14 years agoIssue 8547 - detecting and reporting that modules have been imported from the wrong...
Michael Foord [Fri, 7 May 2010 23:39:38 +0000 (23:39 +0000)]
Issue 8547 - detecting and reporting that modules have been imported from the wrong location under test discovery.

14 years agorevert r80932; it breaks windows
Benjamin Peterson [Fri, 7 May 2010 20:45:07 +0000 (20:45 +0000)]
revert r80932; it breaks windows

14 years agoMerged revisions 79911,79916-79917,80018,80418,80572-80573,80635-80639,80668,80922...
Benjamin Peterson [Fri, 7 May 2010 18:58:23 +0000 (18:58 +0000)]
Merged revisions 79911,79916-79917,80018,80418,80572-80573,80635-80639,80668,80922 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3

........
  r79911 | benjamin.peterson | 2010-04-09 15:38:53 -0500 (Fri, 09 Apr 2010) | 1 line

  use absolute import
........
  r79916 | benjamin.peterson | 2010-04-09 16:05:21 -0500 (Fri, 09 Apr 2010) | 1 line

  generalize detection of __future__ imports and attach them to the tree
........
  r79917 | benjamin.peterson | 2010-04-09 16:11:44 -0500 (Fri, 09 Apr 2010) | 1 line

  don't try to 'fix' relative imports when absolute_import is enabled #8858
........
  r80018 | benjamin.peterson | 2010-04-12 16:12:12 -0500 (Mon, 12 Apr 2010) | 4 lines

  prevent diffs from being mangled is multiprocess mode #6409

  Patch by George Boutsioukis.
........
  r80418 | benjamin.peterson | 2010-04-23 16:00:03 -0500 (Fri, 23 Apr 2010) | 1 line

  remove unhelpful description
........
  r80572 | benjamin.peterson | 2010-04-27 20:33:54 -0500 (Tue, 27 Apr 2010) | 1 line

  use unicode literals
........
  r80573 | jeffrey.yasskin | 2010-04-27 23:08:27 -0500 (Tue, 27 Apr 2010) | 6 lines

  Don't transform imports that are already relative.  2to3 turned
    from . import refactor
  into
    from .. import refactor
  which broke the transformation of 2to3 itself.
........
  r80635 | benjamin.peterson | 2010-04-29 16:02:23 -0500 (Thu, 29 Apr 2010) | 1 line

  remove imports
........
  r80636 | benjamin.peterson | 2010-04-29 16:02:41 -0500 (Thu, 29 Apr 2010) | 1 line

  unicode literal
........
  r80637 | benjamin.peterson | 2010-04-29 16:03:42 -0500 (Thu, 29 Apr 2010) | 1 line

  must pass a string to Number
........
  r80638 | benjamin.peterson | 2010-04-29 16:05:34 -0500 (Thu, 29 Apr 2010) | 1 line

  unicode literals
........
  r80639 | benjamin.peterson | 2010-04-29 16:06:09 -0500 (Thu, 29 Apr 2010) | 1 line

  pass string to Number
........
  r80668 | jeffrey.yasskin | 2010-04-30 18:02:47 -0500 (Fri, 30 Apr 2010) | 4 lines

  Make 2to3 run under Python 2.5 so that the benchmark suite at
  http://hg.python.org/benchmarks/ can use it and still run on implementations
  that haven't gotten to 2.6 yet.  Fixes issue 8566.
........
  r80922 | benjamin.peterson | 2010-05-07 11:06:25 -0500 (Fri, 07 May 2010) | 1 line

  prevent xrange transformation from wrapping range calls it produces in list
........

14 years agoIssue 8547 - detecting and reporting that modules have been imported from the wrong...
Michael Foord [Fri, 7 May 2010 18:16:19 +0000 (18:16 +0000)]
Issue 8547 - detecting and reporting that modules have been imported from the wrong location under test discovery.

14 years agoIssue #8571: Fix an internal error when compressing or decompressing a
Antoine Pitrou [Fri, 7 May 2010 16:50:34 +0000 (16:50 +0000)]
Issue #8571: Fix an internal error when compressing or decompressing a
chunk larger than 1GB with the zlib module's compressor and decompressor
objects.

14 years agoAdding tests for unittest command line handling of buffer, catchbreak and failfast.
Michael Foord [Fri, 7 May 2010 15:52:05 +0000 (15:52 +0000)]
Adding tests for unittest command line handling of buffer, catchbreak and failfast.

14 years agoAdding a test for unittest test discovery with dotted path name.
Michael Foord [Fri, 7 May 2010 15:34:08 +0000 (15:34 +0000)]
Adding a test for unittest test discovery with dotted path name.

14 years agoRe-word text
Andrew M. Kuchling [Fri, 7 May 2010 11:30:47 +0000 (11:30 +0000)]
Re-word text

14 years agoFix some markup and a class name. Also, wrap a long line.
Antoine Pitrou [Fri, 7 May 2010 10:15:51 +0000 (10:15 +0000)]
Fix some markup and a class name. Also, wrap a long line.

14 years agoTestsuite for RFC3986 based parsing scenario. Related Issue1462525.
Senthil Kumaran [Fri, 7 May 2010 04:07:29 +0000 (04:07 +0000)]
Testsuite for RFC3986 based parsing scenario. Related Issue1462525.

14 years agoAdd a new section on the development plan; add an item
Andrew M. Kuchling [Fri, 7 May 2010 01:45:14 +0000 (01:45 +0000)]
Add a new section on the development plan; add an item

14 years agoensure that availability information is on its own line at the end of the function...
Benjamin Peterson [Thu, 6 May 2010 22:49:28 +0000 (22:49 +0000)]
ensure that availability information is on its own line at the end of the function docs

14 years agoAvailability gets its own line
Benjamin Peterson [Thu, 6 May 2010 22:33:46 +0000 (22:33 +0000)]
Availability gets its own line

14 years agoadds handle_error(self):raise to test modules using asyncore to provide a clearer...
Giampaolo Rodolà [Thu, 6 May 2010 20:19:32 +0000 (20:19 +0000)]
adds handle_error(self):raise to test modules using asyncore to provide a clearer error message in case something goes wrong

14 years agoprovides a clearer warning message when cheap inheritance with the underlying socket...
Giampaolo Rodolà [Thu, 6 May 2010 19:56:34 +0000 (19:56 +0000)]
provides a clearer warning message when cheap inheritance with the underlying socket object is used

14 years agoFix asyncore issues 8573 and 8483: _strerror might throw ValueError; asyncore.__getat...
Giampaolo Rodolà [Thu, 6 May 2010 17:57:06 +0000 (17:57 +0000)]
Fix asyncore issues 8573 and 8483: _strerror might throw ValueError; asyncore.__getattr__ cheap inheritance caused confusing error messages when accessing undefined class attributes; added an alias for __str__ which now is used as a fallback for __repr__

14 years agoAdd back in a line that was unneeded which advanced a pointer, but commented
Brett Cannon [Thu, 6 May 2010 17:56:36 +0000 (17:56 +0000)]
Add back in a line that was unneeded which advanced a pointer, but commented
out as it is currently unneeded.

This effectively adds back in the line removed in r80809 as a comment.

14 years agoChange section title; point to unittest2
Andrew M. Kuchling [Thu, 6 May 2010 17:27:57 +0000 (17:27 +0000)]
Change section title; point to unittest2

14 years agoAdd 2 items; record ideas for two initial sections; clarify wording
Andrew M. Kuchling [Thu, 6 May 2010 17:21:59 +0000 (17:21 +0000)]
Add 2 items; record ideas for two initial sections; clarify wording

14 years agoDescribe ElementTree 1.3; rearrange new-module sections; describe dict views as sets...
Andrew M. Kuchling [Thu, 6 May 2010 14:14:09 +0000 (14:14 +0000)]
Describe ElementTree 1.3; rearrange new-module sections; describe dict views as sets; small edits and items

14 years ago`self` doesn't exist here
Antoine Pitrou [Thu, 6 May 2010 14:11:23 +0000 (14:11 +0000)]
`self` doesn't exist here

14 years agoUse anonymous hyperlinks
Andrew M. Kuchling [Thu, 6 May 2010 13:03:39 +0000 (13:03 +0000)]
Use anonymous hyperlinks

14 years agoFix #7863. Properly identify Windows 7 and Server 2008 R2.
Brian Curtin [Thu, 6 May 2010 02:54:44 +0000 (02:54 +0000)]
Fix #7863. Properly identify Windows 7 and Server 2008 R2.

Removed various unused code and added a way to correctly determine
server vs. workstation via the registry.

14 years agoAdd various items
Andrew M. Kuchling [Thu, 6 May 2010 01:10:56 +0000 (01:10 +0000)]
Add various items

14 years agoReword paragraph; fix filename, which should be pyconfig.h
Andrew M. Kuchling [Thu, 6 May 2010 01:09:47 +0000 (01:09 +0000)]
Reword paragraph; fix filename, which should be pyconfig.h

14 years agoHave the serve.py script announce the directory it is
R. David Murray [Thu, 6 May 2010 00:59:04 +0000 (00:59 +0000)]
Have the serve.py script announce the directory it is
serving and which port it is serving it on (I can
never remember the default port number it uses...)

14 years agoUntabify Modules/posixmodule.c (2)
Victor Stinner [Thu, 6 May 2010 00:03:44 +0000 (00:03 +0000)]
Untabify Modules/posixmodule.c (2)

Fix some more functions by hand

14 years agoUntabify Modules/posixmodule.c
Victor Stinner [Wed, 5 May 2010 23:33:33 +0000 (23:33 +0000)]
Untabify Modules/posixmodule.c

Run Antoine Pitrou "untabify" script + manual editions (OS/2 and some
continuation lines).

14 years agoRevert a change where an expression is not needed now, but could be in the future.
Brett Cannon [Wed, 5 May 2010 23:11:08 +0000 (23:11 +0000)]
Revert a change where an expression is not needed now, but could be in the future.

14 years agoIssue #1533: test_range in test_builtin: fix test comment and add test
Mark Dickinson [Wed, 5 May 2010 22:42:51 +0000 (22:42 +0000)]
Issue #1533:  test_range in test_builtin: fix test comment and add test
for rejection of small floats.  Thanks Alexander Belopolsky.

14 years agoremoved non needed lines
Tarek Ziadé [Wed, 5 May 2010 22:41:25 +0000 (22:41 +0000)]
removed non needed lines

14 years agoIssue #8625: Turn off gcc optimization in debug builds.
Mark Dickinson [Wed, 5 May 2010 22:23:58 +0000 (22:23 +0000)]
Issue #8625:  Turn off gcc optimization in debug builds.

14 years agoFixed #4265: shutil.copyfile() was leaking file descriptors when disk fills
Tarek Ziadé [Wed, 5 May 2010 22:15:31 +0000 (22:15 +0000)]
Fixed #4265: shutil.copyfile() was leaking file descriptors when disk fills

14 years agoIssue 8628: fix incorrect documentation for numbers.Complex.imag.
Mark Dickinson [Wed, 5 May 2010 21:52:39 +0000 (21:52 +0000)]
Issue 8628: fix incorrect documentation for numbers.Complex.imag.

14 years agoMention how Clang's static anaylzer was run over Objects/ and Python/.
Brett Cannon [Wed, 5 May 2010 20:54:53 +0000 (20:54 +0000)]
Mention how Clang's static anaylzer was run over Objects/ and Python/.

14 years agoRemove an unneeded variable assignment.
Brett Cannon [Wed, 5 May 2010 20:53:20 +0000 (20:53 +0000)]
Remove an unneeded variable assignment.

Found using Clang's static analyzer.

14 years agoExplicitly add stdio.h and string.h to make strtod.c work standalone.
Brett Cannon [Wed, 5 May 2010 20:50:03 +0000 (20:50 +0000)]
Explicitly add stdio.h and string.h to make strtod.c work standalone.

Found using Clang's static analyzer.

14 years agoChange to a Py_XDECREF and fix some whitespace.
Brett Cannon [Wed, 5 May 2010 20:38:52 +0000 (20:38 +0000)]
Change to a Py_XDECREF and fix some whitespace.

Found using Clang's static analyzer.

14 years agoRemove an unnecessary variable assignment.
Brett Cannon [Wed, 5 May 2010 20:35:24 +0000 (20:35 +0000)]
Remove an unnecessary variable assignment.

Found using Clang's static analyzer.

14 years agoRemove two unneeded branches to an 'if' statement by applying De Morgan's Law
Brett Cannon [Wed, 5 May 2010 20:30:30 +0000 (20:30 +0000)]
Remove two unneeded branches to an 'if' statement by applying De Morgan's Law
and creating a single 'if' statement along with a NULL default value for a
variable.

Also clean up a bunch of whitespace.

Found using Clang's static analyzer.

14 years agoRemove an unneeded variable increment.
Brett Cannon [Wed, 5 May 2010 20:27:49 +0000 (20:27 +0000)]
Remove an unneeded variable increment.

Found using Clang's static analyzer.

14 years agoRemove an unneeded variable and fix a little whitespace.
Brett Cannon [Wed, 5 May 2010 20:26:58 +0000 (20:26 +0000)]
Remove an unneeded variable and fix a little whitespace.

Found using Clang's static analyzer.

14 years agoFix whitespace.
Brett Cannon [Wed, 5 May 2010 20:25:47 +0000 (20:25 +0000)]
Fix whitespace.

14 years agoPartially revert the over-reaching r80813.
Brett Cannon [Wed, 5 May 2010 20:24:30 +0000 (20:24 +0000)]
Partially revert the over-reaching r80813.

14 years agoRemove three unneeded variable assignments.
Brett Cannon [Wed, 5 May 2010 20:20:19 +0000 (20:20 +0000)]
Remove three unneeded variable assignments.

Found using Clang's static analyzer.

14 years agoRemove an unneeded assignment.
Brett Cannon [Wed, 5 May 2010 20:19:26 +0000 (20:19 +0000)]
Remove an unneeded assignment.

Found using Clang's static analyzer.

14 years agoRemove an unneeded variable assignment.
Brett Cannon [Wed, 5 May 2010 20:18:23 +0000 (20:18 +0000)]
Remove an unneeded variable assignment.

Found using Clang's static analyzer.

14 years agoRemove an unneeded variable.
Brett Cannon [Wed, 5 May 2010 20:16:50 +0000 (20:16 +0000)]
Remove an unneeded variable.

Found using Clang's static analyzer.

14 years agoRemove an unneeded variable increment.
Brett Cannon [Wed, 5 May 2010 20:16:09 +0000 (20:16 +0000)]
Remove an unneeded variable increment.

Found using Clang's static analyzer.

14 years agoRemove extraneous whitespace.
Brett Cannon [Wed, 5 May 2010 20:15:14 +0000 (20:15 +0000)]
Remove extraneous whitespace.

14 years agoRemove an unnecessary variable.
Brett Cannon [Wed, 5 May 2010 20:14:27 +0000 (20:14 +0000)]
Remove an unnecessary variable.

Found using Clang's static analyzer.

14 years agoIn a number of places code still revers
Ronald Oussoren [Wed, 5 May 2010 19:09:31 +0000 (19:09 +0000)]
In a number of places code still revers
to "sys.platform == 'mac'" and that is
dead code because it refers to a platform
that is no longer supported (and hasn't been
supported for several releases).

Fixes issue #7908 for the trunk.

14 years agoIssue #8600: fix test_gdb failures when gdb issues some spurious warnings.
Antoine Pitrou [Wed, 5 May 2010 18:29:02 +0000 (18:29 +0000)]
Issue #8600: fix test_gdb failures when gdb issues some spurious warnings.

14 years agoIssue #7472: remove unused code from email.encoders.encode_7or8bit.
R. David Murray [Wed, 5 May 2010 17:31:03 +0000 (17:31 +0000)]
Issue #7472: remove unused code from email.encoders.encode_7or8bit.

Yukihiro Nakadaira noticed a typo in encode_7or8bit that was trying
to special case iso-2022 codecs.  It turns out that the code in
question is never used, because whereas it was designed to trigger
if the payload encoding was eight bit but its output encoding was
7 bit, in practice the payload is always converted to the 7bit
encoding before encode_7or8bit is called.  Patch by Shawat Anand.

14 years agoUntabify Modules/_io/fileio.c
Antoine Pitrou [Wed, 5 May 2010 16:27:30 +0000 (16:27 +0000)]
Untabify Modules/_io/fileio.c

14 years agoNEWS
Barry Warsaw [Wed, 5 May 2010 16:17:22 +0000 (16:17 +0000)]
NEWS

14 years agoBug 7755: audiotest.au is arguably copyrighted material, but definitely makes
Barry Warsaw [Wed, 5 May 2010 16:15:09 +0000 (16:15 +0000)]
Bug 7755: audiotest.au is arguably copyrighted material, but definitely makes
Debian unhappy.  The actual contents of the audio clip are unimportant, so
replace it with something that we know is okay.  Guido likes woodpeckers.

14 years agoUntabify Modules/_ssl.c
Antoine Pitrou [Wed, 5 May 2010 15:53:45 +0000 (15:53 +0000)]
Untabify Modules/_ssl.c

14 years agoForce exit using os._exit instead of sys.exit,
Ronald Oussoren [Wed, 5 May 2010 15:32:39 +0000 (15:32 +0000)]
Force exit using os._exit instead of sys.exit,
this makes sure that the child does not continue
testing.

14 years agoThe C function used by uuid.uuid4 is broken on
Ronald Oussoren [Wed, 5 May 2010 14:48:37 +0000 (14:48 +0000)]
The C function used by uuid.uuid4 is broken on
OSX 10.6 in that after os.fork() the parent and
child generate the same sequence of UUIDs.

This patch falls back to the the Python implementation
on OSX 10.6 or later.

Fixes issue #8621.

14 years agoUpdate the NEWS entry for issue #8211.
Marc-André Lemburg [Wed, 5 May 2010 13:30:01 +0000 (13:30 +0000)]
Update the NEWS entry for issue #8211.

14 years agoIssue #8313: traceback.format_exception_only() encodes unicode message to
Victor Stinner [Wed, 5 May 2010 12:40:49 +0000 (12:40 +0000)]
Issue #8313: traceback.format_exception_only() encodes unicode message to
ASCII with backslashreplace error handler if str(value) failed

14 years agoRemove reference to unused source file.
Thomas Heller [Tue, 4 May 2010 19:08:18 +0000 (19:08 +0000)]
Remove reference to unused source file.

14 years agoFix test_gzip failure on OS X. The failure was a result of trying to fflush
Mark Dickinson [Tue, 4 May 2010 18:45:27 +0000 (18:45 +0000)]
Fix test_gzip failure on OS X.  The failure was a result of trying to fflush
a file that wasn't open for writing.  Patch by Antoine Pitrou.

14 years agoOn Windows, ctypes does no longer check the stack before and after
Thomas Heller [Tue, 4 May 2010 18:44:42 +0000 (18:44 +0000)]
On Windows, ctypes does no longer check the stack before and after
calling a foreign function.  This allows to use the unmodified libffi
library.

Remove most files from _ctypes/libffi_msvc, only two include files
stay (updated from _ctypes/libffi/...).  Other files are used in the
cross-platform _ctypes/libffi directory.

14 years agoFix trailing whitespace.
Mark Dickinson [Tue, 4 May 2010 16:19:06 +0000 (16:19 +0000)]
Fix trailing whitespace.

14 years agoIssue #1533: fix inconsistency in range function argument processing:
Mark Dickinson [Tue, 4 May 2010 16:18:25 +0000 (16:18 +0000)]
Issue #1533: fix inconsistency in range function argument processing:
any non-float non-integer argument is now converted to an integer (if
possible) using its __int__ method.  Previously, only small arguments
were treated this way; larger arguments (those whose __int__ was
outside the range of a C long) would produce a TypeError.

Patch by Alexander Belopolsky (with minor modifications).

14 years agoIssue #8567: Fix incorrect precedence of signals in Decimal module.
Mark Dickinson [Tue, 4 May 2010 14:25:50 +0000 (14:25 +0000)]
Issue #8567: Fix incorrect precedence of signals in Decimal module.

When a Decimal operation raises multiple signals and more than one of
those signals is trapped, the specification determines the order in
which the signals should be handled.  In many cases this order wasn't
being followed, leading to the wrong Python exception being raised.
This commit fixes those cases, and adds extra tests.  The tests are
only enabled when EXTENDEDERRORTESTS is True, since they involve
rerunning each Decimal testcase several times.

14 years ago_pyio: Fix TextIOWrapper constructor: os has no device_encoding() function
Victor Stinner [Tue, 4 May 2010 11:35:36 +0000 (11:35 +0000)]
_pyio: Fix TextIOWrapper constructor: os has no device_encoding() function

_io module doesn't call this function which was introduced in Python3.

14 years agoIssue #8404: Fix set operations on dictionary views.
Alexandre Vassalotti [Tue, 4 May 2010 03:21:51 +0000 (03:21 +0000)]
Issue #8404: Fix set operations on dictionary views.

14 years agoAdd some more items; the urlparse change is added twice
Andrew M. Kuchling [Tue, 4 May 2010 01:24:22 +0000 (01:24 +0000)]
Add some more items; the urlparse change is added twice

14 years agoPull a NULL pointer check up to cover more cases in the function.
Brett Cannon [Tue, 4 May 2010 01:23:36 +0000 (01:23 +0000)]
Pull a NULL pointer check up to cover more cases in the function.

Found using Clang's static analyzer.

14 years agoRemove an unneeded variable and assignment.
Brett Cannon [Tue, 4 May 2010 01:16:51 +0000 (01:16 +0000)]
Remove an unneeded variable and assignment.

Found using Clang's static analyzer.

14 years agoMention the code clean-up thanks to Clang's static analyzer in Modules.
Brett Cannon [Tue, 4 May 2010 01:04:53 +0000 (01:04 +0000)]
Mention the code clean-up thanks to Clang's static analyzer in Modules.

Was not applied to modules that will not compile under OS X, dbmmodule.c,
getaddrinfo.c, and getnameinfo.c.

14 years agoFix some whitespace.
Brett Cannon [Tue, 4 May 2010 01:01:00 +0000 (01:01 +0000)]
Fix some whitespace.

14 years agoRemove an unneeded variable assignment.
Brett Cannon [Tue, 4 May 2010 00:57:44 +0000 (00:57 +0000)]
Remove an unneeded variable assignment.

Found using Clang's static analyzer.