Commit Graph

39900 Commits

Author SHA1 Message Date
Martin v. Löwis 8c43641271 Patch #1622: Correct interpretation of various ZIP header fields.
Also fixes
- Issue #1526: Allow more than 64k files to be added to Zip64 file.

- Issue #1746: Correct handling of zipfile archive comments (previously
  archives with comments over 4k were flagged as invalid). Allow writing
  Zip files with archives by setting the 'comment' attribute of a ZipFile.
2008-07-03 12:51:14 +00:00
Andrew M. Kuchling f5d2b4ce93 Tweak wording 2008-07-03 12:50:03 +00:00
Amaury Forgeot d'Arc 968117e974 Try a blind fix to nismodule which fails on the solaris10 3.0 buildbot:
the GIL must be re-acquired in the callback function
2008-07-02 23:40:28 +00:00
Brett Cannon 0bfac6e5d8 Revert r64673 and instead just change the file encoding. 2008-07-02 21:52:42 +00:00
Brett Cannon 3bff9d269c FIx some Latin-1 characters to be UTF-8 as the file encoding specifies.
Closes issue #3261. THankjs Leo Soto for the bug report.
2008-07-02 21:40:11 +00:00
Jesse Noller 76cf55f499 Add #!/usr/bin/env python for ben 2008-07-02 16:56:51 +00:00
Facundo Batista 66c527755d Issue #449227: Now with the rlcompleter module, callable objects are
added a '(' when completed.
2008-07-02 16:52:55 +00:00
Jesse Noller 146b7ab818 Reenable the manager tests with Amaury's threading fix 2008-07-02 16:44:09 +00:00
Nick Coghlan c060b0e7eb Issue 3190: pydoc now hides module __package__ attributes 2008-07-02 13:09:19 +00:00
Mark Dickinson 70c3289085 Replace occurrences of '\d' with '[0-9]' in Decimal regex, to make sure
that the behaviour of Decimal doesn't change if/when re.UNICODE becomes
assumed in Python 3.0.

Also add a check that alternative Unicode digits (e.g. u'\N{FULLWIDTH
DIGIT ONE}') are *not* accepted in a numeric string.
2008-07-02 09:37:01 +00:00
Brett Cannon 8bb8fa5dd6 Handle urllib's renaming for Python 3.0:
* Deprecate urllib.urlopen() in favor of urllib2.urlopen() for 3.0.
* Update docs to mention split/rename of the module and deprecation of
  urlopen().

Changes to lib2to3 are in a separate commit. Work is for issue #2885.
2008-07-02 01:57:08 +00:00
Benjamin Peterson aac51b8a69 add ABC to the glossary 2008-07-01 23:33:06 +00:00
Georg Brandl aa76d77e2b Add a comment about incref'ing w. 2008-07-01 20:56:03 +00:00
Georg Brandl 3214a01d27 #1410739: add a footnote about "is" and "unusual" behavior. 2008-07-01 20:50:02 +00:00
Georg Brandl 1e0eefc4a1 #1523853: add note about fread(). 2008-07-01 20:45:09 +00:00
Amaury Forgeot d'Arc bdd941fac3 #3242: fix a crash in "print", if sys.stdout is set to a custom object,
whose write() method installs another sys.stdout.

Will backport.
2008-07-01 20:38:04 +00:00
Georg Brandl dbd0ae383d #3216: fix Execute's parameter description. 2008-07-01 20:18:10 +00:00
Georg Brandl 68b4e74a8d Add a link to PEP 324. 2008-07-01 19:59:00 +00:00
Benjamin Peterson a6a72923c7 write a short little section for multiprocessing; it still needs help 2008-07-01 19:51:54 +00:00
Benjamin Peterson 175e4d9663 #3219 repeated keyword arguments aren't allowed in function calls anymore 2008-07-01 19:34:52 +00:00
Amaury Forgeot d'Arc 1f40c8a8d7 #Issue3088 in-progress: Race condition with instances of classes derived from threading.local:
When a thread touches such an object for the first time, a new thread-local __dict__ is created,
and the __init__ method is run.
But a thread switch can occur here; if the other thread touches the same object, it installs another
__dict__; when the first thread resumes, it updates the dictionary of the second...

This is the deep cause of the failures in test_multiprocessing involving "managers" objects.

