]> granicus.if.org Git - python/log
python
15 years agoRewrap some long lines.
Mark Dickinson [Thu, 2 Apr 2009 18:41:40 +0000 (18:41 +0000)]
Rewrap some long lines.

15 years agoimportlib.test.source.test_abc_loader was making a bad assumption that all file
Brett Cannon [Thu, 2 Apr 2009 17:54:43 +0000 (17:54 +0000)]
importlib.test.source.test_abc_loader was making a bad assumption that all file
paths used '/' as a path separator.

Fixes issue #5646.

15 years agoMake a test in importlib have a more robust test value.
Brett Cannon [Thu, 2 Apr 2009 15:35:09 +0000 (15:35 +0000)]
Make a test in importlib have a more robust test value.

15 years agoGive a more informative message on an importlib test upon failure.
Brett Cannon [Thu, 2 Apr 2009 15:32:07 +0000 (15:32 +0000)]
Give a more informative message on an importlib test upon failure.

15 years agoIssue #5640: Fix _multibytecodec so that CJK codecs don't repeat
Hye-Shik Chang [Thu, 2 Apr 2009 10:33:16 +0000 (10:33 +0000)]
Issue #5640: Fix _multibytecodec so that CJK codecs don't repeat
error replacement returned by codec error callbacks twice in
IncrementalEncoder and StreamWriter.

15 years agoCheck that on a platform that is expected to have a case-insensitive filesystem
Brett Cannon [Thu, 2 Apr 2009 05:17:54 +0000 (05:17 +0000)]
Check that on a platform that is expected to have a case-insensitive filesystem
that is in fact the case.

Closes issue #5442.

15 years agoClarify that datetime strftime does not produce leap seconds and datetime
R. David Murray [Thu, 2 Apr 2009 04:50:03 +0000 (04:50 +0000)]
Clarify that datetime strftime does not produce leap seconds and datetime
strptime does not accept it in the strftime behavior section of the
datetime docs.

Closes issue 2568.

Porting by hand since svnmerge disclaims all knowledge of the trunk commit.

15 years agoMerged revisions 71031 via svnmerge from
Brett Cannon [Thu, 2 Apr 2009 03:41:46 +0000 (03:41 +0000)]
Merged revisions 71031 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r71031 | brett.cannon | 2009-04-01 20:17:39 -0700 (Wed, 01 Apr 2009) | 6 lines

  PyImport_AppendInittab() took a char * as a first argument even though that
  string was stored beyond the life of the call. Changed the signature to be
  const char * to help make this point.

  Closes issue #1419652.
........

15 years agoFixing the issue4860. Escaping the embedded '"' in the js_output method of Morsel...
Senthil Kumaran [Thu, 2 Apr 2009 03:02:03 +0000 (03:02 +0000)]
Fixing the issue4860. Escaping the embedded '"' in the js_output method of Morsel class.

15 years agoFirst batch of signature documentation changes; using default argument syntax where...
Georg Brandl [Thu, 2 Apr 2009 02:56:10 +0000 (02:56 +0000)]
First batch of signature documentation changes; using default argument syntax where applicable.

15 years agoremove unused variable
Benjamin Peterson [Thu, 2 Apr 2009 02:27:56 +0000 (02:27 +0000)]
remove unused variable

15 years agorewrite error handling to make sense
Benjamin Peterson [Thu, 2 Apr 2009 02:27:20 +0000 (02:27 +0000)]
rewrite error handling to make sense

15 years agofix ref leaks
Benjamin Peterson [Thu, 2 Apr 2009 01:50:37 +0000 (01:50 +0000)]
fix ref leaks

15 years agoadd io and _pyio to test___all__
Benjamin Peterson [Thu, 2 Apr 2009 01:14:45 +0000 (01:14 +0000)]
add io and _pyio to test___all__

15 years agoMerged revisions 71014 via svnmerge from
Benjamin Peterson [Thu, 2 Apr 2009 01:13:40 +0000 (01:13 +0000)]
Merged revisions 71014 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r71014 | benjamin.peterson | 2009-04-01 20:03:17 -0500 (Wed, 01 Apr 2009) | 1 line

  handle SEEK_ constants in test_io
........

15 years agoadd SEEK_ constants to _pyio
Benjamin Peterson [Thu, 2 Apr 2009 01:03:26 +0000 (01:03 +0000)]
add SEEK_ constants to _pyio

