]> granicus.if.org Git - python/log
python
15 years ago#6079: use 3k except syntax in examples.
Georg Brandl [Fri, 22 May 2009 16:44:06 +0000 (16:44 +0000)]
#6079: use 3k except syntax in examples.

15 years agoRecorded merge of revisions 72830 via svnmerge from
Georg Brandl [Fri, 22 May 2009 10:44:31 +0000 (10:44 +0000)]
Recorded merge of revisions 72830 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72830 | georg.brandl | 2009-05-22 12:40:00 +0200 (Fr, 22 Mai 2009) | 1 line

  #6086: fix spelling and use a better exception to catch.
........

15 years agoBlocked revisions 72828 via svnmerge
Georg Brandl [Fri, 22 May 2009 10:01:58 +0000 (10:01 +0000)]
Blocked revisions 72828 via svnmerge

........
  r72828 | georg.brandl | 2009-05-22 11:58:48 +0200 (Fr, 22 Mai 2009) | 1 line

  Correction in softspace behavior description.
........

15 years agoRecorded merge of revisions 72813 via svnmerge from
Georg Brandl [Fri, 22 May 2009 07:38:58 +0000 (07:38 +0000)]
Recorded merge of revisions 72813 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72813 | raymond.hettinger | 2009-05-22 03:06:44 +0200 (Fr, 22 Mai 2009) | 1 line

  Fix-up moving average example.
........

15 years agoMerged revisions 72817 via svnmerge from
Philip Jenvey [Fri, 22 May 2009 05:46:35 +0000 (05:46 +0000)]
Merged revisions 72817 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72817 | philip.jenvey | 2009-05-21 22:35:32 -0700 (Thu, 21 May 2009) | 4 lines

  don't use subprocess.call with PIPEs as the child can fill the pipe buf and
  deadlock. add a warning to subprocess docs about this, similar to Popen.wait's.
  refs http://bugs.jython.org/issue1351
........

15 years agoFix-up moving average example.
Raymond Hettinger [Fri, 22 May 2009 01:11:26 +0000 (01:11 +0000)]
Fix-up moving average example.

15 years agoRefactor to remove duplicated nan/inf parsing code in
Mark Dickinson [Wed, 20 May 2009 22:05:25 +0000 (22:05 +0000)]
Refactor to remove duplicated nan/inf parsing code in
pystrtod.c, floatobject.c and dtoa.c.

15 years agoMerged revisions 72776,72796 via svnmerge from
Jeffrey Yasskin [Wed, 20 May 2009 19:09:05 +0000 (19:09 +0000)]
Merged revisions 72776,72796 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72776 | jeffrey.yasskin | 2009-05-18 14:14:54 -0700 (Mon, 18 May 2009) | 6 lines

  While I was modifying test_trace, it threw an exception when I accidentally
  made it try to set the line number from the trace callback for a 'call' event.
  This patch makes the error message a little more helpful in that case, and
  makes it a little less likely that a future editor will make the same mistake
  in test_trace.
........
  r72796 | jeffrey.yasskin | 2009-05-20 10:57:57 -0700 (Wed, 20 May 2009) | 3 lines

  Fix issue #1689458 by teaching frame_setlineno how to jump to the first line of
  a code object.
........

15 years agoBlocked revisions 72805 via svnmerge
Mark Dickinson [Wed, 20 May 2009 18:43:28 +0000 (18:43 +0000)]
Blocked revisions 72805 via svnmerge

........
  r72805 | mark.dickinson | 2009-05-20 19:43:07 +0100 (Wed, 20 May 2009) | 1 line

  Issue #5829: don't raise OverflowError for complex('1e500').  Backport of r72803.
........

15 years agoIssue #5829: complex('1e500') shouldn't raise OverflowError
Mark Dickinson [Wed, 20 May 2009 18:41:04 +0000 (18:41 +0000)]
Issue #5829: complex('1e500') shouldn't raise OverflowError