Also a 2.5 backport candidate.
2008-06-30 22:42:40 +00:00
Martin v. Löwis 1d2ce45689 Add _multiprocessing module. 2008-06-30 07:01:09 +00:00
Martin v. Löwis d84fd9599d Issue #3215: Build sqlite3 as sqlite3.dll, not sqlite3.pyd 2008-06-30 06:57:39 +00:00
Facundo Batista 763d309bba Fix #2702, with a correct accounting of recursion. 2008-06-30 01:10:55 +00:00
Vinay Sajip 1e022689b7 Updated to reflect change in logging.config to remove out-of-date comment in _install_handlers and the use of issubclass in place of equality comparison of classes. 2008-06-29 21:27:15 +00:00
Vinay Sajip 5ff7171ddc Removed out-of-date comment in _install_handlers and
used issubclass in place of equality comparison of classes.
2008-06-29 21:25:28 +00:00
Benjamin Peterson b7b8bff532 reinstate the ending backtick. thanks Nick :) 2008-06-29 13:43:07 +00:00
Benjamin Peterson efc4a3ac17 fix typo 2008-06-28 23:35:31 +00:00
Benjamin Peterson 6e4856a146 rewrap 2008-06-28 23:06:49 +00:00
Benjamin Peterson 7416a4cd2a convert test_audioop to unittest. Thanks to Giampaolo Rodola. 2008-06-28 23:06:05 +00:00
Bill Janssen de34d91eb0 make sure we close the active channels when eof is received on them 2008-06-28 23:00:39 +00:00
Bill Janssen 934b16d0c2 various SSL fixes; issues 1251, 3162, 3212 2008-06-28 22:19:33 +00:00
Raymond Hettinger a27474c345 Issue 3230: Do not the set specific size macro. 2008-06-28 22:16:53 +00:00
Benjamin Peterson 77cec6ea23 fix typo 2008-06-28 13:18:14 +00:00
Hye-Shik Chang 99c48a8d31 Give information for compililation of _multiprocessing.SemLock on FreeBSD:
FreeBSD's P1003.1b semaphore support is highly experimental and
it's disabled by default.  Even if a user loads the experimental
kernel module manually, _multiprocessing doesn't work correctly due
to several known incompatibilities around sem_unlink and sem_getvalue,
yet.
2008-06-28 01:04:31 +00:00
Benjamin Peterson 910c2ab674 edit multiprocessing docs 2008-06-27 23:22:06 +00:00
Mark Dickinson dc1688adbf Fix typo in configure.in, and propagate configure.in changes from r64002
to configure and pyconfig.h.in.
2008-06-27 22:20:14 +00:00
Raymond Hettinger ee51cffc95 Fix whitespace in example code. 2008-06-27 21:34:24 +00:00
Mark Dickinson df90ee6c5f Issue #3197: rework documentation for fractions module. 2008-06-27 16:49:27 +00:00
Mark Dickinson f1458485b3 Add Jean Brouwers for his work on math.sum 2008-06-27 11:03:21 +00:00
Mark Dickinson 3af386a5cb Remove trailing 'L's from numerator and denominator in the
repr() of a Fraction instance.
2008-06-27 10:11:52 +00:00
Trent Nelson 6e7e137cff Merged revisions 64368-64369 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/tnelson-trunk-bsddb-47-upgrade

........
  r64368 | trent.nelson | 2008-06-17 23:13:44 -0500 (Tue, 17 Jun 2008) | 1 line

  Initial commit of work pertaining to switching the Windows build from Berkeley DB 4.4.20 to 4.7.25.  Note that I've deprecated the standalone '_bsddb44.vcproj' in lieu of adding the sources in a separate folder to the _bsddb project.  This was a conscious decision and actually makes everything far more easier to manage.  With this approach, entire test suite passed straight off the bat.  Well, almost -- the timeout in bsddb/test/test_replication.py needed bumping up a little -- 2 seconds was too short.  10 seconds seems to be fine for me, but I'll make sure Jesus verifies.  More documentation to come once I've been able to test out this approach on the buildbots (hence keeping the changes in a separate branch for now).
........
  r64369 | trent.nelson | 2008-06-17 23:19:12 -0500 (Tue, 17 Jun 2008) | 1 line

  Bump Berkeley DB version from 4.4.20 to 4.7.25.
........
2008-06-27 02:30:34 +00:00
Trent Nelson d4a224bd80 Initialized merge tracking via "svnmerge" with revisions "1-64347" from
svn+ssh://pythondev@svn.python.org/python/branches/tnelson-trunk-bsddb-47-upgrade
2008-06-27 02:24:49 +00:00
Brett Cannon 15b7b81b20 Ignore .pyc and .pyo files. 2008-06-27 00:32:16 +00:00
Brett Cannon dea1b5653f warnings.warn_explicit() did not have the proper TypeErrors in place to prevent
bus errors or SystemError being raised. As a side effect of fixing this, a bad
DECREF that could be triggered when 'message' and 'category' were both None was
fixed.

Closes issue 3211. Thanks JP Calderone for the bug report.
2008-06-27 00:31:13 +00:00
Benjamin Peterson 80821f7cf4 fix isSet in _exposed 2008-06-26 21:29:19 +00:00
Benjamin Peterson 0adfd93f6f use the new API 2008-06-26 21:24:35 +00:00
Benjamin Peterson b279b8a541 add a htmlview directive 2008-06-26 21:23:30 +00:00
Georg Brandl aa7c8bda63 Use newer versions of externals. 2008-06-26 21:12:55 +00:00
Georg Brandl 910df2fc4e Add a version tag for shutdown(). 2008-06-26 18:55:37 +00:00