]> granicus.if.org Git - python/log
python
15 years agoIssue #3745: Undo the requirement for new buffer API only objects to be passed
Gregory P. Smith [Sat, 2 Jan 2010 22:28:48 +0000 (22:28 +0000)]
Issue #3745: Undo the requirement for new buffer API only objects to be passed
to hashlib functions in python 2.x.  The module now uses the 's*' for argument
parsing which auto encodes unicode objects to the system default encoding for
us.

15 years agoAlways compile the all versions of the hashlib algorithm modules when Python
Gregory P. Smith [Sat, 2 Jan 2010 22:25:29 +0000 (22:25 +0000)]
Always compile the all versions of the hashlib algorithm modules when Python
was compiled with Py_DEBUG defined.  Otherwise the builtins are not compiled by
default for many developers due to OpenSSL being present, making it easier for
bugs to slip by.  A future commit will add test code compare the behaviors of
all implementations when they are all available.

15 years agoRemove silly conditional.
Antoine Pitrou [Sat, 2 Jan 2010 21:53:44 +0000 (21:53 +0000)]
Remove silly conditional.

15 years agoAdd tests for issue #7458: str.rfind() would crash when called with an invalid
Antoine Pitrou [Sat, 2 Jan 2010 21:47:10 +0000 (21:47 +0000)]
Add tests for issue #7458: str.rfind() would crash when called with an invalid
start value.  The offending code itself was removed as part of #7462.
This patch by Victor Stinner.

15 years agoCorrect documentation for s* z* and w*, the argument that should be passed
Gregory P. Smith [Sat, 2 Jan 2010 21:29:54 +0000 (21:29 +0000)]
Correct documentation for s* z* and w*, the argument that should be passed
is the address of a Py_buffer, not a Py_buffer *.

15 years agoIssue #7462: Implement the stringlib fast search algorithm for the `rfind`,
Antoine Pitrou [Sat, 2 Jan 2010 21:12:58 +0000 (21:12 +0000)]
Issue #7462: Implement the stringlib fast search algorithm for the `rfind`,
`rindex`, `rsplit` and `rpartition` methods.  Patch by Florent Xicluna.

15 years agoRefactor some longobject internals: PyLong_AsDouble and _PyLong_AsScaledDouble
Mark Dickinson [Sat, 2 Jan 2010 14:45:40 +0000 (14:45 +0000)]
Refactor some longobject internals:  PyLong_AsDouble and _PyLong_AsScaledDouble
(the latter renamed to _PyLong_Frexp) now use the same core code.  The
exponent produced by _PyLong_Frexp now has type Py_ssize_t instead of the
previously used int, and no longer needs scaling by PyLong_SHIFT.  This
frees the math module from having to know anything about the PyLong
implementation.  This closes issue #5576.

15 years agoClarify that the rect, phase and polar functions work with radians.
Mark Dickinson [Sat, 2 Jan 2010 14:29:52 +0000 (14:29 +0000)]
Clarify that the rect, phase and polar functions work with radians.

15 years agoFix casing.
Georg Brandl [Sat, 2 Jan 2010 12:35:01 +0000 (12:35 +0000)]
Fix casing.

15 years agoMake script work with 2.5.
Martin v. Löwis [Sat, 2 Jan 2010 09:53:18 +0000 (09:53 +0000)]
Make script work with 2.5.

15 years agoUpdate Windows build to sqlite 3.6.21.
Martin v. Löwis [Sat, 2 Jan 2010 09:25:21 +0000 (09:25 +0000)]
Update Windows build to sqlite 3.6.21.

15 years agoremove use of deprecated os.popen #7619
Benjamin Peterson [Sat, 2 Jan 2010 02:43:04 +0000 (02:43 +0000)]
remove use of deprecated os.popen #7619

15 years agoIssue #5080: turn the DeprecationWarning from float arguments passed
Mark Dickinson [Fri, 1 Jan 2010 17:27:30 +0000 (17:27 +0000)]
Issue #5080: turn the DeprecationWarning from float arguments passed
to integer PyArg_Parse* format codes into a TypeError.  Add a
DeprecationWarning for floats passed with the 'L' format code, which
didn't previously have a warning.

