Benjamin Peterson
6e8c75755a
Merged revisions 74865,75175,75180 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r74865 | georg.brandl | 2009-09-17 02:49:37 -0500 (Thu, 17 Sep 2009) | 1 line
#6912 : add "with" block support to pindent.
........
r75175 | georg.brandl | 2009-10-01 15:11:14 -0500 (Thu, 01 Oct 2009) | 1 line
Fix some weird whitespace and two other overlong lines.
........
r75180 | georg.brandl | 2009-10-01 15:59:31 -0500 (Thu, 01 Oct 2009) | 1 line
#7031 : Add TestCase.assertIsInstance and negated method.
........
2009-10-04 20:19:21 +00:00
Benjamin Peterson
23c5050b25
Blocked revisions 74845 via svnmerge
...
........
r74845 | georg.brandl | 2009-09-16 15:30:09 -0500 (Wed, 16 Sep 2009) | 5 lines
#6844 : do not emit DeprecationWarnings on access if Exception.message has been set by the user.
This works by always setting it in __dict__, except when it's implicitly set in __init__.
........
2009-10-04 20:13:06 +00:00
Benjamin Peterson
9a779ea98e
Merged revisions 74524,74556 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r74524 | gregory.p.smith | 2009-08-20 04:39:38 -0500 (Thu, 20 Aug 2009) | 2 lines
Add weakref support to the thread.lock type.
........
r74556 | kristjan.jonsson | 2009-08-27 17:20:21 -0500 (Thu, 27 Aug 2009) | 2 lines
issue 6275
Add an "exc_value" attribute to the _AssertRaisesContext context manager in the unittest package. This allows further tests on the exception that was raised after the context manager exits.
........
2009-10-04 20:07:34 +00:00
Mark Dickinson
2e30440153
Merged revisions 75236 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r75236 | mark.dickinson | 2009-10-04 19:38:39 +0100 (Sun, 04 Oct 2009) | 4 lines
Issue #7042 : Fix test_signal failure on OS X 10.6 64-bit builds
(and also, with luck, on the x86 FreeBSD buildbot), by making sure
that some user time is used in test_itimer_virtual.
........
2009-10-04 18:43:54 +00:00
Benjamin Peterson
a539fd1856
remove 8-bit string sentence
2009-10-04 15:07:16 +00:00
Benjamin Peterson
4ac9ce4f9a
Merged revisions 74779-74786,74793,74795,74811,74860-74861,74863,74876,74886,74896,74901,74903,74908,74912,74930,74933,74943,74946,74952-74955,75015,75019,75032,75068,75076,75095,75098,75102,75129,75139,75230 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r74779 | michael.foord | 2009-09-13 11:13:36 -0500 (Sun, 13 Sep 2009) | 1 line
Change to tutorial wording for reading text / binary files on Windows. Issue #6301 .
........
r74780 | michael.foord | 2009-09-13 11:40:02 -0500 (Sun, 13 Sep 2009) | 1 line
Objects that compare equal automatically pass or fail assertAlmostEqual and assertNotAlmostEqual tests on unittest.TestCase. Issue 6567.
........
r74781 | michael.foord | 2009-09-13 11:46:19 -0500 (Sun, 13 Sep 2009) | 1 line
Note that sys._getframe is not guaranteed to exist in all implementations of Python, and a corresponding note in inspect.currentframe. Issue 6712.
........
r74782 | michael.foord | 2009-09-13 12:07:46 -0500 (Sun, 13 Sep 2009) | 1 line
Tutorial tweaks. Issue 6849.
........
r74783 | michael.foord | 2009-09-13 12:28:35 -0500 (Sun, 13 Sep 2009) | 1 line
unittest.TestLoader.loadTestsFromName honors the loader suiteClass attribute. Issue 6866.
........
r74784 | georg.brandl | 2009-09-13 13:15:07 -0500 (Sun, 13 Sep 2009) | 1 line
Typo fix.
........
r74785 | michael.foord | 2009-09-13 14:07:03 -0500 (Sun, 13 Sep 2009) | 1 line
Test discovery in unittest will only attempt to import modules that are importable; i.e. their names are valid Python identifiers. If an import fails during discovery this will be recorded as an error and test discovery will continue. Issue 6568.
........
r74786 | michael.foord | 2009-09-13 14:08:18 -0500 (Sun, 13 Sep 2009) | 1 line
Remove an extraneous space in unittest documentation.
........
r74793 | georg.brandl | 2009-09-14 09:50:47 -0500 (Mon, 14 Sep 2009) | 1 line
#6908 : fix association of hashlib hash attributes.
........
r74795 | benjamin.peterson | 2009-09-14 22:36:26 -0500 (Mon, 14 Sep 2009) | 1 line
Py_SetPythonHome uses static storage #6913
........
r74811 | georg.brandl | 2009-09-15 15:26:59 -0500 (Tue, 15 Sep 2009) | 1 line
Add Armin Ronacher.
........
r74860 | benjamin.peterson | 2009-09-16 21:46:54 -0500 (Wed, 16 Sep 2009) | 1 line
kill bare except
........
r74861 | benjamin.peterson | 2009-09-16 22:18:28 -0500 (Wed, 16 Sep 2009) | 1 line
pep 8 defaults
........
r74863 | benjamin.peterson | 2009-09-16 22:27:33 -0500 (Wed, 16 Sep 2009) | 1 line
rationalize a bit
........
r74876 | georg.brandl | 2009-09-17 11:15:53 -0500 (Thu, 17 Sep 2009) | 1 line
#6932 : remove paragraph that advises relying on __del__ being called.
........
r74886 | benjamin.peterson | 2009-09-17 16:33:46 -0500 (Thu, 17 Sep 2009) | 1 line
use macros
........
r74896 | georg.brandl | 2009-09-18 02:22:41 -0500 (Fri, 18 Sep 2009) | 1 line
#6936 : for interactive use, quit() is just fine.
........
r74901 | georg.brandl | 2009-09-18 04:14:52 -0500 (Fri, 18 Sep 2009) | 1 line
#6905 : use better exception messages in inspect when the argument is of the wrong type.
........
r74903 | georg.brandl | 2009-09-18 04:18:27 -0500 (Fri, 18 Sep 2009) | 1 line
#6938 : "ident" is always a string, so use a format code which works.
........
r74908 | georg.brandl | 2009-09-18 08:57:11 -0500 (Fri, 18 Sep 2009) | 1 line
Use str.format() to fix beginner's mistake with %-style string formatting.
........
r74912 | georg.brandl | 2009-09-18 11:19:56 -0500 (Fri, 18 Sep 2009) | 1 line
Optimize optimization and fix method name in docstring.
........
r74930 | georg.brandl | 2009-09-18 16:21:41 -0500 (Fri, 18 Sep 2009) | 1 line
#6925 : rewrite docs for locals() and vars() a bit.
........
r74933 | georg.brandl | 2009-09-18 16:35:59 -0500 (Fri, 18 Sep 2009) | 1 line
#6930 : clarify description about byteorder handling in UTF decoder routines.
........
r74943 | georg.brandl | 2009-09-19 02:35:07 -0500 (Sat, 19 Sep 2009) | 1 line
#6944 : the argument to PyArg_ParseTuple should be a tuple, otherwise a SystemError is set. Also clean up another usage of PyArg_ParseTuple.
........
r74946 | georg.brandl | 2009-09-19 03:43:16 -0500 (Sat, 19 Sep 2009) | 1 line
Update bug tracker reference.
........
r74952 | georg.brandl | 2009-09-19 05:42:34 -0500 (Sat, 19 Sep 2009) | 1 line
#6946 : fix duplicate index entries for datetime classes.
........
r74953 | georg.brandl | 2009-09-19 07:04:16 -0500 (Sat, 19 Sep 2009) | 1 line
Fix references to threading.enumerate().
........
r74954 | georg.brandl | 2009-09-19 08:13:56 -0500 (Sat, 19 Sep 2009) | 1 line
Add Doug.
........
r74955 | georg.brandl | 2009-09-19 08:20:49 -0500 (Sat, 19 Sep 2009) | 1 line
Add Mark Summerfield.
........
r75015 | georg.brandl | 2009-09-22 05:55:08 -0500 (Tue, 22 Sep 2009) | 1 line
Fix encoding name.
........
r75019 | vinay.sajip | 2009-09-22 12:23:41 -0500 (Tue, 22 Sep 2009) | 1 line
Fixed a typo, and added sections on optimization and using arbitrary objects as messages.
........
r75032 | benjamin.peterson | 2009-09-22 17:15:28 -0500 (Tue, 22 Sep 2009) | 1 line
fix typos/rephrase
........
r75068 | benjamin.peterson | 2009-09-25 21:57:59 -0500 (Fri, 25 Sep 2009) | 1 line
comment out ugly xxx
........
r75076 | vinay.sajip | 2009-09-26 09:53:32 -0500 (Sat, 26 Sep 2009) | 1 line
Tidied up name of parameter in StreamHandler
........
r75095 | michael.foord | 2009-09-27 14:15:41 -0500 (Sun, 27 Sep 2009) | 1 line
Test creation moved from TestProgram.parseArgs to TestProgram.createTests exclusively. Issue 6956.
........
r75098 | michael.foord | 2009-09-27 15:08:23 -0500 (Sun, 27 Sep 2009) | 1 line
Documentation improvement for load_tests protocol in unittest. Issue 6515.
........
r75102 | skip.montanaro | 2009-09-27 21:12:27 -0500 (Sun, 27 Sep 2009) | 3 lines
Patch from Thomas Barr so that csv.Sniffer will set doublequote property.
Closes issue 6606.
........
r75129 | vinay.sajip | 2009-09-29 02:08:54 -0500 (Tue, 29 Sep 2009) | 1 line
Issue #7014 : logging: Improved IronPython 2.6 compatibility.
........
r75139 | raymond.hettinger | 2009-09-29 13:53:24 -0500 (Tue, 29 Sep 2009) | 3 lines
Issue 7008: Better document str.title and show how to work around the apostrophe problem.
........
r75230 | benjamin.peterson | 2009-10-04 08:38:38 -0500 (Sun, 04 Oct 2009) | 1 line
test logging
........
2009-10-04 14:49:41 +00:00
Benjamin Peterson
bd27aef8a0
Merged revisions 75223 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r75223 | benjamin.peterson | 2009-10-03 15:23:24 -0500 (Sat, 03 Oct 2009) | 1 line
#7050 fix a SystemError when using tuple unpacking and augmented assignment
........
2009-10-03 20:27:13 +00:00
Mark Dickinson
8504d085b7
Use size_t instead of int for a PyMem_MALLOC argument; silences a gcc 'comparison always false' warning.
2009-10-03 20:13:37 +00:00
Ezio Melotti
b4d286d04e
silence with (void) two warnings about computed and unused value of POP()
2009-10-03 16:14:07 +00:00
Benjamin Peterson
36e0d0efd8
isinstance(f, collections.Callable) is more correct
2009-10-03 15:13:15 +00:00
Benjamin Peterson
5850389a10
revert r75090
2009-10-03 15:06:21 +00:00
Tarek Ziadé
81c9a95751
Merged revisions 75209 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r75209 | tarek.ziade | 2009-10-03 16:52:33 +0200 (Sat, 03 Oct 2009) | 1 line
now uses the right exception type
........
2009-10-03 14:54:15 +00:00
Mark Dickinson
36cea39b22
Merged revisions 75205 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r75205 | mark.dickinson | 2009-10-03 11:14:34 +0100 (Sat, 03 Oct 2009) | 2 lines
Issue #7028 : Add note to hex() builtin docs pointing to float.hex().
........
2009-10-03 10:18:40 +00:00
Tarek Ziadé
7942e2e267
Blocked revisions 75196 via svnmerge
...
........
r75196 | tarek.ziade | 2009-10-03 02:07:35 +0200 (Sat, 03 Oct 2009) | 1 line
removing the last remaning apply() calls
........
2009-10-03 00:10:24 +00:00
Tarek Ziadé
05b303443b
Merged revisions 75192 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r75192 | tarek.ziade | 2009-10-03 01:49:48 +0200 (Sat, 03 Oct 2009) | 1 line
#6516 added owner/group support for tarfiles in Distutils
........
2009-10-02 23:56:02 +00:00
Mark Dickinson
574b1d6a60
More versionadded/versionchanged fixes
2009-10-01 20:20:09 +00:00
Mark Dickinson
4035aace1a
Remove outdated versionchanged entry
2009-10-01 20:11:11 +00:00
Antoine Pitrou
b9b0ef03e9
Blocked revisions 75171 via svnmerge
...
........
r75171 | antoine.pitrou | 2009-10-01 19:08:03 +0200 (jeu., 01 oct. 2009) | 4 lines
Sync the 2.x `io` docs with py3k, with a small note as to the distinction
between bytes streams and text streams.
........
2009-10-01 17:09:15 +00:00
Antoine Pitrou
78ddbe69af
Issue #7022 : clarification of RawIOBase.read(), suggested by Pascal Chambon.
2009-10-01 16:24:45 +00:00
Mark Dickinson
56e0966afa
Fix versionadded for py3k math.gamma
2009-10-01 16:13:29 +00:00
Benjamin Peterson
da18125ae1
more stable url
2009-10-01 00:57:32 +00:00
Benjamin Peterson
51e491000d
fix opensearch version
2009-10-01 00:10:13 +00:00
Mark Dickinson
2d53bdecd8
Merged revisions 75157 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r75157 | mark.dickinson | 2009-09-30 17:58:01 +0100 (Wed, 30 Sep 2009) | 1 line
Fix buggy accuracy test
........
2009-09-30 17:47:54 +00:00
Mark Dickinson
2683ab04a6
Merged revisions 75141 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r75141 | mark.dickinson | 2009-09-29 20:01:06 +0100 (Tue, 29 Sep 2009) | 3 lines
Issue #7019 : Unmarshalling of bad long data could produce unnormalized
PyLongs. Raise ValueError instead.
........
2009-09-29 19:21:35 +00:00
Antoine Pitrou
ead1d62d32
[NOTE: the original bug doesn't exist in py3k but this adds Kirk's tests and fixes
...
another bug in the process]
Merged revisions 75134 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r75134 | antoine.pitrou | 2009-09-29 19:48:18 +0200 (mar., 29 sept. 2009) | 4 lines
Issue #6790 : Make it possible again to pass an `array.array` to
`httplib.HTTPConnection.send`. Patch by Kirk McDonald.
........
2009-09-29 18:44:53 +00:00
R. David Murray
8da3cac4a0
Merged revisions 75111 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r75111 | r.david.murray | 2009-09-28 12:57:45 -0400 (Mon, 28 Sep 2009) | 5 lines
Prevent test_bad_address failure when a domain in the dns search
path implements a '*' default rule. Also update comment with
a more complete explanation of the difficulties inherent in
the test.
........
2009-09-29 14:01:08 +00:00
Raymond Hettinger
b8b0ba1fa0
Issue 7008: Better document str.title and show how to work around the apostrophe problem.
2009-09-29 06:22:28 +00:00
Philip Jenvey
26713cade1
Recorded merge of revisions 75123 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r75123 | philip.jenvey | 2009-09-28 21:32:44 -0700 (Mon, 28 Sep 2009) | 4 lines
#6990 : clear threading.local's key only after its thread state is removed:
fixes local subclasses leaving old state around after a ref cycle GC which
could be recycled by new locals
........
2009-09-29 04:57:18 +00:00
Mark Dickinson
12c4bdb0e8
Merged revisions 75117 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r75117 | mark.dickinson | 2009-09-28 19:54:55 +0100 (Mon, 28 Sep 2009) | 3 lines
Issue #3366 : Add gamma function to math module.
(lgamma, erf and erfc to follow).
........
2009-09-28 19:21:11 +00:00
R. David Murray
40af630672
Blocked revisions 75115 via svnmerge
...
........
r75115 | r.david.murray | 2009-09-28 14:29:28 -0400 (Mon, 28 Sep 2009) | 2 lines
Applying patches backported from 3.1, by Gregor Lingl.
........
2009-09-28 18:55:36 +00:00
Mark Dickinson
24f5785fea
Merged revisions 75110 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r75110 | mark.dickinson | 2009-09-28 17:52:40 +0100 (Mon, 28 Sep 2009) | 9 lines
Style/consistency/nano-optimization nit: replace occurrences of
(high_bits << PyLong_SHIFT) + low_bits with
(high_bits << PyLong_SHIFT) | low_bits
in Objects/longobject.c. Motivation:
- shouldn't unnecessarily mix bit ops with arithmetic ops (style)
- this pattern should be spelt the same way thoughout (consistency)
- it's very very very slightly faster: no need to worry about
carries to the high digit (nano-optimization).
........
2009-09-28 17:54:52 +00:00
Mark Dickinson
3c976a0437
Recorded merge of revisions 75054 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r75054 | kristjan.jonsson | 2009-09-25 16:19:51 +0100 (Fri, 25 Sep 2009) | 2 lines
http://bugs.python.org/issue6971
Adding the SIO_KEEPALIVE_VALS command to socket.ioctl on windows
........
2009-09-28 16:07:15 +00:00
Mark Dickinson
c6ccd08d61
Recorded merge of revisions 75103-75104,75106 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r75103 | kristjan.jonsson | 2009-09-28 14:08:48 +0100 (Mon, 28 Sep 2009) | 2 lines
http://bugs.python.org/issue6836
A memory block allocated with one API was being handed over to an object that used another API to release it.
........
r75104 | kristjan.jonsson | 2009-09-28 14:12:38 +0100 (Mon, 28 Sep 2009) | 2 lines
http://bugs.python.org/issue6836
The debug memory api now keeps track of which external API (PyMem_* or PyObject_*) was used to allocate each block and treats any API violation as an error. Added separate _PyMem_DebugMalloc functions for the Py_Mem API instead of having it use the _PyObject_DebugMalloc functions.
........
r75106 | kristjan.jonsson | 2009-09-28 16:56:25 +0100 (Mon, 28 Sep 2009) | 2 lines
http://bugs.python.org/issue6836
A missing 'const' wasn't detected by Visual Studio.
........
2009-09-28 16:00:09 +00:00
Kristján Valur Jónsson
3436900a5a
merging revision 75106 from trunk:
...
http://bugs.python.org/issue6836
A missing 'const' wasn't detected by Visual Studio.
2009-09-28 15:57:53 +00:00
Kristján Valur Jónsson
ae4cfb1bb3
http://bugs.python.org/issue6836
...
Merging revisions 75103,75104 from trunk to py3k
2009-09-28 13:45:02 +00:00
Kristján Valur Jónsson
847ec75d3e
http://bugs.python.org/issue6971
...
Porting revision 75054 from trunk
2009-09-27 21:10:38 +00:00
Mark Dickinson
7d3d209b54
Blocked revisions 75091 via svnmerge
...
........
r75091 | mark.dickinson | 2009-09-27 17:39:28 +0100 (Sun, 27 Sep 2009) | 1 line
Eliminate unnecessary get_wrapped_(u)long defines in struct module.
........
2009-09-27 16:41:06 +00:00
Benjamin Peterson
5770847da6
use more correct callable replacement
2009-09-27 16:32:56 +00:00
Mark Dickinson
75636af5db
Blocked revisions 75084 via svnmerge
...
........
r75084 | mark.dickinson | 2009-09-27 17:05:21 +0100 (Sun, 27 Sep 2009) | 3 lines
Issue #6713 : Improve decimal int -> string conversions. Thanks Gawain
Bolton for the suggestion and original patches.
........
2009-09-27 16:08:13 +00:00
Benjamin Peterson
defa04ec8b
star_expr now always has two nodes
2009-09-27 14:08:59 +00:00
Benjamin Peterson
4905e80c3d
fix an ambiguity in the grammar from the implementation of extended unpacking
...
(one which was strangely "resolved" by pgen)
This also kills the unused testlist1 rule and fixes parse tree validation of
extended unpacking.
2009-09-27 02:43:28 +00:00
Georg Brandl
10430ad7aa
fix default value
2009-09-26 20:59:11 +00:00
Georg Brandl
9c3b7dc3c0
use new style optional args
2009-09-26 20:52:12 +00:00
Ezio Melotti
a40bdda937
Merged revisions 75070 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r75070 | ezio.melotti | 2009-09-26 14:20:53 +0300 (Sat, 26 Sep 2009) | 1 line
#7000 : document "sep" in capwords. Add a few tests
........
2009-09-26 12:33:22 +00:00
Ezio Melotti
2c6a949e43
string.capwords is still around, adding back the tests
2009-09-26 12:19:30 +00:00
R. David Murray
ab170681f6
Andrew just committed a patch for curses, so since he's been the
...
maintainer he's on the hook for it in maintainers unless he says
otherwise.
2009-09-26 02:42:26 +00:00
Ezio Melotti
af30d2eeaa
fix print statement
2009-09-25 21:35:24 +00:00
Benjamin Peterson
9abfc457e0
correct the fixpath.py script to work in Python 3 #6999
2009-09-25 20:56:52 +00:00
Benjamin Peterson
8fb00bef27
fix print statement
2009-09-25 20:34:04 +00:00
Ezio Melotti
b297e714e2
#6998 : fix missing () on a print
2009-09-25 20:14:02 +00:00