]> granicus.if.org Git - python/log
python
15 years agouse 'is' instead of id()
Benjamin Peterson [Mon, 26 Oct 2009 22:51:16 +0000 (22:51 +0000)]
use 'is' instead of id()

15 years agoIssue #7117: Use PyOS_string_to_double instead of PyOS_ascii_strtod in
Mark Dickinson [Mon, 26 Oct 2009 22:28:14 +0000 (22:28 +0000)]
Issue #7117: Use PyOS_string_to_double instead of PyOS_ascii_strtod in
complexobject.c.  Also remove length restriction on unicode inputs to
the complex constructor.

15 years agoIssue #7117: Use PyOS_string_to_double instead of PyOS_ascii_strtod in
Mark Dickinson [Mon, 26 Oct 2009 21:11:20 +0000 (21:11 +0000)]
Issue #7117: Use PyOS_string_to_double instead of PyOS_ascii_strtod in
floatobject.c.  Also, remove limitation on length of unicode inputs to
float().

15 years agoIssue #7117: Backport missing pystrtod.h declarations from py3k.
Mark Dickinson [Mon, 26 Oct 2009 21:09:09 +0000 (21:09 +0000)]
Issue #7117:  Backport missing pystrtod.h declarations from py3k.

15 years agoUse correct conversion specifier and length modifier when printing an
Mark Dickinson [Mon, 26 Oct 2009 19:59:23 +0000 (19:59 +0000)]
Use correct conversion specifier and length modifier when printing an
integer of type off_t.  Also, don't assume that long long is available.

15 years agoSome platforms have rl_completion_append_character but not rl_completion_suppress_append.
Antoine Pitrou [Mon, 26 Oct 2009 19:16:46 +0000 (19:16 +0000)]
Some platforms have rl_completion_append_character but not rl_completion_suppress_append.
Reported by Mark D.

15 years agoFinished removing _PyOS_double_to_string, as mentioned in issue 7117.
Eric Smith [Mon, 26 Oct 2009 17:46:17 +0000 (17:46 +0000)]
Finished removing _PyOS_double_to_string, as mentioned in issue 7117.

15 years agoIssue #7117 (backport py3k float repr) continued:
Mark Dickinson [Mon, 26 Oct 2009 15:39:50 +0000 (15:39 +0000)]
Issue #7117 (backport py3k float repr) continued:
Backport pystrtod.c from py3k.

15 years agoContinue removing _PyOS_double_to_string, as mentioned in issue 7117.
Eric Smith [Mon, 26 Oct 2009 15:06:39 +0000 (15:06 +0000)]
Continue removing _PyOS_double_to_string, as mentioned in issue 7117.

15 years agoStart to remove _PyOS_double_to_string, as mentioned in issue 7117.
Eric Smith [Mon, 26 Oct 2009 14:48:55 +0000 (14:48 +0000)]
Start to remove _PyOS_double_to_string, as mentioned in issue 7117.

15 years agoWarn against replacing PyNumber_Add with PyNumber_InPlaceAdd in sum
Mark Dickinson [Mon, 26 Oct 2009 14:18:44 +0000 (14:18 +0000)]
Warn against replacing PyNumber_Add with PyNumber_InPlaceAdd in sum

15 years agoSkip readline tests if readline module is not available.
Mark Dickinson [Mon, 26 Oct 2009 11:59:30 +0000 (11:59 +0000)]
Skip readline tests if readline module is not available.

15 years agoIssue #1087418: Small performance boost for bitwise operations on longs.
Mark Dickinson [Sun, 25 Oct 2009 20:39:06 +0000 (20:39 +0000)]
Issue #1087418: Small performance boost for bitwise operations on longs.
Initial patch by Gregory Smith;  some tweaks added.

15 years agoFix a demo.
Georg Brandl [Sun, 25 Oct 2009 20:25:43 +0000 (20:25 +0000)]
Fix a demo.

15 years agoRemoved unused function PyFloat_AsStringEx. It is unused in floatobject.c, and it...
Eric Smith [Sat, 24 Oct 2009 19:50:44 +0000 (19:50 +0000)]
Removed unused function PyFloat_AsStringEx. It is unused in floatobject.c, and it's not declared in any .h file.

