]> granicus.if.org Git - python/log
python
15 years agoTry to fix transient refleaks in test_asynchat.
Antoine Pitrou [Fri, 30 Oct 2009 17:55:21 +0000 (17:55 +0000)]
Try to fix transient refleaks in test_asynchat.

15 years agoFix transient refleaks in test_docxmlrpc.
Antoine Pitrou [Fri, 30 Oct 2009 17:33:28 +0000 (17:33 +0000)]
Fix transient refleaks in test_docxmlrpc.

15 years agoIssue #7222: Make thread "reaping" more reliable so that reference
Antoine Pitrou [Fri, 30 Oct 2009 17:07:08 +0000 (17:07 +0000)]
Issue #7222: Make thread "reaping" more reliable so that reference
leak-chasing test runs give sensible results. The previous method of
reaping threads could return successfully while some Thread objects were
still referenced. This also introduces a new private function:
:func:\14hread._count().

15 years agoFix constant name.
Georg Brandl [Thu, 29 Oct 2009 21:44:56 +0000 (21:44 +0000)]
Fix constant name.

15 years agoI do not think the "railroad" program mentioned is still available.
Georg Brandl [Thu, 29 Oct 2009 21:16:34 +0000 (21:16 +0000)]
I do not think the "railroad" program mentioned is still available.

15 years agoUse a single style for all the docstrings in the math module.
Georg Brandl [Thu, 29 Oct 2009 20:54:03 +0000 (20:54 +0000)]
Use a single style for all the docstrings in the math module.

15 years agoUse constants instead of magic integers for test result. Do not re-run with --verbos...
Georg Brandl [Thu, 29 Oct 2009 20:53:00 +0000 (20:53 +0000)]
Use constants instead of magic integers for test result.  Do not re-run with --verbose3 for environment changing tests.

15 years agoRemove mention of the old -X command line switch.
Georg Brandl [Thu, 29 Oct 2009 20:39:50 +0000 (20:39 +0000)]
Remove mention of the old -X command line switch.

15 years agoUse the correct function name in docstring.
Georg Brandl [Thu, 29 Oct 2009 20:38:32 +0000 (20:38 +0000)]
Use the correct function name in docstring.

15 years agoIssue #7233: Fix Decimal.shift and Decimal.rotate methods for
Mark Dickinson [Thu, 29 Oct 2009 12:11:18 +0000 (12:11 +0000)]
Issue #7233:  Fix Decimal.shift and Decimal.rotate methods for
arguments with more digits than the current context precision.
Bug reported by Stefan Krah.

15 years agoIssue #7233: A number of two-argument Decimal methods were failing to
Mark Dickinson [Thu, 29 Oct 2009 12:04:00 +0000 (12:04 +0000)]
Issue #7233:  A number of two-argument Decimal methods were failing to
accept ints and longs for the second argument.

15 years agoFix duplicate test numbers in extra.decTest
Mark Dickinson [Thu, 29 Oct 2009 11:09:09 +0000 (11:09 +0000)]
Fix duplicate test numbers in extra.decTest

15 years agoRoll back ill-considered attempts to fix printf specifier mismatch for off_t.
Mark Dickinson [Thu, 29 Oct 2009 09:46:04 +0000 (09:46 +0000)]
Roll back ill-considered attempts to fix printf specifier mismatch for off_t.
The sensible solution seems to be to implement %lld for PyString_FromFormat(V)
and PyErr_Format.  See issue #7228.

15 years agoIssue #4750: Store the basename of the original filename in
Lars Gustäbel [Thu, 29 Oct 2009 09:15:00 +0000 (09:15 +0000)]
Issue #4750: Store the basename of the original filename in
the gzip FNAME header as required by RFC 1952.

15 years agodo a backport of r75928
Benjamin Peterson [Thu, 29 Oct 2009 01:49:07 +0000 (01:49 +0000)]
do a backport of r75928

The added test does not fail without the patch, but we still fix the issue of
surrogates being used in wide builds where they should not be.

15 years agoIssue 7199: Documentation made slightly more consistent w.r.t. logging level enumeration.
Vinay Sajip [Wed, 28 Oct 2009 23:28:16 +0000 (23:28 +0000)]
Issue 7199: Documentation made slightly more consistent w.r.t. logging level enumeration.

15 years agoRemove variable that is no longer used.
R. David Murray [Wed, 28 Oct 2009 14:03:43 +0000 (14:03 +0000)]
Remove variable that is no longer used.

15 years agoIssue 7117: Replace PyOS_ascii_strtod with PyOS_string_to_double in _json.c as part...
Eric Smith [Wed, 28 Oct 2009 08:44:37 +0000 (08:44 +0000)]
Issue 7117: Replace PyOS_ascii_strtod with PyOS_string_to_double in _json.c as part of short float repr. Change made after consulting with Bob Ippolito. This completes the removal of calls to PyOS_ascii_strtod.

15 years agoFix format specifier for MSVC
Mark Dickinson [Wed, 28 Oct 2009 07:47:32 +0000 (07:47 +0000)]
Fix format specifier for MSVC

15 years agoReplace long long with PY_LONG_LONG
Mark Dickinson [Wed, 28 Oct 2009 07:23:49 +0000 (07:23 +0000)]
Replace long long with PY_LONG_LONG

15 years agoremoved spurious spaces
Tarek Ziadé [Wed, 28 Oct 2009 06:45:18 +0000 (06:45 +0000)]
removed spurious spaces

15 years agoFixed #1180: Option to ignore ~/.pydistutils.cfg in Distutils
Tarek Ziadé [Tue, 27 Oct 2009 23:06:10 +0000 (23:06 +0000)]
Fixed #1180: Option to ignore ~/.pydistutils.cfg in Distutils