15 years agomake 'c' only accept bytes and 'C' only unicode #5499
Benjamin Peterson [Thu, 2 Apr 2009 00:33:55 +0000 (00:33 +0000)]
make 'c' only accept bytes and 'C' only unicode #5499

15 years agofix markup
Benjamin Peterson [Thu, 2 Apr 2009 00:24:00 +0000 (00:24 +0000)]
fix markup

15 years agoExplain a little about the explanation.
Brett Cannon [Wed, 1 Apr 2009 23:36:48 +0000 (23:36 +0000)]
Explain a little about the explanation.

15 years agoAdd a meta path importer example.
Brett Cannon [Wed, 1 Apr 2009 23:26:47 +0000 (23:26 +0000)]
Add a meta path importer example.

15 years ago#5656: detect correct encoding of files when reporting coverage in trace.py, and...
Georg Brandl [Wed, 1 Apr 2009 23:07:29 +0000 (23:07 +0000)]
#5656: detect correct encoding of files when reporting coverage in trace.py, and ignore files in the temporary directory when reporting.

15 years agoMerged revisions 70997 via svnmerge from
R. David Murray [Wed, 1 Apr 2009 22:37:58 +0000 (22:37 +0000)]
Merged revisions 70997 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r70997 | r.david.murray | 2009-04-01 17:26:18 -0400 (Wed, 01 Apr 2009) | 3 lines

  Add tests checking the CSV module's ability to handle
  embedded newlines in quoted field values.
........

15 years agoMerged revisions 70992,70995 via svnmerge from
Benjamin Peterson [Wed, 1 Apr 2009 21:22:20 +0000 (21:22 +0000)]
Merged revisions 70992,70995 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r70992 | georg.brandl | 2009-04-01 16:00:55 -0500 (Wed, 01 Apr 2009) | 1 line

  #4572: add SEEK_* values as constants in io.py.
........
  r70995 | benjamin.peterson | 2009-04-01 16:12:54 -0500 (Wed, 01 Apr 2009) | 1 line

  add seek constants to __all__
........

15 years agoAdd link to an alternative generator with a long-period.
Raymond Hettinger [Wed, 1 Apr 2009 20:52:13 +0000 (20:52 +0000)]
Add link to an alternative generator with a long-period.

15 years agoMerged revisions 70953 via svnmerge from
Jesse Noller [Wed, 1 Apr 2009 20:51:28 +0000 (20:51 +0000)]
Merged revisions 70953 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r70953 | hirokazu.yamamoto | 2009-04-01 10:13:52 -0500 (Wed, 01 Apr 2009) | 1 line

  Fixed compile error on windows.
........

15 years agoAdd some clarification to the importlib docs.
Brett Cannon [Wed, 1 Apr 2009 20:47:14 +0000 (20:47 +0000)]
Add some clarification to the importlib docs.

15 years agobarry has already been causing test breakage
Benjamin Peterson [Wed, 1 Apr 2009 20:38:13 +0000 (20:38 +0000)]
barry has already been causing test breakage

15 years agoMerged revisions 70979 via svnmerge from
Brett Cannon [Wed, 1 Apr 2009 20:27:29 +0000 (20:27 +0000)]
Merged revisions 70979 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r70979 | brett.cannon | 2009-04-01 13:25:48 -0700 (Wed, 01 Apr 2009) | 3 lines

  test_warnings ironically had a single test that was not protecting the warnings
  filter and was resetting it.
........

15 years agoFix for issue5040. Adding support for unicode message passing and tests for unicode...
Senthil Kumaran [Wed, 1 Apr 2009 20:20:43 +0000 (20:20 +0000)]
Fix for issue5040. Adding support for unicode message passing and tests for unicode message and test for Content-Length.

15 years agoMerged revisions 70975 via svnmerge from
Brett Cannon [Wed, 1 Apr 2009 20:01:47 +0000 (20:01 +0000)]
Merged revisions 70975 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r70975 | brett.cannon | 2009-04-01 12:57:10 -0700 (Wed, 01 Apr 2009) | 4 lines

  test_logging was blindly clearing the warnings filter. This caused
  PendingDeprecationWarnings to be spewed all over by unittest.failIf*(). Fix
  moves over to using warnings.catch_warning to protect the warnings filter.
........

15 years agoIssue #5647: MutableSet.__iand__() no longer mutates self during iteration.
Raymond Hettinger [Wed, 1 Apr 2009 19:05:50 +0000 (19:05 +0000)]
Issue #5647: MutableSet.__iand__() no longer mutates self during iteration.

