]>
granicus.if.org Git - python/log
Ezio Melotti [Sun, 4 Apr 2010 07:00:02 +0000 (07:00 +0000)]
Use more specific assert* methods in test_struct.
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.
Ezio Melotti [Sun, 4 Apr 2010 06:41:27 +0000 (06:41 +0000)]
Add a versionadded to Counter.subtract() doc.
Raymond Hettinger [Sun, 4 Apr 2010 01:24:59 +0000 (01:24 +0000)]
Issue 5479: Add functools.total_ordering class decorator.
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
Benjamin Peterson [Sat, 3 Apr 2010 22:48:51 +0000 (22:48 +0000)]
ensure that the locale does not affect the tokenization of identifiers
Raymond Hettinger [Sat, 3 Apr 2010 22:34:15 +0000 (22:34 +0000)]
Expand test coverage for deque.count().
Benjamin Peterson [Sat, 3 Apr 2010 21:50:40 +0000 (21:50 +0000)]
import bsddb more robustly
Antoine Pitrou [Sat, 3 Apr 2010 21:42:18 +0000 (21:42 +0000)]
Remove useless (?) import from r79706
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)
Martin v. Löwis [Sat, 3 Apr 2010 18:54:07 +0000 (18:54 +0000)]
Don't install python-gdb.py as an executable.
Mark Dickinson [Sat, 3 Apr 2010 18:17:54 +0000 (18:17 +0000)]
Silence DeprecationWarnings from uses of has_key and <> in plat-mac.
Raymond Hettinger [Sat, 3 Apr 2010 18:10:37 +0000 (18:10 +0000)]
Add count() method to collections.deque().
Raymond Hettinger [Sat, 3 Apr 2010 17:10:05 +0000 (17:10 +0000)]
Silence a compiler warning.
Michael Foord [Sat, 3 Apr 2010 17:03:11 +0000 (17:03 +0000)]
Documenting new features in unittest
Mark Dickinson [Sat, 3 Apr 2010 16:54:02 +0000 (16:54 +0000)]
Replace backquotes with repr(), to silence a SyntaxWarning.
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.
Benjamin Peterson [Sat, 3 Apr 2010 16:06:42 +0000 (16:06 +0000)]
stop CObject deprecation warnings in test___all__
Benjamin Peterson [Sat, 3 Apr 2010 15:58:15 +0000 (15:58 +0000)]
remove deprecation warnings silence attempting
Mark Dickinson [Sat, 3 Apr 2010 15:47:46 +0000 (15:47 +0000)]
Add Misc/NEWS entry for r79609.
Benjamin Peterson [Sat, 3 Apr 2010 15:45:59 +0000 (15:45 +0000)]
spelling
Benjamin Peterson [Sat, 3 Apr 2010 15:44:56 +0000 (15:44 +0000)]
silence PyCObject warnings in bsddb
Benjamin Peterson [Sat, 3 Apr 2010 15:40:29 +0000 (15:40 +0000)]
remove unneeded argument
Benjamin Peterson [Sat, 3 Apr 2010 15:38:38 +0000 (15:38 +0000)]
wrap
Michael Foord [Sat, 3 Apr 2010 15:20:00 +0000 (15:20 +0000)]
Minor tweak to unittest command line 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.
Ezio Melotti [Sat, 3 Apr 2010 14:51:00 +0000 (14:51 +0000)]
Use more specific assert* methods in test_decimal.
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.
Brian Curtin [Sat, 3 Apr 2010 13:58:39 +0000 (13:58 +0000)]
Add missing return statement in an error condition.
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.
Raymond Hettinger [Sat, 3 Apr 2010 10:22:00 +0000 (10:22 +0000)]
Add subtract() method to collections.Counter() objects.
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"
Tarek Ziadé [Sat, 3 Apr 2010 08:37:59 +0000 (08:37 +0000)]
Issue #
1222585 : Added LDCXXSHARED for C++ support
Raymond Hettinger [Sat, 3 Apr 2010 07:57:09 +0000 (07:57 +0000)]
Factor-out constant expressions
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.
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
Michael Foord [Sat, 3 Apr 2010 02:21:39 +0000 (02:21 +0000)]
Cross platform unittest.TestResult newline handling when buffering stdout / stderr.
Benjamin Peterson [Sat, 3 Apr 2010 01:28:57 +0000 (01:28 +0000)]
give TypeError when trying to set T_STRING_INPLACE
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.
Benjamin Peterson [Sat, 3 Apr 2010 01:08:34 +0000 (01:08 +0000)]
split out large test function
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.
Benjamin Peterson [Sat, 3 Apr 2010 00:57:33 +0000 (00:57 +0000)]
more _PyString_Resize error checking
Raymond Hettinger [Sat, 3 Apr 2010 00:39:26 +0000 (00:39 +0000)]
Clear cyclical references in list based OrderedDict.
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
Benjamin Peterson [Fri, 2 Apr 2010 23:31:40 +0000 (23:31 +0000)]
set svn:eol-style on new file
Brian Curtin [Fri, 2 Apr 2010 23:31:28 +0000 (23:31 +0000)]
Add note about #
1220212 (os.kill on 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.
Michael Foord [Fri, 2 Apr 2010 22:55:59 +0000 (22:55 +0000)]
Issue #8038: Addition of unittest.TestCase.assertNotRegexpMatches
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
Mark Dickinson [Fri, 2 Apr 2010 22:27:36 +0000 (22:27 +0000)]
Issue #8294: Allow float and Decimal arguments in Fraction constructor.
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
Brian Curtin [Fri, 2 Apr 2010 21:51:37 +0000 (21:51 +0000)]
Add a line about #7347 to Misc\News
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).
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.
Tarek Ziadé [Fri, 2 Apr 2010 21:34:19 +0000 (21:34 +0000)]
removed documentation on code that was reverted and pushed into distutils2
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.
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
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.
Mark Dickinson [Fri, 2 Apr 2010 20:22:21 +0000 (20:22 +0000)]
Add python.exe-gdb.py to svn:ignore, for the benefit of OS X developers.
Raymond Hettinger [Fri, 2 Apr 2010 18:39:24 +0000 (18:39 +0000)]
Issue 8257: Decimal constructor to accept float.
Andrew M. Kuchling [Fri, 2 Apr 2010 17:54:26 +0000 (17:54 +0000)]
#6647: add note to two examples
Andrew M. Kuchling [Fri, 2 Apr 2010 17:48:23 +0000 (17:48 +0000)]
#6647: document that catch_warnings is not thread-safe
Florent Xicluna [Fri, 2 Apr 2010 17:26:42 +0000 (17:26 +0000)]
Backport some robotparser test and skip the test if the external resource is not available.
Andrew M. Kuchling [Fri, 2 Apr 2010 16:59:16 +0000 (16:59 +0000)]
#4440: modernize a use of filter(), making it compatible with 3.x
Eric Smith [Fri, 2 Apr 2010 12:30:56 +0000 (12:30 +0000)]
Issue 7994: Make object.__format__ with a non-empty format string a PendingDecprecationWarning. Still need to remove uses of this from various tests.
Larry Hastings [Fri, 2 Apr 2010 11:18:17 +0000 (11:18 +0000)]
Issue #8235: _socket: Add the constant ``SO_SETFIB``. SO_SETFIB is
a socket option available on FreeBSD 7.1 and newer.
Larry Hastings [Fri, 2 Apr 2010 11:01:35 +0000 (11:01 +0000)]
Capsule-related changes:
* PyCObject_AsVoidPtr() can now open capsules. This addresses
most of the remaining backwards-compatibility concerns about
the conversion of Python 2.7 from CObjects to capsules.
* CObjects were marked Pending Deprecation.
* Documentation about this pending deprecation was added to
cobject.h.
* The capsule source files were added to the legacy PC build
processes.
Mark Dickinson [Fri, 2 Apr 2010 10:35:12 +0000 (10:35 +0000)]
Issue #7279: Make Decimal('nan') hashable. Decimal('snan') remains unhashable.
Also rewrite the Decimal __hash__ method so that it doesn't rely on
float('inf') being valid: float('inf') could raise an exception on
platforms not using IEEE 754 arithmetic.
Mark Dickinson [Fri, 2 Apr 2010 10:17:07 +0000 (10:17 +0000)]
Issue #7279: Make comparisons involving a Decimal sNaN signal InvalidOperation.
Georg Brandl [Fri, 2 Apr 2010 09:11:49 +0000 (09:11 +0000)]
#8012: clarification in generator glossary entry.
Georg Brandl [Fri, 2 Apr 2010 09:07:42 +0000 (09:07 +0000)]
Document PyImport_ExecCodeModuleEx().
Georg Brandl [Fri, 2 Apr 2010 09:03:18 +0000 (09:03 +0000)]
Remove col-spanning cells in logging docs.
Mark Dickinson [Fri, 2 Apr 2010 08:53:22 +0000 (08:53 +0000)]
Issue #2531: Make float-to-decimal comparisons return correct results.
Float to decimal comparison operations now return a result based on
the numeric values of the operands. Decimal.__hash__ has also been
fixed so that Decimal and float values that compare equal have equal
hash value.
Georg Brandl [Fri, 2 Apr 2010 08:51:31 +0000 (08:51 +0000)]
Fix typo in unicode character name.
Georg Brandl [Fri, 2 Apr 2010 08:39:09 +0000 (08:39 +0000)]
#2768: add a note on how to get a file descriptor.
Georg Brandl [Fri, 2 Apr 2010 08:34:41 +0000 (08:34 +0000)]
Add 2.6.5.
Florent Xicluna [Fri, 2 Apr 2010 08:30:21 +0000 (08:30 +0000)]
#7092: silence some py3k warnings
Florent Xicluna [Fri, 2 Apr 2010 08:15:26 +0000 (08:15 +0000)]
#7092: Drop the cmp argument.
Florent Xicluna [Fri, 2 Apr 2010 07:24:52 +0000 (07:24 +0000)]
#7092: Fix additional "-3" warnings in the idlelib package, and convert to absolute imports.
Raymond Hettinger [Fri, 2 Apr 2010 06:23:12 +0000 (06:23 +0000)]
Cleanup itertools recipes
Raymond Hettinger [Fri, 2 Apr 2010 02:44:31 +0000 (02:44 +0000)]
Add and update itertools recipes.
Florent Xicluna [Thu, 1 Apr 2010 18:17:09 +0000 (18:17 +0000)]
#7092: Fix some -3 warnings, and fix Lib/platform.py when the path contains a double-quote.
Antoine Pitrou [Thu, 1 Apr 2010 17:56:57 +0000 (17:56 +0000)]
Issue #8281: rename test_gdb_sample.py to gdb_sample.py, otherwise it gets picked
as a regular test by regrtest.py, and fails.
Antoine Pitrou [Thu, 1 Apr 2010 16:42:11 +0000 (16:42 +0000)]
Issue #8276: PyEval_CallObject() is now only available in macro form. The
function declaration, which was kept for backwards compatibility reasons,
is now removed (the macro was introduced in 1997!).
Raymond Hettinger [Thu, 1 Apr 2010 07:54:16 +0000 (07:54 +0000)]
Document link to Sorting HowTo
Martin v. Löwis [Thu, 1 Apr 2010 07:40:51 +0000 (07:40 +0000)]
Issue #8032: For gdb7, a python-gdb.py file is added to the build,
allowing to use advanced gdb features when debugging Python.
Brian Curtin [Thu, 1 Apr 2010 04:02:00 +0000 (04:02 +0000)]
Fix a test_pydoc failure on Neal Norwitz's buildbot.
R. David Murray [Thu, 1 Apr 2010 01:28:39 +0000 (01:28 +0000)]
A couple small grammar fixes in test.rst, and rewrite the
check_warnings docs to be clearer.
Ezio Melotti [Wed, 31 Mar 2010 22:43:31 +0000 (22:43 +0000)]
Add -Wd and -3 to the flags used to run the tests on Windows.
Ezio Melotti [Wed, 31 Mar 2010 22:18:09 +0000 (22:18 +0000)]
Add -Wd and -3 to the flags used to run the tests.
Florent Xicluna [Wed, 31 Mar 2010 22:01:03 +0000 (22:01 +0000)]
Replace catch_warnings with check_warnings when it makes sense. Use assertRaises context manager to simplify some tests.
Florent Xicluna [Wed, 31 Mar 2010 21:40:32 +0000 (21:40 +0000)]
Fix typo
Antoine Pitrou [Wed, 31 Mar 2010 21:32:15 +0000 (21:32 +0000)]
Issue #8268: Old-style classes (not just instances) now support weak
references.
Florent Xicluna [Wed, 31 Mar 2010 21:21:54 +0000 (21:21 +0000)]
Fix test for xml.etree when using a non-ascii path. And use check_warnings instead of catch_warnings.
Barry Warsaw [Wed, 31 Mar 2010 21:07:16 +0000 (21:07 +0000)]
- Issue #8233: When run as a script, py_compile.py optionally takes a single
argument `-` which tells it to read files to compile from stdin. Each line
is read on demand and the named file is compiled immediately. (Original
patch by Piotr Ożarowski).
Brian Curtin [Wed, 31 Mar 2010 17:36:09 +0000 (17:36 +0000)]
Correct what was intended to be a single-tuple to just be a != check.
Thanks to Éric Araujo for noticing that.
Ezio Melotti [Wed, 31 Mar 2010 08:33:50 +0000 (08:33 +0000)]
Silence a py3k warning.
Ezio Melotti [Wed, 31 Mar 2010 07:26:24 +0000 (07:26 +0000)]
Revert r79179 and merge r75584 to explain how to implement a queue using collection.deque instead of a list.
Brian Curtin [Wed, 31 Mar 2010 03:10:21 +0000 (03:10 +0000)]
Fix #8225. xml.etree was displaying an incorrect link when viewed in help.
Thomas Heller [Tue, 30 Mar 2010 20:57:06 +0000 (20:57 +0000)]
Revert rev. 79509; ctypes doesn't build on linux.