]>
granicus.if.org Git - python/log
Eric Smith [Sat, 4 Dec 2010 17:12:41 +0000 (17:12 +0000)]
More issue #10624: Add requires_IEEE_754 to __all__.
Georg Brandl [Sat, 4 Dec 2010 17:11:36 +0000 (17:11 +0000)]
Fix test suite to not activate new sigint behavior in pdb.
Georg Brandl [Sat, 4 Dec 2010 17:09:30 +0000 (17:09 +0000)]
Fix typo.
Georg Brandl [Sat, 4 Dec 2010 16:22:44 +0000 (16:22 +0000)]
Fix accidental checkin.
Georg Brandl [Sat, 4 Dec 2010 16:21:42 +0000 (16:21 +0000)]
Add display/undisplay pdb commands.
Georg Brandl [Sat, 4 Dec 2010 16:00:47 +0000 (16:00 +0000)]
#7245: Add a SIGINT handler on continue in pdb that allows to break a program again by pressing Ctrl-C.
Eric Smith [Sat, 4 Dec 2010 15:26:13 +0000 (15:26 +0000)]
Issue 10625: Add tests for negative zeros in complex str and repr.
Eric Smith [Sat, 4 Dec 2010 15:17:38 +0000 (15:17 +0000)]
Issue #10624: Use support.requires_IEEE_754 in all appropriate tests.
Martin v. Löwis [Sat, 4 Dec 2010 13:49:32 +0000 (13:49 +0000)]
Fix PEP number.
Łukasz Langa [Sat, 4 Dec 2010 13:48:13 +0000 (13:48 +0000)]
support for checking test coverage added.
70% coverage at the moment (not tragic but needs work).
Eric Smith [Sat, 4 Dec 2010 13:32:18 +0000 (13:32 +0000)]
Issue #10624: Move requires_IEEE_754 into test.support. I'll fix up other uses of it shortly.
Eric Smith [Sat, 4 Dec 2010 13:27:34 +0000 (13:27 +0000)]
Removed static function complex_format, moved it into complex_repr. Modified tests to check both str and repr, which are the same for complex.
Mark Dickinson [Sat, 4 Dec 2010 13:14:29 +0000 (13:14 +0000)]
Use copysign to produce appropriately signed zeros instead of trying to worm around possible compiler optimizations.
Łukasz Langa [Sat, 4 Dec 2010 12:46:01 +0000 (12:46 +0000)]
configparser: fixed inconsistency where in SafeConfigParser option values
were ensured to be strings but section names and option keys were not.
Behaviour unchanged for RawConfigParser and ConfigParser.
Mark Dickinson [Sat, 4 Dec 2010 12:25:30 +0000 (12:25 +0000)]
Issue #10596: Fix float.__mod__ to have the same behaviour as
float.__divmod__ with respect to signed zeros.
Hirokazu Yamamoto [Sat, 4 Dec 2010 12:20:57 +0000 (12:20 +0000)]
I hope this will fix Win2008(x64) buildbot error.
Martin v. Löwis [Sat, 4 Dec 2010 12:00:49 +0000 (12:00 +0000)]
Expose CompileString, not CompileStringFlags under the
limited API.
Mark Dickinson [Sat, 4 Dec 2010 11:52:58 +0000 (11:52 +0000)]
Remove some unecessary '#ifdef Py_NAN's from floatobject.c
Łukasz Langa [Sat, 4 Dec 2010 11:48:11 +0000 (11:48 +0000)]
configparser: minute refactoring of RawConfigParser.items()
Gregory P. Smith [Sat, 4 Dec 2010 11:36:58 +0000 (11:36 +0000)]
issue10622: fix superflous scrollbar on the right side of <pre> boxes in the
generated html docs. visible in chrome, possibly other webkit browsers.
Gregory P. Smith [Sat, 4 Dec 2010 11:22:11 +0000 (11:22 +0000)]
issue6559: Adds a pass_fds parameter to subprocess.Popen that allows the caller
to list exactly which file descriptors should be kept open.
Georg Brandl [Sat, 4 Dec 2010 11:20:26 +0000 (11:20 +0000)]
Add the "interact" pdb command from pdb++.
Georg Brandl [Sat, 4 Dec 2010 11:12:43 +0000 (11:12 +0000)]
#7905: Actually respect the keyencoding parameter to shelve.Shelf.
Mark Dickinson [Sat, 4 Dec 2010 11:06:25 +0000 (11:06 +0000)]
Fix indentation in Objects/longobject.c
Georg Brandl [Sat, 4 Dec 2010 11:02:04 +0000 (11:02 +0000)]
#
1569291 : speed up array.repeat() by making only O(log n) memcpy() calls; the code follows unicode_repeat.
Georg Brandl [Sat, 4 Dec 2010 10:47:18 +0000 (10:47 +0000)]
#
1772833 : add -q command line option.
Georg Brandl [Sat, 4 Dec 2010 10:39:14 +0000 (10:39 +0000)]
#
1513299 : cleanup some map() uses where a comprehension works better.
Georg Brandl [Sat, 4 Dec 2010 10:26:46 +0000 (10:26 +0000)]
Add an "optimize" parameter to compile() to control the optimization level, and provide an interface to it in py_compile, compileall and PyZipFile.
Hirokazu Yamamoto [Sat, 4 Dec 2010 10:16:05 +0000 (10:16 +0000)]
Fixed several corner case issues on os.stat/os.lstat related to reparse
points. (Windows)
- Set S_IEXEC via final path name not link name.
- Set S_IFLNK also via FindFirstFile (when CreateFile fails)
Gregory P. Smith [Sat, 4 Dec 2010 09:59:52 +0000 (09:59 +0000)]
refactor the warning test.
Senthil Kumaran [Sat, 4 Dec 2010 09:44:30 +0000 (09:44 +0000)]
Add the NEWS entry for issue7904
Georg Brandl [Sat, 4 Dec 2010 09:14:36 +0000 (09:14 +0000)]
#6045: provide at least get() and setdefault() for all dbm modules.
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.