15 years agoMerged revisions 70965 via svnmerge from
Brett Cannon [Wed, 1 Apr 2009 18:13:07 +0000 (18:13 +0000)]
Merged revisions 70965 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r70965 | brett.cannon | 2009-04-01 11:03:59 -0700 (Wed, 01 Apr 2009) | 5 lines

  _warnings was importing itself to get an attribute. That's bad if warnings gets
  called in a thread that was spawned by an import itself.

  Last part to close #1665206.
........

15 years agoRemove redundant import of tkinter.
R. David Murray [Wed, 1 Apr 2009 16:39:21 +0000 (16:39 +0000)]
Remove redundant import of tkinter.

15 years agoMerged revisions 70956 via svnmerge from
Brett Cannon [Wed, 1 Apr 2009 16:06:01 +0000 (16:06 +0000)]
Merged revisions 70956 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r70956 | brett.cannon | 2009-04-01 09:00:34 -0700 (Wed, 01 Apr 2009) | 5 lines

  The cgitb module had imports in its functions. This can cause deadlock with the
  import lock if called from within a thread that was triggered by an import.

  Partially fixes issue #1665206.
........

15 years ago#5636: fix next -> __next__ in csv reader docs.
Georg Brandl [Wed, 1 Apr 2009 15:53:15 +0000 (15:53 +0000)]
#5636: fix next -> __next__ in csv reader docs.

15 years agoFix typo in configure line that caused the build installer
Ronald Oussoren [Wed, 1 Apr 2009 14:59:59 +0000 (14:59 +0000)]
Fix typo in configure line that caused the build installer
to not use the right LDFLAGS settings.

15 years agoAllow skipping of regression tests not supported on windows. This reduces noise...
Kristján Valur Jónsson [Wed, 1 Apr 2009 11:28:47 +0000 (11:28 +0000)]
Allow skipping of regression tests not supported on windows.  This reduces noise in the regression test suite for py3k on Windows.

15 years agoThe BDFL has retired! Long live the FLUFL (Friendly Language Uncle For Life)!
Brett Cannon [Wed, 1 Apr 2009 05:08:41 +0000 (05:08 +0000)]
The BDFL has retired! Long live the FLUFL (Friendly Language Uncle For Life)!

15 years ago#5624: _winreg is winreg in Python 3.
Georg Brandl [Wed, 1 Apr 2009 04:28:33 +0000 (04:28 +0000)]
#5624: _winreg is winreg in Python 3.

15 years agoMerged revisions 70940 via svnmerge
Georg Brandl [Wed, 1 Apr 2009 04:27:47 +0000 (04:27 +0000)]
Merged revisions 70940 via svnmerge

........
  r70940 | georg.brandl | 2009-03-31 23:21:14 -0500 (Di, 31 Mär 2009) | 2 lines

  The SimpleXMLRPCServer's CGI handler now runs like a pony.
........

15 years agoMerged revisions 70931 via svnmerge from
Jack Diederich [Wed, 1 Apr 2009 04:27:09 +0000 (04:27 +0000)]
Merged revisions 70931 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r70931 | jack.diederich | 2009-03-31 19:46:48 -0400 (Tue, 31 Mar 2009) | 1 line

  #5228: add pickle support to functools.partial
........

15 years agoMerged revisions 70936 via svnmerge from
R. David Murray [Wed, 1 Apr 2009 03:42:00 +0000 (03:42 +0000)]
Merged revisions 70936 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r70936 | r.david.murray | 2009-03-31 23:21:43 -0400 (Tue, 31 Mar 2009) | 4 lines

  Fix issue 2522.  locale.format now checks that it is passed
  exactly one pattern, which avoids mysterious errors where it
  had seemed to fail to do localization.
........

15 years agoRip out a useless method that the superclass implements properly.
Brett Cannon [Wed, 1 Apr 2009 03:35:20 +0000 (03:35 +0000)]
Rip out a useless method that the superclass implements properly.

15 years agoAn HTTPResponse is, by its nature, readable.
Jeremy Hylton [Wed, 1 Apr 2009 02:35:56 +0000 (02:35 +0000)]
An HTTPResponse is, by its nature, readable.