15 years agoallow --with-dbmliborder to specify that no dbm modules will be built #6491
Benjamin Peterson [Fri, 1 Jan 2010 15:21:13 +0000 (15:21 +0000)]
allow --with-dbmliborder to specify that no dbm modules will be built #6491

15 years agofix indentation
Benjamin Peterson [Fri, 1 Jan 2010 15:20:06 +0000 (15:20 +0000)]
fix indentation

15 years agoadd note
Benjamin Peterson [Fri, 1 Jan 2010 15:18:38 +0000 (15:18 +0000)]
add note

15 years agouse pkg-config to find the libffi headers when --with-system-ffi is used #6943
Benjamin Peterson [Fri, 1 Jan 2010 15:16:29 +0000 (15:16 +0000)]
use pkg-config to find the libffi headers when --with-system-ffi is used #6943

15 years agoMore yearly updates.
Georg Brandl [Fri, 1 Jan 2010 13:07:05 +0000 (13:07 +0000)]
More yearly updates.

15 years agomore copyright year updates
Ezio Melotti [Fri, 1 Jan 2010 04:16:42 +0000 (04:16 +0000)]
more copyright year updates

15 years agoupdate copyright year
Benjamin Peterson [Fri, 1 Jan 2010 04:00:55 +0000 (04:00 +0000)]
update copyright year

15 years agoAdd some missing command-line options to the main list. All but -V were already
Brett Cannon [Fri, 1 Jan 2010 01:44:57 +0000 (01:44 +0000)]
Add some missing command-line options to the main list. All but -V were already
documented. Left -V undocumented for now (and -U was already undocumented).

15 years agoMore configure fixes: avoid sh 'integer argument expected' error when 'long long...
Mark Dickinson [Thu, 31 Dec 2009 21:11:48 +0000 (21:11 +0000)]
More configure fixes: avoid sh 'integer argument expected' error when 'long long' type doesn't exist.

15 years agoAdd missing quotes.
Mark Dickinson [Thu, 31 Dec 2009 20:48:04 +0000 (20:48 +0000)]
Add missing quotes.

15 years agoadd another advancement
Benjamin Peterson [Thu, 31 Dec 2009 16:49:37 +0000 (16:49 +0000)]
add another advancement

15 years agoAdd various items
Andrew M. Kuchling [Thu, 31 Dec 2009 16:38:53 +0000 (16:38 +0000)]
Add various items

15 years agoupdate expat comment
Benjamin Peterson [Thu, 31 Dec 2009 16:28:24 +0000 (16:28 +0000)]
update expat comment

15 years agoAdd some items
Andrew M. Kuchling [Thu, 31 Dec 2009 16:17:05 +0000 (16:17 +0000)]
Add some items

15 years ago#7613: missing ) in flmodule.c
Ezio Melotti [Thu, 31 Dec 2009 13:47:24 +0000 (13:47 +0000)]
#7613: missing ) in flmodule.c

15 years agoindentation and further alignment with py3k
Ezio Melotti [Thu, 31 Dec 2009 13:27:41 +0000 (13:27 +0000)]
indentation and further alignment with py3k

15 years agocleanup and refactoring
Ezio Melotti [Thu, 31 Dec 2009 13:00:43 +0000 (13:00 +0000)]
cleanup and refactoring

15 years agoadd a --with-system-expat option to build pyexpat against the system's lib #7609
Benjamin Peterson [Thu, 31 Dec 2009 03:17:18 +0000 (03:17 +0000)]
add a --with-system-expat option to build pyexpat against the system's lib #7609

15 years agoMerged revisions 77158 via svnmerge from
Benjamin Peterson [Wed, 30 Dec 2009 19:44:23 +0000 (19:44 +0000)]
Merged revisions 77158 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3