15 years agoIssue #7117: temporarily disable the short float repr while the
Mark Dickinson [Sat, 24 Oct 2009 15:54:35 +0000 (15:54 +0000)]
Issue #7117:  temporarily disable the short float repr while the
pieces are being assembled.  To re-enable, define the preprocessor
symbol PY_SHORT_FLOAT_REPR

15 years agofixed warning and error message
Tarek Ziadé [Sat, 24 Oct 2009 15:51:30 +0000 (15:51 +0000)]
fixed warning and error message

15 years agofixed finally state in distutils.test_util
Tarek Ziadé [Sat, 24 Oct 2009 15:19:03 +0000 (15:19 +0000)]
fixed finally state in distutils.test_util

15 years agoIssue #7071: byte-compilation in Distutils now looks at sys.dont_write_bytecode
Tarek Ziadé [Sat, 24 Oct 2009 15:10:37 +0000 (15:10 +0000)]
Issue #7071: byte-compilation in Distutils now looks at sys.dont_write_bytecode

15 years agoIssue #7117 (backport py3k float repr) continued:
Mark Dickinson [Sat, 24 Oct 2009 14:01:08 +0000 (14:01 +0000)]
Issue #7117 (backport py3k float repr) continued:
Add sys.float_repr_style attribute ('short' if short float
repr is in used;  'legacy' otherwise).

15 years agoConfigure check for double rounding should take BASECFLAGS into account
Mark Dickinson [Sat, 24 Oct 2009 13:44:16 +0000 (13:44 +0000)]
Configure check for double rounding should take BASECFLAGS into account

15 years agoRemove temporary define from r75653
Mark Dickinson [Sat, 24 Oct 2009 13:31:41 +0000 (13:31 +0000)]
Remove temporary define from r75653

15 years ago#7066 - Fixed distutils.archive_util.make_archive behavior so it restores the cwd
Tarek Ziadé [Sat, 24 Oct 2009 13:29:44 +0000 (13:29 +0000)]
#7066 - Fixed distutils.archive_util.make_archive behavior so it restores the cwd

15 years agoIssue #7117 (backport py3k float repr) continued:
Mark Dickinson [Sat, 24 Oct 2009 13:28:38 +0000 (13:28 +0000)]
Issue #7117 (backport py3k float repr) continued:
 - add double endianness detection to configure script
 - add configure-time check to see whether we can use inline
   assembly to get and set x87 control word in configure script
 - add functions to get and set x87 control word in Python/pymath.c
 - add pyport.h logic to determine whether it's safe to use the
   short float repr or not

15 years agoFix compilation error in debug mode.
Antoine Pitrou [Sat, 24 Oct 2009 12:41:27 +0000 (12:41 +0000)]
Fix compilation error in debug mode.

15 years agoManual py3k backport: [svn r74316] Issue #5449: Fix io.BytesIO to not accept arbitrar...
Antoine Pitrou [Sat, 24 Oct 2009 12:28:22 +0000 (12:28 +0000)]
Manual py3k backport: [svn r74316] Issue #5449: Fix io.BytesIO to not accept arbitrary keywords

15 years agoManual py3k backport: [svn r74158] Issue #6218: Make io.BytesIO and io.StringIO pickl...
Antoine Pitrou [Sat, 24 Oct 2009 12:23:18 +0000 (12:23 +0000)]
Manual py3k backport: [svn r74158] Issue #6218: Make io.BytesIO and io.StringIO picklable.

15 years agoTemporary define to avoid build failure
Mark Dickinson [Sat, 24 Oct 2009 12:17:24 +0000 (12:17 +0000)]
Temporary define to avoid build failure

15 years agoIssue #7117: Prepare for backport of py3k float repr.
Mark Dickinson [Sat, 24 Oct 2009 12:13:30 +0000 (12:13 +0000)]
Issue #7117: Prepare for backport of py3k float repr.
Add the Python/dtoa.c file containing the main algorithms;
add corresponding include file and include in Python.h;
include license information for Python/dtoa.c;
add dtoa.c and dtoa.h to Makefile.

15 years agoManual py3k backport: [svn r74155] Issue #6242: Fix deallocator of io.StringIO and...
Antoine Pitrou [Sat, 24 Oct 2009 11:59:41 +0000 (11:59 +0000)]
Manual py3k backport: [svn r74155] Issue #6242: Fix deallocator of io.StringIO and io.BytesIO

