]>
granicus.if.org Git - python/log
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.
Georg Brandl [Tue, 30 Nov 2010 09:41:01 +0000 (09:41 +0000)]
Remove redundant includes of headers that are already included by Python.h.
Georg Brandl [Tue, 30 Nov 2010 09:30:54 +0000 (09:30 +0000)]
Include structseq.h in Python.h, and remove now-redundant includes in individual sources.
Georg Brandl [Tue, 30 Nov 2010 08:20:16 +0000 (08:20 +0000)]
Fix input type for zlib.
Georg Brandl [Tue, 30 Nov 2010 07:43:28 +0000 (07:43 +0000)]
#10584: fix bad links.
Raymond Hettinger [Tue, 30 Nov 2010 07:13:04 +0000 (07:13 +0000)]
Neaten-up a bit.
Nick Coghlan [Tue, 30 Nov 2010 06:36:04 +0000 (06:36 +0000)]
Issue 10220: switch to using string constants rather than integers for inspect.getgeneratorstate() return values and make debugging friendly str() and repr() for generator states a requirement in the test suite
Nick Coghlan [Tue, 30 Nov 2010 06:19:46 +0000 (06:19 +0000)]
Issue 10586: change the new functools.lru_cache implementation to expose the maximum and current cache sizes through the public statistics API. This API is now a single function that returns a named tuple.
Alexander Belopolsky [Tue, 30 Nov 2010 03:03:30 +0000 (03:03 +0000)]
Issue #10572: Moved json tests to Lib/test/json_tests.
Approved by Raymond Hettinger.
Raymond Hettinger [Tue, 30 Nov 2010 02:49:29 +0000 (02:49 +0000)]
Issue #10323: Predictable final state for slice().
Georg Brandl [Mon, 29 Nov 2010 20:19:15 +0000 (20:19 +0000)]
Use booleans where applicable.
Georg Brandl [Mon, 29 Nov 2010 20:12:24 +0000 (20:12 +0000)]
Code style cleanup in bdb.
Georg Brandl [Mon, 29 Nov 2010 14:53:15 +0000 (14:53 +0000)]
Fix heading style inconsistencies.
Georg Brandl [Mon, 29 Nov 2010 14:50:54 +0000 (14:50 +0000)]
Fix indentation bug.
Senthil Kumaran [Mon, 29 Nov 2010 12:42:29 +0000 (12:42 +0000)]
Remove the comment used while testing.
Senthil Kumaran [Mon, 29 Nov 2010 11:54:17 +0000 (11:54 +0000)]
Fix #10561 - Fix pdb behavior. Delete the breakpoints by breakpoint number.
Handle multiple breakpoints at same line. Update docs/test.
Patch by Xavier de Gaye.
Raymond Hettinger [Mon, 29 Nov 2010 03:56:12 +0000 (03:56 +0000)]
Issue #10565: Iterator ABC should require both __next__ and __iter__.
Ezio Melotti [Mon, 29 Nov 2010 02:02:10 +0000 (02:02 +0000)]
Use assertCountEqual instead of assertItemsEqual
Raymond Hettinger [Mon, 29 Nov 2010 01:38:25 +0000 (01:38 +0000)]
Do not add an obsolete unittest name to Py3.2.
Brian Curtin [Sun, 28 Nov 2010 23:59:46 +0000 (23:59 +0000)]
Fix for #8879.
Amaury noticed that this was originally written in a way that would fail on
names that can't be encoded with the mbcs codec. Restructured the function
to work with wide names first then narrow names second, to fall in line
with the way other functions are written in posixmodule.c.
Ezio Melotti [Sun, 28 Nov 2010 04:18:54 +0000 (04:18 +0000)]
Add callable() to the built-in functions table.
Benjamin Peterson [Sun, 28 Nov 2010 02:51:28 +0000 (02:51 +0000)]
there's now a setup.py switch for this
Stefan Krah [Sat, 27 Nov 2010 22:06:49 +0000 (22:06 +0000)]
Windows: fix leak in posix_listdir.
Antoine Pitrou [Sat, 27 Nov 2010 22:00:11 +0000 (22:00 +0000)]
Issue #10518: Bring back the callable() builtin.
Approved by Guido (BDFL) and Georg (RM).
Terry Reedy [Sat, 27 Nov 2010 20:52:14 +0000 (20:52 +0000)]
Add version-added note twice for new difflib SequenceMatcher autojunk parameter.
Antoine Pitrou [Sat, 27 Nov 2010 20:40:43 +0000 (20:40 +0000)]
Make doc for PyErr_Format() up to date.