15 years agoMerged revisions 70930 via svnmerge from
R. David Murray [Tue, 31 Mar 2009 23:50:31 +0000 (23:50 +0000)]
Merged revisions 70930 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r70930 | r.david.murray | 2009-03-31 19:45:39 -0400 (Tue, 31 Mar 2009) | 3 lines

  Fix Windows test skip error revealed by buildbot.  Also a comment spelling
  correction in a previously fixed test.
........

15 years agoMerged revisions 70734,70775,70856,70874,70876-70877 via svnmerge
R. David Murray [Tue, 31 Mar 2009 23:16:50 +0000 (23:16 +0000)]
Merged revisions 70734,70775,70856,70874,70876-70877 via svnmerge

........
  r70734 | r.david.murray | 2009-03-30 15:04:00 -0400 (Mon, 30 Mar 2009) | 7 lines

  Add import_function method to test.test_support, and modify a number of
  tests that expect to be skipped if imports fail or functions don't
  exist to use import_function and import_module.  The ultimate goal is
  to change regrtest to not skip automatically on ImportError.  Checking
  in now to make sure the buldbots don't show any errors on platforms
  I can't direct test on.
........
  r70775 | r.david.murray | 2009-03-30 19:05:48 -0400 (Mon, 30 Mar 2009) | 4 lines

  Change more tests to use import_module for the modules that
  should cause tests to be skipped.  Also rename import_function
  to the more descriptive get_attribute and add a docstring.
........
  r70856 | r.david.murray | 2009-03-31 14:32:17 -0400 (Tue, 31 Mar 2009) | 7 lines

  A few more test skips via import_module, and change import_module to
  return the error message produced by importlib, so that if an import
  in the package whose import is being wrapped is what failed the skip
  message will contain the name of that module instead of the name of the
  wrapped module.  Also fixed formatting of some previous comments.
........
  r70874 | r.david.murray | 2009-03-31 15:33:15 -0400 (Tue, 31 Mar 2009) | 5 lines

  Improve test_support.import_module docstring, remove
  deprecated flag from get_attribute since it isn't likely
  to do anything useful.
........
  r70876 | r.david.murray | 2009-03-31 15:49:15 -0400 (Tue, 31 Mar 2009) | 4 lines

  Remove the regrtest check that turns any ImportError into a skipped test.
  Hopefully all modules whose imports legitimately result in a skipped
  test have been properly wrapped by the previous commits.
........
  r70877 | r.david.murray | 2009-03-31 15:57:24 -0400 (Tue, 31 Mar 2009) | 2 lines

  Add NEWS entry for regrtest change.
........

15 years agofix TextIOWrapper.read() when the buffer is not readable #5628
Benjamin Peterson [Tue, 31 Mar 2009 23:11:32 +0000 (23:11 +0000)]
fix TextIOWrapper.read() when the buffer is not readable #5628

15 years agoImprove examples for collections.deque()
Raymond Hettinger [Tue, 31 Mar 2009 22:52:48 +0000 (22:52 +0000)]
Improve examples for collections.deque()

15 years agoMerged revisions 70920,70922 via svnmerge from
Tarek Ziadé [Tue, 31 Mar 2009 22:50:54 +0000 (22:50 +0000)]
Merged revisions 70920,70922 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r70920 | tarek.ziade | 2009-03-31 17:44:10 -0500 (Tue, 31 Mar 2009) | 1 line

  catching msvc9compiler error as well
........
  r70922 | tarek.ziade | 2009-03-31 17:47:01 -0500 (Tue, 31 Mar 2009) | 1 line

  fixed the test for win32 CompileError
........

15 years agoRun 2to3 over new script.
Georg Brandl [Tue, 31 Mar 2009 22:46:50 +0000 (22:46 +0000)]
Run 2to3 over new script.

15 years agoReadd -n.
Martin v. Löwis [Tue, 31 Mar 2009 22:42:41 +0000 (22:42 +0000)]
Readd -n.

15 years agoMerged revisions 70910 via svnmerge from
Tarek Ziadé [Tue, 31 Mar 2009 22:37:55 +0000 (22:37 +0000)]
Merged revisions 70910 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r70910 | tarek.ziade | 2009-03-31 17:27:23 -0500 (Tue, 31 Mar 2009) | 1 line

  #5583 Added optional Extensions in Distutils
........

15 years agoMerged revisions 70908 via svnmerge from
Jesse Noller [Tue, 31 Mar 2009 22:36:44 +0000 (22:36 +0000)]
Merged revisions 70908 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r70908 | jesse.noller | 2009-03-31 17:20:35 -0500 (Tue, 31 Mar 2009) | 1 line

  Issue 5619: Pass MS CRT debug flags into subprocesses