15 years agoMerged revisions 72799 via svnmerge from
Georg Brandl [Wed, 20 May 2009 18:25:10 +0000 (18:25 +0000)]
Merged revisions 72799 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72799 | georg.brandl | 2009-05-20 20:24:08 +0200 (Mi, 20 Mai 2009) | 1 line

  Update bug tracker URL.
........

15 years agoMerged revisions 72794 via svnmerge from
Mark Dickinson [Wed, 20 May 2009 17:57:28 +0000 (17:57 +0000)]
Merged revisions 72794 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72794 | mark.dickinson | 2009-05-20 18:55:31 +0100 (Wed, 20 May 2009) | 1 line

  typos in ctypes Module
........

15 years agoMerge r72792: POP_MARK was not in pickle protocol 0, SHORT_BINBYTES was not in protoc...
Collin Winter [Wed, 20 May 2009 17:46:47 +0000 (17:46 +0000)]
Merge r72792: POP_MARK was not in pickle protocol 0, SHORT_BINBYTES was not in protocol 1.

15 years agoMerged revisions 72789 via svnmerge from
Ronald Oussoren [Tue, 19 May 2009 19:30:44 +0000 (19:30 +0000)]
Merged revisions 72789 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72789 | ronald.oussoren | 2009-05-19 21:29:24 +0200 (Tue, 19 May 2009) | 2 lines

  Remove some traces of 'MacPython'
........

15 years agoMerged revisions 72787 via svnmerge from
Ronald Oussoren [Tue, 19 May 2009 19:07:43 +0000 (19:07 +0000)]
Merged revisions 72787 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72787 | ronald.oussoren | 2009-05-19 21:06:38 +0200 (Tue, 19 May 2009) | 8 lines

  This patch ensures that the pydoc_data package gets installed. This is needed
  to make it possible to use pydoc to get access to the language reference.

  That is, without this patch the folllowing won't work:

     >>> help('if')
........

15 years agoNote that ordered dictionaries work with reversed().
Raymond Hettinger [Tue, 19 May 2009 17:40:07 +0000 (17:40 +0000)]
Note that ordered dictionaries work with reversed().

15 years agoMerged revisions 72781 via svnmerge from
Tarek Ziadé [Tue, 19 May 2009 16:22:57 +0000 (16:22 +0000)]
Merged revisions 72781 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72781 | tarek.ziade | 2009-05-19 18:17:21 +0200 (Tue, 19 May 2009) | 1 line

  fixed the 'package' option of build_ext
........

15 years agoMACOSX
Ronald Oussoren [Tue, 19 May 2009 11:27:25 +0000 (11:27 +0000)]
MACOSX

* Remove junk documentation resources from the Python.app inside the framework
  (This is a left-over from the ancient Python IDE, which was removed before 2.5)
* Ensure that the documentation is installed in a location where IDLE will see it

15 years agoMerged revisions 72777 via svnmerge from
Collin Winter [Mon, 18 May 2009 22:32:26 +0000 (22:32 +0000)]
Merged revisions 72777 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72777 | collin.winter | 2009-05-18 14:35:40 -0700 (Mon, 18 May 2009) | 1 line

  Issue 6032: fix refleaks in test_urllib2_localnet.
........

15 years agoIssue 6037: MutableSequence.__iadd__ should return self.
Raymond Hettinger [Mon, 18 May 2009 15:35:26 +0000 (15:35 +0000)]
Issue 6037: MutableSequence.__iadd__ should return self.

15 years agoMerged revisions 72768 via svnmerge from
Tarek Ziadé [Mon, 18 May 2009 12:29:06 +0000 (12:29 +0000)]
Merged revisions 72768 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72768 | tarek.ziade | 2009-05-18 14:21:26 +0200 (Mon, 18 May 2009) | 1 line

  Fixed #6053 - win32 fixes for distutils tests
........

15 years agoMerged revisions 72764 via svnmerge from
Tarek Ziadé [Mon, 18 May 2009 08:22:38 +0000 (08:22 +0000)]
Merged revisions 72764 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72764 | tarek.ziade | 2009-05-18 10:20:55 +0200 (Mon, 18 May 2009) | 1 line

  working with relative paths to avoid tar warnings on absolute paths