15 years agoAcknowledge Ned Deily (extensive bug hunting and testing on OS X)
Mark Dickinson [Sat, 24 Oct 2009 11:47:17 +0000 (11:47 +0000)]
Acknowledge Ned Deily (extensive bug hunting and testing on OS X)

15 years agoFix markup.
Georg Brandl [Sat, 24 Oct 2009 10:04:19 +0000 (10:04 +0000)]
Fix markup.

15 years agoImprove some docstrings in the 'warnings' module.
Neil Schemenauer [Fri, 23 Oct 2009 19:58:17 +0000 (19:58 +0000)]
Improve some docstrings in the 'warnings' module.

15 years agoIssue #7194: test_thread could try to release an unacquired mutex (and fail).
Antoine Pitrou [Fri, 23 Oct 2009 18:32:15 +0000 (18:32 +0000)]
Issue #7194: test_thread could try to release an unacquired mutex (and fail).

15 years agoadd further note about what's passed to optionxform
Fred Drake [Fri, 23 Oct 2009 13:04:51 +0000 (13:04 +0000)]
add further note about what's passed to optionxform

15 years agoFix Windows buildbot failure
Antoine Pitrou [Fri, 23 Oct 2009 12:01:13 +0000 (12:01 +0000)]
Fix Windows buildbot failure

15 years ago#7188: fix optionxform() docs.
Georg Brandl [Fri, 23 Oct 2009 08:14:44 +0000 (08:14 +0000)]
#7188: fix optionxform() docs.

15 years agoPer the discussion in issue6882, backport the try/finally work that was done to the...
Eric Smith [Thu, 22 Oct 2009 20:13:14 +0000 (20:13 +0000)]
Per the discussion in issue6882, backport the try/finally work that was done to the py3k version (mostly in r59477, I think).

15 years agoMake printout margin important.
Georg Brandl [Thu, 22 Oct 2009 16:20:55 +0000 (16:20 +0000)]
Make printout margin important.

15 years agoAdd proper references.
Georg Brandl [Thu, 22 Oct 2009 16:17:05 +0000 (16:17 +0000)]
Add proper references.

15 years ago#6977: getopt does not support optional option arguments.
Georg Brandl [Thu, 22 Oct 2009 15:54:35 +0000 (15:54 +0000)]
#6977: getopt does not support optional option arguments.

15 years ago#7156: document curses as Unix-only.
Georg Brandl [Thu, 22 Oct 2009 15:52:15 +0000 (15:52 +0000)]
#7156: document curses as Unix-only.

15 years ago#7035: improve docs of the various <method>_errors() functions, and give them docstrings.
Georg Brandl [Thu, 22 Oct 2009 15:42:32 +0000 (15:42 +0000)]
#7035: improve docs of the various <method>_errors() functions, and give them docstrings.

15 years agoReorder __slots__ fine print and add a clarification.
Georg Brandl [Thu, 22 Oct 2009 15:27:24 +0000 (15:27 +0000)]
Reorder __slots__ fine print and add a clarification.

15 years ago#7088: document new functions in signal as Unix-only.
Georg Brandl [Thu, 22 Oct 2009 15:04:09 +0000 (15:04 +0000)]
#7088: document new functions in signal as Unix-only.

15 years ago#6324: membership test tries iteration via __iter__.
Georg Brandl [Thu, 22 Oct 2009 15:00:06 +0000 (15:00 +0000)]
#6324: membership test tries iteration via __iter__.

15 years agoUse "impl-detail" directive where applicable.
Georg Brandl [Thu, 22 Oct 2009 11:48:10 +0000 (11:48 +0000)]
Use "impl-detail" directive where applicable.

15 years agoFix stylesheet for multi-paragraph impl-details.
Georg Brandl [Thu, 22 Oct 2009 11:36:50 +0000 (11:36 +0000)]
Fix stylesheet for multi-paragraph impl-details.

15 years agoAllow short form with text as argument.
Georg Brandl [Thu, 22 Oct 2009 11:28:23 +0000 (11:28 +0000)]
Allow short form with text as argument.

15 years agoDocument new directive.
Georg Brandl [Thu, 22 Oct 2009 11:28:06 +0000 (11:28 +0000)]
Document new directive.