........

15 years agoMerged revisions 70886,70888-70892 via svnmerge from
Tarek Ziadé [Tue, 31 Mar 2009 21:37:16 +0000 (21:37 +0000)]
Merged revisions 70886,70888-70892 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r70886 | tarek.ziade | 2009-03-31 15:50:59 -0500 (Tue, 31 Mar 2009) | 1 line

  added tests for the clean command
........
  r70888 | tarek.ziade | 2009-03-31 15:53:13 -0500 (Tue, 31 Mar 2009) | 1 line

  more tests for the register command
........
  r70889 | tarek.ziade | 2009-03-31 15:53:55 -0500 (Tue, 31 Mar 2009) | 1 line

  more tests for the upload command
........
  r70890 | tarek.ziade | 2009-03-31 15:54:38 -0500 (Tue, 31 Mar 2009) | 1 line

  added test to the install_data command
........
  r70891 | tarek.ziade | 2009-03-31 15:55:21 -0500 (Tue, 31 Mar 2009) | 1 line

  added tests to the install_headers command
........
  r70892 | tarek.ziade | 2009-03-31 15:56:11 -0500 (Tue, 31 Mar 2009) | 1 line

  making sdist and config test silents
........

15 years agoMerged revisions 70879 via svnmerge from
Hirokazu Yamamoto [Tue, 31 Mar 2009 20:43:56 +0000 (20:43 +0000)]
Merged revisions 70879 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r70879 | hirokazu.yamamoto | 2009-04-01 05:14:04 +0900 | 1 line

  Issue #5387: Fixed mmap.move crash by integer overflow. (take2)
........

15 years agoAdd missing label.
Georg Brandl [Tue, 31 Mar 2009 19:06:37 +0000 (19:06 +0000)]
Add missing label.

15 years ago#1717: fix-up docs for comparison in newtypes document.
Georg Brandl [Tue, 31 Mar 2009 18:56:38 +0000 (18:56 +0000)]
#1717: fix-up docs for comparison in newtypes document.

15 years agoMerged revisions 70849,70852 via svnmerge from
Jesse Noller [Tue, 31 Mar 2009 18:48:42 +0000 (18:48 +0000)]
Merged revisions 70849,70852 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r70849 | jesse.noller | 2009-03-31 13:12:35 -0500 (Tue, 31 Mar 2009) | 1 line

  Apply patch for netbsd multiprocessing support
........
  r70852 | jesse.noller | 2009-03-31 13:27:14 -0500 (Tue, 31 Mar 2009) | 1 line

  missed the news/acks for netbsd patch
........

15 years ago#5241: document missing A in regex howto.
Georg Brandl [Tue, 31 Mar 2009 18:41:03 +0000 (18:41 +0000)]
#5241: document missing A in regex howto.

15 years agoBlocked revisions 70858 via svnmerge
Georg Brandl [Tue, 31 Mar 2009 18:40:41 +0000 (18:40 +0000)]
Blocked revisions 70858 via svnmerge

........
  r70858 | georg.brandl | 2009-03-31 13:38:56 -0500 (Di, 31 Mär 2009) | 1 line

  #5241: document missing U in regex howto.
........

15 years agoMerged revisions 70779 via svnmerge from
R. David Murray [Tue, 31 Mar 2009 18:27:51 +0000 (18:27 +0000)]
Merged revisions 70779 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r70779 | r.david.murray | 2009-03-30 19:10:37 -0400 (Mon, 30 Mar 2009) | 3 lines

  Actually suppress warnings in test_at_least_import_untested_modules
  inside the catch_warnings context manager.
........

15 years agoPer the language summit, the optional fastpath imports should use from-import-star.
Raymond Hettinger [Tue, 31 Mar 2009 17:51:51 +0000 (17:51 +0000)]
Per the language summit, the optional fastpath imports should use from-import-star.

15 years agoFix a leaking "pathname" in import.c
Kristján Valur Jónsson [Tue, 31 Mar 2009 17:47:50 +0000 (17:47 +0000)]
Fix a leaking "pathname" in import.c

15 years agoget_file() no longer leaks a FILE structure. If given a file descriptor, it calls...
Kristján Valur Jónsson [Tue, 31 Mar 2009 17:43:39 +0000 (17:43 +0000)]
get_file() no longer leaks a FILE structure.  If given a file descriptor, it calls dup() to get a new handle.  Then both the FILE object and the fd can be closed.
This is important, because otherwise, the leaked FILE object will be closed on process exit, causing assertions on Windows, e.g. in the test_multiprocessing.py regression test.