........

15 years agoMerged revisions 72758 via svnmerge from
Tarek Ziadé [Mon, 18 May 2009 08:07:46 +0000 (08:07 +0000)]
Merged revisions 72758 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72758 | tarek.ziade | 2009-05-18 10:03:37 +0200 (Mon, 18 May 2009) | 1 line

  Fixed the library extension when distutils build_ext is used inplace
........

15 years agoRemove trailing whitespace.
Georg Brandl [Sun, 17 May 2009 22:19:14 +0000 (22:19 +0000)]
Remove trailing whitespace.

15 years agoIssue 5964: Fixed WeakSet __eq__ comparison to handle non-WeakSet objects.
Robert Schuppenies [Sun, 17 May 2009 17:32:20 +0000 (17:32 +0000)]
Issue 5964: Fixed WeakSet __eq__ comparison to handle non-WeakSet objects.

15 years agoMerged revisions 72746 via svnmerge from
Tarek Ziadé [Sun, 17 May 2009 15:03:23 +0000 (15:03 +0000)]
Merged revisions 72746 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72746 | tarek.ziade | 2009-05-17 16:59:05 +0200 (Sun, 17 May 2009) | 1 line

  fixed the test name
........

15 years agoMore conversion to new-style optional args.
Georg Brandl [Sun, 17 May 2009 13:00:36 +0000 (13:00 +0000)]
More conversion to new-style optional args.

15 years agoUse true booleans.
Georg Brandl [Sun, 17 May 2009 12:50:58 +0000 (12:50 +0000)]
Use true booleans.

15 years agoRemove surplus empty lines and convert more files to new optional arg style.
Georg Brandl [Sun, 17 May 2009 12:29:12 +0000 (12:29 +0000)]
Remove surplus empty lines and convert more files to new optional arg style.

15 years agoUse PEP 8 and true booleans.
Georg Brandl [Sun, 17 May 2009 12:22:57 +0000 (12:22 +0000)]
Use PEP 8 and true booleans.

15 years agoUse PEP 8 and true booleans.
Georg Brandl [Sun, 17 May 2009 12:19:44 +0000 (12:19 +0000)]
Use PEP 8 and true booleans.

15 years agoMerged revisions 72736 via svnmerge from
Tarek Ziadé [Sun, 17 May 2009 12:12:02 +0000 (12:12 +0000)]
Merged revisions 72736 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72736 | tarek.ziade | 2009-05-17 14:04:57 +0200 (Sun, 17 May 2009) | 1 line

  pep8-fied distutils.archive_util + added minimum test coverage
........

15 years agoUse new optional argument style in email docs.
Georg Brandl [Sun, 17 May 2009 11:28:33 +0000 (11:28 +0000)]
Use new optional argument style in email docs.

15 years agoMerged revisions 72730 via svnmerge from
Tarek Ziadé [Sun, 17 May 2009 11:25:57 +0000 (11:25 +0000)]
Merged revisions 72730 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72730 | tarek.ziade | 2009-05-17 13:22:36 +0200 (Sun, 17 May 2009) | 1 line

  pep8-fied distutils.dir_util
........

15 years agoMerged revisions 72727 via svnmerge from
Tarek Ziadé [Sun, 17 May 2009 11:14:15 +0000 (11:14 +0000)]
Merged revisions 72727 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72727 | tarek.ziade | 2009-05-17 13:11:57 +0200 (Sun, 17 May 2009) | 1 line

  removed sys.platform == 'mac' usage in distutils.dir_util
........

15 years agoMerged revisions 72721 via svnmerge from
Tarek Ziadé [Sun, 17 May 2009 10:50:24 +0000 (10:50 +0000)]
Merged revisions 72721 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72721 | tarek.ziade | 2009-05-17 12:44:12 +0200 (Sun, 17 May 2009) | 1 line

  removed sys.platform == 'mac' support in distutils.dist.parse_command_line and improved test coverage
........

