Commit Graph

44634 Commits

Author SHA1 Message Date
Georg Brandl c29cc6a8f2 #1569291: speed up array.repeat() by making only O(log n) memcpy() calls; the code follows unicode_repeat. 2010-12-04 11:02:04 +00:00
Georg Brandl 9d8711964f #1772833: add -q command line option. 2010-12-04 10:47:18 +00:00
Georg Brandl cbd2ab1311 #1513299: cleanup some map() uses where a comprehension works better. 2010-12-04 10:39:14 +00:00
Georg Brandl 8334fd9285 Add an "optimize" parameter to compile() to control the optimization level, and provide an interface to it in py_compile, compileall and PyZipFile. 2010-12-04 10:26:46 +00:00
Hirokazu Yamamoto 427d3149eb 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)
2010-12-04 10:16:05 +00:00
Gregory P. Smith b4162305bb refactor the warning test. 2010-12-04 09:59:52 +00:00
Senthil Kumaran 10064e9d7a Add the NEWS entry for issue7904 2010-12-04 09:44:30 +00:00
Georg Brandl d9e833c70a #6045: provide at least get() and setdefault() for all dbm modules. 2010-12-04 09:14:36 +00:00
Martin v. Löwis da72231c9f Regenerate. 2010-12-04 09:12:14 +00:00
Martin v. Löwis 81c9b45905 Add Revision keyword. 2010-12-04 09:11:41 +00:00
Gregory P. Smith d23047b62c 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)
2010-12-04 09:10:44 +00:00
Martin v. Löwis 35f08f0f84 Make script 2-vs-3-agnostic. 2010-12-04 09:08:10 +00:00
Georg Brandl e8b0d619b9 Fix typo. 2010-12-04 09:04:04 +00:00
Alexander Belopolsky 942af5a9a4 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.
2010-12-04 03:38:46 +00:00
Michael Foord 36526bf3d9 Correct comment in unittest test 2010-12-04 01:43:59 +00:00
Michael Foord 37d120aeb4 Issue 10620: Specifying test modules by path instead of module name to 'python -m unittest' 2010-12-04 01:11:21 +00:00
Martin v. Löwis e2bb4eb77b 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
........
2010-12-03 23:11:07 +00:00
Terry Reedy 4b9b197518 Issue #10534: add NEWS entry for r86983 and r87000. 2010-12-03 22:50:06 +00:00
Terry Reedy bcd8988a12 Issue 10534 deprecate isbjunk and isbpopular methods.
Will add gone in 3.3 test later.
2010-12-03 22:29:40 +00:00
Łukasz Langa 3a11e717aa %s -> %r correction after review by Éric Araujo 2010-12-03 22:15:19 +00:00
Martin v. Löwis 4d0d471a80 Merge branches/pep-0384. 2010-12-03 20:14:31 +00:00
Antoine Pitrou c4df784514 Issue #10272: The ssl module now raises socket.timeout instead of a generic
SSLError on socket timeouts.
2010-12-03 19:59:41 +00:00
Georg Brandl 500be24a64 Fix indentation. 2010-12-03 19:56:42 +00:00
Éric Araujo bb48a8b59a 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.
2010-12-03 19:41:00 +00:00
Michael Foord add7cbfb05 Fix so that test.test_unittest can be executed by unittest and not just regrtest 2010-12-03 19:20:44 +00:00
Éric Araujo a9c7a8fa5b 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.
2010-12-03 19:19:17 +00:00
Antoine Pitrou bed81c882b Add an "advanced topics" section to the io doc. 2010-12-03 19:14:17 +00:00
Terry Reedy 74a7c67db1 2010-12-03 18:57:42 +00:00
Antoine Pitrou f3b68b3f98 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.
2010-12-03 18:41:39 +00:00
Georg Brandl 38e117d20a Fix punctuation. 2010-12-03 17:19:27 +00:00
Victor Stinner ebc0052e3a import: use PyUnicode_FSConverter to support bytes path and PEP 383
(instead of PyArg_Parse*() with "es" format and Py_FileSystemDefaultEncoding)
2010-12-03 17:06:43 +00:00
Victor Stinner f961377e99 #6780: fix complex() constructor TypeError message 2010-12-03 16:51:33 +00:00
Łukasz Langa b6a6f5f886 Issue 10499: Modular interpolation in configparser 2010-12-03 16:28:00 +00:00
Nick Coghlan ecace28ef4 Handle Windows paths and don't double up on HTML header sections in new pydoc URL handler 2010-12-03 16:08:46 +00:00
Georg Brandl 1eb40bc945 Markup consistency fixes. 2010-12-03 15:30:09 +00:00
Nick Coghlan a5240701fc Add missing CSS file from r86962 2010-12-03 14:30:41 +00:00
Nick Coghlan 37ee850b10 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
2010-12-03 14:26:13 +00:00
Vinay Sajip fad058f0ca logging: tidied up some docstrings. 2010-12-03 13:01:11 +00:00
Michael Foord 3ab34ccae3 Factor out common code from lib/test/__main__.py and lib/test/regrtest.py into a function. 2010-12-03 12:27:40 +00:00
Vinay Sajip 615615291f logging: Added getLogRecordFactory/setLogRecordFactory with docs and tests. 2010-12-03 11:50:38 +00:00
Michael Foord 97cbb76ee3 Fix lib/test/__main__.py to work even outside a Python build. 2010-12-03 10:59:15 +00:00
Michael Foord ee4a5e0ca8 Adding lib/test/__main__.py for running tests with 'python -m test' 2010-12-03 10:42:03 +00:00
Georg Brandl 9bd45f995f #10549: fix interface of docclass() for text documenter. 2010-12-03 09:58:38 +00:00
Georg Brandl 34e9fc2e82 Add a line with the actual changes. 2010-12-03 09:45:33 +00:00
Nick Coghlan 7bb30b72d8 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.
2010-12-03 09:29:11 +00:00
Georg Brandl 9af2a6e56f Rewrap NEWS (Builbot test commit.) 2010-12-03 09:18:37 +00:00
Georg Brandl f8de3fea12 #10360: catch TypeError in WeakSet.__contains__, just like WeakKeyDictionary does. 2010-12-03 07:55:44 +00:00
Georg Brandl 3b9406b08a Remove redundant check for PyBytes in unicode_encode. 2010-12-03 07:54:09 +00:00
Georg Brandl bd87d0862b Use booleans. 2010-12-03 07:49:09 +00:00
Georg Brandl d80d5f4ee8 #940286: pydoc.Helper.help() ignores input/output init parameters. 2010-12-03 07:47:22 +00:00