15 years agoForward-port of #992207 fix: document that the parser only accepts \\n newlines....
Georg Brandl [Tue, 31 Mar 2009 16:57:13 +0000 (16:57 +0000)]
Forward-port of #992207 fix: document that the parser only accepts \\n newlines. (And remove a leftover footnote.)

15 years agoBlocked revisions 70838 via svnmerge
Georg Brandl [Tue, 31 Mar 2009 16:55:13 +0000 (16:55 +0000)]
Blocked revisions 70838 via svnmerge

........
  r70838 | georg.brandl | 2009-03-31 11:54:38 -0500 (Di, 31 Mär 2009) | 1 line

  #992207: document that the parser only accepts \\n newlines.
........

15 years agoMake urllib use HTTP/1.1. It seems to work now, but hasn't been
Jeremy Hylton [Tue, 31 Mar 2009 16:37:16 +0000 (16:37 +0000)]
Make urllib use HTTP/1.1.  It seems to work now, but hasn't been
carefully tested.

15 years ago#5548: do return the new module from PyMODINIT_FUNC functions.
Georg Brandl [Tue, 31 Mar 2009 15:52:41 +0000 (15:52 +0000)]
#5548: do return the new module from PyMODINIT_FUNC functions.

15 years ago#5566: remove duplicate entry.
Georg Brandl [Tue, 31 Mar 2009 15:49:02 +0000 (15:49 +0000)]
#5566: remove duplicate entry.

15 years agoBlocked revisions 70825 via svnmerge
Georg Brandl [Tue, 31 Mar 2009 15:48:12 +0000 (15:48 +0000)]
Blocked revisions 70825 via svnmerge

........
  r70825 | georg.brandl | 2009-03-31 10:46:30 -0500 (Di, 31 Mär 2009) | 1 line

  #5566: fix versionadded from PyLong ssize_t functions.
........

15 years agoMerged revisions 70801,70809 via svnmerge from
Jeremy Hylton [Tue, 31 Mar 2009 15:26:37 +0000 (15:26 +0000)]
Merged revisions 70801,70809 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

The merge ran into a lot of conflicts because dicts were replaced with
sets in the Python 3 version of the symbol table.

........
  r70801 | jeremy.hylton | 2009-03-31 09:17:03 -0400 (Tue, 31 Mar 2009) | 3 lines

  Add is_declared_global() which distinguishes between implicit and
  explicit global variables.
........
  r70809 | jeremy.hylton | 2009-03-31 09:48:15 -0400 (Tue, 31 Mar 2009) | 14 lines

  Global statements from one function leaked into parallel functions.

  Re http://bugs.python.org/issue4315

  The symbol table used the same name dictionaries to recursively
  analyze each of its child blocks, even though the dictionaries are
  modified during analysis.  The fix is to create new temporary
  dictionaries via the analyze_child_block().  The only information that
  needs to propagate back up is the names of the free variables.

  Add more comments and break out a helper function.  This code doesn't
  get any easier to understand when you only look at it once a year.
........

15 years agoUpdate HTTPResponse documentation and add placeholder for HTTPMessage.
Jeremy Hylton [Tue, 31 Mar 2009 14:40:19 +0000 (14:40 +0000)]
Update HTTPResponse documentation and add placeholder for HTTPMessage.

15 years agoDocument public attributes of urllib.request.Request.
Jeremy Hylton [Tue, 31 Mar 2009 14:38:13 +0000 (14:38 +0000)]
Document public attributes of urllib.request.Request.

15 years agoChange email address.
Jeremy Hylton [Tue, 31 Mar 2009 14:37:44 +0000 (14:37 +0000)]
Change email address.

15 years agoSimplify the Request class. The basic components of the parsed
Jeremy Hylton [Tue, 31 Mar 2009 14:35:53 +0000 (14:35 +0000)]
Simplify the Request class.  The basic components of the parsed
Request are now available as public attributes, e.g. full_url and
host.  The accessor methods are deprecated.  The implementation
replace the complicated __getattr__ machinery with a _parse() method.

The response from an HTTP request is now an HTTPResponse instance
instead of an addinfourl() wrapper instance.  The wrapper provided
minimal extract functionality and was undocumented.  The API of
addinfourl() was preserved, except for close hooks, by adding a few
methods and public attributes to the HTTPResponse class.

