]>
granicus.if.org Git - python/log
Martin v. Löwis [Sat, 4 Dec 2010 09:12:14 +0000 (09:12 +0000)]
Regenerate.
Martin v. Löwis [Sat, 4 Dec 2010 09:11:41 +0000 (09:11 +0000)]
Add Revision keyword.
Gregory P. Smith [Sat, 4 Dec 2010 09:10:44 +0000 (09:10 +0000)]
issue7213 + issue2320: Cause a DeprecationWarning if the close_fds argument is
not passed to subprocess.Popen as the default value will be changing in a
future Python to the safer and more often desired value of True.
DeprecationWarnings that show up in a lot of existing code are controversial
and have caused pain in the past. I'd like to leave this on for 3.2 beta1 and
see how things go. We can remove the warning if it is deemed too noisy during
any betas. (case study: the md5 and sha module DeprecationWarnings are loathed
around the world as those modules were never going to be removed in 2.x and
2to3 has a fixer for code that uses them)
Martin v. Löwis [Sat, 4 Dec 2010 09:08:10 +0000 (09:08 +0000)]
Make script 2-vs-3-agnostic.
Georg Brandl [Sat, 4 Dec 2010 09:04:04 +0000 (09:04 +0000)]
Fix typo.
Alexander Belopolsky [Sat, 4 Dec 2010 03:38:46 +0000 (03:38 +0000)]
Issue #10557: Fixed error messages from float() and other numeric
types. Added a new API function, PyUnicode_TransformDecimalToASCII(),
which transforms non-ASCII decimal digits in a Unicode string to their
ASCII equivalents.
Michael Foord [Sat, 4 Dec 2010 01:43:59 +0000 (01:43 +0000)]
Correct comment in unittest test
Michael Foord [Sat, 4 Dec 2010 01:11:21 +0000 (01:11 +0000)]
Issue 10620: Specifying test modules by path instead of module name to 'python -m unittest'
Martin v. Löwis [Fri, 3 Dec 2010 23:11:07 +0000 (23:11 +0000)]
Merged revisions 85551,86156-86157,86464 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
........
r85551 | benjamin.peterson | 2010-10-15 23:57:29 +0200 (Fr, 15 Okt 2010) | 1 line
escape() is now in the html module
........
r86156 | georg.brandl | 2010-11-04 09:34:57 +0100 (Do, 04 Nov 2010) | 1 line
Consistency fixes in option parser help texts.
........
r86157 | georg.brandl | 2010-11-04 09:35:30 +0100 (Do, 04 Nov 2010) | 1 line
#10286: fix urllib class names.
........
r86464 | benjamin.peterson | 2010-11-14 16:28:52 +0100 (So, 14 Nov 2010) | 1 line
match only .py files #10416
........
Terry Reedy [Fri, 3 Dec 2010 22:50:06 +0000 (22:50 +0000)]
Issue #10534: add NEWS entry for r86983 and r87000.
Terry Reedy [Fri, 3 Dec 2010 22:29:40 +0000 (22:29 +0000)]
Issue 10534 deprecate isbjunk and isbpopular methods.
Will add gone in 3.3 test later.
Łukasz Langa [Fri, 3 Dec 2010 22:15:19 +0000 (22:15 +0000)]
%s -> %r correction after review by Éric Araujo
Martin v. Löwis [Fri, 3 Dec 2010 20:14:31 +0000 (20:14 +0000)]
Merge branches/pep-0384.
Antoine Pitrou [Fri, 3 Dec 2010 19:59:41 +0000 (19:59 +0000)]
Issue #10272: The ssl module now raises socket.timeout instead of a generic
SSLError on socket timeouts.
Georg Brandl [Fri, 3 Dec 2010 19:56:42 +0000 (19:56 +0000)]
Fix indentation.
Éric Araujo [Fri, 3 Dec 2010 19:41:00 +0000 (19:41 +0000)]
Allow translators to reorder placeholders in localizable messages from
argparse (#10528).
There is no unit test; I checked with xgettext that no more warnings
were emitted. Steven approved the change.
Michael Foord [Fri, 3 Dec 2010 19:20:44 +0000 (19:20 +0000)]
Fix so that test.test_unittest can be executed by unittest and not just regrtest
Éric Araujo [Fri, 3 Dec 2010 19:19:17 +0000 (19:19 +0000)]
Fix incorrect use of gettext in argparse (#10497).
Steven, the maintainer of argparse, agreed to have this committed
without tests for now, since the fix is obvious. See the bug log.
Antoine Pitrou [Fri, 3 Dec 2010 19:14:17 +0000 (19:14 +0000)]
Add an "advanced topics" section to the io doc.
Terry Reedy [Fri, 3 Dec 2010 18:57:42 +0000 (18:57 +0000)]
Antoine Pitrou [Fri, 3 Dec 2010 18:41:39 +0000 (18:41 +0000)]
Issue #10478: Reentrant calls inside buffered IO objects (for example by
way of a signal handler) now raise a RuntimeError instead of freezing the
current process.
Georg Brandl [Fri, 3 Dec 2010 17:19:27 +0000 (17:19 +0000)]
Fix punctuation.
Victor Stinner [Fri, 3 Dec 2010 17:06:43 +0000 (17:06 +0000)]
import: use PyUnicode_FSConverter to support bytes path and PEP 383
(instead of PyArg_Parse*() with "es" format and Py_FileSystemDefaultEncoding)
Victor Stinner [Fri, 3 Dec 2010 16:51:33 +0000 (16:51 +0000)]
#6780: fix complex() constructor TypeError message
Łukasz Langa [Fri, 3 Dec 2010 16:28:00 +0000 (16:28 +0000)]
Issue 10499: Modular interpolation in configparser
Nick Coghlan [Fri, 3 Dec 2010 16:08:46 +0000 (16:08 +0000)]
Handle Windows paths and don't double up on HTML header sections in new pydoc URL handler
Georg Brandl [Fri, 3 Dec 2010 15:30:09 +0000 (15:30 +0000)]
Markup consistency fixes.
Nick Coghlan [Fri, 3 Dec 2010 14:30:41 +0000 (14:30 +0000)]
Add missing CSS file from r86962
Nick Coghlan [Fri, 3 Dec 2010 14:26:13 +0000 (14:26 +0000)]
Issue 2690: Add support for slicing and negative indices to range objects (includes precalculation and storage of the range length).
Refer to the tracker issue for the language moratorium implications of this change
Vinay Sajip [Fri, 3 Dec 2010 13:01:11 +0000 (13:01 +0000)]
logging: tidied up some docstrings.
Michael Foord [Fri, 3 Dec 2010 12:27:40 +0000 (12:27 +0000)]
Factor out common code from lib/test/__main__.py and lib/test/regrtest.py into a function.
Vinay Sajip [Fri, 3 Dec 2010 11:50:38 +0000 (11:50 +0000)]
logging: Added getLogRecordFactory/setLogRecordFactory with docs and tests.
Michael Foord [Fri, 3 Dec 2010 10:59:15 +0000 (10:59 +0000)]
Fix lib/test/__main__.py to work even outside a Python build.
Michael Foord [Fri, 3 Dec 2010 10:42:03 +0000 (10:42 +0000)]
Adding lib/test/__main__.py for running tests with 'python -m test'
Georg Brandl [Fri, 3 Dec 2010 09:58:38 +0000 (09:58 +0000)]
#10549: fix interface of docclass() for text documenter.
Georg Brandl [Fri, 3 Dec 2010 09:45:33 +0000 (09:45 +0000)]
Add a line with the actual changes.
Nick Coghlan [Fri, 3 Dec 2010 09:29:11 +0000 (09:29 +0000)]
Improve Pydoc interactive browsing (#2001). Patch by Ron Adam.
* A -b option to start an enhanced browsing session.
* Allow -b and -p options to be used together.
* Specifying port 0 will pick an arbitrary unused socket port.
* A new browse() function to start the new server and browser.
* Show Python version information in the header.
* A *Get* field which takes the same input as the help() function.
* A *Search* field which replaces the Tkinter search box.
* Links to *Module Index*, *Topics*, and *Keywords*.
* Improved source file viewing.
* An HTMLDoc.filelink() method.
* The -g option and the gui() and serve() functions are deprecated.
Georg Brandl [Fri, 3 Dec 2010 09:18:37 +0000 (09:18 +0000)]
Rewrap NEWS (Builbot test commit.)
Georg Brandl [Fri, 3 Dec 2010 07:55:44 +0000 (07:55 +0000)]
#10360: catch TypeError in WeakSet.__contains__, just like WeakKeyDictionary does.
Georg Brandl [Fri, 3 Dec 2010 07:54:09 +0000 (07:54 +0000)]
Remove redundant check for PyBytes in unicode_encode.
Georg Brandl [Fri, 3 Dec 2010 07:49:09 +0000 (07:49 +0000)]
Use booleans.
Georg Brandl [Fri, 3 Dec 2010 07:47:22 +0000 (07:47 +0000)]
#940286: pydoc.Helper.help() ignores input/output init parameters.
Nick Coghlan [Fri, 3 Dec 2010 07:44:33 +0000 (07:44 +0000)]
Partially revert r78719 - it removed a check that is still needed in some cases (i.e. this will allow Michael to add the test.__main__ support that broke the buildbots previously)
Georg Brandl [Fri, 3 Dec 2010 07:38:22 +0000 (07:38 +0000)]
#
1745035 : add limits for command and data size to smtpd; patch by Savio Sena.
Georg Brandl [Fri, 3 Dec 2010 07:37:16 +0000 (07:37 +0000)]
Move entries from "core" section to where they belong.
R. David Murray [Fri, 3 Dec 2010 04:26:18 +0000 (04:26 +0000)]
Add missing versionchanged, correct 'throw' wording to 'raise'.
R. David Murray [Fri, 3 Dec 2010 04:06:39 +0000 (04:06 +0000)]
#
1486713 : Add a tolerant mode to HTMLParser.
The motivation for adding this option is that the the functionality it
provides used to be provided by sgmllib in Python2, and was used by,
for example, BeautifulSoup. Without this option, the Python3 version
of BeautifulSoup and the many programs that use it are crippled.
The original patch was by 'kxroberto'. I modified it heavily but kept his
heuristics and test. I also added additional heuristics to fix #975556,
#
1046092 , and part of #6191. This patch should be completely backward
compatible: the behavior with the default strict=True is unchanged.
Brian Curtin [Fri, 3 Dec 2010 02:46:02 +0000 (02:46 +0000)]
Fix #10554. Added context manager support to Popen objects.
Added a few common Popen uses to the tests like we've done for a few other
instances of adding context managers. Eventually the entire test suite
could be converted to use the context manager format.
Raymond Hettinger [Fri, 3 Dec 2010 02:33:53 +0000 (02:33 +0000)]
Update the itertools.accumulate() docs.
Michael Foord [Fri, 3 Dec 2010 02:27:44 +0000 (02:27 +0000)]
Remove test/__main__.py until runpy tests can be fixed
Raymond Hettinger [Fri, 3 Dec 2010 02:09:34 +0000 (02:09 +0000)]
Simplify the signature for itertools.accumulate() to match numpy. Handle one item iterable the same way as min()/max().
Michael Foord [Fri, 3 Dec 2010 02:03:30 +0000 (02:03 +0000)]
Set test.regrtest.TEMPDIR correctly when run with 'python -m test'
Benjamin Peterson [Fri, 3 Dec 2010 01:44:10 +0000 (01:44 +0000)]
code style
Michael Foord [Fri, 3 Dec 2010 01:34:01 +0000 (01:34 +0000)]
Initial implementation of Lib/test/__main__.py so we can run tests with 'python -m test'
Michael Foord [Fri, 3 Dec 2010 00:53:09 +0000 (00:53 +0000)]
Issue 7911: unittest.TestCase.longMessage defaults to True for improved failure messages by default
Georg Brandl [Thu, 2 Dec 2010 22:35:25 +0000 (22:35 +0000)]
Re-add accidentally removed line.
Éric Araujo [Thu, 2 Dec 2010 22:16:19 +0000 (22:16 +0000)]
Fix wrong test code in test_csv (#10602)
Daniel Stutzbach [Thu, 2 Dec 2010 21:55:33 +0000 (21:55 +0000)]
Issue9915: speeding up sorting with a key
R. David Murray [Thu, 2 Dec 2010 21:47:19 +0000 (21:47 +0000)]
#8989: add 'domain' keyword to make_msgid.
Patch by Adrian von Bidder.
Brian Curtin [Thu, 2 Dec 2010 18:29:18 +0000 (18:29 +0000)]
Fix #9333. Expose os.symlink on Windows only when usable.
In order to create symlinks on Windows, SeCreateSymbolicLinkPrivilege
is an account privilege that is required to be held by the user. Not only
must the privilege be enabled for the account, the activated privileges for
the currently running application must be adjusted to enable the requested
privilege.
Rather than exposing an additional function to be called prior to the user's
first os.symlink call, we handle the AdjustTokenPrivileges Windows API call
internally and only expose os.symlink when the privilege escalation was
successful.
Due to the change of only exposing os.symlink when it's available, we can
go back to the original test skipping methods of checking via `hasattr`.
Georg Brandl [Thu, 2 Dec 2010 18:06:51 +0000 (18:06 +0000)]
#7475: add (un)transform method to bytes/bytearray and str, add back codecs that can be used with them from Python 2.
Georg Brandl [Thu, 2 Dec 2010 18:02:01 +0000 (18:02 +0000)]
#10597: fix Py_SetPythonHome docs by pointing to where the meaning of PYTHONHOME is already documented.
David Malcolm [Thu, 2 Dec 2010 16:41:00 +0000 (16:41 +0000)]
Fix spelling of Jamie Zawinski's surname in urllib.parse docstring (issue 10606)
Georg Brandl [Thu, 2 Dec 2010 09:06:12 +0000 (09:06 +0000)]
Fix-up documentation of makedirs().
Terry Reedy [Thu, 2 Dec 2010 07:05:56 +0000 (07:05 +0000)]
Issue 9299 Add exist_ok parameter to os.makedirs to suppress 'File exists' exception. Patch by Ray Allen.
Raymond Hettinger [Thu, 2 Dec 2010 05:35:35 +0000 (05:35 +0000)]
Neaten-up random module docs.
Nick Coghlan [Thu, 2 Dec 2010 04:11:46 +0000 (04:11 +0000)]
Issue #9573: os.fork now works when triggered as a side effect of import (the wisdom of actually relying on this remains questionable!)
R. David Murray [Thu, 2 Dec 2010 02:58:07 +0000 (02:58 +0000)]
#10464: fix netrc handling of lines with embedded '#" characters.
Patch by Xuanji Li.
Raymond Hettinger [Thu, 2 Dec 2010 02:41:33 +0000 (02:41 +0000)]
Add an example to the random docs.
Raymond Hettinger [Thu, 2 Dec 2010 01:38:25 +0000 (01:38 +0000)]
Fix markup
Alexander Belopolsky [Thu, 2 Dec 2010 00:10:11 +0000 (00:10 +0000)]
Issue4335: Added a test for inspect.getsourcelines with a module without EOL at EOF.
Alexander Belopolsky [Thu, 2 Dec 2010 00:05:57 +0000 (00:05 +0000)]
With Raymond's approval added a paragraph describing Unicode 6.0.0 changes. Not reST formatted.
Raymond Hettinger [Wed, 1 Dec 2010 23:45:20 +0000 (23:45 +0000)]
Clean-up last update (missing comma, unnecessary spacing change, spurious backtick).
Raymond Hettinger [Wed, 1 Dec 2010 22:50:36 +0000 (22:50 +0000)]
Add itertools.accumulate().
Raymond Hettinger [Wed, 1 Dec 2010 22:48:00 +0000 (22:48 +0000)]
Add itertools.accumulate().
Alexander Belopolsky [Wed, 1 Dec 2010 21:55:40 +0000 (21:55 +0000)]
Reverted unintended change from r86916
Alexander Belopolsky [Wed, 1 Dec 2010 20:05:49 +0000 (20:05 +0000)]
Issue #4113: Added custom __repr__ method to functools.partial.
Georg Brandl [Wed, 1 Dec 2010 15:44:25 +0000 (15:44 +0000)]
Fix some markup and style in the unittest docs.
Georg Brandl [Wed, 1 Dec 2010 15:36:33 +0000 (15:36 +0000)]
#10594: fix parameter names in PyList API docs.
Georg Brandl [Wed, 1 Dec 2010 15:32:43 +0000 (15:32 +0000)]
Add missing word, and add a better reference to the actual function.
Raymond Hettinger [Wed, 1 Dec 2010 10:49:19 +0000 (10:49 +0000)]
Add recipe to itertools doc.
Raymond Hettinger [Wed, 1 Dec 2010 03:45:41 +0000 (03:45 +0000)]
Issue 10593: Adopt Nick's suggestion for an lru_cache with maxsize=None.
Ezio Melotti [Wed, 1 Dec 2010 02:32:32 +0000 (02:32 +0000)]
#10273: Rename assertRegexpMatches and assertRaisesRegexp to assertRegex and assertRaisesRegex.
Ezio Melotti [Wed, 1 Dec 2010 01:45:53 +0000 (01:45 +0000)]
Fix test failure in debug builds and add NEWS entry for r86908
Ezio Melotti [Wed, 1 Dec 2010 00:56:10 +0000 (00:56 +0000)]
#10535: Enable silenced warnings in unittest by default
Raymond Hettinger [Wed, 1 Dec 2010 00:47:56 +0000 (00:47 +0000)]
Doc and docstring nits.
Brian Curtin [Tue, 30 Nov 2010 23:46:54 +0000 (23:46 +0000)]
Fix #10591. Fix test_os for refleak runs.
Split a common setUp/tearDown into the appropriate parts.
Antoine Pitrou [Tue, 30 Nov 2010 22:23:20 +0000 (22:23 +0000)]
Issue #8685: Speed up set difference `a - b` when source set `a` is
much larger than operand `b`. Patch by Andrew Bennetts.
Raymond Hettinger [Tue, 30 Nov 2010 20:32:59 +0000 (20:32 +0000)]
Add link to specification.
Raymond Hettinger [Tue, 30 Nov 2010 20:02:57 +0000 (20:02 +0000)]
Documentation nits.
Raymond Hettinger [Tue, 30 Nov 2010 19:15:45 +0000 (19:15 +0000)]
Add example, tighten text, and minor clean-ups.
Daniel Stutzbach [Tue, 30 Nov 2010 17:49:53 +0000 (17:49 +0000)]
Fix typo: "ofbytes" should be "of bytes"
Raymond Hettinger [Tue, 30 Nov 2010 17:45:41 +0000 (17:45 +0000)]
Add some internal links.
Alexander Belopolsky [Tue, 30 Nov 2010 17:30:43 +0000 (17:30 +0000)]
Issue #9598: untabify.py will now respect encoding cookie in the files it processes
Éric Araujo [Tue, 30 Nov 2010 17:20:31 +0000 (17:20 +0000)]
Let’s keep “throw” for the generator method and use “raise” elsewhere.
Alexander Belopolsky [Tue, 30 Nov 2010 16:56:15 +0000 (16:56 +0000)]
Issue #10552: Partially fixed a sort error in Tools/unicode/gencodec.py
Brian Curtin [Tue, 30 Nov 2010 15:54:04 +0000 (15:54 +0000)]
Actually fix what I attempted to fix in r86888...
Nick Coghlan [Tue, 30 Nov 2010 15:48:08 +0000 (15:48 +0000)]
Issue 9873: the URL parsing functions now accept ASCII encoded byte sequences in addition to character strings
Brian Curtin [Tue, 30 Nov 2010 15:40:04 +0000 (15:40 +0000)]
Try to fix failures on platforms that can't encode the test characters.
Skip the test if encoding fails.
Georg Brandl [Tue, 30 Nov 2010 14:57:54 +0000 (14:57 +0000)]
Fix typo.