15 years agoUpdate framework installation makefiles to deal correctly with the
Ronald Oussoren [Sun, 17 May 2009 10:45:53 +0000 (10:45 +0000)]
Update framework installation makefiles to deal correctly with the
rename of 'python' to 'python3'

15 years agoMerged revisions 72718 via svnmerge from
Mark Dickinson [Sun, 17 May 2009 10:40:10 +0000 (10:40 +0000)]
Merged revisions 72718 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72718 | mark.dickinson | 2009-05-17 11:38:30 +0100 (Sun, 17 May 2009) | 4 lines

  Issue #6044: remove confusing wording from complex -> integer and
  complex -> float conversion error messages.
........

15 years agoMerged revisions 72713 via svnmerge from
Tarek Ziadé [Sun, 17 May 2009 10:12:02 +0000 (10:12 +0000)]
Merged revisions 72713 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72713 | tarek.ziade | 2009-05-17 12:07:48 +0200 (Sun, 17 May 2009) | 1 line

  not running this test with MSVC6
........

15 years agoWe dont have dbm.bsd support anymore.
Georg Brandl [Sun, 17 May 2009 08:42:58 +0000 (08:42 +0000)]
We dont have dbm.bsd support anymore.

15 years agoRecorded merge of revisions 72708 via svnmerge from
Georg Brandl [Sun, 17 May 2009 08:31:29 +0000 (08:31 +0000)]
Recorded merge of revisions 72708 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72708 | georg.brandl | 2009-05-17 10:24:29 +0200 (So, 17 Mai 2009) | 1 line

  #6017: better document behavior of dictiterators when the dict is changed.
........

15 years agoRemove unused variables.
Georg Brandl [Sun, 17 May 2009 08:22:45 +0000 (08:22 +0000)]
Remove unused variables.

15 years agoFix a warning.
Georg Brandl [Sun, 17 May 2009 08:20:45 +0000 (08:20 +0000)]
Fix a warning.

15 years agoMerged revisions 72703 via svnmerge from
Georg Brandl [Sun, 17 May 2009 08:18:02 +0000 (08:18 +0000)]
Merged revisions 72703 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72703 | georg.brandl | 2009-05-17 10:10:27 +0200 (So, 17 Mai 2009) | 1 line

  part of #4144: fix exception message in console session.
........

15 years ago#4144: fix output of console sessions.
Georg Brandl [Sun, 17 May 2009 08:14:39 +0000 (08:14 +0000)]
#4144: fix output of console sessions.

15 years agoMerged revisions 72698-72699 via svnmerge from
Hirokazu Yamamoto [Sun, 17 May 2009 04:21:53 +0000 (04:21 +0000)]
Merged revisions 72698-72699 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72698 | hirokazu.yamamoto | 2009-05-17 11:52:09 +0900 | 1 line

  Issue #3527: Removed Py_WIN_WIDE_FILENAMES which is not used any more.
........
  r72699 | hirokazu.yamamoto | 2009-05-17 11:58:36 +0900 | 1 line

  Added NEWS for r72698.
........

15 years agoBlocked revisions 72696 via svnmerge
Benjamin Peterson [Sat, 16 May 2009 23:36:26 +0000 (23:36 +0000)]
Blocked revisions 72696 via svnmerge

........
  r72696 | benjamin.peterson | 2009-05-16 18:34:19 -0500 (Sat, 16 May 2009) | 1 line

  typo
........

15 years agoBlocked revisions 72692-72694 via svnmerge
Benjamin Peterson [Sat, 16 May 2009 22:50:58 +0000 (22:50 +0000)]
Blocked revisions 72692-72694 via svnmerge

........
  r72692 | benjamin.peterson | 2009-05-16 17:30:48 -0500 (Sat, 16 May 2009) | 1 line

  deal with old-style classes in issubclass and isinstance
........
  r72693 | benjamin.peterson | 2009-05-16 17:40:56 -0500 (Sat, 16 May 2009) | 1 line

  completely ignore old-style stuff for type checking overloading
........
  r72694 | benjamin.peterson | 2009-05-16 17:46:11 -0500 (Sat, 16 May 2009) | 1 line

  update