15 years agoMerged revisions 70800 via svnmerge from
Hirokazu Yamamoto [Tue, 31 Mar 2009 13:44:06 +0000 (13:44 +0000)]
Merged revisions 70800 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r70800 | hirokazu.yamamoto | 2009-03-31 22:13:05 +0900 | 1 line

  Issue #5387: Fixed mmap.move crash by integer overflow.
........

15 years agoMerged revisions 70802 via svnmerge from
Ronald Oussoren [Tue, 31 Mar 2009 13:25:17 +0000 (13:25 +0000)]
Merged revisions 70802 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r70802 | ronald.oussoren | 2009-03-31 08:20:45 -0500 (Tue, 31 Mar 2009) | 4 lines

  Minor update to OSX build-installer script, needed
  to ensure that the build will succeed in a clean
  checkout and with a non-default deployment target.
........

15 years agoFix segfaults when running test_exceptions with coverage tracing, caused by wrongly...
Georg Brandl [Tue, 31 Mar 2009 04:16:10 +0000 (04:16 +0000)]
Fix segfaults when running test_exceptions with coverage tracing, caused by wrongly defining Exception.__context__ as a T_OBJECT structmember which does not set the member to NULL on None assignment, and generally does not do type checks. This could be used to crash the interpreter by setting any object to __context__. The same applies to __cause__.  Also document the PyException_* functions.

15 years agoThe message for the exception when time.strptime was passed something other
Brett Cannon [Tue, 31 Mar 2009 03:58:04 +0000 (03:58 +0000)]
The message for the exception when time.strptime was passed something other
than str did not output the type of the argument but the object itself.

15 years agomerge 70792 to py3k
Jesse Noller [Tue, 31 Mar 2009 03:37:07 +0000 (03:37 +0000)]
merge 70792 to py3k

15 years agomerge 70783 to py3k
Jesse Noller [Tue, 31 Mar 2009 03:25:07 +0000 (03:25 +0000)]
merge 70783 to py3k

15 years agoAdd new copydir_run_2to3() function, for use e.g. in test runners to transparently...
Georg Brandl [Tue, 31 Mar 2009 00:34:54 +0000 (00:34 +0000)]
Add new copydir_run_2to3() function, for use e.g. in test runners to transparently convert and run tests written for Python 2.

15 years agoAdd example for new copydir_run_2to3().
Georg Brandl [Tue, 31 Mar 2009 00:33:15 +0000 (00:33 +0000)]
Add example for new copydir_run_2to3().

15 years agoMerged revisions 70778 via svnmerge from
Ronald Oussoren [Mon, 30 Mar 2009 23:16:10 +0000 (23:16 +0000)]
Merged revisions 70778 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r70778 | ronald.oussoren | 2009-03-30 18:10:35 -0500 (Mon, 30 Mar 2009) | 4 lines

  Fix issue #4865: add /Library/Python/2.7/site-packages to
  sys.path on OSX, to make it easier to share (some) installed
  packages between the system install and a user install.
........

15 years ago"Port" the fix for issue 1974 from the trunk (2.7). Because Python 3.x does things...
Barry Warsaw [Mon, 30 Mar 2009 23:12:30 +0000 (23:12 +0000)]
"Port" the fix for issue 1974 from the trunk (2.7).  Because Python 3.x does things much better, less changes are necessary.

This also shoves test_email_codecs_rename.py onto test_email_codecs.py even though the test needs to be ported to Python 3.

15 years agofinalize the queue to resolve test issue
Jesse Noller [Mon, 30 Mar 2009 22:59:27 +0000 (22:59 +0000)]
finalize the queue to resolve test issue

15 years agoIssue #5604: non-ASCII characters in module name passed to
Guido van Rossum [Mon, 30 Mar 2009 22:01:35 +0000 (22:01 +0000)]
Issue #5604: non-ASCII characters in module name passed to
imp.find_module() were converted to UTF-8 while the path is
converted to the default filesystem encoding, causing nonsense.
Thanks to Andrew Svetlov.

(This time to the right branch.  Will block duplicate merge to 3.0.2.)

15 years agoFix for Issue4962, issue4675.
Senthil Kumaran [Mon, 30 Mar 2009 21:54:41 +0000 (21:54 +0000)]
Fix for Issue4962, issue4675.