15 years agoMake sure every run of test_intern() interns a new string, otherwise that test fails...
Georg Brandl [Tue, 27 Oct 2009 22:56:09 +0000 (22:56 +0000)]
Make sure every run of test_intern() interns a new string, otherwise that test fails e.g. when some other test in test_builtin fails and it is rerun in verbose mode.

15 years agoTest long inputs to float
Mark Dickinson [Tue, 27 Oct 2009 22:09:33 +0000 (22:09 +0000)]
Test long inputs to float

15 years agoSilence gcc warnings when trying to print an off_t using "lld", on platforms
Mark Dickinson [Tue, 27 Oct 2009 21:48:20 +0000 (21:48 +0000)]
Silence gcc warnings when trying to print an off_t using "lld", on platforms
where off_t has type long (e.g., 64-bit Linux).

15 years agoReduce the probability of refleaks in test_socketserver.
Antoine Pitrou [Tue, 27 Oct 2009 21:27:24 +0000 (21:27 +0000)]
Reduce the probability of refleaks in test_socketserver.
Not completely suppressed though, see issue #7222.

15 years agoIssue #7218: Fix test_site for win32
Tarek Ziadé [Tue, 27 Oct 2009 21:20:27 +0000 (21:20 +0000)]
Issue #7218: Fix test_site for win32

15 years agotest expect base classes
Benjamin Peterson [Tue, 27 Oct 2009 20:59:18 +0000 (20:59 +0000)]
test expect base classes

15 years agoReformat the regrtest command-line option help and group the options into sections.
Georg Brandl [Tue, 27 Oct 2009 20:55:44 +0000 (20:55 +0000)]
Reformat the regrtest command-line option help and group the options into sections.

15 years agoAdd a regrtest option to re-run in verbose mode immediately after a test fails, and...
Georg Brandl [Tue, 27 Oct 2009 20:52:02 +0000 (20:52 +0000)]
Add a regrtest option to re-run in verbose mode immediately after a test fails, and use that option on the buildbots.

15 years agoTry to fix transient refleaks in test_distutils.
Antoine Pitrou [Tue, 27 Oct 2009 20:20:41 +0000 (20:20 +0000)]
Try to fix transient refleaks in test_distutils.

15 years agoFix transient refleaks in test_urllib2_localnet.
Antoine Pitrou [Tue, 27 Oct 2009 20:14:04 +0000 (20:14 +0000)]
Fix transient refleaks in test_urllib2_localnet.

15 years agoSuppress transient refleaks in test_threading.
Antoine Pitrou [Tue, 27 Oct 2009 20:02:23 +0000 (20:02 +0000)]
Suppress transient refleaks in test_threading.

15 years agoSuppress transient refleaks in test_smtplib.
Antoine Pitrou [Tue, 27 Oct 2009 19:47:30 +0000 (19:47 +0000)]
Suppress transient refleaks in test_smtplib.

15 years agoRemoved PyOS_ascii_atof from marshal.c, as mentioned in issue 7117. Also brings it...
Eric Smith [Tue, 27 Oct 2009 19:42:57 +0000 (19:42 +0000)]
Removed PyOS_ascii_atof from marshal.c, as mentioned in issue 7117. Also brings it more in line with py3k.

15 years agoSuppress transient refleaks in test_file2k.
Antoine Pitrou [Tue, 27 Oct 2009 19:36:44 +0000 (19:36 +0000)]
Suppress transient refleaks in test_file2k.

15 years agoFix transient refleak in test_sys.
Antoine Pitrou [Tue, 27 Oct 2009 19:23:56 +0000 (19:23 +0000)]
Fix transient refleak in test_sys.

15 years ago(Hopefully) suppress transient refleaks in test_httpservers.
Antoine Pitrou [Tue, 27 Oct 2009 18:50:52 +0000 (18:50 +0000)]
(Hopefully) suppress transient refleaks in test_httpservers.

15 years agoSuppress transient refleaks in test_asyncore
Antoine Pitrou [Tue, 27 Oct 2009 18:36:47 +0000 (18:36 +0000)]
Suppress transient refleaks in test_asyncore

15 years agoRemoved PyOS_ascii_atof from ast.c, as mentioned in issue 7117.
Eric Smith [Tue, 27 Oct 2009 18:33:14 +0000 (18:33 +0000)]
Removed PyOS_ascii_atof from ast.c, as mentioned in issue 7117.

15 years agoIssue #7205: Fix a possible deadlock when using a BZ2File object from several threads...
Antoine Pitrou [Tue, 27 Oct 2009 17:41:58 +0000 (17:41 +0000)]
Issue #7205: Fix a possible deadlock when using a BZ2File object from several threads at once.

15 years agoFix a strange mis-edit.
Georg Brandl [Tue, 27 Oct 2009 15:10:22 +0000 (15:10 +0000)]
Fix a strange mis-edit.

15 years agoIssue 7117: Replace PyOS_ascii_strtod with PyOS_string_to_double in stropmodule as...
Eric Smith [Tue, 27 Oct 2009 12:12:44 +0000 (12:12 +0000)]
Issue 7117: Replace PyOS_ascii_strtod with PyOS_string_to_double in stropmodule as part of short float repr.

15 years agoIssue 7117: Replace PyOS_ascii_strtod with PyOS_string_to_double in cPickle as part...
Eric Smith [Tue, 27 Oct 2009 11:32:11 +0000 (11:32 +0000)]
Issue 7117: Replace PyOS_ascii_strtod with PyOS_string_to_double in cPickle as part of short float repr.

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.