Merged revisions 58095-58132,58136-58148,58151-58197 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r58096 | brett.cannon | 2007-09-10 23:38:27 +0200 (Mon, 10 Sep 2007) | 4 lines
Fix a possible segfault from recursing too deep to get the repr of a list.
Closes issue #1096.
........
r58097 | bill.janssen | 2007-09-10 23:51:02 +0200 (Mon, 10 Sep 2007) | 33 lines
More work on SSL support.
* Much expanded test suite:
All protocols tested against all other protocols.
All protocols tested with all certificate options.
Tests for bad key and bad cert.
Test of STARTTLS functionality.
Test of RAND_* functions.
* Fixes for threading/malloc bug.
* Issue 1065 fixed:
sslsocket class renamed to SSLSocket.
sslerror class renamed to SSLError.
Function "wrap_socket" now used to wrap an existing socket.
* Issue 1583946 finally fixed:
Support for subjectAltName added.
Subject name now returned as proper DN list of RDNs.
* SSLError exported from socket as "sslerror".
* RAND_* functions properly exported from ssl.py.
* Documentation improved:
Example of how to create a self-signed certificate.
Better indexing.
........
r58098 | guido.van.rossum | 2007-09-11 00:02:25 +0200 (Tue, 11 Sep 2007) | 9 lines
Patch # 1140 (my code, approved by Effbot).
Make sure the type of the return value of re.sub(x, y, z) is the type
of y+x (i.e. unicode if either is unicode, str if they are both str)
even if there are no substitutions or if x==z (which triggered various
special cases in join_list()).
Could be backported to 2.5; no need to port to 3.0.
........
r58099 | guido.van.rossum | 2007-09-11 00:36:02 +0200 (Tue, 11 Sep 2007) | 8 lines
Patch # 1026 by Benjamin Aranguren (with Alex Martelli):
Backport abc.py and isinstance/issubclass overloading to 2.6.
I had to backport test_typechecks.py myself, and make one small change
to abc.py to avoid duplicate work when x.__class__ and type(x) are the
same.
........
r58100 | bill.janssen | 2007-09-11 01:41:24 +0200 (Tue, 11 Sep 2007) | 3 lines
A better way of finding an open port to test with.
........
r58101 | bill.janssen | 2007-09-11 03:09:19 +0200 (Tue, 11 Sep 2007) | 4 lines
Make sure test_ssl doesn't reference the ssl module in a
context where it can't be imported.
........
r58102 | bill.janssen | 2007-09-11 04:42:07 +0200 (Tue, 11 Sep 2007) | 3 lines
Fix some documentation bugs.
........
r58103 | nick.coghlan | 2007-09-11 16:01:18 +0200 (Tue, 11 Sep 2007) | 1 line
Always use the -E flag when spawning subprocesses in test_cmd_line (Issue 1056)
........
r58106 | thomas.heller | 2007-09-11 21:17:48 +0200 (Tue, 11 Sep 2007) | 3 lines
Disable some tests that fail on the 'ppc Debian unstable' buildbot to
find out if they cause the segfault on the 'alpha Debian' machine.
........
r58108 | brett.cannon | 2007-09-11 23:02:28 +0200 (Tue, 11 Sep 2007) | 6 lines
Generators had their throw() method allowing string exceptions. That's a
no-no.
Fixes issue #1147. Need to fix 2.5 to raise a proper warning if a string
exception is passed in.
........
r58112 | georg.brandl | 2007-09-12 20:03:51 +0200 (Wed, 12 Sep 2007) | 3 lines
New documentation page for the bdb module.
(This doesn't need to be merged to Py3k.)
........
r58114 | georg.brandl | 2007-09-12 20:05:57 +0200 (Wed, 12 Sep 2007) | 2 lines
Bug #1152: use non-deprecated name in example.
........
r58115 | georg.brandl | 2007-09-12 20:08:33 +0200 (Wed, 12 Sep 2007) | 2 lines
Fix #1122: wrong return type documented for various _Size() functions.
........
r58117 | georg.brandl | 2007-09-12 20:10:56 +0200 (Wed, 12 Sep 2007) | 2 lines
Fix #1139: PyFile_Encoding really is PyFile_SetEncoding.
........
r58119 | georg.brandl | 2007-09-12 20:29:18 +0200 (Wed, 12 Sep 2007) | 2 lines
bug #1154: release memory allocated by "es" PyArg_ParseTuple format specifier.
........
r58121 | bill.janssen | 2007-09-12 20:52:05 +0200 (Wed, 12 Sep 2007) | 1 line
root certificate for https://svn.python.org/, used in test_ssl
........
r58122 | georg.brandl | 2007-09-12 21:00:07 +0200 (Wed, 12 Sep 2007) | 3 lines
Bug #1153: repr.repr() now doesn't require set and dictionary items
to be orderable to properly represent them.
........
r58125 | georg.brandl | 2007-09-12 21:29:28 +0200 (Wed, 12 Sep 2007) | 4 lines
#1120: put explicit version in the shebang lines of pydoc, idle
and smtpd.py scripts that are installed by setup.py. That way, they
work when only "make altinstall" is used.
........
r58139 | mark.summerfield | 2007-09-13 16:54:30 +0200 (Thu, 13 Sep 2007) | 9 lines
Replaced variable o with obj in operator.rst because o is easy to
confuse.
Added a note about Python 3's collections.Mapping etc., above section
that describes isMappingType() etc.
Added xrefs between os, os.path, fileinput, and open().
........
r58143 | facundo.batista | 2007-09-13 20:13:15 +0200 (Thu, 13 Sep 2007) | 7 lines
Merged the decimal-branch (revisions 54886 to 58140). Decimal is now
fully updated to the latests Decimal Specification (v1.66) and the
latests test cases (v2.56).
Thanks to Mark Dickinson for all his help during this process.
........
r58145 | facundo.batista | 2007-09-13 20:42:09 +0200 (Thu, 13 Sep 2007) | 7 lines
Put the parameter watchexp back in (changed watchexp from an int
to a bool). Also second argument to watchexp is now converted
to Decimal, just as with all the other two-argument operations.
Thanks Mark Dickinson.
........
r58147 | andrew.kuchling | 2007-09-14 00:49:34 +0200 (Fri, 14 Sep 2007) | 1 line
Add various items
........
r58148 | andrew.kuchling | 2007-09-14 00:50:10 +0200 (Fri, 14 Sep 2007) | 1 line
Make target unique
........
r58154 | facundo.batista | 2007-09-14 20:58:34 +0200 (Fri, 14 Sep 2007) | 3 lines
Included the new functions, and new descriptions.
........
r58155 | thomas.heller | 2007-09-14 21:40:35 +0200 (Fri, 14 Sep 2007) | 2 lines
ctypes.util.find_library uses dump(1) instead of objdump(1) on Solaris.
Fixes issue #1777530; will backport to release25-maint.
........
r58159 | facundo.batista | 2007-09-14 23:29:52 +0200 (Fri, 14 Sep 2007) | 3 lines
Some additions (examples and a bit on the tutorial).
........
r58160 | georg.brandl | 2007-09-15 18:53:36 +0200 (Sat, 15 Sep 2007) | 2 lines
Remove bdb from the "undocumented modules" list.
........
r58164 | bill.janssen | 2007-09-17 00:06:00 +0200 (Mon, 17 Sep 2007) | 15 lines
Add support for asyncore server-side SSL support. This requires
adding the 'makefile' method to ssl.SSLSocket, and importing the
requisite fakefile class from socket.py, and making the appropriate
changes to it to make it use the SSL connection.
Added sample HTTPS server to test_ssl.py, and test that uses it.
Change SSL tests to use https://svn.python.org/, instead of
www.sf.net and pop.gmail.com.
Added utility function to ssl module, get_server_certificate,
to wrap up the several things to be done to pull a certificate
from a remote server.
........
r58173 | bill.janssen | 2007-09-17 01:16:46 +0200 (Mon, 17 Sep 2007) | 1 line
use binary mode when reading files for testAsyncore to make Windows happy
........
r58175 | raymond.hettinger | 2007-09-17 02:55:00 +0200 (Mon, 17 Sep 2007) | 7 lines
Sync-up named tuples with the latest version of the ASPN recipe.
Allows optional commas in the field-name spec (help when named tuples are used in conjuction with sql queries).
Adds the __fields__ attribute for introspection and to support conversion to dictionary form.
Adds a __replace__() method similar to str.replace() but using a named field as a target.
Clean-up spelling and presentation in doc-strings.
........
r58176 | brett.cannon | 2007-09-17 05:28:34 +0200 (Mon, 17 Sep 2007) | 5 lines
Add a bunch of GIL release/acquire points in tp_print implementations and for
PyObject_Print().
Closes issue #1164.
........
r58177 | sean.reifschneider | 2007-09-17 07:45:04 +0200 (Mon, 17 Sep 2007) | 2 lines
issue1597011: Fix for bz2 module corner-case error due to error checking bug.
........
r58180 | facundo.batista | 2007-09-17 18:26:50 +0200 (Mon, 17 Sep 2007) | 3 lines
Decimal is updated, :)
........
r58181 | facundo.batista | 2007-09-17 19:30:13 +0200 (Mon, 17 Sep 2007) | 5 lines
The methods always return Decimal classes, even if they're
executed through a subclass (thanks Mark Dickinson).
Added a bit of testing for this.
........
r58183 | sean.reifschneider | 2007-09-17 22:53:21 +0200 (Mon, 17 Sep 2007) | 2 lines
issue1082: Fixing platform and system for Vista.
........
r58185 | andrew.kuchling | 2007-09-18 03:36:16 +0200 (Tue, 18 Sep 2007) | 1 line
Add item; sort properly
........
r58186 | raymond.hettinger | 2007-09-18 05:33:19 +0200 (Tue, 18 Sep 2007) | 1 line
Handle corner cased on 0-tuples and 1-tuples. Add verbose option so people can see how it works.
........
r58192 | georg.brandl | 2007-09-18 09:24:40 +0200 (Tue, 18 Sep 2007) | 2 lines
A bit of reordering, also show more subheadings in the lang ref index.
........
r58193 | facundo.batista | 2007-09-18 18:53:18 +0200 (Tue, 18 Sep 2007) | 4 lines
Speed up of the various division operations (remainder, divide,
divideint and divmod). Thanks Mark Dickinson.
........
r58197 | raymond.hettinger | 2007-09-19 00:18:02 +0200 (Wed, 19 Sep 2007) | 1 line
Cleanup docs for NamedTuple.
........
2007-09-19 00:06:30 -03:00
|
|
|
------------------------------------------------------------------------
|
|
|
|
-- dqRemainderNear.decTest -- decQuad remainder-near --
|
2008-07-31 13:32:12 -03:00
|
|
|
-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --
|
Merged revisions 58095-58132,58136-58148,58151-58197 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r58096 | brett.cannon | 2007-09-10 23:38:27 +0200 (Mon, 10 Sep 2007) | 4 lines
Fix a possible segfault from recursing too deep to get the repr of a list.
Closes issue #1096.
........
r58097 | bill.janssen | 2007-09-10 23:51:02 +0200 (Mon, 10 Sep 2007) | 33 lines
More work on SSL support.
* Much expanded test suite:
All protocols tested against all other protocols.
All protocols tested with all certificate options.
Tests for bad key and bad cert.
Test of STARTTLS functionality.
Test of RAND_* functions.
* Fixes for threading/malloc bug.
* Issue 1065 fixed:
sslsocket class renamed to SSLSocket.
sslerror class renamed to SSLError.
Function "wrap_socket" now used to wrap an existing socket.
* Issue 1583946 finally fixed:
Support for subjectAltName added.
Subject name now returned as proper DN list of RDNs.
* SSLError exported from socket as "sslerror".
* RAND_* functions properly exported from ssl.py.
* Documentation improved:
Example of how to create a self-signed certificate.
Better indexing.
........
r58098 | guido.van.rossum | 2007-09-11 00:02:25 +0200 (Tue, 11 Sep 2007) | 9 lines
Patch # 1140 (my code, approved by Effbot).
Make sure the type of the return value of re.sub(x, y, z) is the type
of y+x (i.e. unicode if either is unicode, str if they are both str)
even if there are no substitutions or if x==z (which triggered various
special cases in join_list()).
Could be backported to 2.5; no need to port to 3.0.
........
r58099 | guido.van.rossum | 2007-09-11 00:36:02 +0200 (Tue, 11 Sep 2007) | 8 lines
Patch # 1026 by Benjamin Aranguren (with Alex Martelli):
Backport abc.py and isinstance/issubclass overloading to 2.6.
I had to backport test_typechecks.py myself, and make one small change
to abc.py to avoid duplicate work when x.__class__ and type(x) are the
same.
........
r58100 | bill.janssen | 2007-09-11 01:41:24 +0200 (Tue, 11 Sep 2007) | 3 lines
A better way of finding an open port to test with.
........
r58101 | bill.janssen | 2007-09-11 03:09:19 +0200 (Tue, 11 Sep 2007) | 4 lines
Make sure test_ssl doesn't reference the ssl module in a
context where it can't be imported.
........
r58102 | bill.janssen | 2007-09-11 04:42:07 +0200 (Tue, 11 Sep 2007) | 3 lines
Fix some documentation bugs.
........
r58103 | nick.coghlan | 2007-09-11 16:01:18 +0200 (Tue, 11 Sep 2007) | 1 line
Always use the -E flag when spawning subprocesses in test_cmd_line (Issue 1056)
........
r58106 | thomas.heller | 2007-09-11 21:17:48 +0200 (Tue, 11 Sep 2007) | 3 lines
Disable some tests that fail on the 'ppc Debian unstable' buildbot to
find out if they cause the segfault on the 'alpha Debian' machine.
........
r58108 | brett.cannon | 2007-09-11 23:02:28 +0200 (Tue, 11 Sep 2007) | 6 lines
Generators had their throw() method allowing string exceptions. That's a
no-no.
Fixes issue #1147. Need to fix 2.5 to raise a proper warning if a string
exception is passed in.
........
r58112 | georg.brandl | 2007-09-12 20:03:51 +0200 (Wed, 12 Sep 2007) | 3 lines
New documentation page for the bdb module.
(This doesn't need to be merged to Py3k.)
........
r58114 | georg.brandl | 2007-09-12 20:05:57 +0200 (Wed, 12 Sep 2007) | 2 lines
Bug #1152: use non-deprecated name in example.
........
r58115 | georg.brandl | 2007-09-12 20:08:33 +0200 (Wed, 12 Sep 2007) | 2 lines
Fix #1122: wrong return type documented for various _Size() functions.
........
r58117 | georg.brandl | 2007-09-12 20:10:56 +0200 (Wed, 12 Sep 2007) | 2 lines
Fix #1139: PyFile_Encoding really is PyFile_SetEncoding.
........
r58119 | georg.brandl | 2007-09-12 20:29:18 +0200 (Wed, 12 Sep 2007) | 2 lines
bug #1154: release memory allocated by "es" PyArg_ParseTuple format specifier.
........
r58121 | bill.janssen | 2007-09-12 20:52:05 +0200 (Wed, 12 Sep 2007) | 1 line
root certificate for https://svn.python.org/, used in test_ssl
........
r58122 | georg.brandl | 2007-09-12 21:00:07 +0200 (Wed, 12 Sep 2007) | 3 lines
Bug #1153: repr.repr() now doesn't require set and dictionary items
to be orderable to properly represent them.
........
r58125 | georg.brandl | 2007-09-12 21:29:28 +0200 (Wed, 12 Sep 2007) | 4 lines
#1120: put explicit version in the shebang lines of pydoc, idle
and smtpd.py scripts that are installed by setup.py. That way, they
work when only "make altinstall" is used.
........
r58139 | mark.summerfield | 2007-09-13 16:54:30 +0200 (Thu, 13 Sep 2007) | 9 lines
Replaced variable o with obj in operator.rst because o is easy to
confuse.
Added a note about Python 3's collections.Mapping etc., above section
that describes isMappingType() etc.
Added xrefs between os, os.path, fileinput, and open().
........
r58143 | facundo.batista | 2007-09-13 20:13:15 +0200 (Thu, 13 Sep 2007) | 7 lines
Merged the decimal-branch (revisions 54886 to 58140). Decimal is now
fully updated to the latests Decimal Specification (v1.66) and the
latests test cases (v2.56).
Thanks to Mark Dickinson for all his help during this process.
........
r58145 | facundo.batista | 2007-09-13 20:42:09 +0200 (Thu, 13 Sep 2007) | 7 lines
Put the parameter watchexp back in (changed watchexp from an int
to a bool). Also second argument to watchexp is now converted
to Decimal, just as with all the other two-argument operations.
Thanks Mark Dickinson.
........
r58147 | andrew.kuchling | 2007-09-14 00:49:34 +0200 (Fri, 14 Sep 2007) | 1 line
Add various items
........
r58148 | andrew.kuchling | 2007-09-14 00:50:10 +0200 (Fri, 14 Sep 2007) | 1 line
Make target unique
........
r58154 | facundo.batista | 2007-09-14 20:58:34 +0200 (Fri, 14 Sep 2007) | 3 lines
Included the new functions, and new descriptions.
........
r58155 | thomas.heller | 2007-09-14 21:40:35 +0200 (Fri, 14 Sep 2007) | 2 lines
ctypes.util.find_library uses dump(1) instead of objdump(1) on Solaris.
Fixes issue #1777530; will backport to release25-maint.
........
r58159 | facundo.batista | 2007-09-14 23:29:52 +0200 (Fri, 14 Sep 2007) | 3 lines
Some additions (examples and a bit on the tutorial).
........
r58160 | georg.brandl | 2007-09-15 18:53:36 +0200 (Sat, 15 Sep 2007) | 2 lines
Remove bdb from the "undocumented modules" list.
........
r58164 | bill.janssen | 2007-09-17 00:06:00 +0200 (Mon, 17 Sep 2007) | 15 lines
Add support for asyncore server-side SSL support. This requires
adding the 'makefile' method to ssl.SSLSocket, and importing the
requisite fakefile class from socket.py, and making the appropriate
changes to it to make it use the SSL connection.
Added sample HTTPS server to test_ssl.py, and test that uses it.
Change SSL tests to use https://svn.python.org/, instead of
www.sf.net and pop.gmail.com.
Added utility function to ssl module, get_server_certificate,
to wrap up the several things to be done to pull a certificate
from a remote server.
........
r58173 | bill.janssen | 2007-09-17 01:16:46 +0200 (Mon, 17 Sep 2007) | 1 line
use binary mode when reading files for testAsyncore to make Windows happy
........
r58175 | raymond.hettinger | 2007-09-17 02:55:00 +0200 (Mon, 17 Sep 2007) | 7 lines
Sync-up named tuples with the latest version of the ASPN recipe.
Allows optional commas in the field-name spec (help when named tuples are used in conjuction with sql queries).
Adds the __fields__ attribute for introspection and to support conversion to dictionary form.
Adds a __replace__() method similar to str.replace() but using a named field as a target.
Clean-up spelling and presentation in doc-strings.
........
r58176 | brett.cannon | 2007-09-17 05:28:34 +0200 (Mon, 17 Sep 2007) | 5 lines
Add a bunch of GIL release/acquire points in tp_print implementations and for
PyObject_Print().
Closes issue #1164.
........
r58177 | sean.reifschneider | 2007-09-17 07:45:04 +0200 (Mon, 17 Sep 2007) | 2 lines
issue1597011: Fix for bz2 module corner-case error due to error checking bug.
........
r58180 | facundo.batista | 2007-09-17 18:26:50 +0200 (Mon, 17 Sep 2007) | 3 lines
Decimal is updated, :)
........
r58181 | facundo.batista | 2007-09-17 19:30:13 +0200 (Mon, 17 Sep 2007) | 5 lines
The methods always return Decimal classes, even if they're
executed through a subclass (thanks Mark Dickinson).
Added a bit of testing for this.
........
r58183 | sean.reifschneider | 2007-09-17 22:53:21 +0200 (Mon, 17 Sep 2007) | 2 lines
issue1082: Fixing platform and system for Vista.
........
r58185 | andrew.kuchling | 2007-09-18 03:36:16 +0200 (Tue, 18 Sep 2007) | 1 line
Add item; sort properly
........
r58186 | raymond.hettinger | 2007-09-18 05:33:19 +0200 (Tue, 18 Sep 2007) | 1 line
Handle corner cased on 0-tuples and 1-tuples. Add verbose option so people can see how it works.
........
r58192 | georg.brandl | 2007-09-18 09:24:40 +0200 (Tue, 18 Sep 2007) | 2 lines
A bit of reordering, also show more subheadings in the lang ref index.
........
r58193 | facundo.batista | 2007-09-18 18:53:18 +0200 (Tue, 18 Sep 2007) | 4 lines
Speed up of the various division operations (remainder, divide,
divideint and divmod). Thanks Mark Dickinson.
........
r58197 | raymond.hettinger | 2007-09-19 00:18:02 +0200 (Wed, 19 Sep 2007) | 1 line
Cleanup docs for NamedTuple.
........
2007-09-19 00:06:30 -03:00
|
|
|
------------------------------------------------------------------------
|
|
|
|
-- Please see the document "General Decimal Arithmetic Testcases" --
|
|
|
|
-- at http://www2.hursley.ibm.com/decimal for the description of --
|
|
|
|
-- these testcases. --
|
|
|
|
-- --
|
|
|
|
-- These testcases are experimental ('beta' versions), and they --
|
|
|
|
-- may contain errors. They are offered on an as-is basis. In --
|
|
|
|
-- particular, achieving the same results as the tests here is not --
|
|
|
|
-- a guarantee that an implementation complies with any Standard --
|
|
|
|
-- or specification. The tests are not exhaustive. --
|
|
|
|
-- --
|
|
|
|
-- Please send comments, suggestions, and corrections to the author: --
|
|
|
|
-- Mike Cowlishaw, IBM Fellow --
|
|
|
|
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
|
|
|
|
-- mfc@uk.ibm.com --
|
|
|
|
------------------------------------------------------------------------
|
2009-10-08 13:30:38 -03:00
|
|
|
version: 2.59
|
Merged revisions 58095-58132,58136-58148,58151-58197 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r58096 | brett.cannon | 2007-09-10 23:38:27 +0200 (Mon, 10 Sep 2007) | 4 lines
Fix a possible segfault from recursing too deep to get the repr of a list.
Closes issue #1096.
........
r58097 | bill.janssen | 2007-09-10 23:51:02 +0200 (Mon, 10 Sep 2007) | 33 lines
More work on SSL support.
* Much expanded test suite:
All protocols tested against all other protocols.
All protocols tested with all certificate options.
Tests for bad key and bad cert.
Test of STARTTLS functionality.
Test of RAND_* functions.
* Fixes for threading/malloc bug.
* Issue 1065 fixed:
sslsocket class renamed to SSLSocket.
sslerror class renamed to SSLError.
Function "wrap_socket" now used to wrap an existing socket.
* Issue 1583946 finally fixed:
Support for subjectAltName added.
Subject name now returned as proper DN list of RDNs.
* SSLError exported from socket as "sslerror".
* RAND_* functions properly exported from ssl.py.
* Documentation improved:
Example of how to create a self-signed certificate.
Better indexing.
........
r58098 | guido.van.rossum | 2007-09-11 00:02:25 +0200 (Tue, 11 Sep 2007) | 9 lines
Patch # 1140 (my code, approved by Effbot).
Make sure the type of the return value of re.sub(x, y, z) is the type
of y+x (i.e. unicode if either is unicode, str if they are both str)
even if there are no substitutions or if x==z (which triggered various
special cases in join_list()).
Could be backported to 2.5; no need to port to 3.0.
........
r58099 | guido.van.rossum | 2007-09-11 00:36:02 +0200 (Tue, 11 Sep 2007) | 8 lines
Patch # 1026 by Benjamin Aranguren (with Alex Martelli):
Backport abc.py and isinstance/issubclass overloading to 2.6.
I had to backport test_typechecks.py myself, and make one small change
to abc.py to avoid duplicate work when x.__class__ and type(x) are the
same.
........
r58100 | bill.janssen | 2007-09-11 01:41:24 +0200 (Tue, 11 Sep 2007) | 3 lines
A better way of finding an open port to test with.
........
r58101 | bill.janssen | 2007-09-11 03:09:19 +0200 (Tue, 11 Sep 2007) | 4 lines
Make sure test_ssl doesn't reference the ssl module in a
context where it can't be imported.
........
r58102 | bill.janssen | 2007-09-11 04:42:07 +0200 (Tue, 11 Sep 2007) | 3 lines
Fix some documentation bugs.
........
r58103 | nick.coghlan | 2007-09-11 16:01:18 +0200 (Tue, 11 Sep 2007) | 1 line
Always use the -E flag when spawning subprocesses in test_cmd_line (Issue 1056)
........
r58106 | thomas.heller | 2007-09-11 21:17:48 +0200 (Tue, 11 Sep 2007) | 3 lines
Disable some tests that fail on the 'ppc Debian unstable' buildbot to
find out if they cause the segfault on the 'alpha Debian' machine.
........
r58108 | brett.cannon | 2007-09-11 23:02:28 +0200 (Tue, 11 Sep 2007) | 6 lines
Generators had their throw() method allowing string exceptions. That's a
no-no.
Fixes issue #1147. Need to fix 2.5 to raise a proper warning if a string
exception is passed in.
........
r58112 | georg.brandl | 2007-09-12 20:03:51 +0200 (Wed, 12 Sep 2007) | 3 lines
New documentation page for the bdb module.
(This doesn't need to be merged to Py3k.)
........
r58114 | georg.brandl | 2007-09-12 20:05:57 +0200 (Wed, 12 Sep 2007) | 2 lines
Bug #1152: use non-deprecated name in example.
........
r58115 | georg.brandl | 2007-09-12 20:08:33 +0200 (Wed, 12 Sep 2007) | 2 lines
Fix #1122: wrong return type documented for various _Size() functions.
........
r58117 | georg.brandl | 2007-09-12 20:10:56 +0200 (Wed, 12 Sep 2007) | 2 lines
Fix #1139: PyFile_Encoding really is PyFile_SetEncoding.
........
r58119 | georg.brandl | 2007-09-12 20:29:18 +0200 (Wed, 12 Sep 2007) | 2 lines
bug #1154: release memory allocated by "es" PyArg_ParseTuple format specifier.
........
r58121 | bill.janssen | 2007-09-12 20:52:05 +0200 (Wed, 12 Sep 2007) | 1 line
root certificate for https://svn.python.org/, used in test_ssl
........
r58122 | georg.brandl | 2007-09-12 21:00:07 +0200 (Wed, 12 Sep 2007) | 3 lines
Bug #1153: repr.repr() now doesn't require set and dictionary items
to be orderable to properly represent them.
........
r58125 | georg.brandl | 2007-09-12 21:29:28 +0200 (Wed, 12 Sep 2007) | 4 lines
#1120: put explicit version in the shebang lines of pydoc, idle
and smtpd.py scripts that are installed by setup.py. That way, they
work when only "make altinstall" is used.
........
r58139 | mark.summerfield | 2007-09-13 16:54:30 +0200 (Thu, 13 Sep 2007) | 9 lines
Replaced variable o with obj in operator.rst because o is easy to
confuse.
Added a note about Python 3's collections.Mapping etc., above section
that describes isMappingType() etc.
Added xrefs between os, os.path, fileinput, and open().
........
r58143 | facundo.batista | 2007-09-13 20:13:15 +0200 (Thu, 13 Sep 2007) | 7 lines
Merged the decimal-branch (revisions 54886 to 58140). Decimal is now
fully updated to the latests Decimal Specification (v1.66) and the
latests test cases (v2.56).
Thanks to Mark Dickinson for all his help during this process.
........
r58145 | facundo.batista | 2007-09-13 20:42:09 +0200 (Thu, 13 Sep 2007) | 7 lines
Put the parameter watchexp back in (changed watchexp from an int
to a bool). Also second argument to watchexp is now converted
to Decimal, just as with all the other two-argument operations.
Thanks Mark Dickinson.
........
r58147 | andrew.kuchling | 2007-09-14 00:49:34 +0200 (Fri, 14 Sep 2007) | 1 line
Add various items
........
r58148 | andrew.kuchling | 2007-09-14 00:50:10 +0200 (Fri, 14 Sep 2007) | 1 line
Make target unique
........
r58154 | facundo.batista | 2007-09-14 20:58:34 +0200 (Fri, 14 Sep 2007) | 3 lines
Included the new functions, and new descriptions.
........
r58155 | thomas.heller | 2007-09-14 21:40:35 +0200 (Fri, 14 Sep 2007) | 2 lines
ctypes.util.find_library uses dump(1) instead of objdump(1) on Solaris.
Fixes issue #1777530; will backport to release25-maint.
........
r58159 | facundo.batista | 2007-09-14 23:29:52 +0200 (Fri, 14 Sep 2007) | 3 lines
Some additions (examples and a bit on the tutorial).
........
r58160 | georg.brandl | 2007-09-15 18:53:36 +0200 (Sat, 15 Sep 2007) | 2 lines
Remove bdb from the "undocumented modules" list.
........
r58164 | bill.janssen | 2007-09-17 00:06:00 +0200 (Mon, 17 Sep 2007) | 15 lines
Add support for asyncore server-side SSL support. This requires
adding the 'makefile' method to ssl.SSLSocket, and importing the
requisite fakefile class from socket.py, and making the appropriate
changes to it to make it use the SSL connection.
Added sample HTTPS server to test_ssl.py, and test that uses it.
Change SSL tests to use https://svn.python.org/, instead of
www.sf.net and pop.gmail.com.
Added utility function to ssl module, get_server_certificate,
to wrap up the several things to be done to pull a certificate
from a remote server.
........
r58173 | bill.janssen | 2007-09-17 01:16:46 +0200 (Mon, 17 Sep 2007) | 1 line
use binary mode when reading files for testAsyncore to make Windows happy
........
r58175 | raymond.hettinger | 2007-09-17 02:55:00 +0200 (Mon, 17 Sep 2007) | 7 lines
Sync-up named tuples with the latest version of the ASPN recipe.
Allows optional commas in the field-name spec (help when named tuples are used in conjuction with sql queries).
Adds the __fields__ attribute for introspection and to support conversion to dictionary form.
Adds a __replace__() method similar to str.replace() but using a named field as a target.
Clean-up spelling and presentation in doc-strings.
........
r58176 | brett.cannon | 2007-09-17 05:28:34 +0200 (Mon, 17 Sep 2007) | 5 lines
Add a bunch of GIL release/acquire points in tp_print implementations and for
PyObject_Print().
Closes issue #1164.
........
r58177 | sean.reifschneider | 2007-09-17 07:45:04 +0200 (Mon, 17 Sep 2007) | 2 lines
issue1597011: Fix for bz2 module corner-case error due to error checking bug.
........
r58180 | facundo.batista | 2007-09-17 18:26:50 +0200 (Mon, 17 Sep 2007) | 3 lines
Decimal is updated, :)
........
r58181 | facundo.batista | 2007-09-17 19:30:13 +0200 (Mon, 17 Sep 2007) | 5 lines
The methods always return Decimal classes, even if they're
executed through a subclass (thanks Mark Dickinson).
Added a bit of testing for this.
........
r58183 | sean.reifschneider | 2007-09-17 22:53:21 +0200 (Mon, 17 Sep 2007) | 2 lines
issue1082: Fixing platform and system for Vista.
........
r58185 | andrew.kuchling | 2007-09-18 03:36:16 +0200 (Tue, 18 Sep 2007) | 1 line
Add item; sort properly
........
r58186 | raymond.hettinger | 2007-09-18 05:33:19 +0200 (Tue, 18 Sep 2007) | 1 line
Handle corner cased on 0-tuples and 1-tuples. Add verbose option so people can see how it works.
........
r58192 | georg.brandl | 2007-09-18 09:24:40 +0200 (Tue, 18 Sep 2007) | 2 lines
A bit of reordering, also show more subheadings in the lang ref index.
........
r58193 | facundo.batista | 2007-09-18 18:53:18 +0200 (Tue, 18 Sep 2007) | 4 lines
Speed up of the various division operations (remainder, divide,
divideint and divmod). Thanks Mark Dickinson.
........
r58197 | raymond.hettinger | 2007-09-19 00:18:02 +0200 (Wed, 19 Sep 2007) | 1 line
Cleanup docs for NamedTuple.
........
2007-09-19 00:06:30 -03:00
|
|
|
|
|
|
|
extended: 1
|
|
|
|
clamp: 1
|
|
|
|
precision: 34
|
|
|
|
maxExponent: 6144
|
|
|
|
minExponent: -6143
|
|
|
|
rounding: half_even
|
|
|
|
|
|
|
|
-- sanity checks (as base, above)
|
|
|
|
dqrmn001 remaindernear 1 1 -> 0
|
|
|
|
dqrmn002 remaindernear 2 1 -> 0
|
|
|
|
dqrmn003 remaindernear 1 2 -> 1
|
|
|
|
dqrmn004 remaindernear 2 2 -> 0
|
|
|
|
dqrmn005 remaindernear 0 1 -> 0
|
|
|
|
dqrmn006 remaindernear 0 2 -> 0
|
|
|
|
dqrmn007 remaindernear 1 3 -> 1
|
|
|
|
dqrmn008 remaindernear 2 3 -> -1
|
|
|
|
dqrmn009 remaindernear 3 3 -> 0
|
|
|
|
|
|
|
|
dqrmn010 remaindernear 2.4 1 -> 0.4
|
|
|
|
dqrmn011 remaindernear 2.4 -1 -> 0.4
|
|
|
|
dqrmn012 remaindernear -2.4 1 -> -0.4
|
|
|
|
dqrmn013 remaindernear -2.4 -1 -> -0.4
|
|
|
|
dqrmn014 remaindernear 2.40 1 -> 0.40
|
|
|
|
dqrmn015 remaindernear 2.400 1 -> 0.400
|
|
|
|
dqrmn016 remaindernear 2.4 2 -> 0.4
|
|
|
|
dqrmn017 remaindernear 2.400 2 -> 0.400
|
|
|
|
dqrmn018 remaindernear 2. 2 -> 0
|
|
|
|
dqrmn019 remaindernear 20 20 -> 0
|
|
|
|
|
|
|
|
dqrmn020 remaindernear 187 187 -> 0
|
|
|
|
dqrmn021 remaindernear 5 2 -> 1
|
|
|
|
dqrmn022 remaindernear 5 2.0 -> 1.0
|
|
|
|
dqrmn023 remaindernear 5 2.000 -> 1.000
|
|
|
|
dqrmn024 remaindernear 5 0.200 -> 0.000
|
|
|
|
dqrmn025 remaindernear 5 0.200 -> 0.000
|
|
|
|
|
|
|
|
dqrmn030 remaindernear 1 2 -> 1
|
|
|
|
dqrmn031 remaindernear 1 4 -> 1
|
|
|
|
dqrmn032 remaindernear 1 8 -> 1
|
|
|
|
|
|
|
|
dqrmn033 remaindernear 1 16 -> 1
|
|
|
|
dqrmn034 remaindernear 1 32 -> 1
|
|
|
|
dqrmn035 remaindernear 1 64 -> 1
|
|
|
|
dqrmn040 remaindernear 1 -2 -> 1
|
|
|
|
dqrmn041 remaindernear 1 -4 -> 1
|
|
|
|
dqrmn042 remaindernear 1 -8 -> 1
|
|
|
|
dqrmn043 remaindernear 1 -16 -> 1
|
|
|
|
dqrmn044 remaindernear 1 -32 -> 1
|
|
|
|
dqrmn045 remaindernear 1 -64 -> 1
|
|
|
|
dqrmn050 remaindernear -1 2 -> -1
|
|
|
|
dqrmn051 remaindernear -1 4 -> -1
|
|
|
|
dqrmn052 remaindernear -1 8 -> -1
|
|
|
|
dqrmn053 remaindernear -1 16 -> -1
|
|
|
|
dqrmn054 remaindernear -1 32 -> -1
|
|
|
|
dqrmn055 remaindernear -1 64 -> -1
|
|
|
|
dqrmn060 remaindernear -1 -2 -> -1
|
|
|
|
dqrmn061 remaindernear -1 -4 -> -1
|
|
|
|
dqrmn062 remaindernear -1 -8 -> -1
|
|
|
|
dqrmn063 remaindernear -1 -16 -> -1
|
|
|
|
dqrmn064 remaindernear -1 -32 -> -1
|
|
|
|
dqrmn065 remaindernear -1 -64 -> -1
|
|
|
|
|
|
|
|
dqrmn066 remaindernear 9.9 1 -> -0.1
|
|
|
|
dqrmn067 remaindernear 99.7 1 -> -0.3
|
|
|
|
dqrmn068 remaindernear 999999999 1 -> 0
|
|
|
|
dqrmn069 remaindernear 999999999.4 1 -> 0.4
|
|
|
|
dqrmn070 remaindernear 999999999.5 1 -> -0.5
|
|
|
|
dqrmn071 remaindernear 999999999.9 1 -> -0.1
|
|
|
|
dqrmn072 remaindernear 999999999.999 1 -> -0.001
|
|
|
|
dqrmn073 remaindernear 999999.999999 1 -> -0.000001
|
|
|
|
dqrmn074 remaindernear 9 1 -> 0
|
|
|
|
dqrmn075 remaindernear 9999999999999999 1 -> 0
|
|
|
|
dqrmn076 remaindernear 9999999999999999 2 -> -1
|
|
|
|
dqrmn077 remaindernear 9999999999999999 3 -> 0
|
|
|
|
dqrmn078 remaindernear 9999999999999999 4 -> -1
|
|
|
|
|
|
|
|
dqrmn080 remaindernear 0. 1 -> 0
|
|
|
|
dqrmn081 remaindernear .0 1 -> 0.0
|
|
|
|
dqrmn082 remaindernear 0.00 1 -> 0.00
|
|
|
|
dqrmn083 remaindernear 0.00E+9 1 -> 0
|
|
|
|
dqrmn084 remaindernear 0.00E+3 1 -> 0
|
|
|
|
dqrmn085 remaindernear 0.00E+2 1 -> 0
|
|
|
|
dqrmn086 remaindernear 0.00E+1 1 -> 0.0
|
|
|
|
dqrmn087 remaindernear 0.00E+0 1 -> 0.00
|
|
|
|
dqrmn088 remaindernear 0.00E-0 1 -> 0.00
|
|
|
|
dqrmn089 remaindernear 0.00E-1 1 -> 0.000
|
|
|
|
dqrmn090 remaindernear 0.00E-2 1 -> 0.0000
|
|
|
|
dqrmn091 remaindernear 0.00E-3 1 -> 0.00000
|
|
|
|
dqrmn092 remaindernear 0.00E-4 1 -> 0.000000
|
|
|
|
dqrmn093 remaindernear 0.00E-5 1 -> 0E-7
|
|
|
|
dqrmn094 remaindernear 0.00E-6 1 -> 0E-8
|
|
|
|
dqrmn095 remaindernear 0.0000E-50 1 -> 0E-54
|
|
|
|
|
|
|
|
-- Various flavours of remaindernear by 0
|
|
|
|
dqrmn101 remaindernear 0 0 -> NaN Division_undefined
|
|
|
|
dqrmn102 remaindernear 0 -0 -> NaN Division_undefined
|
|
|
|
dqrmn103 remaindernear -0 0 -> NaN Division_undefined
|
|
|
|
dqrmn104 remaindernear -0 -0 -> NaN Division_undefined
|
|
|
|
dqrmn105 remaindernear 0.0E5 0 -> NaN Division_undefined
|
|
|
|
dqrmn106 remaindernear 0.000 0 -> NaN Division_undefined
|
|
|
|
-- [Some think this next group should be Division_by_zero exception, but
|
|
|
|
-- IEEE 854 is explicit that it is Invalid operation .. for
|
|
|
|
-- remainder-near, anyway]
|
|
|
|
dqrmn107 remaindernear 0.0001 0 -> NaN Invalid_operation
|
|
|
|
dqrmn108 remaindernear 0.01 0 -> NaN Invalid_operation
|
|
|
|
dqrmn109 remaindernear 0.1 0 -> NaN Invalid_operation
|
|
|
|
dqrmn110 remaindernear 1 0 -> NaN Invalid_operation
|
|
|
|
dqrmn111 remaindernear 1 0.0 -> NaN Invalid_operation
|
|
|
|
dqrmn112 remaindernear 10 0.0 -> NaN Invalid_operation
|
|
|
|
dqrmn113 remaindernear 1E+100 0.0 -> NaN Invalid_operation
|
|
|
|
dqrmn114 remaindernear 1E+380 0 -> NaN Invalid_operation
|
|
|
|
dqrmn115 remaindernear 0.0001 -0 -> NaN Invalid_operation
|
|
|
|
dqrmn116 remaindernear 0.01 -0 -> NaN Invalid_operation
|
|
|
|
dqrmn119 remaindernear 0.1 -0 -> NaN Invalid_operation
|
|
|
|
dqrmn120 remaindernear 1 -0 -> NaN Invalid_operation
|
|
|
|
dqrmn121 remaindernear 1 -0.0 -> NaN Invalid_operation
|
|
|
|
dqrmn122 remaindernear 10 -0.0 -> NaN Invalid_operation
|
|
|
|
dqrmn123 remaindernear 1E+100 -0.0 -> NaN Invalid_operation
|
|
|
|
dqrmn124 remaindernear 1E+384 -0 -> NaN Invalid_operation
|
|
|
|
-- and zeros on left
|
|
|
|
dqrmn130 remaindernear 0 1 -> 0
|
|
|
|
dqrmn131 remaindernear 0 -1 -> 0
|
|
|
|
dqrmn132 remaindernear 0.0 1 -> 0.0
|
|
|
|
dqrmn133 remaindernear 0.0 -1 -> 0.0
|
|
|
|
dqrmn134 remaindernear -0 1 -> -0
|
|
|
|
dqrmn135 remaindernear -0 -1 -> -0
|
|
|
|
dqrmn136 remaindernear -0.0 1 -> -0.0
|
|
|
|
dqrmn137 remaindernear -0.0 -1 -> -0.0
|
|
|
|
|
|
|
|
-- 0.5ers
|
|
|
|
dqrmn143 remaindernear 0.5 2 -> 0.5
|
|
|
|
dqrmn144 remaindernear 0.5 2.1 -> 0.5
|
|
|
|
dqrmn145 remaindernear 0.5 2.01 -> 0.50
|
|
|
|
dqrmn146 remaindernear 0.5 2.001 -> 0.500
|
|
|
|
dqrmn147 remaindernear 0.50 2 -> 0.50
|
|
|
|
dqrmn148 remaindernear 0.50 2.01 -> 0.50
|
|
|
|
dqrmn149 remaindernear 0.50 2.001 -> 0.500
|
|
|
|
|
|
|
|
-- steadies
|
|
|
|
dqrmn150 remaindernear 1 1 -> 0
|
|
|
|
dqrmn151 remaindernear 1 2 -> 1
|
|
|
|
dqrmn152 remaindernear 1 3 -> 1
|
|
|
|
dqrmn153 remaindernear 1 4 -> 1
|
|
|
|
dqrmn154 remaindernear 1 5 -> 1
|
|
|
|
dqrmn155 remaindernear 1 6 -> 1
|
|
|
|
dqrmn156 remaindernear 1 7 -> 1
|
|
|
|
dqrmn157 remaindernear 1 8 -> 1
|
|
|
|
dqrmn158 remaindernear 1 9 -> 1
|
|
|
|
dqrmn159 remaindernear 1 10 -> 1
|
|
|
|
dqrmn160 remaindernear 1 1 -> 0
|
|
|
|
dqrmn161 remaindernear 2 1 -> 0
|
|
|
|
dqrmn162 remaindernear 3 1 -> 0
|
|
|
|
dqrmn163 remaindernear 4 1 -> 0
|
|
|
|
dqrmn164 remaindernear 5 1 -> 0
|
|
|
|
dqrmn165 remaindernear 6 1 -> 0
|
|
|
|
dqrmn166 remaindernear 7 1 -> 0
|
|
|
|
dqrmn167 remaindernear 8 1 -> 0
|
|
|
|
dqrmn168 remaindernear 9 1 -> 0
|
|
|
|
dqrmn169 remaindernear 10 1 -> 0
|
|
|
|
|
|
|
|
-- some differences from remainder
|
|
|
|
dqrmn171 remaindernear 0.4 1.020 -> 0.400
|
|
|
|
dqrmn172 remaindernear 0.50 1.020 -> 0.500
|
|
|
|
dqrmn173 remaindernear 0.51 1.020 -> 0.510
|
|
|
|
dqrmn174 remaindernear 0.52 1.020 -> -0.500
|
|
|
|
dqrmn175 remaindernear 0.6 1.020 -> -0.420
|
|
|
|
|
|
|
|
-- More flavours of remaindernear by 0
|
|
|
|
dqrmn201 remaindernear 0 0 -> NaN Division_undefined
|
|
|
|
dqrmn202 remaindernear 0.0E5 0 -> NaN Division_undefined
|
|
|
|
dqrmn203 remaindernear 0.000 0 -> NaN Division_undefined
|
|
|
|
dqrmn204 remaindernear 0.0001 0 -> NaN Invalid_operation
|
|
|
|
dqrmn205 remaindernear 0.01 0 -> NaN Invalid_operation
|
|
|
|
dqrmn206 remaindernear 0.1 0 -> NaN Invalid_operation
|
|
|
|
dqrmn207 remaindernear 1 0 -> NaN Invalid_operation
|
|
|
|
dqrmn208 remaindernear 1 0.0 -> NaN Invalid_operation
|
|
|
|
dqrmn209 remaindernear 10 0.0 -> NaN Invalid_operation
|
|
|
|
dqrmn210 remaindernear 1E+100 0.0 -> NaN Invalid_operation
|
|
|
|
dqrmn211 remaindernear 1E+380 0 -> NaN Invalid_operation
|
|
|
|
|
|
|
|
-- tests from the extended specification
|
|
|
|
dqrmn221 remaindernear 2.1 3 -> -0.9
|
|
|
|
dqrmn222 remaindernear 10 6 -> -2
|
|
|
|
dqrmn223 remaindernear 10 3 -> 1
|
|
|
|
dqrmn224 remaindernear -10 3 -> -1
|
|
|
|
dqrmn225 remaindernear 10.2 1 -> 0.2
|
|
|
|
dqrmn226 remaindernear 10 0.3 -> 0.1
|
|
|
|
dqrmn227 remaindernear 3.6 1.3 -> -0.3
|
|
|
|
|
|
|
|
-- some differences from remainder
|
|
|
|
dqrmn231 remaindernear -0.4 1.020 -> -0.400
|
|
|
|
dqrmn232 remaindernear -0.50 1.020 -> -0.500
|
|
|
|
dqrmn233 remaindernear -0.51 1.020 -> -0.510
|
|
|
|
dqrmn234 remaindernear -0.52 1.020 -> 0.500
|
|
|
|
dqrmn235 remaindernear -0.6 1.020 -> 0.420
|
|
|
|
|
|
|
|
-- high Xs
|
|
|
|
dqrmn240 remaindernear 1E+2 1.00 -> 0.00
|
|
|
|
|
|
|
|
-- dqrmn3xx are from DiagBigDecimal
|
|
|
|
dqrmn301 remaindernear 1 3 -> 1
|
|
|
|
dqrmn302 remaindernear 5 5 -> 0
|
|
|
|
dqrmn303 remaindernear 13 10 -> 3
|
|
|
|
dqrmn304 remaindernear 13 50 -> 13
|
|
|
|
dqrmn305 remaindernear 13 100 -> 13
|
|
|
|
dqrmn306 remaindernear 13 1000 -> 13
|
|
|
|
dqrmn307 remaindernear .13 1 -> 0.13
|
|
|
|
dqrmn308 remaindernear 0.133 1 -> 0.133
|
|
|
|
dqrmn309 remaindernear 0.1033 1 -> 0.1033
|
|
|
|
dqrmn310 remaindernear 1.033 1 -> 0.033
|
|
|
|
dqrmn311 remaindernear 10.33 1 -> 0.33
|
|
|
|
dqrmn312 remaindernear 10.33 10 -> 0.33
|
|
|
|
dqrmn313 remaindernear 103.3 1 -> 0.3
|
|
|
|
dqrmn314 remaindernear 133 10 -> 3
|
|
|
|
dqrmn315 remaindernear 1033 10 -> 3
|
|
|
|
dqrmn316 remaindernear 1033 50 -> -17
|
|
|
|
dqrmn317 remaindernear 101.0 3 -> -1.0
|
|
|
|
dqrmn318 remaindernear 102.0 3 -> 0.0
|
|
|
|
dqrmn319 remaindernear 103.0 3 -> 1.0
|
|
|
|
dqrmn320 remaindernear 2.40 1 -> 0.40
|
|
|
|
dqrmn321 remaindernear 2.400 1 -> 0.400
|
|
|
|
dqrmn322 remaindernear 2.4 1 -> 0.4
|
|
|
|
dqrmn323 remaindernear 2.4 2 -> 0.4
|
|
|
|
dqrmn324 remaindernear 2.400 2 -> 0.400
|
|
|
|
dqrmn325 remaindernear 1 0.3 -> 0.1
|
|
|
|
dqrmn326 remaindernear 1 0.30 -> 0.10
|
|
|
|
dqrmn327 remaindernear 1 0.300 -> 0.100
|
|
|
|
dqrmn328 remaindernear 1 0.3000 -> 0.1000
|
|
|
|
dqrmn329 remaindernear 1.0 0.3 -> 0.1
|
|
|
|
dqrmn330 remaindernear 1.00 0.3 -> 0.10
|
|
|
|
dqrmn331 remaindernear 1.000 0.3 -> 0.100
|
|
|
|
dqrmn332 remaindernear 1.0000 0.3 -> 0.1000
|
|
|
|
dqrmn333 remaindernear 0.5 2 -> 0.5
|
|
|
|
dqrmn334 remaindernear 0.5 2.1 -> 0.5
|
|
|
|
dqrmn335 remaindernear 0.5 2.01 -> 0.50
|
|
|
|
dqrmn336 remaindernear 0.5 2.001 -> 0.500
|
|
|
|
dqrmn337 remaindernear 0.50 2 -> 0.50
|
|
|
|
dqrmn338 remaindernear 0.50 2.01 -> 0.50
|
|
|
|
dqrmn339 remaindernear 0.50 2.001 -> 0.500
|
|
|
|
|
|
|
|
dqrmn340 remaindernear 0.5 0.5000001 -> -1E-7
|
|
|
|
dqrmn341 remaindernear 0.5 0.50000001 -> -1E-8
|
|
|
|
dqrmn342 remaindernear 0.5 0.500000001 -> -1E-9
|
|
|
|
dqrmn343 remaindernear 0.5 0.5000000001 -> -1E-10
|
|
|
|
dqrmn344 remaindernear 0.5 0.50000000001 -> -1E-11
|
|
|
|
dqrmn345 remaindernear 0.5 0.4999999 -> 1E-7
|
|
|
|
dqrmn346 remaindernear 0.5 0.49999999 -> 1E-8
|
|
|
|
dqrmn347 remaindernear 0.5 0.499999999 -> 1E-9
|
|
|
|
dqrmn348 remaindernear 0.5 0.4999999999 -> 1E-10
|
|
|
|
dqrmn349 remaindernear 0.5 0.49999999999 -> 1E-11
|
|
|
|
dqrmn350 remaindernear 0.5 0.499999999999 -> 1E-12
|
|
|
|
|
|
|
|
dqrmn351 remaindernear 0.03 7 -> 0.03
|
|
|
|
dqrmn352 remaindernear 5 2 -> 1
|
|
|
|
dqrmn353 remaindernear 4.1 2 -> 0.1
|
|
|
|
dqrmn354 remaindernear 4.01 2 -> 0.01
|
|
|
|
dqrmn355 remaindernear 4.001 2 -> 0.001
|
|
|
|
dqrmn356 remaindernear 4.0001 2 -> 0.0001
|
|
|
|
dqrmn357 remaindernear 4.00001 2 -> 0.00001
|
|
|
|
dqrmn358 remaindernear 4.000001 2 -> 0.000001
|
|
|
|
dqrmn359 remaindernear 4.0000001 2 -> 1E-7
|
|
|
|
|
|
|
|
dqrmn360 remaindernear 1.2 0.7345 -> -0.2690
|
|
|
|
dqrmn361 remaindernear 0.8 12 -> 0.8
|
|
|
|
dqrmn362 remaindernear 0.8 0.2 -> 0.0
|
|
|
|
dqrmn363 remaindernear 0.8 0.3 -> -0.1
|
|
|
|
dqrmn364 remaindernear 0.800 12 -> 0.800
|
|
|
|
dqrmn365 remaindernear 0.800 1.7 -> 0.800
|
|
|
|
dqrmn366 remaindernear 2.400 2 -> 0.400
|
|
|
|
|
|
|
|
-- round to even
|
|
|
|
dqrmn371 remaindernear 121 2 -> 1
|
|
|
|
dqrmn372 remaindernear 122 2 -> 0
|
|
|
|
dqrmn373 remaindernear 123 2 -> -1
|
|
|
|
dqrmn374 remaindernear 124 2 -> 0
|
|
|
|
dqrmn375 remaindernear 125 2 -> 1
|
|
|
|
dqrmn376 remaindernear 126 2 -> 0
|
|
|
|
dqrmn377 remaindernear 127 2 -> -1
|
|
|
|
|
|
|
|
dqrmn381 remaindernear 12345 1 -> 0
|
|
|
|
dqrmn382 remaindernear 12345 1.0001 -> -0.2344
|
|
|
|
dqrmn383 remaindernear 12345 1.001 -> -0.333
|
|
|
|
dqrmn384 remaindernear 12345 1.01 -> -0.23
|
|
|
|
dqrmn385 remaindernear 12345 1.1 -> -0.3
|
|
|
|
dqrmn386 remaindernear 12355 4 -> -1
|
|
|
|
dqrmn387 remaindernear 12345 4 -> 1
|
|
|
|
dqrmn388 remaindernear 12355 4.0001 -> -1.3089
|
|
|
|
dqrmn389 remaindernear 12345 4.0001 -> 0.6914
|
|
|
|
dqrmn390 remaindernear 12345 4.9 -> 1.9
|
|
|
|
dqrmn391 remaindernear 12345 4.99 -> -0.26
|
|
|
|
dqrmn392 remaindernear 12345 4.999 -> 2.469
|
|
|
|
dqrmn393 remaindernear 12345 4.9999 -> 0.2469
|
|
|
|
dqrmn394 remaindernear 12345 5 -> 0
|
|
|
|
dqrmn395 remaindernear 12345 5.0001 -> -0.2469
|
|
|
|
dqrmn396 remaindernear 12345 5.001 -> -2.469
|
|
|
|
dqrmn397 remaindernear 12345 5.01 -> 0.36
|
|
|
|
dqrmn398 remaindernear 12345 5.1 -> -2.1
|
|
|
|
|
|
|
|
-- the nasty division-by-1 cases
|
|
|
|
dqrmn401 remaindernear 0.4 1 -> 0.4
|
|
|
|
dqrmn402 remaindernear 0.45 1 -> 0.45
|
|
|
|
dqrmn403 remaindernear 0.455 1 -> 0.455
|
|
|
|
dqrmn404 remaindernear 0.4555 1 -> 0.4555
|
|
|
|
dqrmn405 remaindernear 0.45555 1 -> 0.45555
|
|
|
|
dqrmn406 remaindernear 0.455555 1 -> 0.455555
|
|
|
|
dqrmn407 remaindernear 0.4555555 1 -> 0.4555555
|
|
|
|
dqrmn408 remaindernear 0.45555555 1 -> 0.45555555
|
|
|
|
dqrmn409 remaindernear 0.455555555 1 -> 0.455555555
|
|
|
|
-- with spill... [412 exercises sticktab loop]
|
|
|
|
dqrmn411 remaindernear 0.5 1 -> 0.5
|
|
|
|
dqrmn412 remaindernear 0.55 1 -> -0.45
|
|
|
|
dqrmn413 remaindernear 0.555 1 -> -0.445
|
|
|
|
dqrmn414 remaindernear 0.5555 1 -> -0.4445
|
|
|
|
dqrmn415 remaindernear 0.55555 1 -> -0.44445
|
|
|
|
dqrmn416 remaindernear 0.555555 1 -> -0.444445
|
|
|
|
dqrmn417 remaindernear 0.5555555 1 -> -0.4444445
|
|
|
|
dqrmn418 remaindernear 0.55555555 1 -> -0.44444445
|
|
|
|
dqrmn419 remaindernear 0.555555555 1 -> -0.444444445
|
|
|
|
|
|
|
|
-- folddowns
|
|
|
|
dqrmn421 remaindernear 1E+6144 1 -> NaN Division_impossible
|
|
|
|
dqrmn422 remaindernear 1E+6144 1E+6143 -> 0E+6111 Clamped
|
|
|
|
dqrmn423 remaindernear 1E+6144 2E+6143 -> 0E+6111 Clamped
|
|
|
|
dqrmn424 remaindernear 1E+6144 3E+6143 -> 1.00000000000000000000000000000000E+6143 Clamped
|
|
|
|
dqrmn425 remaindernear 1E+6144 4E+6143 -> 2.00000000000000000000000000000000E+6143 Clamped
|
|
|
|
dqrmn426 remaindernear 1E+6144 5E+6143 -> 0E+6111 Clamped
|
|
|
|
dqrmn427 remaindernear 1E+6144 6E+6143 -> -2.00000000000000000000000000000000E+6143 Clamped
|
|
|
|
dqrmn428 remaindernear 1E+6144 7E+6143 -> 3.00000000000000000000000000000000E+6143 Clamped
|
|
|
|
dqrmn429 remaindernear 1E+6144 8E+6143 -> 2.00000000000000000000000000000000E+6143 Clamped
|
|
|
|
dqrmn430 remaindernear 1E+6144 9E+6143 -> 1.00000000000000000000000000000000E+6143 Clamped
|
|
|
|
-- tinies
|
|
|
|
dqrmn431 remaindernear 1E-6175 1E-6176 -> 0E-6176
|
|
|
|
dqrmn432 remaindernear 1E-6175 2E-6176 -> 0E-6176
|
|
|
|
dqrmn433 remaindernear 1E-6175 3E-6176 -> 1E-6176 Subnormal
|
|
|
|
dqrmn434 remaindernear 1E-6175 4E-6176 -> 2E-6176 Subnormal
|
|
|
|
dqrmn435 remaindernear 1E-6175 5E-6176 -> 0E-6176
|
|
|
|
dqrmn436 remaindernear 1E-6175 6E-6176 -> -2E-6176 Subnormal
|
|
|
|
dqrmn437 remaindernear 1E-6175 7E-6176 -> 3E-6176 Subnormal
|
|
|
|
dqrmn438 remaindernear 1E-6175 8E-6176 -> 2E-6176 Subnormal
|
|
|
|
dqrmn439 remaindernear 1E-6175 9E-6176 -> 1E-6176 Subnormal
|
|
|
|
dqrmn440 remaindernear 1E-6175 10E-6176 -> 0E-6176
|
|
|
|
dqrmn441 remaindernear 1E-6175 11E-6176 -> -1E-6176 Subnormal
|
|
|
|
dqrmn442 remaindernear 100E-6175 11E-6176 -> -1E-6176 Subnormal
|
|
|
|
dqrmn443 remaindernear 100E-6175 20E-6176 -> 0E-6176
|
|
|
|
dqrmn444 remaindernear 100E-6175 21E-6176 -> -8E-6176 Subnormal
|
|
|
|
dqrmn445 remaindernear 100E-6175 30E-6176 -> 1.0E-6175 Subnormal
|
|
|
|
|
|
|
|
-- zero signs
|
|
|
|
dqrmn650 remaindernear 1 1 -> 0
|
|
|
|
dqrmn651 remaindernear -1 1 -> -0
|
|
|
|
dqrmn652 remaindernear 1 -1 -> 0
|
|
|
|
dqrmn653 remaindernear -1 -1 -> -0
|
|
|
|
dqrmn654 remaindernear 0 1 -> 0
|
|
|
|
dqrmn655 remaindernear -0 1 -> -0
|
|
|
|
dqrmn656 remaindernear 0 -1 -> 0
|
|
|
|
dqrmn657 remaindernear -0 -1 -> -0
|
|
|
|
dqrmn658 remaindernear 0.00 1 -> 0.00
|
|
|
|
dqrmn659 remaindernear -0.00 1 -> -0.00
|
|
|
|
|
|
|
|
-- Specials
|
|
|
|
dqrmn680 remaindernear Inf -Inf -> NaN Invalid_operation
|
|
|
|
dqrmn681 remaindernear Inf -1000 -> NaN Invalid_operation
|
|
|
|
dqrmn682 remaindernear Inf -1 -> NaN Invalid_operation
|
|
|
|
dqrmn683 remaindernear Inf 0 -> NaN Invalid_operation
|
|
|
|
dqrmn684 remaindernear Inf -0 -> NaN Invalid_operation
|
|
|
|
dqrmn685 remaindernear Inf 1 -> NaN Invalid_operation
|
|
|
|
dqrmn686 remaindernear Inf 1000 -> NaN Invalid_operation
|
|
|
|
dqrmn687 remaindernear Inf Inf -> NaN Invalid_operation
|
|
|
|
dqrmn688 remaindernear -1000 Inf -> -1000
|
|
|
|
dqrmn689 remaindernear -Inf Inf -> NaN Invalid_operation
|
|
|
|
dqrmn691 remaindernear -1 Inf -> -1
|
|
|
|
dqrmn692 remaindernear 0 Inf -> 0
|
|
|
|
dqrmn693 remaindernear -0 Inf -> -0
|
|
|
|
dqrmn694 remaindernear 1 Inf -> 1
|
|
|
|
dqrmn695 remaindernear 1000 Inf -> 1000
|
|
|
|
dqrmn696 remaindernear Inf Inf -> NaN Invalid_operation
|
|
|
|
|
|
|
|
dqrmn700 remaindernear -Inf -Inf -> NaN Invalid_operation
|
|
|
|
dqrmn701 remaindernear -Inf -1000 -> NaN Invalid_operation
|
|
|
|
dqrmn702 remaindernear -Inf -1 -> NaN Invalid_operation
|
|
|
|
dqrmn703 remaindernear -Inf -0 -> NaN Invalid_operation
|
|
|
|
dqrmn704 remaindernear -Inf 0 -> NaN Invalid_operation
|
|
|
|
dqrmn705 remaindernear -Inf 1 -> NaN Invalid_operation
|
|
|
|
dqrmn706 remaindernear -Inf 1000 -> NaN Invalid_operation
|
|
|
|
dqrmn707 remaindernear -Inf Inf -> NaN Invalid_operation
|
|
|
|
dqrmn708 remaindernear -Inf -Inf -> NaN Invalid_operation
|
|
|
|
dqrmn709 remaindernear -1000 Inf -> -1000
|
|
|
|
dqrmn710 remaindernear -1 -Inf -> -1
|
|
|
|
dqrmn711 remaindernear -0 -Inf -> -0
|
|
|
|
dqrmn712 remaindernear 0 -Inf -> 0
|
|
|
|
dqrmn713 remaindernear 1 -Inf -> 1
|
|
|
|
dqrmn714 remaindernear 1000 -Inf -> 1000
|
|
|
|
dqrmn715 remaindernear Inf -Inf -> NaN Invalid_operation
|
|
|
|
|
|
|
|
dqrmn721 remaindernear NaN -Inf -> NaN
|
|
|
|
dqrmn722 remaindernear NaN -1000 -> NaN
|
|
|
|
dqrmn723 remaindernear NaN -1 -> NaN
|
|
|
|
dqrmn724 remaindernear NaN -0 -> NaN
|
|
|
|
dqrmn725 remaindernear -NaN 0 -> -NaN
|
|
|
|
dqrmn726 remaindernear NaN 1 -> NaN
|
|
|
|
dqrmn727 remaindernear NaN 1000 -> NaN
|
|
|
|
dqrmn728 remaindernear NaN Inf -> NaN
|
|
|
|
dqrmn729 remaindernear NaN -NaN -> NaN
|
|
|
|
dqrmn730 remaindernear -Inf NaN -> NaN
|
|
|
|
dqrmn731 remaindernear -1000 NaN -> NaN
|
|
|
|
dqrmn732 remaindernear -1 NaN -> NaN
|
|
|
|
dqrmn733 remaindernear -0 -NaN -> -NaN
|
|
|
|
dqrmn734 remaindernear 0 NaN -> NaN
|
|
|
|
dqrmn735 remaindernear 1 -NaN -> -NaN
|
|
|
|
dqrmn736 remaindernear 1000 NaN -> NaN
|
|
|
|
dqrmn737 remaindernear Inf NaN -> NaN
|
|
|
|
|
|
|
|
dqrmn741 remaindernear sNaN -Inf -> NaN Invalid_operation
|
|
|
|
dqrmn742 remaindernear sNaN -1000 -> NaN Invalid_operation
|
|
|
|
dqrmn743 remaindernear -sNaN -1 -> -NaN Invalid_operation
|
|
|
|
dqrmn744 remaindernear sNaN -0 -> NaN Invalid_operation
|
|
|
|
dqrmn745 remaindernear sNaN 0 -> NaN Invalid_operation
|
|
|
|
dqrmn746 remaindernear sNaN 1 -> NaN Invalid_operation
|
|
|
|
dqrmn747 remaindernear sNaN 1000 -> NaN Invalid_operation
|
|
|
|
dqrmn749 remaindernear sNaN NaN -> NaN Invalid_operation
|
|
|
|
dqrmn750 remaindernear sNaN sNaN -> NaN Invalid_operation
|
|
|
|
dqrmn751 remaindernear NaN sNaN -> NaN Invalid_operation
|
|
|
|
dqrmn752 remaindernear -Inf sNaN -> NaN Invalid_operation
|
|
|
|
dqrmn753 remaindernear -1000 sNaN -> NaN Invalid_operation
|
|
|
|
dqrmn754 remaindernear -1 sNaN -> NaN Invalid_operation
|
|
|
|
dqrmn755 remaindernear -0 sNaN -> NaN Invalid_operation
|
|
|
|
dqrmn756 remaindernear 0 sNaN -> NaN Invalid_operation
|
|
|
|
dqrmn757 remaindernear 1 sNaN -> NaN Invalid_operation
|
|
|
|
dqrmn758 remaindernear 1000 sNaN -> NaN Invalid_operation
|
|
|
|
dqrmn759 remaindernear Inf -sNaN -> -NaN Invalid_operation
|
|
|
|
|
2024-09-09 09:58:26 -03:00
|
|
|
-- propagating NaNs
|
Merged revisions 58095-58132,58136-58148,58151-58197 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r58096 | brett.cannon | 2007-09-10 23:38:27 +0200 (Mon, 10 Sep 2007) | 4 lines
Fix a possible segfault from recursing too deep to get the repr of a list.
Closes issue #1096.
........
r58097 | bill.janssen | 2007-09-10 23:51:02 +0200 (Mon, 10 Sep 2007) | 33 lines
More work on SSL support.
* Much expanded test suite:
All protocols tested against all other protocols.
All protocols tested with all certificate options.
Tests for bad key and bad cert.
Test of STARTTLS functionality.
Test of RAND_* functions.
* Fixes for threading/malloc bug.
* Issue 1065 fixed:
sslsocket class renamed to SSLSocket.
sslerror class renamed to SSLError.
Function "wrap_socket" now used to wrap an existing socket.
* Issue 1583946 finally fixed:
Support for subjectAltName added.
Subject name now returned as proper DN list of RDNs.
* SSLError exported from socket as "sslerror".
* RAND_* functions properly exported from ssl.py.
* Documentation improved:
Example of how to create a self-signed certificate.
Better indexing.
........
r58098 | guido.van.rossum | 2007-09-11 00:02:25 +0200 (Tue, 11 Sep 2007) | 9 lines
Patch # 1140 (my code, approved by Effbot).
Make sure the type of the return value of re.sub(x, y, z) is the type
of y+x (i.e. unicode if either is unicode, str if they are both str)
even if there are no substitutions or if x==z (which triggered various
special cases in join_list()).
Could be backported to 2.5; no need to port to 3.0.
........
r58099 | guido.van.rossum | 2007-09-11 00:36:02 +0200 (Tue, 11 Sep 2007) | 8 lines
Patch # 1026 by Benjamin Aranguren (with Alex Martelli):
Backport abc.py and isinstance/issubclass overloading to 2.6.
I had to backport test_typechecks.py myself, and make one small change
to abc.py to avoid duplicate work when x.__class__ and type(x) are the
same.
........
r58100 | bill.janssen | 2007-09-11 01:41:24 +0200 (Tue, 11 Sep 2007) | 3 lines
A better way of finding an open port to test with.
........
r58101 | bill.janssen | 2007-09-11 03:09:19 +0200 (Tue, 11 Sep 2007) | 4 lines
Make sure test_ssl doesn't reference the ssl module in a
context where it can't be imported.
........
r58102 | bill.janssen | 2007-09-11 04:42:07 +0200 (Tue, 11 Sep 2007) | 3 lines
Fix some documentation bugs.
........
r58103 | nick.coghlan | 2007-09-11 16:01:18 +0200 (Tue, 11 Sep 2007) | 1 line
Always use the -E flag when spawning subprocesses in test_cmd_line (Issue 1056)
........
r58106 | thomas.heller | 2007-09-11 21:17:48 +0200 (Tue, 11 Sep 2007) | 3 lines
Disable some tests that fail on the 'ppc Debian unstable' buildbot to
find out if they cause the segfault on the 'alpha Debian' machine.
........
r58108 | brett.cannon | 2007-09-11 23:02:28 +0200 (Tue, 11 Sep 2007) | 6 lines
Generators had their throw() method allowing string exceptions. That's a
no-no.
Fixes issue #1147. Need to fix 2.5 to raise a proper warning if a string
exception is passed in.
........
r58112 | georg.brandl | 2007-09-12 20:03:51 +0200 (Wed, 12 Sep 2007) | 3 lines
New documentation page for the bdb module.
(This doesn't need to be merged to Py3k.)
........
r58114 | georg.brandl | 2007-09-12 20:05:57 +0200 (Wed, 12 Sep 2007) | 2 lines
Bug #1152: use non-deprecated name in example.
........
r58115 | georg.brandl | 2007-09-12 20:08:33 +0200 (Wed, 12 Sep 2007) | 2 lines
Fix #1122: wrong return type documented for various _Size() functions.
........
r58117 | georg.brandl | 2007-09-12 20:10:56 +0200 (Wed, 12 Sep 2007) | 2 lines
Fix #1139: PyFile_Encoding really is PyFile_SetEncoding.
........
r58119 | georg.brandl | 2007-09-12 20:29:18 +0200 (Wed, 12 Sep 2007) | 2 lines
bug #1154: release memory allocated by "es" PyArg_ParseTuple format specifier.
........
r58121 | bill.janssen | 2007-09-12 20:52:05 +0200 (Wed, 12 Sep 2007) | 1 line
root certificate for https://svn.python.org/, used in test_ssl
........
r58122 | georg.brandl | 2007-09-12 21:00:07 +0200 (Wed, 12 Sep 2007) | 3 lines
Bug #1153: repr.repr() now doesn't require set and dictionary items
to be orderable to properly represent them.
........
r58125 | georg.brandl | 2007-09-12 21:29:28 +0200 (Wed, 12 Sep 2007) | 4 lines
#1120: put explicit version in the shebang lines of pydoc, idle
and smtpd.py scripts that are installed by setup.py. That way, they
work when only "make altinstall" is used.
........
r58139 | mark.summerfield | 2007-09-13 16:54:30 +0200 (Thu, 13 Sep 2007) | 9 lines
Replaced variable o with obj in operator.rst because o is easy to
confuse.
Added a note about Python 3's collections.Mapping etc., above section
that describes isMappingType() etc.
Added xrefs between os, os.path, fileinput, and open().
........
r58143 | facundo.batista | 2007-09-13 20:13:15 +0200 (Thu, 13 Sep 2007) | 7 lines
Merged the decimal-branch (revisions 54886 to 58140). Decimal is now
fully updated to the latests Decimal Specification (v1.66) and the
latests test cases (v2.56).
Thanks to Mark Dickinson for all his help during this process.
........
r58145 | facundo.batista | 2007-09-13 20:42:09 +0200 (Thu, 13 Sep 2007) | 7 lines
Put the parameter watchexp back in (changed watchexp from an int
to a bool). Also second argument to watchexp is now converted
to Decimal, just as with all the other two-argument operations.
Thanks Mark Dickinson.
........
r58147 | andrew.kuchling | 2007-09-14 00:49:34 +0200 (Fri, 14 Sep 2007) | 1 line
Add various items
........
r58148 | andrew.kuchling | 2007-09-14 00:50:10 +0200 (Fri, 14 Sep 2007) | 1 line
Make target unique
........
r58154 | facundo.batista | 2007-09-14 20:58:34 +0200 (Fri, 14 Sep 2007) | 3 lines
Included the new functions, and new descriptions.
........
r58155 | thomas.heller | 2007-09-14 21:40:35 +0200 (Fri, 14 Sep 2007) | 2 lines
ctypes.util.find_library uses dump(1) instead of objdump(1) on Solaris.
Fixes issue #1777530; will backport to release25-maint.
........
r58159 | facundo.batista | 2007-09-14 23:29:52 +0200 (Fri, 14 Sep 2007) | 3 lines
Some additions (examples and a bit on the tutorial).
........
r58160 | georg.brandl | 2007-09-15 18:53:36 +0200 (Sat, 15 Sep 2007) | 2 lines
Remove bdb from the "undocumented modules" list.
........
r58164 | bill.janssen | 2007-09-17 00:06:00 +0200 (Mon, 17 Sep 2007) | 15 lines
Add support for asyncore server-side SSL support. This requires
adding the 'makefile' method to ssl.SSLSocket, and importing the
requisite fakefile class from socket.py, and making the appropriate
changes to it to make it use the SSL connection.
Added sample HTTPS server to test_ssl.py, and test that uses it.
Change SSL tests to use https://svn.python.org/, instead of
www.sf.net and pop.gmail.com.
Added utility function to ssl module, get_server_certificate,
to wrap up the several things to be done to pull a certificate
from a remote server.
........
r58173 | bill.janssen | 2007-09-17 01:16:46 +0200 (Mon, 17 Sep 2007) | 1 line
use binary mode when reading files for testAsyncore to make Windows happy
........
r58175 | raymond.hettinger | 2007-09-17 02:55:00 +0200 (Mon, 17 Sep 2007) | 7 lines
Sync-up named tuples with the latest version of the ASPN recipe.
Allows optional commas in the field-name spec (help when named tuples are used in conjuction with sql queries).
Adds the __fields__ attribute for introspection and to support conversion to dictionary form.
Adds a __replace__() method similar to str.replace() but using a named field as a target.
Clean-up spelling and presentation in doc-strings.
........
r58176 | brett.cannon | 2007-09-17 05:28:34 +0200 (Mon, 17 Sep 2007) | 5 lines
Add a bunch of GIL release/acquire points in tp_print implementations and for
PyObject_Print().
Closes issue #1164.
........
r58177 | sean.reifschneider | 2007-09-17 07:45:04 +0200 (Mon, 17 Sep 2007) | 2 lines
issue1597011: Fix for bz2 module corner-case error due to error checking bug.
........
r58180 | facundo.batista | 2007-09-17 18:26:50 +0200 (Mon, 17 Sep 2007) | 3 lines
Decimal is updated, :)
........
r58181 | facundo.batista | 2007-09-17 19:30:13 +0200 (Mon, 17 Sep 2007) | 5 lines
The methods always return Decimal classes, even if they're
executed through a subclass (thanks Mark Dickinson).
Added a bit of testing for this.
........
r58183 | sean.reifschneider | 2007-09-17 22:53:21 +0200 (Mon, 17 Sep 2007) | 2 lines
issue1082: Fixing platform and system for Vista.
........
r58185 | andrew.kuchling | 2007-09-18 03:36:16 +0200 (Tue, 18 Sep 2007) | 1 line
Add item; sort properly
........
r58186 | raymond.hettinger | 2007-09-18 05:33:19 +0200 (Tue, 18 Sep 2007) | 1 line
Handle corner cased on 0-tuples and 1-tuples. Add verbose option so people can see how it works.
........
r58192 | georg.brandl | 2007-09-18 09:24:40 +0200 (Tue, 18 Sep 2007) | 2 lines
A bit of reordering, also show more subheadings in the lang ref index.
........
r58193 | facundo.batista | 2007-09-18 18:53:18 +0200 (Tue, 18 Sep 2007) | 4 lines
Speed up of the various division operations (remainder, divide,
divideint and divmod). Thanks Mark Dickinson.
........
r58197 | raymond.hettinger | 2007-09-19 00:18:02 +0200 (Wed, 19 Sep 2007) | 1 line
Cleanup docs for NamedTuple.
........
2007-09-19 00:06:30 -03:00
|
|
|
dqrmn760 remaindernear NaN1 NaN7 -> NaN1
|
|
|
|
dqrmn761 remaindernear sNaN2 NaN8 -> NaN2 Invalid_operation
|
|
|
|
dqrmn762 remaindernear NaN3 sNaN9 -> NaN9 Invalid_operation
|
|
|
|
dqrmn763 remaindernear sNaN4 sNaN10 -> NaN4 Invalid_operation
|
|
|
|
dqrmn764 remaindernear 15 NaN11 -> NaN11
|
|
|
|
dqrmn765 remaindernear NaN6 NaN12 -> NaN6
|
|
|
|
dqrmn766 remaindernear Inf NaN13 -> NaN13
|
|
|
|
dqrmn767 remaindernear NaN14 -Inf -> NaN14
|
|
|
|
dqrmn768 remaindernear 0 NaN15 -> NaN15
|
|
|
|
dqrmn769 remaindernear NaN16 -0 -> NaN16
|
|
|
|
|
|
|
|
-- edge cases of impossible
|
|
|
|
dqrmn770 remaindernear 1234500000000000000000067890123456 10 -> -4
|
|
|
|
dqrmn771 remaindernear 1234500000000000000000067890123456 1 -> 0
|
|
|
|
dqrmn772 remaindernear 1234500000000000000000067890123456 0.1 -> NaN Division_impossible
|
|
|
|
dqrmn773 remaindernear 1234500000000000000000067890123456 0.01 -> NaN Division_impossible
|
|
|
|
|
|
|
|
-- long operand checks
|
|
|
|
dqrmn801 remaindernear 12345678000 100 -> 0
|
|
|
|
dqrmn802 remaindernear 1 12345678000 -> 1
|
|
|
|
dqrmn803 remaindernear 1234567800 10 -> 0
|
|
|
|
dqrmn804 remaindernear 1 1234567800 -> 1
|
|
|
|
dqrmn805 remaindernear 1234567890 10 -> 0
|
|
|
|
dqrmn806 remaindernear 1 1234567890 -> 1
|
|
|
|
dqrmn807 remaindernear 1234567891 10 -> 1
|
|
|
|
dqrmn808 remaindernear 1 1234567891 -> 1
|
|
|
|
dqrmn809 remaindernear 12345678901 100 -> 1
|
|
|
|
dqrmn810 remaindernear 1 12345678901 -> 1
|
|
|
|
dqrmn811 remaindernear 1234567896 10 -> -4
|
|
|
|
dqrmn812 remaindernear 1 1234567896 -> 1
|
|
|
|
|
|
|
|
dqrmn821 remaindernear 12345678000 100 -> 0
|
|
|
|
dqrmn822 remaindernear 1 12345678000 -> 1
|
|
|
|
dqrmn823 remaindernear 1234567800 10 -> 0
|
|
|
|
dqrmn824 remaindernear 1 1234567800 -> 1
|
|
|
|
dqrmn825 remaindernear 1234567890 10 -> 0
|
|
|
|
dqrmn826 remaindernear 1 1234567890 -> 1
|
|
|
|
dqrmn827 remaindernear 1234567891 10 -> 1
|
|
|
|
dqrmn828 remaindernear 1 1234567891 -> 1
|
|
|
|
dqrmn829 remaindernear 12345678901 100 -> 1
|
|
|
|
dqrmn830 remaindernear 1 12345678901 -> 1
|
|
|
|
dqrmn831 remaindernear 1234567896 10 -> -4
|
|
|
|
dqrmn832 remaindernear 1 1234567896 -> 1
|
|
|
|
|
|
|
|
-- from divideint
|
|
|
|
dqrmn840 remaindernear 100000000.0 1 -> 0.0
|
|
|
|
dqrmn841 remaindernear 100000000.4 1 -> 0.4
|
|
|
|
dqrmn842 remaindernear 100000000.5 1 -> 0.5
|
|
|
|
dqrmn843 remaindernear 100000000.9 1 -> -0.1
|
|
|
|
dqrmn844 remaindernear 100000000.999 1 -> -0.001
|
|
|
|
dqrmn850 remaindernear 100000003 5 -> -2
|
|
|
|
dqrmn851 remaindernear 10000003 5 -> -2
|
|
|
|
dqrmn852 remaindernear 1000003 5 -> -2
|
|
|
|
dqrmn853 remaindernear 100003 5 -> -2
|
|
|
|
dqrmn854 remaindernear 10003 5 -> -2
|
|
|
|
dqrmn855 remaindernear 1003 5 -> -2
|
|
|
|
dqrmn856 remaindernear 103 5 -> -2
|
|
|
|
dqrmn857 remaindernear 13 5 -> -2
|
|
|
|
dqrmn858 remaindernear 1 5 -> 1
|
|
|
|
|
|
|
|
-- Vladimir's cases 1234567890123456
|
|
|
|
dqrmn860 remaindernear 123.0e1 1000000000000000 -> 1230
|
|
|
|
dqrmn861 remaindernear 1230 1000000000000000 -> 1230
|
|
|
|
dqrmn862 remaindernear 12.3e2 1000000000000000 -> 1230
|
|
|
|
dqrmn863 remaindernear 1.23e3 1000000000000000 -> 1230
|
|
|
|
dqrmn864 remaindernear 123e1 1000000000000000 -> 1230
|
|
|
|
dqrmn870 remaindernear 123e1 1000000000000000 -> 1230
|
|
|
|
dqrmn871 remaindernear 123e1 100000000000000 -> 1230
|
|
|
|
dqrmn872 remaindernear 123e1 10000000000000 -> 1230
|
|
|
|
dqrmn873 remaindernear 123e1 1000000000000 -> 1230
|
|
|
|
dqrmn874 remaindernear 123e1 100000000000 -> 1230
|
|
|
|
dqrmn875 remaindernear 123e1 10000000000 -> 1230
|
|
|
|
dqrmn876 remaindernear 123e1 1000000000 -> 1230
|
|
|
|
dqrmn877 remaindernear 123e1 100000000 -> 1230
|
|
|
|
dqrmn878 remaindernear 1230 100000000 -> 1230
|
|
|
|
dqrmn879 remaindernear 123e1 10000000 -> 1230
|
|
|
|
dqrmn880 remaindernear 123e1 1000000 -> 1230
|
|
|
|
dqrmn881 remaindernear 123e1 100000 -> 1230
|
|
|
|
dqrmn882 remaindernear 123e1 10000 -> 1230
|
|
|
|
dqrmn883 remaindernear 123e1 1000 -> 230
|
|
|
|
dqrmn884 remaindernear 123e1 100 -> 30
|
|
|
|
dqrmn885 remaindernear 123e1 10 -> 0
|
|
|
|
dqrmn886 remaindernear 123e1 1 -> 0
|
|
|
|
|
|
|
|
dqrmn890 remaindernear 123e1 2000000000000000 -> 1230
|
|
|
|
dqrmn891 remaindernear 123e1 200000000000000 -> 1230
|
|
|
|
dqrmn892 remaindernear 123e1 20000000000000 -> 1230
|
|
|
|
dqrmn893 remaindernear 123e1 2000000000000 -> 1230
|
|
|
|
dqrmn894 remaindernear 123e1 200000000000 -> 1230
|
|
|
|
dqrmn895 remaindernear 123e1 20000000000 -> 1230
|
|
|
|
dqrmn896 remaindernear 123e1 2000000000 -> 1230
|
|
|
|
dqrmn897 remaindernear 123e1 200000000 -> 1230
|
|
|
|
dqrmn899 remaindernear 123e1 20000000 -> 1230
|
|
|
|
dqrmn900 remaindernear 123e1 2000000 -> 1230
|
|
|
|
dqrmn901 remaindernear 123e1 200000 -> 1230
|
|
|
|
dqrmn902 remaindernear 123e1 20000 -> 1230
|
|
|
|
dqrmn903 remaindernear 123e1 2000 -> -770
|
|
|
|
dqrmn904 remaindernear 123e1 200 -> 30
|
|
|
|
dqrmn905 remaindernear 123e1 20 -> -10
|
|
|
|
dqrmn906 remaindernear 123e1 2 -> 0
|
|
|
|
|
|
|
|
dqrmn910 remaindernear 123e1 5000000000000000 -> 1230
|
|
|
|
dqrmn911 remaindernear 123e1 500000000000000 -> 1230
|
|
|
|
dqrmn912 remaindernear 123e1 50000000000000 -> 1230
|
|
|
|
dqrmn913 remaindernear 123e1 5000000000000 -> 1230
|
|
|
|
dqrmn914 remaindernear 123e1 500000000000 -> 1230
|
|
|
|
dqrmn915 remaindernear 123e1 50000000000 -> 1230
|
|
|
|
dqrmn916 remaindernear 123e1 5000000000 -> 1230
|
|
|
|
dqrmn917 remaindernear 123e1 500000000 -> 1230
|
|
|
|
dqrmn919 remaindernear 123e1 50000000 -> 1230
|
|
|
|
dqrmn920 remaindernear 123e1 5000000 -> 1230
|
|
|
|
dqrmn921 remaindernear 123e1 500000 -> 1230
|
|
|
|
dqrmn922 remaindernear 123e1 50000 -> 1230
|
|
|
|
dqrmn923 remaindernear 123e1 5000 -> 1230
|
|
|
|
dqrmn924 remaindernear 123e1 500 -> 230
|
|
|
|
dqrmn925 remaindernear 123e1 50 -> -20
|
|
|
|
dqrmn926 remaindernear 123e1 5 -> 0
|
|
|
|
|
|
|
|
dqrmn930 remaindernear 123e1 9000000000000000 -> 1230
|
|
|
|
dqrmn931 remaindernear 123e1 900000000000000 -> 1230
|
|
|
|
dqrmn932 remaindernear 123e1 90000000000000 -> 1230
|
|
|
|
dqrmn933 remaindernear 123e1 9000000000000 -> 1230
|
|
|
|
dqrmn934 remaindernear 123e1 900000000000 -> 1230
|
|
|
|
dqrmn935 remaindernear 123e1 90000000000 -> 1230
|
|
|
|
dqrmn936 remaindernear 123e1 9000000000 -> 1230
|
|
|
|
dqrmn937 remaindernear 123e1 900000000 -> 1230
|
|
|
|
dqrmn939 remaindernear 123e1 90000000 -> 1230
|
|
|
|
dqrmn940 remaindernear 123e1 9000000 -> 1230
|
|
|
|
dqrmn941 remaindernear 123e1 900000 -> 1230
|
|
|
|
dqrmn942 remaindernear 123e1 90000 -> 1230
|
|
|
|
dqrmn943 remaindernear 123e1 9000 -> 1230
|
|
|
|
dqrmn944 remaindernear 123e1 900 -> 330
|
|
|
|
dqrmn945 remaindernear 123e1 90 -> -30
|
|
|
|
dqrmn946 remaindernear 123e1 9 -> -3
|
|
|
|
|
|
|
|
dqrmn950 remaindernear 123e1 1000000000000000 -> 1230
|
|
|
|
dqrmn961 remaindernear 123e1 2999999999999999 -> 1230
|
|
|
|
dqrmn962 remaindernear 123e1 3999999999999999 -> 1230
|
|
|
|
dqrmn963 remaindernear 123e1 4999999999999999 -> 1230
|
|
|
|
dqrmn964 remaindernear 123e1 5999999999999999 -> 1230
|
|
|
|
dqrmn965 remaindernear 123e1 6999999999999999 -> 1230
|
|
|
|
dqrmn966 remaindernear 123e1 7999999999999999 -> 1230
|
|
|
|
dqrmn967 remaindernear 123e1 8999999999999999 -> 1230
|
|
|
|
dqrmn968 remaindernear 123e1 9999999999999999 -> 1230
|
|
|
|
dqrmn969 remaindernear 123e1 9876543210987654 -> 1230
|
|
|
|
|
|
|
|
dqrmn980 remaindernear 123e1 1000E299 -> 1.23E+3 -- 123E+1 internally
|
|
|
|
|
|
|
|
-- overflow and underflow tests [from divide]
|
|
|
|
dqrmn1051 remaindernear 1e+277 1e-311 -> NaN Division_impossible
|
|
|
|
dqrmn1052 remaindernear 1e+277 -1e-311 -> NaN Division_impossible
|
|
|
|
dqrmn1053 remaindernear -1e+277 1e-311 -> NaN Division_impossible
|
|
|
|
dqrmn1054 remaindernear -1e+277 -1e-311 -> NaN Division_impossible
|
|
|
|
dqrmn1055 remaindernear 1e-277 1e+311 -> 1E-277
|
|
|
|
dqrmn1056 remaindernear 1e-277 -1e+311 -> 1E-277
|
|
|
|
dqrmn1057 remaindernear -1e-277 1e+311 -> -1E-277
|
|
|
|
dqrmn1058 remaindernear -1e-277 -1e+311 -> -1E-277
|
|
|
|
|
|
|
|
-- Gyuris example
|
|
|
|
dqrmn1070 remainder 8.336804418094040989630006819881709E-6143 8.336804418094040989630006819889000E-6143 -> 8.336804418094040989630006819881709E-6143
|
|
|
|
|
Merged revisions 59107-59186 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
(Note: some conflicts in the PCbuild9 directory reverted. Sorry Christian!)
........
r59120 | christian.heimes | 2007-11-22 03:21:16 -0800 (Thu, 22 Nov 2007) | 3 lines
Backport of the PCbuild9 directory from the py3k branch.
I've finished the last task for the PCbuild9 directory today. I don't think there is much left to do. Now you can all play around with the shiny new VS 2008 and try the PGO builds. I was able to get a speed improvement of about 10% on py3k.
Have fun! :)
........
r59126 | brett.cannon | 2007-11-22 16:06:51 -0800 (Thu, 22 Nov 2007) | 2 lines
Fix a bug in the test for using __loader__.get_data().
........
r59131 | christian.heimes | 2007-11-22 23:05:03 -0800 (Thu, 22 Nov 2007) | 1 line
Backport of PCbuild9 fixes from py3k r59130
........
r59132 | christian.heimes | 2007-11-23 01:10:36 -0800 (Fri, 23 Nov 2007) | 2 lines
Applied patch #1754273 and #1754271 from Thomas Glee
The patches are adding deprecation warnings for back ticks and <>
........
r59133 | christian.heimes | 2007-11-23 04:12:02 -0800 (Fri, 23 Nov 2007) | 2 lines
Fixed problems in the last commit. Filenames and line numbers weren't reported correctly.
Backquotes still don't report the correct file. The AST nodes only contain the line number but not the file name.
........
r59134 | christian.heimes | 2007-11-23 04:16:35 -0800 (Fri, 23 Nov 2007) | 1 line
How did the comment get there?
........
r59135 | christian.heimes | 2007-11-23 05:25:31 -0800 (Fri, 23 Nov 2007) | 1 line
And yet another fix for the patch. Paul Moore has send me a note that I've missed a declaration. The additional code has moved the declaration in the middle of the block.
........
r59136 | andrew.kuchling | 2007-11-23 05:37:39 -0800 (Fri, 23 Nov 2007) | 1 line
Add item
........
r59137 | skip.montanaro | 2007-11-23 09:08:35 -0800 (Fri, 23 Nov 2007) | 2 lines
Make trace and doctest play nice together (issue 1429818). Will backport.
........
r59139 | skip.montanaro | 2007-11-23 09:12:47 -0800 (Fri, 23 Nov 2007) | 1 line
issue 1429818
........
r59144 | facundo.batista | 2007-11-23 09:59:00 -0800 (Fri, 23 Nov 2007) | 10 lines
Major change in the internal structure of the Decimal
number: now it does not store the mantissa as a tuple
of numbers, but as a string.
This avoids a lot of conversions, and achieves a
speedup of 40%. The API remains intact.
Thanks Mark Dickinson.
........
r59146 | facundo.batista | 2007-11-23 10:14:50 -0800 (Fri, 23 Nov 2007) | 3 lines
Test cases from Cowlishaw, v2.57. All are pased cleanly.
........
r59156 | christian.heimes | 2007-11-23 17:36:02 -0800 (Fri, 23 Nov 2007) | 2 lines
Added filename to compiling struct based on Martin's suggestion.
I'm wonder why I was trying to add the filename to the node all the time. The compiling struct is more obvious.
........
r59158 | christian.heimes | 2007-11-23 17:53:59 -0800 (Fri, 23 Nov 2007) | 2 lines
Backport of fixes from py3k branch
svn merge -r59131:HEAD ../../py3k/PCbuild9/ .
........
r59159 | skip.montanaro | 2007-11-23 20:29:08 -0800 (Fri, 23 Nov 2007) | 1 line
revert change that breaks test_doctest (which I forgot to run - sorry)
........
r59162 | skip.montanaro | 2007-11-23 20:31:15 -0800 (Fri, 23 Nov 2007) | 1 line
revert
........
r59164 | georg.brandl | 2007-11-24 03:31:46 -0800 (Sat, 24 Nov 2007) | 3 lines
#1344: document that you need to open std{in,out,err} with PIPE if you want
communicate() to work as described.
........
r59165 | georg.brandl | 2007-11-24 03:39:13 -0800 (Sat, 24 Nov 2007) | 2 lines
#1467: fix documentation for TestResult.add{Error,Failure}.
........
r59166 | georg.brandl | 2007-11-24 03:42:14 -0800 (Sat, 24 Nov 2007) | 2 lines
#1355: remove mention of PyXML from xml.dom docs.
........
r59169 | amaury.forgeotdarc | 2007-11-24 05:20:22 -0800 (Sat, 24 Nov 2007) | 2 lines
Warning "<> not supported in 3.x" should be enabled only when the -3 option is set.
........
r59170 | amaury.forgeotdarc | 2007-11-24 05:44:17 -0800 (Sat, 24 Nov 2007) | 3 lines
Issue #1445: Fix a SystemError when accessing the ``cell_contents``
attribute of an empty cell object. Now a ValueError is raised.
........
r59172 | georg.brandl | 2007-11-24 05:56:09 -0800 (Sat, 24 Nov 2007) | 3 lines
#1735632: add O_NOATIME constant to os module.
Also document a few other O_ constants that were missing from documentation.
........
r59173 | skip.montanaro | 2007-11-24 06:30:47 -0800 (Sat, 24 Nov 2007) | 1 line
back in these go - thanks to Titus Brown for the fix
........
r59176 | martin.v.loewis | 2007-11-24 10:33:40 -0800 (Sat, 24 Nov 2007) | 2 lines
Bug #1494: Document that appendChild removes first.
........
r59186 | guido.van.rossum | 2007-11-26 14:16:49 -0800 (Mon, 26 Nov 2007) | 2 lines
A thread-less variant of brownian.py, submitted by Michele Simoniato.
........
2007-11-26 19:23:18 -04:00
|
|
|
-- destructive subtract
|
|
|
|
dqrmn1101 remaindernear 1234567890123456789012345678901234 1.000000000000000000000000000000001 -> -0.234567890123456789012345678901233
|
|
|
|
dqrmn1102 remaindernear 1234567890123456789012345678901234 1.00000000000000000000000000000001 -> -0.34567890123456789012345678901222
|
|
|
|
dqrmn1103 remaindernear 1234567890123456789012345678901234 1.0000000000000000000000000000001 -> -0.4567890123456789012345678901111
|
|
|
|
dqrmn1104 remaindernear 1234567890123456789012345678901255 4.000000000000000000000000000000001 -> -1.308641972530864197253086419725314
|
|
|
|
dqrmn1105 remaindernear 1234567890123456789012345678901234 4.000000000000000000000000000000001 -> 1.691358027469135802746913580274692
|
|
|
|
dqrmn1106 remaindernear 1234567890123456789012345678901234 4.9999999999999999999999999999999 -> -1.3086421975308642197530864219748
|
|
|
|
dqrmn1107 remaindernear 1234567890123456789012345678901234 4.99999999999999999999999999999999 -> 1.46913578024691357802469135780247
|
|
|
|
dqrmn1108 remaindernear 1234567890123456789012345678901234 4.999999999999999999999999999999999 -> -0.753086421975308642197530864219753
|
|
|
|
dqrmn1109 remaindernear 1234567890123456789012345678901234 5.000000000000000000000000000000001 -> -1.246913578024691357802469135780247
|
|
|
|
dqrmn1110 remaindernear 1234567890123456789012345678901234 5.00000000000000000000000000000001 -> 1.53086421975308642197530864219754
|
|
|
|
dqrmn1111 remaindernear 1234567890123456789012345678901234 5.0000000000000000000000000000001 -> -0.6913578024691357802469135780242
|
|
|
|
|
Merged revisions 58095-58132,58136-58148,58151-58197 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r58096 | brett.cannon | 2007-09-10 23:38:27 +0200 (Mon, 10 Sep 2007) | 4 lines
Fix a possible segfault from recursing too deep to get the repr of a list.
Closes issue #1096.
........
r58097 | bill.janssen | 2007-09-10 23:51:02 +0200 (Mon, 10 Sep 2007) | 33 lines
More work on SSL support.
* Much expanded test suite:
All protocols tested against all other protocols.
All protocols tested with all certificate options.
Tests for bad key and bad cert.
Test of STARTTLS functionality.
Test of RAND_* functions.
* Fixes for threading/malloc bug.
* Issue 1065 fixed:
sslsocket class renamed to SSLSocket.
sslerror class renamed to SSLError.
Function "wrap_socket" now used to wrap an existing socket.
* Issue 1583946 finally fixed:
Support for subjectAltName added.
Subject name now returned as proper DN list of RDNs.
* SSLError exported from socket as "sslerror".
* RAND_* functions properly exported from ssl.py.
* Documentation improved:
Example of how to create a self-signed certificate.
Better indexing.
........
r58098 | guido.van.rossum | 2007-09-11 00:02:25 +0200 (Tue, 11 Sep 2007) | 9 lines
Patch # 1140 (my code, approved by Effbot).
Make sure the type of the return value of re.sub(x, y, z) is the type
of y+x (i.e. unicode if either is unicode, str if they are both str)
even if there are no substitutions or if x==z (which triggered various
special cases in join_list()).
Could be backported to 2.5; no need to port to 3.0.
........
r58099 | guido.van.rossum | 2007-09-11 00:36:02 +0200 (Tue, 11 Sep 2007) | 8 lines
Patch # 1026 by Benjamin Aranguren (with Alex Martelli):
Backport abc.py and isinstance/issubclass overloading to 2.6.
I had to backport test_typechecks.py myself, and make one small change
to abc.py to avoid duplicate work when x.__class__ and type(x) are the
same.
........
r58100 | bill.janssen | 2007-09-11 01:41:24 +0200 (Tue, 11 Sep 2007) | 3 lines
A better way of finding an open port to test with.
........
r58101 | bill.janssen | 2007-09-11 03:09:19 +0200 (Tue, 11 Sep 2007) | 4 lines
Make sure test_ssl doesn't reference the ssl module in a
context where it can't be imported.
........
r58102 | bill.janssen | 2007-09-11 04:42:07 +0200 (Tue, 11 Sep 2007) | 3 lines
Fix some documentation bugs.
........
r58103 | nick.coghlan | 2007-09-11 16:01:18 +0200 (Tue, 11 Sep 2007) | 1 line
Always use the -E flag when spawning subprocesses in test_cmd_line (Issue 1056)
........
r58106 | thomas.heller | 2007-09-11 21:17:48 +0200 (Tue, 11 Sep 2007) | 3 lines
Disable some tests that fail on the 'ppc Debian unstable' buildbot to
find out if they cause the segfault on the 'alpha Debian' machine.
........
r58108 | brett.cannon | 2007-09-11 23:02:28 +0200 (Tue, 11 Sep 2007) | 6 lines
Generators had their throw() method allowing string exceptions. That's a
no-no.
Fixes issue #1147. Need to fix 2.5 to raise a proper warning if a string
exception is passed in.
........
r58112 | georg.brandl | 2007-09-12 20:03:51 +0200 (Wed, 12 Sep 2007) | 3 lines
New documentation page for the bdb module.
(This doesn't need to be merged to Py3k.)
........
r58114 | georg.brandl | 2007-09-12 20:05:57 +0200 (Wed, 12 Sep 2007) | 2 lines
Bug #1152: use non-deprecated name in example.
........
r58115 | georg.brandl | 2007-09-12 20:08:33 +0200 (Wed, 12 Sep 2007) | 2 lines
Fix #1122: wrong return type documented for various _Size() functions.
........
r58117 | georg.brandl | 2007-09-12 20:10:56 +0200 (Wed, 12 Sep 2007) | 2 lines
Fix #1139: PyFile_Encoding really is PyFile_SetEncoding.
........
r58119 | georg.brandl | 2007-09-12 20:29:18 +0200 (Wed, 12 Sep 2007) | 2 lines
bug #1154: release memory allocated by "es" PyArg_ParseTuple format specifier.
........
r58121 | bill.janssen | 2007-09-12 20:52:05 +0200 (Wed, 12 Sep 2007) | 1 line
root certificate for https://svn.python.org/, used in test_ssl
........
r58122 | georg.brandl | 2007-09-12 21:00:07 +0200 (Wed, 12 Sep 2007) | 3 lines
Bug #1153: repr.repr() now doesn't require set and dictionary items
to be orderable to properly represent them.
........
r58125 | georg.brandl | 2007-09-12 21:29:28 +0200 (Wed, 12 Sep 2007) | 4 lines
#1120: put explicit version in the shebang lines of pydoc, idle
and smtpd.py scripts that are installed by setup.py. That way, they
work when only "make altinstall" is used.
........
r58139 | mark.summerfield | 2007-09-13 16:54:30 +0200 (Thu, 13 Sep 2007) | 9 lines
Replaced variable o with obj in operator.rst because o is easy to
confuse.
Added a note about Python 3's collections.Mapping etc., above section
that describes isMappingType() etc.
Added xrefs between os, os.path, fileinput, and open().
........
r58143 | facundo.batista | 2007-09-13 20:13:15 +0200 (Thu, 13 Sep 2007) | 7 lines
Merged the decimal-branch (revisions 54886 to 58140). Decimal is now
fully updated to the latests Decimal Specification (v1.66) and the
latests test cases (v2.56).
Thanks to Mark Dickinson for all his help during this process.
........
r58145 | facundo.batista | 2007-09-13 20:42:09 +0200 (Thu, 13 Sep 2007) | 7 lines
Put the parameter watchexp back in (changed watchexp from an int
to a bool). Also second argument to watchexp is now converted
to Decimal, just as with all the other two-argument operations.
Thanks Mark Dickinson.
........
r58147 | andrew.kuchling | 2007-09-14 00:49:34 +0200 (Fri, 14 Sep 2007) | 1 line
Add various items
........
r58148 | andrew.kuchling | 2007-09-14 00:50:10 +0200 (Fri, 14 Sep 2007) | 1 line
Make target unique
........
r58154 | facundo.batista | 2007-09-14 20:58:34 +0200 (Fri, 14 Sep 2007) | 3 lines
Included the new functions, and new descriptions.
........
r58155 | thomas.heller | 2007-09-14 21:40:35 +0200 (Fri, 14 Sep 2007) | 2 lines
ctypes.util.find_library uses dump(1) instead of objdump(1) on Solaris.
Fixes issue #1777530; will backport to release25-maint.
........
r58159 | facundo.batista | 2007-09-14 23:29:52 +0200 (Fri, 14 Sep 2007) | 3 lines
Some additions (examples and a bit on the tutorial).
........
r58160 | georg.brandl | 2007-09-15 18:53:36 +0200 (Sat, 15 Sep 2007) | 2 lines
Remove bdb from the "undocumented modules" list.
........
r58164 | bill.janssen | 2007-09-17 00:06:00 +0200 (Mon, 17 Sep 2007) | 15 lines
Add support for asyncore server-side SSL support. This requires
adding the 'makefile' method to ssl.SSLSocket, and importing the
requisite fakefile class from socket.py, and making the appropriate
changes to it to make it use the SSL connection.
Added sample HTTPS server to test_ssl.py, and test that uses it.
Change SSL tests to use https://svn.python.org/, instead of
www.sf.net and pop.gmail.com.
Added utility function to ssl module, get_server_certificate,
to wrap up the several things to be done to pull a certificate
from a remote server.
........
r58173 | bill.janssen | 2007-09-17 01:16:46 +0200 (Mon, 17 Sep 2007) | 1 line
use binary mode when reading files for testAsyncore to make Windows happy
........
r58175 | raymond.hettinger | 2007-09-17 02:55:00 +0200 (Mon, 17 Sep 2007) | 7 lines
Sync-up named tuples with the latest version of the ASPN recipe.
Allows optional commas in the field-name spec (help when named tuples are used in conjuction with sql queries).
Adds the __fields__ attribute for introspection and to support conversion to dictionary form.
Adds a __replace__() method similar to str.replace() but using a named field as a target.
Clean-up spelling and presentation in doc-strings.
........
r58176 | brett.cannon | 2007-09-17 05:28:34 +0200 (Mon, 17 Sep 2007) | 5 lines
Add a bunch of GIL release/acquire points in tp_print implementations and for
PyObject_Print().
Closes issue #1164.
........
r58177 | sean.reifschneider | 2007-09-17 07:45:04 +0200 (Mon, 17 Sep 2007) | 2 lines
issue1597011: Fix for bz2 module corner-case error due to error checking bug.
........
r58180 | facundo.batista | 2007-09-17 18:26:50 +0200 (Mon, 17 Sep 2007) | 3 lines
Decimal is updated, :)
........
r58181 | facundo.batista | 2007-09-17 19:30:13 +0200 (Mon, 17 Sep 2007) | 5 lines
The methods always return Decimal classes, even if they're
executed through a subclass (thanks Mark Dickinson).
Added a bit of testing for this.
........
r58183 | sean.reifschneider | 2007-09-17 22:53:21 +0200 (Mon, 17 Sep 2007) | 2 lines
issue1082: Fixing platform and system for Vista.
........
r58185 | andrew.kuchling | 2007-09-18 03:36:16 +0200 (Tue, 18 Sep 2007) | 1 line
Add item; sort properly
........
r58186 | raymond.hettinger | 2007-09-18 05:33:19 +0200 (Tue, 18 Sep 2007) | 1 line
Handle corner cased on 0-tuples and 1-tuples. Add verbose option so people can see how it works.
........
r58192 | georg.brandl | 2007-09-18 09:24:40 +0200 (Tue, 18 Sep 2007) | 2 lines
A bit of reordering, also show more subheadings in the lang ref index.
........
r58193 | facundo.batista | 2007-09-18 18:53:18 +0200 (Tue, 18 Sep 2007) | 4 lines
Speed up of the various division operations (remainder, divide,
divideint and divmod). Thanks Mark Dickinson.
........
r58197 | raymond.hettinger | 2007-09-19 00:18:02 +0200 (Wed, 19 Sep 2007) | 1 line
Cleanup docs for NamedTuple.
........
2007-09-19 00:06:30 -03:00
|
|
|
-- Null tests
|
|
|
|
dqrmn1000 remaindernear 10 # -> NaN Invalid_operation
|
|
|
|
dqrmn1001 remaindernear # 10 -> NaN Invalid_operation
|
|
|
|
|