15 years agoMake sure time.strptime only accepts strings (and document the fact like
Brett Cannon [Mon, 30 Mar 2009 21:30:26 +0000 (21:30 +0000)]
Make sure time.strptime only accepts strings (and document the fact like
strftime). Already didn't accept bytes but make the check earlier. This also
lifts the limitation of requiring ASCII.

Closes issue #5236. Thanks Tennessee Leeuwenburg.

15 years agoRemove merging leftover.
Georg Brandl [Mon, 30 Mar 2009 21:21:05 +0000 (21:21 +0000)]
Remove merging leftover.

15 years agoThorough review of importlib docs. Reviewed by Brett himself.
Guido van Rossum [Mon, 30 Mar 2009 20:34:57 +0000 (20:34 +0000)]
Thorough review of importlib docs.  Reviewed by Brett himself.

15 years agoFix for issue 5558
Ronald Oussoren [Mon, 30 Mar 2009 20:10:18 +0000 (20:10 +0000)]
Fix for issue 5558

15 years agoMerged revisions 70746 via svnmerge from
Ronald Oussoren [Mon, 30 Mar 2009 20:05:35 +0000 (20:05 +0000)]
Merged revisions 70746 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r70746 | ronald.oussoren | 2009-03-30 15:02:08 -0500 (Mon, 30 Mar 2009) | 2 lines

  Fix for issue 13095
........

15 years agoMerged revisions 70741 via svnmerge from
Ronald Oussoren [Mon, 30 Mar 2009 20:00:00 +0000 (20:00 +0000)]
Merged revisions 70741 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r70741 | ronald.oussoren | 2009-03-30 14:56:25 -0500 (Mon, 30 Mar 2009) | 2 lines

  Fixes issue 5270
........

15 years agoFix importlib.machinery.PathFinder.find_module() to essentially skip over None
Brett Cannon [Mon, 30 Mar 2009 19:57:15 +0000 (19:57 +0000)]
Fix importlib.machinery.PathFinder.find_module() to essentially skip over None
entries in sys.path_importer_cache. While this differs from semantics in how
__import__ works, it prevents any implicit semantics from taking hold with
users.

15 years agoEnable "--with-computed-gotos" for the binary installer
Ronald Oussoren [Mon, 30 Mar 2009 19:51:09 +0000 (19:51 +0000)]
Enable "--with-computed-gotos" for the binary installer
on OSX.

15 years agoMerged revisions 70737 via svnmerge from
Ronald Oussoren [Mon, 30 Mar 2009 19:39:14 +0000 (19:39 +0000)]
Merged revisions 70737 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r70737 | ronald.oussoren | 2009-03-30 14:34:51 -0500 (Mon, 30 Mar 2009) | 6 lines

  * Set a custom icon on the Python installer DMG
  * Remove last traces of "MacPython"
  * Add options to build different flavors of the installer
    (still defaulting to a 2-way universal build that
    runs on OSX 10.3)
........

15 years agoMerged revisions 70735 via svnmerge from
Ronald Oussoren [Mon, 30 Mar 2009 19:25:21 +0000 (19:25 +0000)]
Merged revisions 70735 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r70735 | ronald.oussoren | 2009-03-30 14:22:56 -0500 (Mon, 30 Mar 2009) | 3 lines

  Remove usage of the deprecated '-cString' and '+stringWithCString:' API's
  in PythonLauncher, replacing them with the correct counterparts.
........

15 years agoMerged revisions 70730 via svnmerge from
Ronald Oussoren [Mon, 30 Mar 2009 18:00:28 +0000 (18:00 +0000)]
Merged revisions 70730 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r70730 | ronald.oussoren | 2009-03-30 12:53:39 -0500 (Mon, 30 Mar 2009) | 3 lines

  Fix issue where 'make altinstall' or 'make install' would install everything
  that needs to be installed on OSX (depending on the configure flags)
........

15 years agoMerged revisions 70727 via svnmerge from
Ronald Oussoren [Mon, 30 Mar 2009 17:20:30 +0000 (17:20 +0000)]
Merged revisions 70727 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r70727 | ronald.oussoren | 2009-03-30 12:15:29 -0500 (Mon, 30 Mar 2009) | 5 lines

  * Updates installed dependencies to latest releaases (bzip, zlib, ...)
  * Changes code for updating folder icons from Python code
    that uses the deprecated Carbon module to a much simpler
    Cocoa program in Objective-C
........