........

15 years agoMerged revisions 72690 via svnmerge from
Benjamin Peterson [Sat, 16 May 2009 21:55:24 +0000 (21:55 +0000)]
Merged revisions 72690 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72690 | benjamin.peterson | 2009-05-16 16:44:25 -0500 (Sat, 16 May 2009) | 1 line

  properly lookup __instancecheck__ and __subclasscheck__
........

15 years agoMerged revisions 72686 via svnmerge from
Tarek Ziadé [Sat, 16 May 2009 18:37:32 +0000 (18:37 +0000)]
Merged revisions 72686 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72686 | tarek.ziade | 2009-05-16 20:29:40 +0200 (Sat, 16 May 2009) | 1 line

  pep8-fied distutils.dist module
........

15 years agoMerged revisions 72681 via svnmerge from
Tarek Ziadé [Sat, 16 May 2009 16:52:13 +0000 (16:52 +0000)]
Merged revisions 72681 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72681 | tarek.ziade | 2009-05-16 18:37:06 +0200 (Sat, 16 May 2009) | 1 line

  #6041: sdist and register now use the check command. No more duplicate code for metadata checking
........

15 years agoSilence compiler warning.
Raymond Hettinger [Sat, 16 May 2009 01:46:11 +0000 (01:46 +0000)]
Silence compiler warning.

15 years agoSilence a compiler warning.
Raymond Hettinger [Fri, 15 May 2009 23:05:29 +0000 (23:05 +0000)]
Silence a compiler warning.

15 years agoMerged revisions 72671 via svnmerge from
Antoine Pitrou [Fri, 15 May 2009 17:34:21 +0000 (17:34 +0000)]
Merged revisions 72671 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72671 | antoine.pitrou | 2009-05-15 19:27:30 +0200 (ven., 15 mai 2009) | 3 lines

  Fix bootstrapping by removing uses of the copy module in distutils
........

15 years agoMerged revisions 72669 via svnmerge from
Antoine Pitrou [Fri, 15 May 2009 17:04:50 +0000 (17:04 +0000)]
Merged revisions 72669 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72669 | antoine.pitrou | 2009-05-15 18:54:52 +0200 (ven., 15 mai 2009) | 3 lines

  Issue #2116: Weak references and weak dictionaries now support copy()ing and deepcopy()ing.
........

15 years agoMore updates.
Raymond Hettinger [Fri, 15 May 2009 16:16:12 +0000 (16:16 +0000)]
More updates.

15 years agoAdd examples for ipaddr.
Raymond Hettinger [Fri, 15 May 2009 15:21:33 +0000 (15:21 +0000)]
Add examples for ipaddr.

15 years agoUpdate whatsnew for imaplib changes. Move importlib work to end of section.
Raymond Hettinger [Fri, 15 May 2009 14:57:35 +0000 (14:57 +0000)]
Update whatsnew for imaplib changes.  Move importlib work to end of section.

15 years agoSimplified the header after discussion with Gregory Smith.
Raymond Hettinger [Fri, 15 May 2009 14:55:32 +0000 (14:55 +0000)]
Simplified the header after discussion with Gregory Smith.

15 years agoMerged revisions 72662 via svnmerge from
Antoine Pitrou [Fri, 15 May 2009 12:15:51 +0000 (12:15 +0000)]
Merged revisions 72662 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72662 | antoine.pitrou | 2009-05-15 13:50:29 +0200 (ven., 15 mai 2009) | 3 lines

  Issue #1655: Make imaplib IPv6-capable. Patch by Derek Morr.
........

15 years agoMerged revisions 72658 via svnmerge from
Collin Winter [Fri, 15 May 2009 01:20:21 +0000 (01:20 +0000)]
Merged revisions 72658 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72658 | collin.winter | 2009-05-14 16:26:30 -0700 (Thu, 14 May 2009) | 1 line

  Issue 6024: make regrtest.py promote refleaks to test failures.
........

