]> granicus.if.org Git - python/log
python
14 years agoIssue #8193: Fix test_zlib failure with zlib 1.2.4.
Antoine Pitrou [Tue, 6 Apr 2010 17:21:09 +0000 (17:21 +0000)]
Issue #8193: Fix test_zlib failure with zlib 1.2.4.

14 years agoMisc/NEWS entry for r79843.
Mark Dickinson [Tue, 6 Apr 2010 16:47:55 +0000 (16:47 +0000)]
Misc/NEWS entry for r79843.

14 years agoIssue #8259: Get rid of 'outrageous left shift count' error when
Mark Dickinson [Tue, 6 Apr 2010 16:46:09 +0000 (16:46 +0000)]
Issue #8259: Get rid of 'outrageous left shift count' error when
left-shifting an integer by more than 2**31 on a 64-bit machine.  Also
convert shift counts to a Py_ssize_t instead of a C long.

14 years ago14 years later, we still don't know what it's for.
Antoine Pitrou [Tue, 6 Apr 2010 15:38:25 +0000 (15:38 +0000)]
14 years later, we still don't know what it's for.
Spotted by the PyPy developers.

Original commit is:

branch:      trunk
user:        guido
date:        Mon Aug 19 21:32:04 1996 +0200
files:       Python/getargs.c
description:
[svn r6499] Support for keyword arguments (PyArg_ParseTupleAndKeywords) donated by
Geoff Philbrick <philbric@delphi.hks.com> (slightly changed by me).

Also a little change to make the file acceptable to K&R C compilers
(HPUX, SunOS 4.x).

14 years agoNote that PEP 378 also applies to int.
Eric Smith [Tue, 6 Apr 2010 15:17:33 +0000 (15:17 +0000)]
Note that PEP 378 also applies to int.

14 years agoAdd JP.
Georg Brandl [Tue, 6 Apr 2010 14:33:44 +0000 (14:33 +0000)]
Add JP.

14 years agoFixed PEP 378 example.
Eric Smith [Tue, 6 Apr 2010 14:30:15 +0000 (14:30 +0000)]
Fixed PEP 378 example.

14 years ago#8320: document return value of recv_into().
Georg Brandl [Tue, 6 Apr 2010 08:18:15 +0000 (08:18 +0000)]
#8320: document return value of recv_into().

14 years agoready _sre types
Benjamin Peterson [Tue, 6 Apr 2010 03:34:09 +0000 (03:34 +0000)]
ready _sre types

14 years agoFix several links and other mistakes.
Ezio Melotti [Tue, 6 Apr 2010 03:26:49 +0000 (03:26 +0000)]
Fix several links and other mistakes.

14 years agoFix Issue8262 - changing RuntimeError wording to "Threads can only be started once"
Senthil Kumaran [Tue, 6 Apr 2010 03:23:33 +0000 (03:23 +0000)]
Fix Issue8262 - changing RuntimeError wording to "Threads can only be started once"

14 years agoIssue #8321: Give access to OpenSSL version numbers from the `ssl` module,
Antoine Pitrou [Mon, 5 Apr 2010 21:35:07 +0000 (21:35 +0000)]
Issue #8321: Give access to OpenSSL version numbers from the `ssl` module,
using the new attributes `ssl.OPENSSL_VERSION`, `ssl.OPENSSL_VERSION_INFO`
and `ssl.OPENSSL_VERSION_NUMBER`.

14 years agoFix a failing test on an apparently slow Windows buildbot.
Brian Curtin [Mon, 5 Apr 2010 19:04:23 +0000 (19:04 +0000)]
Fix a failing test on an apparently slow Windows buildbot.

On slower Windows machines, waiting 0.1 seconds can sometimes not be
enough for a subprocess to start and be ready to accept signals, causing
the test to fail. One buildbot is also choking on input()/EOFError so
that was changed to not depend on input.

14 years agoUse a better NaN test in _Py_HashDouble as well.
Mark Dickinson [Mon, 5 Apr 2010 18:54:51 +0000 (18:54 +0000)]
Use a better NaN test in _Py_HashDouble as well.

14 years agoClasses that override __eq__ also need to define __hash__.
Raymond Hettinger [Mon, 5 Apr 2010 18:53:43 +0000 (18:53 +0000)]
Classes that override __eq__ also need to define __hash__.