15 years agoMake it more robust.
Georg Brandl [Thu, 22 Oct 2009 11:01:46 +0000 (11:01 +0000)]
Make it more robust.

15 years agoAdd a new directive marking up implementation details and start using it.
Georg Brandl [Thu, 22 Oct 2009 08:05:04 +0000 (08:05 +0000)]
Add a new directive marking up implementation details and start using it.

15 years agoFix duplicate target.
Georg Brandl [Thu, 22 Oct 2009 07:56:56 +0000 (07:56 +0000)]
Fix duplicate target.

15 years agoFix markup.
Georg Brandl [Thu, 22 Oct 2009 07:56:02 +0000 (07:56 +0000)]
Fix markup.

15 years agoRevert unintended change.
Georg Brandl [Thu, 22 Oct 2009 07:06:49 +0000 (07:06 +0000)]
Revert unintended change.

15 years agoFix punctuation.
Georg Brandl [Thu, 22 Oct 2009 07:05:48 +0000 (07:05 +0000)]
Fix punctuation.

15 years agorewrite for style, clarify, and comments
Benjamin Peterson [Thu, 22 Oct 2009 02:50:38 +0000 (02:50 +0000)]
rewrite for style, clarify, and comments

Also, use the hasattr() like scheme of allowing BaseException exceptions through.

15 years agorewrite to be nice to other implementations
Benjamin Peterson [Thu, 22 Oct 2009 02:36:47 +0000 (02:36 +0000)]
rewrite to be nice to other implementations

15 years agowhitespace
Benjamin Peterson [Thu, 22 Oct 2009 02:26:47 +0000 (02:26 +0000)]
whitespace

15 years agoIssue #7077: logging: SysLogHandler now treats Unicode as per RFC 5424.
Vinay Sajip [Wed, 21 Oct 2009 20:22:14 +0000 (20:22 +0000)]
Issue #7077: logging: SysLogHandler now treats Unicode as per RFC 5424.

15 years ago#7170: fix explanation about non-weakrefable builtin types.
Georg Brandl [Wed, 21 Oct 2009 07:15:59 +0000 (07:15 +0000)]
#7170: fix explanation about non-weakrefable builtin types.

15 years agoTest wouldn't work in debug mode.
Antoine Pitrou [Tue, 20 Oct 2009 21:59:25 +0000 (21:59 +0000)]
Test wouldn't work in debug mode.
We probably need a function in test_support to handle this.

15 years agoclarify buffer arg #7178
Benjamin Peterson [Tue, 20 Oct 2009 21:55:17 +0000 (21:55 +0000)]
clarify buffer arg #7178

15 years agoIssue #1722344: threading._shutdown() is now called in Py_Finalize(), which
Antoine Pitrou [Tue, 20 Oct 2009 21:29:37 +0000 (21:29 +0000)]
Issue #1722344: threading._shutdown() is now called in Py_Finalize(), which
fixes the problem of some exceptions being thrown at shutdown when the
interpreter is killed. Patch by Adam Olsen.

15 years agoIssue #7099: Decimal.is_normal should return True for all nonzero
Mark Dickinson [Tue, 20 Oct 2009 13:33:03 +0000 (13:33 +0000)]
Issue #7099: Decimal.is_normal should return True for all nonzero
finite non-subnormal values, even those with exponent > Emax.

15 years agouse property api
Benjamin Peterson [Tue, 20 Oct 2009 03:14:10 +0000 (03:14 +0000)]
use property api

15 years agoNEWS entry for r75531.
Antoine Pitrou [Mon, 19 Oct 2009 18:20:21 +0000 (18:20 +0000)]
NEWS entry for r75531.

15 years agoIssue #5833: Fix extra space character in readline completion with the
Antoine Pitrou [Mon, 19 Oct 2009 18:17:18 +0000 (18:17 +0000)]
Issue #5833: Fix extra space character in readline completion with the
GNU readline library version 6.0.

15 years agoIssue #7133: SSL objects now support the new buffer API.
Antoine Pitrou [Mon, 19 Oct 2009 17:59:07 +0000 (17:59 +0000)]
Issue #7133: SSL objects now support the new buffer API.

This fixes the test_ssl failure.