........
  r77158 | benjamin.peterson | 2009-12-30 13:41:03 -0600 (Wed, 30 Dec 2009) | 1 line

  clean up logging's global state after the test finishes
........

15 years agocheck if the attribute is set before deleting it with T_OBJECT_EX (fixes #7604)
Benjamin Peterson [Wed, 30 Dec 2009 19:34:10 +0000 (19:34 +0000)]
check if the attribute is set before deleting it with T_OBJECT_EX (fixes #7604)

Also, add a note to the docs about the better behavior of T_OBJECT_EX as
compared to T_OBJECT.

15 years agoWe only support Windows NT derivatives now.
Georg Brandl [Wed, 30 Dec 2009 19:03:00 +0000 (19:03 +0000)]
We only support Windows NT derivatives now.

15 years ago#7602: improve "clean" and "checkout" targets now that all tools are in externals.
Georg Brandl [Wed, 30 Dec 2009 18:36:09 +0000 (18:36 +0000)]
#7602: improve "clean" and "checkout" targets now that all tools are in externals.

15 years ago#7487: update Pygments version.
Georg Brandl [Wed, 30 Dec 2009 18:32:50 +0000 (18:32 +0000)]
#7487: update Pygments version.

15 years agoUse new Pygments version.
Georg Brandl [Wed, 30 Dec 2009 16:21:26 +0000 (16:21 +0000)]
Use new Pygments version.

15 years agoAdd Marcos Donolo for work on issue 7534 patch.
Mark Dickinson [Wed, 30 Dec 2009 12:22:49 +0000 (12:22 +0000)]
Add Marcos Donolo for work on issue 7534 patch.

15 years agoIssue #7534: Fix handling of nans, infinities, and negative zero in **
Mark Dickinson [Wed, 30 Dec 2009 12:12:23 +0000 (12:12 +0000)]
Issue #7534:  Fix handling of nans, infinities, and negative zero in **
operator, on IEEE 754 platforms.  Thanks Marcos Donolo for original patch.

15 years ago#5511: Added the ability to use ZipFile as a context manager. Patch by Brian Curtin.
Ezio Melotti [Wed, 30 Dec 2009 06:14:51 +0000 (06:14 +0000)]
#5511: Added the ability to use ZipFile as a context manager. Patch by Brian Curtin.

15 years agowrap long line
Benjamin Peterson [Wed, 30 Dec 2009 03:02:34 +0000 (03:02 +0000)]
wrap long line

15 years agoonly build the nis module when the headers are found #7589
Benjamin Peterson [Wed, 30 Dec 2009 02:58:50 +0000 (02:58 +0000)]
only build the nis module when the headers are found #7589

15 years agoAdd various items
Andrew M. Kuchling [Tue, 29 Dec 2009 23:41:04 +0000 (23:41 +0000)]
Add various items

15 years ago#7579: Add docstrings to the msvcrt module
Amaury Forgeot d'Arc [Tue, 29 Dec 2009 23:06:17 +0000 (23:06 +0000)]
#7579: Add docstrings to the msvcrt module

15 years ago#7413: Passing '\0' as the separator to datetime.datetime.isoformat()
Amaury Forgeot d'Arc [Tue, 29 Dec 2009 22:03:38 +0000 (22:03 +0000)]
#7413: Passing '\0' as the separator to datetime.datetime.isoformat()
used to drop the time part of the result.

15 years ago#7595: fix typo in argument default constant.
Georg Brandl [Tue, 29 Dec 2009 21:09:17 +0000 (21:09 +0000)]
#7595: fix typo in argument default constant.

15 years agoIssue #7575: An overflow test for math.expm1 was failing on OS X 10.4/Intel,
Mark Dickinson [Tue, 29 Dec 2009 20:51:24 +0000 (20:51 +0000)]
Issue #7575:  An overflow test for math.expm1 was failing on OS X 10.4/Intel,
due to a defect in the platform's implementation of expm1.  Since the issue
is of low severity, and appears to be fixed in OS X 10.5 and 10.6, it doesn't
seem worth working around, so I'm just weakening the relevant test so that
it passes on 10.4.

15 years agoVarious additions
Andrew M. Kuchling [Tue, 29 Dec 2009 20:10:16 +0000 (20:10 +0000)]
Various additions

15 years agoFix wrong markup.
Georg Brandl [Tue, 29 Dec 2009 11:25:38 +0000 (11:25 +0000)]
Fix wrong markup.

15 years agoImprove markup of ctypes docs.
Georg Brandl [Tue, 29 Dec 2009 11:06:31 +0000 (11:06 +0000)]
Improve markup of ctypes docs.

15 years ago#7569: clarification about c_char_p.
Georg Brandl [Tue, 29 Dec 2009 10:34:34 +0000 (10:34 +0000)]
#7569: clarification about c_char_p.

15 years agoenable test_main.py
Benjamin Peterson [Tue, 29 Dec 2009 00:09:33 +0000 (00:09 +0000)]
enable test_main.py

15 years agoMerged revisions 76871-76872,77093-77095,77097-77101 via svnmerge from
Benjamin Peterson [Mon, 28 Dec 2009 23:50:41 +0000 (23:50 +0000)]
Merged revisions 76871-76872,77093-77095,77097-77101 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3

........
  r76871 | benjamin.peterson | 2009-12-17 20:49:21 -0600 (Thu, 17 Dec 2009) | 1 line

  handle unencodable diffs gracefully #5093
........
  r76872 | benjamin.peterson | 2009-12-17 20:51:37 -0600 (Thu, 17 Dec 2009) | 1 line

  fix emacs header
........
  r77093 | benjamin.peterson | 2009-12-28 14:43:32 -0600 (Mon, 28 Dec 2009) | 7 lines

  replace callable(x) with isinstance(x, collections.Callable) #7006

  This is a more accurate translation than hasattr(x, '__call__') which failed in
  the case that somebody had put __call__ in the instance dictionary.

  Patch mostly by Joe Amenta.
........
  r77094 | benjamin.peterson | 2009-12-28 14:45:13 -0600 (Mon, 28 Dec 2009) | 2 lines

  deuglify imports
........
  r77095 | benjamin.peterson | 2009-12-28 14:49:23 -0600 (Mon, 28 Dec 2009) | 1 line

  remove unused flag
........
  r77097 | benjamin.peterson | 2009-12-28 16:12:13 -0600 (Mon, 28 Dec 2009) | 2 lines

  clean up imports and whitespace
........
  r77098 | benjamin.peterson | 2009-12-28 16:43:35 -0600 (Mon, 28 Dec 2009) | 1 line

  *** empty log message ***
........
  r77099 | benjamin.peterson | 2009-12-28 16:45:10 -0600 (Mon, 28 Dec 2009) | 1 line

  revert unintended change
........
  r77100 | benjamin.peterson | 2009-12-28 16:53:21 -0600 (Mon, 28 Dec 2009) | 1 line

  revert unintended changes
........
  r77101 | benjamin.peterson | 2009-12-28 17:46:02 -0600 (Mon, 28 Dec 2009) | 1 line

  normalize whitespace
........

15 years agodocument new fix_callable behavior
Benjamin Peterson [Mon, 28 Dec 2009 20:51:17 +0000 (20:51 +0000)]
document new fix_callable behavior

15 years ago#7404: remove reference to non-existing example files.
Georg Brandl [Mon, 28 Dec 2009 08:48:24 +0000 (08:48 +0000)]
#7404: remove reference to non-existing example files.

15 years ago#7033: add new API function PyErr_NewExceptionWithDoc, for easily giving new exceptio...
Georg Brandl [Mon, 28 Dec 2009 08:34:58 +0000 (08:34 +0000)]
#7033: add new API function PyErr_NewExceptionWithDoc, for easily giving new exceptions a docstring.

15 years ago#7381: consistency update, and backport avoiding ``None >= 0`` check from py3k.
Georg Brandl [Mon, 28 Dec 2009 08:09:32 +0000 (08:09 +0000)]
#7381: consistency update, and backport avoiding ``None >= 0`` check from py3k.

15 years ago#7586: fix typo.
Georg Brandl [Mon, 28 Dec 2009 08:01:59 +0000 (08:01 +0000)]
#7586: fix typo.

15 years ago#7577: fix signature of PyBuffer_FillInfo().
Georg Brandl [Mon, 28 Dec 2009 07:59:05 +0000 (07:59 +0000)]
#7577: fix signature of PyBuffer_FillInfo().

15 years agoUse a more idiomatic check in check_truediv.
Mark Dickinson [Sun, 27 Dec 2009 21:31:50 +0000 (21:31 +0000)]
Use a more idiomatic check in check_truediv.

15 years agoFix a typo in comment
Amaury Forgeot d'Arc [Sun, 27 Dec 2009 20:06:44 +0000 (20:06 +0000)]
Fix a typo in comment

15 years agoUse ldexp(q, exp) instead of q*2.**exp in true division test, to avoid bogus failures...
Mark Dickinson [Sun, 27 Dec 2009 16:16:02 +0000 (16:16 +0000)]
Use ldexp(q, exp) instead of q*2.**exp in true division test, to avoid bogus failures on platforms with broken pow (e.g., Ubuntu/ia64).

15 years agoIssue #1811: Improve accuracy and consistency of true division for integers.
Mark Dickinson [Sun, 27 Dec 2009 14:55:57 +0000 (14:55 +0000)]
Issue #1811:  Improve accuracy and consistency of true division for integers.

15 years agoFix for issue5625 - test_urllib2 fails - urlopen error file not on local host.
Senthil Kumaran [Sun, 27 Dec 2009 09:11:09 +0000 (09:11 +0000)]
Fix for issue5625 - test_urllib2 fails - urlopen error file not on local host.
This is on hosts with multiple ip addresses.

15 years agoUpdated sys.flags table in Doc
Ezio Melotti [Fri, 25 Dec 2009 02:12:01 +0000 (02:12 +0000)]
Updated sys.flags table in Doc

15 years ago#6108: unicode(exception) and str(exception) should return the same message
Ezio Melotti [Thu, 24 Dec 2009 22:25:17 +0000 (22:25 +0000)]
#6108: unicode(exception) and str(exception) should return the same message

15 years agoIssue #7568: typo in docstring. Thanks Mike Putnam.
Mark Dickinson [Thu, 24 Dec 2009 16:06:58 +0000 (16:06 +0000)]
Issue #7568:  typo in docstring.  Thanks Mike Putnam.

15 years agoallow Process name to be unicode #7571
Benjamin Peterson [Thu, 24 Dec 2009 15:19:40 +0000 (15:19 +0000)]
allow Process name to be unicode #7571

15 years agoUnittests and news items for the patch in r77026.
Ronald Oussoren [Thu, 24 Dec 2009 14:50:35 +0000 (14:50 +0000)]
Unittests and news items for the patch in r77026.

15 years agoFix for issue #7541: python-config --ldflags doesn't pick up libpython2.5.a
Ronald Oussoren [Thu, 24 Dec 2009 14:17:19 +0000 (14:17 +0000)]
Fix for issue #7541: python-config --ldflags doesn't pick up libpython2.5.a

15 years agoIssue #6834: replace the implementation for the 'python' and 'pythonw' executables...
Ronald Oussoren [Thu, 24 Dec 2009 13:30:58 +0000 (13:30 +0000)]
Issue #6834: replace the implementation for the 'python' and 'pythonw' executables on OSX.

The previous implementation used execv(2) to run the real interpreter, which means that
you cannot use the arch(1) tool to select the architecture you want to use for a
universal build because that only affects the python/pythonw wrapper and not the actual
interpreter.

The new version uses posix_spawnv with a number of OSX-specific options that ensure that
the real interpreter is started using the same CPU architecture as the wrapper, and that
means that 'arch -ppc python' now actually works.

I've also changed the way that the wrapper looks for the framework: it is now linked to
the framework rather than hardcoding the framework path. This should make it easier to
provide pythonw support in tools like virtualenv.

15 years agoAn update to the script that's used to build the binary installer: don't install...
Ronald Oussoren [Thu, 24 Dec 2009 13:30:42 +0000 (13:30 +0000)]
An update to the script that's used to build the binary installer: don't install files in
/usr/local by default. Users can still choose to install files into /usr/local, but by
default we'll only install files in /Library/Framework/Python.framework and
/Applications/Python X.Y/

15 years agoOn OSX the output of "uname -m" always reflects the 32-bit architecture
Ronald Oussoren [Thu, 24 Dec 2009 13:06:39 +0000 (13:06 +0000)]
On OSX the output of "uname -m" always reflects the 32-bit architecture
for the machine ("i386" or "ppc"), even if the executable is
64-bit.

This patchs ensures that the distutils platform architecture
represents the architecture for the executable when running a
64-bit only executable on OSX.

15 years agoAdded markup and default arg, fixed example
Ezio Melotti [Thu, 24 Dec 2009 02:54:53 +0000 (02:54 +0000)]
Added markup and default arg, fixed example

15 years agoFix for Issue7570: Error in urllib2 example.
Senthil Kumaran [Thu, 24 Dec 2009 02:18:14 +0000 (02:18 +0000)]
Fix for Issue7570: Error in urllib2 example.

15 years agofix alleged refleak
Benjamin Peterson [Thu, 24 Dec 2009 01:09:53 +0000 (01:09 +0000)]
fix alleged refleak

15 years agoFix possible integer overflow in lchown and fchown functions. For issue1747858.
Gregory P. Smith [Wed, 23 Dec 2009 09:31:11 +0000 (09:31 +0000)]
Fix possible integer overflow in lchown and fchown functions.  For issue1747858.

15 years agoMake a word plural.
Brett Cannon [Tue, 22 Dec 2009 02:37:37 +0000 (02:37 +0000)]
Make a word plural.

15 years agoadded a note about #7556 in Misc/NEWS
Tarek Ziadé [Mon, 21 Dec 2009 23:37:44 +0000 (23:37 +0000)]
added a note about #7556 in Misc/NEWS

15 years agobackported r76993 and r76994 so the trunk behaves the same way with MSVC Manifest...
Tarek Ziadé [Mon, 21 Dec 2009 23:31:55 +0000 (23:31 +0000)]
backported r76993 and r76994 so the trunk behaves the same way with MSVC Manifest files editing

15 years agoAdd NEWS for OpenSSL changes.
Martin v. Löwis [Mon, 21 Dec 2009 19:29:59 +0000 (19:29 +0000)]
Add NEWS for OpenSSL changes.

15 years agoSwitch to OpenSSL 0.9.8l.
Martin v. Löwis [Mon, 21 Dec 2009 19:27:15 +0000 (19:27 +0000)]
Switch to OpenSSL 0.9.8l.

15 years agoDrop 2.4 compatibility.
Martin v. Löwis [Mon, 21 Dec 2009 19:25:56 +0000 (19:25 +0000)]
Drop 2.4 compatibility.

15 years agoIssue #7553: test_long_future wasn't testing properly. Thanks Florent Xicluna
Mark Dickinson [Mon, 21 Dec 2009 16:29:21 +0000 (16:29 +0000)]
Issue #7553:  test_long_future wasn't testing properly.  Thanks Florent Xicluna
for bug report and patch.

15 years agoInverse hyperbolic trigonometric functions should call m_log1p, not log1p.
Mark Dickinson [Mon, 21 Dec 2009 15:40:33 +0000 (15:40 +0000)]
Inverse hyperbolic trigonometric functions should call m_log1p, not log1p.

15 years agoIssue #7518: Move substitute definitions of C99 math functions from
Mark Dickinson [Mon, 21 Dec 2009 15:22:00 +0000 (15:22 +0000)]
Issue #7518:  Move substitute definitions of C99 math functions from
pymath.c to Modules/_math.c.

15 years agoRemove a leftover from a previous iteration of the issue 7376 patch.
R. David Murray [Mon, 21 Dec 2009 12:45:41 +0000 (12:45 +0000)]
Remove a leftover from a previous iteration of the issue 7376 patch.

15 years agoAdditional edge-case tests for test_long_and_overflow.
Mark Dickinson [Mon, 21 Dec 2009 12:15:48 +0000 (12:15 +0000)]
Additional edge-case tests for test_long_and_overflow.

15 years agoFix reference counts for test_long_and_overflow.
Mark Dickinson [Mon, 21 Dec 2009 11:31:54 +0000 (11:31 +0000)]
Fix reference counts for test_long_and_overflow.

15 years agoIssue #7528: Backport PyLong_AsLongAndOverflow from py3k to trunk.
Mark Dickinson [Mon, 21 Dec 2009 11:21:25 +0000 (11:21 +0000)]
Issue #7528:  Backport PyLong_AsLongAndOverflow from py3k to trunk.
Thanks Case Van Horsen for the patch.

15 years agomassive import cleaning in Distutils
Tarek Ziadé [Mon, 21 Dec 2009 01:22:46 +0000 (01:22 +0000)]
massive import cleaning in Distutils

15 years agoFixed #7552: fixed distutils.command.upload failure on very long passwords
Tarek Ziadé [Sun, 20 Dec 2009 23:23:34 +0000 (23:23 +0000)]
Fixed #7552: fixed distutils.command.upload failure on very long passwords

15 years agoIssue #7554: Various fixups in test_cmath.py: remove code duplication,
Mark Dickinson [Sun, 20 Dec 2009 20:34:44 +0000 (20:34 +0000)]
Issue #7554:  Various fixups in test_cmath.py:  remove code duplication,
use new-style formatting.  Thanks Florent Xicluna for the patch.

15 years agoSilence -3 warnings. Thanks Florent Xicluna.
Mark Dickinson [Sun, 20 Dec 2009 20:23:01 +0000 (20:23 +0000)]
Silence -3 warnings.  Thanks Florent Xicluna.

15 years agoFix for consistency with py3k keyword-only version of assertAlmostEqual
Mark Dickinson [Sun, 20 Dec 2009 19:52:36 +0000 (19:52 +0000)]
Fix for consistency with py3k keyword-only version of assertAlmostEqual

15 years agoIssue #7554: Fix incorrect usage of rAssertAlmostEqual. Thanks Florent Xicluna.
Mark Dickinson [Sun, 20 Dec 2009 19:45:37 +0000 (19:45 +0000)]
Issue #7554:  Fix incorrect usage of rAssertAlmostEqual.  Thanks Florent Xicluna.

15 years agoIssue #7376: When called with no arguments doctest was running a
R. David Murray [Sun, 20 Dec 2009 16:46:06 +0000 (16:46 +0000)]
Issue #7376: When called with no arguments doctest was running a
self-test.  Because of a change to the way tracebacks are printed,
this self-test was failing.  The test is run (and passes) during normal
regression testing.  So instead of running the failing self-test this
patch makes doctest emit a usage message.  This is better behavior anyway
since passing in arguments is the real reason to run doctest as a command.

Bug discovery and initial patch by Florent Xicluna.

15 years agoFix comment typo.
R. David Murray [Sun, 20 Dec 2009 16:24:46 +0000 (16:24 +0000)]
Fix comment typo.

15 years agoAdd missing tests for PyArg_Parse* with format 'h'
Mark Dickinson [Sun, 20 Dec 2009 15:57:56 +0000 (15:57 +0000)]
Add missing tests for PyArg_Parse* with format 'h'

15 years agobuiltin-ins -> builtins
Benjamin Peterson [Sun, 20 Dec 2009 15:23:22 +0000 (15:23 +0000)]
builtin-ins -> builtins