14 years agoUse a more robust infinity check in _Py_HashDouble.
Mark Dickinson [Mon, 5 Apr 2010 18:07:51 +0000 (18:07 +0000)]
Use a more robust infinity check in _Py_HashDouble.

This fixes a test_decimal failure on FreeBSD 8.0.  (modf apparently
doesn't follow C99 Annex F on FreeBSD.)

14 years agoIssue 8316: make test_gdb robust in the face of differing terminal
R. David Murray [Mon, 5 Apr 2010 16:28:49 +0000 (16:28 +0000)]
Issue 8316: make test_gdb robust in the face of differing terminal
widths.  Patch by Dave Malcolm.

14 years agoadded a note for Andrew, about distutils2
Tarek Ziadé [Mon, 5 Apr 2010 14:58:14 +0000 (14:58 +0000)]
added a note for Andrew, about distutils2

14 years agoFix some broken URLs.
Ezio Melotti [Mon, 5 Apr 2010 12:51:45 +0000 (12:51 +0000)]
Fix some broken URLs.

14 years agoEnsure that the gdb hooks can be installed when
Ronald Oussoren [Mon, 5 Apr 2010 11:21:21 +0000 (11:21 +0000)]
Ensure that the gdb hooks can be installed when
srcdir != builddir.

Without this patch it is no longer possible to
build python when you don't run configure from
the root of the source tree.

14 years agoFurther documentation fix for unittest.rst
Michael Foord [Mon, 5 Apr 2010 10:30:14 +0000 (10:30 +0000)]
Further documentation fix for unittest.rst

14 years agoFurterh documentation fix for unittest.rst
Michael Foord [Mon, 5 Apr 2010 10:28:27 +0000 (10:28 +0000)]
Furterh documentation fix for unittest.rst

14 years agoDocumentation fixes for unittest
Michael Foord [Mon, 5 Apr 2010 10:26:26 +0000 (10:26 +0000)]
Documentation fixes for unittest

14 years agoFix markup errors.
Ezio Melotti [Mon, 5 Apr 2010 08:16:41 +0000 (08:16 +0000)]
Fix markup errors.

14 years agoFix markup, punctuation and whitespaces in _winreg.rst.
Ezio Melotti [Mon, 5 Apr 2010 08:02:54 +0000 (08:02 +0000)]
Fix markup, punctuation and whitespaces in _winreg.rst.

14 years ago#8212: rephrase the webservers howto and fix some mistakes.
Ezio Melotti [Mon, 5 Apr 2010 03:51:38 +0000 (03:51 +0000)]
#8212: rephrase the webservers howto and fix some mistakes.

14 years agofix escape_encode to return the correct consumed size
Philip Jenvey [Mon, 5 Apr 2010 02:51:51 +0000 (02:51 +0000)]
fix escape_encode to return the correct consumed size

14 years agoIssue 8287: try to fix the gdb-python install errors on Solaris
R. David Murray [Mon, 5 Apr 2010 01:34:50 +0000 (01:34 +0000)]
Issue 8287: try to fix the gdb-python install errors on Solaris
and FreeBSD.  Patch by Dave Malcolm.

14 years agoDocument signal handling functions in unittest.rst
Michael Foord [Mon, 5 Apr 2010 00:39:50 +0000 (00:39 +0000)]
Document signal handling functions in unittest.rst

14 years agoAdding documentation for new unittest.main() parameters
Michael Foord [Sun, 4 Apr 2010 23:28:44 +0000 (23:28 +0000)]
Adding documentation for new unittest.main() parameters

14 years agofix dis on new style classes #8310
Benjamin Peterson [Sun, 4 Apr 2010 23:23:22 +0000 (23:23 +0000)]
fix dis on new style classes #8310

14 years agoFix markup in decimal.rst.
Ezio Melotti [Sun, 4 Apr 2010 23:21:53 +0000 (23:21 +0000)]
Fix markup in decimal.rst.

14 years agofix tabs
Benjamin Peterson [Sun, 4 Apr 2010 23:03:22 +0000 (23:03 +0000)]
fix tabs

14 years agotabify
Benjamin Peterson [Sun, 4 Apr 2010 23:01:03 +0000 (23:01 +0000)]
tabify

14 years agounittest documentation formatting changes
Michael Foord [Sun, 4 Apr 2010 22:41:54 +0000 (22:41 +0000)]
unittest documentation formatting changes

14 years agoAdd tests for functools.total_ordering.
Raymond Hettinger [Sun, 4 Apr 2010 22:24:03 +0000 (22:24 +0000)]
Add tests for functools.total_ordering.

14 years agoAdd versionchanged entry for Decimal(float) construction.
Mark Dickinson [Sun, 4 Apr 2010 22:09:21 +0000 (22:09 +0000)]
Add versionchanged entry for Decimal(float) construction.

Also add an example of constructing a Decimal directly from a float,
update the quickstart tutorial, and tweak another couple of
sentences.

14 years agoAdd tests for cmp_to_key.
Raymond Hettinger [Sun, 4 Apr 2010 21:45:01 +0000 (21:45 +0000)]
Add tests for cmp_to_key.
Adopt PEP 8 compliant function name.
Factor-out existing uses cmp_to_key.
Update documentation to use internal pointers instead of external resource.

14 years agoA handful of whitespace fixes in Modules/_struct.c.
Mark Dickinson [Sun, 4 Apr 2010 21:19:35 +0000 (21:19 +0000)]
A handful of whitespace fixes in Modules/_struct.c.

14 years agoAdd functools.CmpToKey()
Raymond Hettinger [Sun, 4 Apr 2010 18:34:45 +0000 (18:34 +0000)]
Add functools.CmpToKey()

14 years agoIssue #8300 (__index__ handling in struct.pack): Remove redundant check
Mark Dickinson [Sun, 4 Apr 2010 08:43:04 +0000 (08:43 +0000)]
Issue #8300 (__index__ handling in struct.pack): Remove redundant check
and improve test coverage.  Thanks Meador Inge for the patch.

14 years agoDocumentation nit
Raymond Hettinger [Sun, 4 Apr 2010 07:33:46 +0000 (07:33 +0000)]
Documentation nit

14 years agoUse more specific assert* methods in test_struct.
Ezio Melotti [Sun, 4 Apr 2010 07:00:02 +0000 (07:00 +0000)]
Use more specific assert* methods in test_struct.

14 years agoRevert 79733 - Counter is new in 2.7, the versionadded is not necessary - and fix...
Ezio Melotti [Sun, 4 Apr 2010 06:50:58 +0000 (06:50 +0000)]
Revert 79733 - Counter is new in 2.7, the versionadded is not necessary - and fix a typo.

14 years agoAdd a versionadded to Counter.subtract() doc.
Ezio Melotti [Sun, 4 Apr 2010 06:41:27 +0000 (06:41 +0000)]
Add a versionadded to Counter.subtract() doc.

14 years agoIssue 5479: Add functools.total_ordering class decorator.
Raymond Hettinger [Sun, 4 Apr 2010 01:24:59 +0000 (01:24 +0000)]
Issue 5479:  Add functools.total_ordering class decorator.

14 years agouse our own locale independent ctype macros
Benjamin Peterson [Sat, 3 Apr 2010 23:03:35 +0000 (23:03 +0000)]
use our own locale independent ctype macros

requires building pyctype.o into pgen

14 years agoensure that the locale does not affect the tokenization of identifiers
Benjamin Peterson [Sat, 3 Apr 2010 22:48:51 +0000 (22:48 +0000)]
ensure that the locale does not affect the tokenization of identifiers

14 years agoExpand test coverage for deque.count().
Raymond Hettinger [Sat, 3 Apr 2010 22:34:15 +0000 (22:34 +0000)]
Expand test coverage for deque.count().

14 years agoimport bsddb more robustly
Benjamin Peterson [Sat, 3 Apr 2010 21:50:40 +0000 (21:50 +0000)]
import bsddb more robustly

14 years agoRemove useless (?) import from r79706
Antoine Pitrou [Sat, 3 Apr 2010 21:42:18 +0000 (21:42 +0000)]
Remove useless (?) import from r79706

14 years agoFix wording / typography, and a slightly misleading statement
Antoine Pitrou [Sat, 3 Apr 2010 21:22:38 +0000 (21:22 +0000)]
Fix wording / typography, and a slightly misleading statement
(memoryviews don't support complex structures right now)

14 years agoDon't install python-gdb.py as an executable.
Martin v. Löwis [Sat, 3 Apr 2010 18:54:07 +0000 (18:54 +0000)]
Don't install python-gdb.py as an executable.

14 years agoSilence DeprecationWarnings from uses of has_key and <> in plat-mac.
Mark Dickinson [Sat, 3 Apr 2010 18:17:54 +0000 (18:17 +0000)]
Silence DeprecationWarnings from uses of has_key and <> in plat-mac.

14 years agoAdd count() method to collections.deque().
Raymond Hettinger [Sat, 3 Apr 2010 18:10:37 +0000 (18:10 +0000)]
Add count() method to collections.deque().

14 years agoSilence a compiler warning.
Raymond Hettinger [Sat, 3 Apr 2010 17:10:05 +0000 (17:10 +0000)]
Silence a compiler warning.

14 years agoDocumenting new features in unittest
Michael Foord [Sat, 3 Apr 2010 17:03:11 +0000 (17:03 +0000)]
Documenting new features in unittest

14 years agoReplace backquotes with repr(), to silence a SyntaxWarning.
Mark Dickinson [Sat, 3 Apr 2010 16:54:02 +0000 (16:54 +0000)]
Replace backquotes with repr(), to silence a SyntaxWarning.

14 years agoEnsure 'module removed' warning messages contain the word 'module' or 'package'.
Mark Dickinson [Sat, 3 Apr 2010 16:41:20 +0000 (16:41 +0000)]
Ensure 'module removed' warning messages contain the word 'module' or 'package'.

This should fix the test_py3kwarn failure on OS X.  test_support.import_module
also requires this.

14 years agostop CObject deprecation warnings in test___all__
Benjamin Peterson [Sat, 3 Apr 2010 16:06:42 +0000 (16:06 +0000)]
stop CObject deprecation warnings in test___all__

14 years agoremove deprecation warnings silence attempting
Benjamin Peterson [Sat, 3 Apr 2010 15:58:15 +0000 (15:58 +0000)]
remove deprecation warnings silence attempting

14 years agoAdd Misc/NEWS entry for r79609.
Mark Dickinson [Sat, 3 Apr 2010 15:47:46 +0000 (15:47 +0000)]
Add Misc/NEWS entry for r79609.

14 years agospelling
Benjamin Peterson [Sat, 3 Apr 2010 15:45:59 +0000 (15:45 +0000)]
spelling

14 years agosilence PyCObject warnings in bsddb
Benjamin Peterson [Sat, 3 Apr 2010 15:44:56 +0000 (15:44 +0000)]
silence PyCObject warnings in bsddb

14 years agoremove unneeded argument
Benjamin Peterson [Sat, 3 Apr 2010 15:40:29 +0000 (15:40 +0000)]
remove unneeded argument

14 years agowrap
Benjamin Peterson [Sat, 3 Apr 2010 15:38:38 +0000 (15:38 +0000)]
wrap

14 years agoMinor tweak to unittest command line usage message
Michael Foord [Sat, 3 Apr 2010 15:20:00 +0000 (15:20 +0000)]
Minor tweak to unittest command line usage message

14 years agoAdding -b command line option to the unittest usage message.
Michael Foord [Sat, 3 Apr 2010 14:52:18 +0000 (14:52 +0000)]
Adding -b command line option to the unittest usage message.

14 years agoUse more specific assert* methods in test_decimal.
Ezio Melotti [Sat, 3 Apr 2010 14:51:00 +0000 (14:51 +0000)]
Use more specific assert* methods in test_decimal.

14 years agoIssue #8300: Let struct.pack use __index__ to convert and pack non-integers.
Mark Dickinson [Sat, 3 Apr 2010 14:05:10 +0000 (14:05 +0000)]
Issue #8300:  Let struct.pack use __index__ to convert and pack non-integers.
Based on a patch by Meador Inge.

14 years agoAdd missing return statement in an error condition.
Brian Curtin [Sat, 3 Apr 2010 13:58:39 +0000 (13:58 +0000)]
Add missing return statement in an error condition.

14 years agoFix a couple of issues with the test_structmembersType class in _testcapimodule
Mark Dickinson [Sat, 3 Apr 2010 10:27:05 +0000 (10:27 +0000)]
Fix a couple of issues with the test_structmembersType class in _testcapimodule

 - rename to _test_structmembersType to avoid the class being automatically
   called by test_capi

 - allow space for trailing NUL in inplace_member field of all_structmembers

 - use T_STRING_INPLACE instead of T_INPLACE_STRING as keyword argument
   to _test_structmembersType initializer

 - don't attempt to initialize inplace_member field if T_STRING_INPLACE
   argument wasn't supplied.

14 years agoAdd subtract() method to collections.Counter() objects.
Raymond Hettinger [Sat, 3 Apr 2010 10:22:00 +0000 (10:22 +0000)]
Add subtract() method to collections.Counter() objects.

14 years agoIssue #8227: Fix C API documentation, argument parsing
Victor Stinner [Sat, 3 Apr 2010 08:40:16 +0000 (08:40 +0000)]
Issue #8227: Fix C API documentation, argument parsing

 * 'z', 'z#', 'z*' does also accept Unicode
 * unify types name: replace "string or Unicode objet" by "string or Unicode"

14 years agoIssue #1222585: Added LDCXXSHARED for C++ support
Tarek Ziadé [Sat, 3 Apr 2010 08:37:59 +0000 (08:37 +0000)]
Issue #1222585: Added LDCXXSHARED for C++ support

14 years agoFactor-out constant expressions
Raymond Hettinger [Sat, 3 Apr 2010 07:57:09 +0000 (07:57 +0000)]
Factor-out constant expressions

14 years agoImprove clear() method. Keeps key/value refcnts >= 1 until final dict.clear() so...
Raymond Hettinger [Sat, 3 Apr 2010 03:14:28 +0000 (03:14 +0000)]
Improve clear() method.  Keeps key/value refcnts >= 1 until final dict.clear() so that decrefs to zero won't trigger arbitrary code .  Also runs a bit faster.

14 years agoAnother attempt at a fix for unittest.test.test_result for windows line endings
Michael Foord [Sat, 3 Apr 2010 02:33:55 +0000 (02:33 +0000)]
Another attempt at a fix for unittest.test.test_result for windows line endings

14 years agoCross platform unittest.TestResult newline handling when buffering stdout / stderr.
Michael Foord [Sat, 3 Apr 2010 02:21:39 +0000 (02:21 +0000)]
Cross platform unittest.TestResult newline handling when buffering stdout / stderr.

14 years agogive TypeError when trying to set T_STRING_INPLACE
Benjamin Peterson [Sat, 3 Apr 2010 01:28:57 +0000 (01:28 +0000)]
give TypeError when trying to set T_STRING_INPLACE

14 years agoSupport dotted module names for test discovery paths in unittest. Issue 7780.
Michael Foord [Sat, 3 Apr 2010 01:15:21 +0000 (01:15 +0000)]
Support dotted module names for test discovery paths in unittest. Issue 7780.

14 years agosplit out large test function
Benjamin Peterson [Sat, 3 Apr 2010 01:08:34 +0000 (01:08 +0000)]
split out large test function

14 years agoFix assertRaises usage on reflection functions which should raise
Brian Curtin [Sat, 3 Apr 2010 00:59:32 +0000 (00:59 +0000)]
Fix assertRaises usage on reflection functions which should raise
NotImplementedError on Windows XP and below.

14 years agomore _PyString_Resize error checking
Benjamin Peterson [Sat, 3 Apr 2010 00:57:33 +0000 (00:57 +0000)]
more _PyString_Resize error checking

14 years agoClear cyclical references in list based OrderedDict.
Raymond Hettinger [Sat, 3 Apr 2010 00:39:26 +0000 (00:39 +0000)]
Clear cyclical references in list based OrderedDict.

14 years agoalways check _PyString_Resize for error
Benjamin Peterson [Fri, 2 Apr 2010 23:59:41 +0000 (23:59 +0000)]
always check _PyString_Resize for error

also normalize how this error is checked

14 years agoset svn:eol-style on new file
Benjamin Peterson [Fri, 2 Apr 2010 23:31:40 +0000 (23:31 +0000)]
set svn:eol-style on new file

14 years agoAdd note about #1220212 (os.kill on Windows)
Brian Curtin [Fri, 2 Apr 2010 23:31:28 +0000 (23:31 +0000)]
Add note about #1220212 (os.kill on Windows)

14 years agoImplement #1220212. Add os.kill support for Windows.
Brian Curtin [Fri, 2 Apr 2010 23:26:06 +0000 (23:26 +0000)]
Implement #1220212. Add os.kill support for Windows.

os.kill takes one of two newly added signals, CTRL_C_EVENT and
CTRL_BREAK_EVENT, or any integer value. The events are a special case
which work with subprocess console applications which implement a
special console control handler. Any other value but those two will
cause os.kill to use TerminateProcess, outright killing the process.

This change adds win_console_handler.py, which is a script to implement
SetConsoleCtrlHandler and applicable handler function, using ctypes.

subprocess also gets another attribute which is a necessary flag to
creationflags in Popen in order to send the CTRL events.

14 years agoIssue #8038: Addition of unittest.TestCase.assertNotRegexpMatches
Michael Foord [Fri, 2 Apr 2010 22:55:59 +0000 (22:55 +0000)]
Issue #8038: Addition of unittest.TestCase.assertNotRegexpMatches

14 years agounittest tests no longer replace the sys.stdout put in place by regrtest
Michael Foord [Fri, 2 Apr 2010 22:30:56 +0000 (22:30 +0000)]
unittest tests no longer replace the sys.stdout put in place by regrtest

14 years agoIssue #8294: Allow float and Decimal arguments in Fraction constructor.
Mark Dickinson [Fri, 2 Apr 2010 22:27:36 +0000 (22:27 +0000)]
Issue #8294:  Allow float and Decimal arguments in Fraction constructor.

14 years agoTestResult stores original sys.stdout and tests no longer use sys.__stdout__ (etc...
Michael Foord [Fri, 2 Apr 2010 22:08:29 +0000 (22:08 +0000)]
TestResult stores original sys.stdout and tests no longer use sys.__stdout__ (etc) in tests for unittest -b command line option

14 years agoAdd a line about #7347 to Misc\News
Brian Curtin [Fri, 2 Apr 2010 21:51:37 +0000 (21:51 +0000)]
Add a line about #7347 to Misc\News

14 years agoFix test_compiler.py that was using unittest.__file__ to find Lib/ (unittest is now...
Ezio Melotti [Fri, 2 Apr 2010 21:43:10 +0000 (21:43 +0000)]
Fix test_compiler.py that was using unittest.__file__ to find Lib/ (unittest is now a package).

14 years agoAddition of -b command line option to unittest for buffering stdout and stderr during...
Michael Foord [Fri, 2 Apr 2010 21:42:47 +0000 (21:42 +0000)]
Addition of -b command line option to unittest for buffering stdout and stderr during test runs.

14 years agoremoved documentation on code that was reverted and pushed into distutils2
Tarek Ziadé [Fri, 2 Apr 2010 21:34:19 +0000 (21:34 +0000)]
removed documentation on code that was reverted and pushed into distutils2

14 years agoImplement #7347. Add CreateKeyEx, DeleteKeyEx, and update _winreg tests.
Brian Curtin [Fri, 2 Apr 2010 21:18:14 +0000 (21:18 +0000)]
Implement #7347. Add CreateKeyEx, DeleteKeyEx, and update _winreg tests.

*ReflectionKey functions used to not be documented or tested, but they are
now sufficiently documented and tested on platforms where they apply.
Additionally, fixed a bug in QueryReflectionKey which was returning an
incorrect value.

All tests pass from XP through Windows 7, on 32 and 64-bit platforms.

14 years agoremoved the local copy of xxmodule, and skip only test_build_ext when xxmodule is...
Tarek Ziadé [Fri, 2 Apr 2010 21:14:04 +0000 (21:14 +0000)]
removed the local copy of xxmodule, and skip only test_build_ext when xxmodule is not found, not the whole unittest

14 years agoAdd python-gdb.py and python.exe-gdb.py to distclean target in Makefile.
Mark Dickinson [Fri, 2 Apr 2010 20:34:26 +0000 (20:34 +0000)]
Add python-gdb.py and python.exe-gdb.py to distclean target in Makefile.