15 years agothis statement isn't actually true
Benjamin Peterson [Thu, 14 May 2009 23:31:04 +0000 (23:31 +0000)]
this statement isn't actually true

15 years agoBring whatsnew up-to-date as of May 14th.
Raymond Hettinger [Thu, 14 May 2009 23:17:38 +0000 (23:17 +0000)]
Bring whatsnew up-to-date as of May 14th.

15 years agoUpdate whatsnew for NEWS entries through May 5th.
Raymond Hettinger [Thu, 14 May 2009 22:48:19 +0000 (22:48 +0000)]
Update whatsnew for NEWS entries through May 5th.

15 years agocorrectly handle invalid operations on streams (like writing on a non-writable one)
Benjamin Peterson [Thu, 14 May 2009 22:01:31 +0000 (22:01 +0000)]
correctly handle invalid operations on streams (like writing on a non-writable one)

15 years agoMerged revisions 72645 via svnmerge from
Antoine Pitrou [Thu, 14 May 2009 21:54:00 +0000 (21:54 +0000)]
Merged revisions 72645 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72645 | antoine.pitrou | 2009-05-14 23:48:09 +0200 (jeu., 14 mai 2009) | 6 lines

  Issue #5918: Fix a crash in the parser module.

  Patch by Amaury.
........

15 years agoFix error in 2-to-3 translation of docs.
Raymond Hettinger [Thu, 14 May 2009 21:48:02 +0000 (21:48 +0000)]
Fix error in 2-to-3 translation of docs.