15 years agoClarify error report message, and don't recommend running in verbose
R. David Murray [Mon, 19 Oct 2009 17:53:58 +0000 (17:53 +0000)]
Clarify error report message, and don't recommend running in verbose
mode for more information if we are already running in verbose mode.

15 years agoEliminate warning message that looks like an error message. When it was
R. David Murray [Mon, 19 Oct 2009 16:28:24 +0000 (16:28 +0000)]
Eliminate warning message that looks like an error message.  When it was
added not finding Lib/test in the path indicated something was wrong,
but when running regtest using "python -m" Lib/test isn't typically in
the path, so this message is now more disturbing than it is helpful.

15 years agoOnly run test_curses when sys.__stdout__ is a tty. This eliminates the
R. David Murray [Mon, 19 Oct 2009 16:01:28 +0000 (16:01 +0000)]
Only run test_curses when sys.__stdout__ is a tty.  This eliminates the
last false positive when running regrtest with -j.

15 years agoIssue #7169: Document PyFloat_AsString and PyFloat_AsReprString, and note that they...
Eric Smith [Mon, 19 Oct 2009 14:38:14 +0000 (14:38 +0000)]
Issue #7169: Document PyFloat_AsString and PyFloat_AsReprString, and note that they are unsafe and deprecated.

15 years agoRemoved calls to PyFloat_AsReprString.
Eric Smith [Mon, 19 Oct 2009 00:34:12 +0000 (00:34 +0000)]
Removed calls to PyFloat_AsReprString.
This is in anticipation of possibly implementing issue 7117 (short float repr).
This removes the last calls to PyFloat_AsString, PyFloat_AsReprString, and
PyFloat_AsStringEx, which are unsafe.

Also, switch to defines for error values to bring this code more in line
with the py3k branch.

15 years agoIssue #7151: regrtest would generate a JSON failure if there was output
R. David Murray [Sun, 18 Oct 2009 21:12:37 +0000 (21:12 +0000)]
Issue #7151: regrtest would generate a JSON failure if there was output
to stderr during the test run and it happened to get emitted after the
worker thread emitted the result JSON.  Now we capture stdout and stderr
separately, which avoids that problem.  It also means that _all_ stderr
output is after all stdout output when we print the test results, but
that seems acceptable, since output ordering is not guaranteed anyway.
The patch also moves the emit of the test name into the output block
generated after the test completes.  Otherwise test names and test
output/errors were mixed in the terminal display, making it difficult
to determine which test generated the output.

15 years agoAdd a comment about unreachable code, and fix a typo
Antoine Pitrou [Sun, 18 Oct 2009 18:37:11 +0000 (18:37 +0000)]
Add a comment about unreachable code, and fix a typo