15 years agoMerged revisions 72640 via svnmerge from
Antoine Pitrou [Thu, 14 May 2009 21:30:46 +0000 (21:30 +0000)]
Merged revisions 72640 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72640 | antoine.pitrou | 2009-05-14 23:22:08 +0200 (jeu., 14 mai 2009) | 5 lines

  Issue #1664: Make nntplib IPv6-capable. Patch by Derek Morr.

  (Unfortunately, nntplib doesn't have a test suite)
........

15 years agoMerged revisions 72636 via svnmerge from
Tarek Ziadé [Thu, 14 May 2009 20:20:47 +0000 (20:20 +0000)]
Merged revisions 72636 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72636 | tarek.ziade | 2009-05-14 22:14:13 +0200 (Thu, 14 May 2009) | 1 line

  #6022 fixed test_get_outputs so it doesn't leaves a test file in the cwd
........

15 years agoIssue #5006: Better handling of unicode byte-order marks (BOM) in the io library.
Antoine Pitrou [Thu, 14 May 2009 18:55:55 +0000 (18:55 +0000)]
Issue #5006: Better handling of unicode byte-order marks (BOM) in the io library.
This means, for example, that opening an UTF-16 text file in
append mode doesn't add a BOM at the end of the file if the file isn't
empty.

15 years agoMerged revisions 72630 via svnmerge from
R. David Murray [Thu, 14 May 2009 16:17:50 +0000 (16:17 +0000)]
Merged revisions 72630 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72630 | r.david.murray | 2009-05-14 12:12:57 -0400 (Thu, 14 May 2009) | 3 lines

  Fix test failure on Windows, and add skip check if even unicodedata
  turns out not to be an external module on some other platform.
........

15 years agoExercise the doctests.
Raymond Hettinger [Thu, 14 May 2009 16:13:36 +0000 (16:13 +0000)]
Exercise the doctests.

15 years agoConvert docstring examples to doctests and fix
Raymond Hettinger [Thu, 14 May 2009 15:51:36 +0000 (15:51 +0000)]
Convert docstring examples to doctests and fix
any errors that were found.  Add a usage note
to compare_networks() showing how to do the
ordering with modern python.

15 years agoSuggest how to use compare_networks() with a modern Python.
Raymond Hettinger [Thu, 14 May 2009 15:31:02 +0000 (15:31 +0000)]
Suggest how to use compare_networks() with a modern Python.

15 years agoMerged revisions 72624 via svnmerge from
Tarek Ziadé [Thu, 14 May 2009 15:21:26 +0000 (15:21 +0000)]
Merged revisions 72624 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72624 | tarek.ziade | 2009-05-14 16:56:14 +0200 (Thu, 14 May 2009) | 1 line

  pep8-fied distutils.command.sdist + more tests
........

15 years agotypo
Tarek Ziadé [Thu, 14 May 2009 12:48:09 +0000 (12:48 +0000)]
typo

15 years agoMerged revisions 72618 via svnmerge from
Tarek Ziadé [Thu, 14 May 2009 12:45:48 +0000 (12:45 +0000)]
Merged revisions 72618 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72618 | tarek.ziade | 2009-05-14 14:40:59 +0200 (Thu, 14 May 2009) | 1 line

  more test coverage for distutils sdist command
........

15 years agoMerged revisions 72610,72612 via svnmerge from
Tarek Ziadé [Wed, 13 May 2009 22:20:49 +0000 (22:20 +0000)]
Merged revisions 72610,72612 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72610 | tarek.ziade | 2009-05-13 23:30:06 +0200 (Wed, 13 May 2009) | 1 line

  added an inifoo in the C file, to avoid a warning by the MSVC9 linker
........
  r72612 | tarek.ziade | 2009-05-14 00:16:03 +0200 (Thu, 14 May 2009) | 1 line

  adding void to the c function
........

15 years agotypo
Benjamin Peterson [Wed, 13 May 2009 21:15:03 +0000 (21:15 +0000)]
typo

15 years agoThis fix makes, eg, 'pydoc time' work again.
R. David Murray [Wed, 13 May 2009 17:33:03 +0000 (17:33 +0000)]
This fix makes, eg, 'pydoc time' work again.

Merged revisions 72605 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72605 | r.david.murray | 2009-05-13 13:14:11 -0400 (Wed, 13 May 2009) | 3 lines

  Issue #4050: inspect.findsource/getsource now raise an IOError if the 'source'
  file is a binary.  Patch by Brodie Rao, test by Daniel Diniz.
........

15 years agoRecorded merge of revisions 72601 via svnmerge from
R. David Murray [Wed, 13 May 2009 13:15:06 +0000 (13:15 +0000)]
Recorded merge of revisions 72601 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72601 | r.david.murray | 2009-05-13 09:07:14 -0400 (Wed, 13 May 2009) | 3 lines

  Move news item to correct section, remove spurious 'see below'
  from docstring.
........

15 years agoMerged revisions 72597 via svnmerge from
R. David Murray [Wed, 13 May 2009 12:27:21 +0000 (12:27 +0000)]
Merged revisions 72597 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72597 | r.david.murray | 2009-05-12 20:30:29 -0400 (Tue, 12 May 2009) | 2 lines

  Issue 5994: add docstrings to marshal.
........

15 years agoMerged revisions 72593 via svnmerge from
Benjamin Peterson [Tue, 12 May 2009 21:21:26 +0000 (21:21 +0000)]
Merged revisions 72593 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72593 | benjamin.peterson | 2009-05-12 16:06:05 -0500 (Tue, 12 May 2009) | 1 line

  the compiler attribute is used in setup.py; can't rename
........

15 years agotwo edits
Benjamin Peterson [Tue, 12 May 2009 20:58:26 +0000 (20:58 +0000)]
two edits

15 years agoadd example function
Benjamin Peterson [Tue, 12 May 2009 20:47:57 +0000 (20:47 +0000)]
add example function

15 years agofix error handling of PyNumber_InPlaceOr #6000
Benjamin Peterson [Tue, 12 May 2009 20:39:25 +0000 (20:39 +0000)]
fix error handling of PyNumber_InPlaceOr #6000

15 years agoMerged revisions 72585 via svnmerge from
Tarek Ziadé [Tue, 12 May 2009 17:14:01 +0000 (17:14 +0000)]
Merged revisions 72585 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72585 | tarek.ziade | 2009-05-12 19:07:14 +0200 (Tue, 12 May 2009) | 1 line

  fixed #5977: distutils build_ext.get_outputs was not using the inplace option
........

15 years agoExamples correction in urllib2 howto. Michael Foord
Michael Foord [Tue, 12 May 2009 11:19:14 +0000 (11:19 +0000)]
Examples correction in urllib2 howto. Michael Foord

15 years agoMerged revisions 72577 via svnmerge from
Tarek Ziadé [Tue, 12 May 2009 07:06:42 +0000 (07:06 +0000)]
Merged revisions 72577 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72577 | tarek.ziade | 2009-05-12 09:01:29 +0200 (Tue, 12 May 2009) | 1 line

  removing the assert statement so the code works when Python is run with -O
........

15 years agodetach() is a nifty trick for making std* binary
Benjamin Peterson [Tue, 12 May 2009 03:01:51 +0000 (03:01 +0000)]
detach() is a nifty trick for making std* binary

15 years agoMerged revisions 72572 via svnmerge from
R. David Murray [Tue, 12 May 2009 01:40:16 +0000 (01:40 +0000)]
Merged revisions 72572 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72572 | r.david.murray | 2009-05-11 21:36:57 -0400 (Mon, 11 May 2009) | 3 lines

  Make it clear up front that shelve only records changes
  when objects are assigned back to it when writeback is False.
........

15 years agotypo: candiate -> candidate
Mark Dickinson [Mon, 11 May 2009 16:41:34 +0000 (16:41 +0000)]
typo: candiate -> candidate

15 years agoMerged revisions 72564 via svnmerge from
Mark Dickinson [Mon, 11 May 2009 15:45:15 +0000 (15:45 +0000)]
Merged revisions 72564 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72564 | mark.dickinson | 2009-05-11 16:33:08 +0100 (Mon, 11 May 2009) | 2 lines

  Issue #5981: Fix some float.fromhex bugs related to inf and nan handling.
........

15 years agoMerged revisions 72560 via svnmerge from
Tarek Ziadé [Mon, 11 May 2009 08:49:17 +0000 (08:49 +0000)]
Merged revisions 72560 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72560 | tarek.ziade | 2009-05-11 10:45:17 +0200 (Mon, 11 May 2009) | 1 line

  distutils.test_build_clib added a new line at the end of the file, to avoid a warning with some compilers
........

15 years agoTests for case-senstivity were not being skipped for darwin when installed on a
Brett Cannon [Mon, 11 May 2009 01:47:11 +0000 (01:47 +0000)]
Tests for case-senstivity were not being skipped for darwin when installed on a
case-sensitive filesystems -- which is not the default case. Along the way also
fixed the skipping of tests when sys.dont_write_bytecode is true.

Closes issue #5442 again.

15 years agobytes -> bytearray
Benjamin Peterson [Sun, 10 May 2009 23:43:14 +0000 (23:43 +0000)]
bytes -> bytearray

15 years agoIssue #5990: fix memory leak introduced by PEP 383 commits
Antoine Pitrou [Sun, 10 May 2009 22:27:00 +0000 (22:27 +0000)]
Issue #5990: fix memory leak introduced by PEP 383 commits

15 years agoMerged revisions 72552 via svnmerge from
Tarek Ziadé [Sun, 10 May 2009 21:31:23 +0000 (21:31 +0000)]
Merged revisions 72552 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72552 | tarek.ziade | 2009-05-10 23:27:55 +0200 (Sun, 10 May 2009) | 1 line

  fixed test_build_ext for win32
........

15 years agoMerged revisions 72547 via svnmerge from
Tarek Ziadé [Sun, 10 May 2009 12:38:16 +0000 (12:38 +0000)]
Merged revisions 72547 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72547 | tarek.ziade | 2009-05-10 14:36:48 +0200 (Sun, 10 May 2009) | 1 line

  fixed test for all platforms
........

15 years agoMerged revisions 72543 via svnmerge from
Tarek Ziadé [Sun, 10 May 2009 12:20:44 +0000 (12:20 +0000)]
Merged revisions 72543 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72543 | tarek.ziade | 2009-05-10 14:17:30 +0200 (Sun, 10 May 2009) | 1 line

  now using EnvironGuard everywhere
........