15 years agoAdd a test for same-thread asynchronous exceptions (see #1779233).
Antoine Pitrou [Sun, 18 Oct 2009 18:22:04 +0000 (18:22 +0000)]
Add a test for same-thread asynchronous exceptions (see #1779233).

15 years agoRestore sys.path in test_tk
Nick Coghlan [Sun, 18 Oct 2009 10:56:21 +0000 (10:56 +0000)]
Restore sys.path in test_tk

15 years agoSilence a deprecation warning by using the appropriate replacement construct
Nick Coghlan [Sun, 18 Oct 2009 10:29:10 +0000 (10:29 +0000)]
Silence a deprecation warning by using the appropriate replacement construct

15 years agoChanged distutils tests to avoid environment alteration
Tarek Ziadé [Sun, 18 Oct 2009 09:28:26 +0000 (09:28 +0000)]
Changed distutils tests to avoid environment alteration

15 years agoFix missing word.
Georg Brandl [Sun, 18 Oct 2009 07:58:12 +0000 (07:58 +0000)]
Fix missing word.

15 years agoFix for issue 7149: a regression in 2.6.3 that causes an exception when
Ronald Oussoren [Sun, 18 Oct 2009 07:07:00 +0000 (07:07 +0000)]
Fix for issue 7149: a regression in 2.6.3 that causes an exception when
trying to detect proxy settings on OSX.

15 years agoUsing CleanImport to revert a reload of the os module doesn't work due to function...
Nick Coghlan [Sun, 18 Oct 2009 05:38:48 +0000 (05:38 +0000)]
Using CleanImport to revert a reload of the os module doesn't work due to function registrations in copy_reg. The perils of reloading modules even for tests...

15 years agoFix a typo.
Senthil Kumaran [Sun, 18 Oct 2009 01:58:45 +0000 (01:58 +0000)]
Fix a typo.

15 years agoFix for Issue7155 - urllib do not document default use of system proxy configuration
Senthil Kumaran [Sun, 18 Oct 2009 01:24:41 +0000 (01:24 +0000)]
Fix for Issue7155 - urllib do not document default use of system proxy configuration

15 years agoProtect against attempts to replace PyNumber_Add with PyNumber_InPlaceAdd in builtin sum
Mark Dickinson [Sat, 17 Oct 2009 21:46:32 +0000 (21:46 +0000)]
Protect against attempts to replace PyNumber_Add with PyNumber_InPlaceAdd in builtin sum

15 years agoDon't replace sys.path in test_site
Nick Coghlan [Sat, 17 Oct 2009 16:19:51 +0000 (16:19 +0000)]
Don't replace sys.path in test_site

15 years agoAvoid replacing existing modules and sys.path in import tests
Nick Coghlan [Sat, 17 Oct 2009 15:57:42 +0000 (15:57 +0000)]
Avoid replacing existing modules and sys.path in import tests

15 years agoAlso check and restore identity of sys.path, sys.argv and os.environ rather than...
Nick Coghlan [Sat, 17 Oct 2009 15:48:16 +0000 (15:48 +0000)]
Also check and restore identity of sys.path, sys.argv and os.environ rather than just their values (this picked up a few more misbehaving tests)

15 years agoMove restoration of the os.environ object into the context manager where it belongs
Nick Coghlan [Sat, 17 Oct 2009 15:45:52 +0000 (15:45 +0000)]
Move restoration of the os.environ object into the context manager where it belongs

15 years agoRevert changes made to environment in test_httpservers
Nick Coghlan [Sat, 17 Oct 2009 15:23:08 +0000 (15:23 +0000)]
Revert changes made to environment in test_httpservers

15 years agoDon't invoke reload(sys) and use StringIO objects instead of real files to capture...
Nick Coghlan [Sat, 17 Oct 2009 15:09:41 +0000 (15:09 +0000)]
Don't invoke reload(sys) and use StringIO objects instead of real files to capture stdin and stdout when needed (ensures all sys attributes remain unmodified after test_xmlrpc runs)

15 years agoRestore original sys.path when running TTK tests
Nick Coghlan [Sat, 17 Oct 2009 14:40:54 +0000 (14:40 +0000)]
Restore original sys.path when running TTK tests

15 years agoFix refleaks in _ctypes PyCSimpleType_New, which fixes the refleak seen in test___all__.
Georg Brandl [Sat, 17 Oct 2009 08:57:43 +0000 (08:57 +0000)]
Fix refleaks in _ctypes PyCSimpleType_New, which fixes the refleak seen in test___all__.

15 years agoCheck and revert expected sys.path alterations
Nick Coghlan [Sat, 17 Oct 2009 08:21:21 +0000 (08:21 +0000)]
Check and revert expected sys.path alterations

15 years agoFormatting tweak so that before and after values are vertically aligned
Nick Coghlan [Sat, 17 Oct 2009 07:34:27 +0000 (07:34 +0000)]
Formatting tweak so that before and after values are vertically aligned

15 years agoEnhancement to the new environment checking code to print the changed items under...
Nick Coghlan [Sat, 17 Oct 2009 07:30:40 +0000 (07:30 +0000)]
Enhancement to the new environment checking code to print the changed items under -vv. Also includes a small tweak to allow underscores in the names of resources.

15 years agotest_math ulp computation was wrong on big-endian systems
Mark Dickinson [Sat, 17 Oct 2009 07:06:37 +0000 (07:06 +0000)]
test_math ulp computation was wrong on big-endian systems

15 years agoCorrectly restore sys.stdout in test_descr
Nick Coghlan [Sat, 17 Oct 2009 06:33:05 +0000 (06:33 +0000)]
Correctly restore sys.stdout in test_descr

15 years agothis test requires zlib support
Tarek Ziadé [Fri, 16 Oct 2009 23:04:16 +0000 (23:04 +0000)]
this test requires zlib support