]>
granicus.if.org Git - python/log
Eric Smith [Fri, 3 Apr 2009 11:19:31 +0000 (11:19 +0000)]
Removed mixed tabs and whitespace.
Alexandre Vassalotti [Fri, 3 Apr 2009 07:16:55 +0000 (07:16 +0000)]
Make http.server main program nicer for interactive use.
Remove unreachable calls to test().
This restores the behavior of SimpleHTTPServer, where a user could
type "python -m SimpleHTTPServer" and get a simple server for sharing
files. Now, you can do the same thing with "python3 -m http.server".
Alexandre Vassalotti [Fri, 3 Apr 2009 06:58:20 +0000 (06:58 +0000)]
Undocument the existence of the memo attribute and its main use-case.
Apparently, Guido don't like this behavior. [1] I also agree that the memo
should be left as an implementation detail.
[1]: http://mail.python.org/pipermail/python-dev/2009-March/086809.html
Alexandre Vassalotti [Fri, 3 Apr 2009 06:38:02 +0000 (06:38 +0000)]
Optimize slicing of bytes and bytearray by avoiding useless copying.
This restores the behavior that was present in Python 2.x.
Alexandre Vassalotti [Fri, 3 Apr 2009 06:19:27 +0000 (06:19 +0000)]
Emphasize that Unpickler.memo is not necessarily a dict.
Alexandre Vassalotti [Fri, 3 Apr 2009 06:13:29 +0000 (06:13 +0000)]
Add more examples in pickle documentation.
Alexandre Vassalotti [Fri, 3 Apr 2009 06:07:29 +0000 (06:07 +0000)]
Remove old reference to cPickle.
Raymond Hettinger [Fri, 3 Apr 2009 05:47:33 +0000 (05:47 +0000)]
Fix typo.
Alexandre Vassalotti [Fri, 3 Apr 2009 04:17:41 +0000 (04:17 +0000)]
Update a comment about why the __module__ can sometime be NULL.
Initialize last_string and arg member of Unpickler.
Raymond Hettinger [Fri, 3 Apr 2009 02:45:36 +0000 (02:45 +0000)]
Localize the function lookup in timeit.
Raymond Hettinger [Thu, 2 Apr 2009 22:37:59 +0000 (22:37 +0000)]
Update docs for namedtuple's renaming change.
Raymond Hettinger [Thu, 2 Apr 2009 22:31:59 +0000 (22:31 +0000)]
Have namedtuple's field renamer assign names that
are consistent with the corresponding tuple index.
Antoine Pitrou [Thu, 2 Apr 2009 21:42:24 +0000 (21:42 +0000)]
Blocked revisions 71070 via svnmerge
........
r71070 | antoine.pitrou | 2009-04-02 23:18:34 +0200 (jeu., 02 avril 2009) | 3 lines
Issue #2396: backport the memoryview object.
........
R. David Murray [Thu, 2 Apr 2009 19:44:43 +0000 (19:44 +0000)]
In 3k this becomes an items() call.
Merged revisions 71046 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r71046 | r.david.murray | 2009-04-02 10:05:35 -0400 (Thu, 02 Apr 2009) | 4 lines
Add missing iteritems() call to the for loop in mailbox.MH.get_message().
Fixes issue2625.
........
R. David Murray [Thu, 2 Apr 2009 19:21:26 +0000 (19:21 +0000)]
A fix for Brett's fix for his fix. I think we got it right this time.
Brett Cannon [Thu, 2 Apr 2009 19:02:06 +0000 (19:02 +0000)]
A fix for the fix for the svnmerge metadata.
Brett Cannon [Thu, 2 Apr 2009 18:57:15 +0000 (18:57 +0000)]
r71034 somehow deleted all of the metadata for svnmerge. This is my attempt to fix my mistake.
Mark Dickinson [Thu, 2 Apr 2009 18:41:40 +0000 (18:41 +0000)]
Rewrap some long lines.
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.
Brett Cannon [Thu, 2 Apr 2009 15:35:09 +0000 (15:35 +0000)]
Make a test in importlib have a more robust test value.
Brett Cannon [Thu, 2 Apr 2009 15:32:07 +0000 (15:32 +0000)]
Give a more informative message on an importlib test upon failure.
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.
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.
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.
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 .
........
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.
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.
Benjamin Peterson [Thu, 2 Apr 2009 02:27:56 +0000 (02:27 +0000)]
remove unused variable
Benjamin Peterson [Thu, 2 Apr 2009 02:27:20 +0000 (02:27 +0000)]
rewrite error handling to make sense
Benjamin Peterson [Thu, 2 Apr 2009 01:50:37 +0000 (01:50 +0000)]
fix ref leaks
Benjamin Peterson [Thu, 2 Apr 2009 01:14:45 +0000 (01:14 +0000)]
add io and _pyio to test___all__
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
........
Benjamin Peterson [Thu, 2 Apr 2009 01:03:26 +0000 (01:03 +0000)]
add SEEK_ constants to _pyio
Benjamin Peterson [Thu, 2 Apr 2009 00:33:55 +0000 (00:33 +0000)]
make 'c' only accept bytes and 'C' only unicode #5499
Benjamin Peterson [Thu, 2 Apr 2009 00:24:00 +0000 (00:24 +0000)]
fix markup
Brett Cannon [Wed, 1 Apr 2009 23:36:48 +0000 (23:36 +0000)]
Explain a little about the explanation.
Brett Cannon [Wed, 1 Apr 2009 23:26:47 +0000 (23:26 +0000)]
Add a meta path importer example.
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.
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.
........
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__
........
Raymond Hettinger [Wed, 1 Apr 2009 20:52:13 +0000 (20:52 +0000)]
Add link to an alternative generator with a long-period.
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.
........
Brett Cannon [Wed, 1 Apr 2009 20:47:14 +0000 (20:47 +0000)]
Add some clarification to the importlib docs.
Benjamin Peterson [Wed, 1 Apr 2009 20:38:13 +0000 (20:38 +0000)]
barry has already been causing test breakage
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.
........
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.
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.
........
Raymond Hettinger [Wed, 1 Apr 2009 19:05:50 +0000 (19:05 +0000)]
Issue #5647: MutableSet.__iand__() no longer mutates self during iteration.
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 .
........
R. David Murray [Wed, 1 Apr 2009 16:39:21 +0000 (16:39 +0000)]
Remove redundant import of tkinter.
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 .
........
Georg Brandl [Wed, 1 Apr 2009 15:53:15 +0000 (15:53 +0000)]
#5636: fix next -> __next__ in csv reader docs.
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.
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.
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)!
Georg Brandl [Wed, 1 Apr 2009 04:28:33 +0000 (04:28 +0000)]
#5624: _winreg is winreg in Python 3.
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.
........
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
........
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.
........
Brett Cannon [Wed, 1 Apr 2009 03:35:20 +0000 (03:35 +0000)]
Rip out a useless method that the superclass implements properly.
Jeremy Hylton [Wed, 1 Apr 2009 02:35:56 +0000 (02:35 +0000)]
An HTTPResponse is, by its nature, readable.
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.
........
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.
........
Benjamin Peterson [Tue, 31 Mar 2009 23:11:32 +0000 (23:11 +0000)]
fix TextIOWrapper.read() when the buffer is not readable #5628
Raymond Hettinger [Tue, 31 Mar 2009 22:52:48 +0000 (22:52 +0000)]
Improve examples for collections.deque()
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
........
Georg Brandl [Tue, 31 Mar 2009 22:46:50 +0000 (22:46 +0000)]
Run 2to3 over new script.
Martin v. Löwis [Tue, 31 Mar 2009 22:42:41 +0000 (22:42 +0000)]
Readd -n.
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
........
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
........
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
........
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)
........
Georg Brandl [Tue, 31 Mar 2009 19:06:37 +0000 (19:06 +0000)]
Add missing label.
Georg Brandl [Tue, 31 Mar 2009 18:56:38 +0000 (18:56 +0000)]
#1717: fix-up docs for comparison in newtypes document.
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
........
Georg Brandl [Tue, 31 Mar 2009 18:41:03 +0000 (18:41 +0000)]
#5241: document missing A in regex howto.
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.
........
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.
........
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.
Kristján Valur Jónsson [Tue, 31 Mar 2009 17:47:50 +0000 (17:47 +0000)]
Fix a leaking "pathname" in import.c
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.
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.)
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.
........
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.
Georg Brandl [Tue, 31 Mar 2009 15:52:41 +0000 (15:52 +0000)]
#5548: do return the new module from PyMODINIT_FUNC functions.
Georg Brandl [Tue, 31 Mar 2009 15:49:02 +0000 (15:49 +0000)]
#5566: remove duplicate entry.
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.
........
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.
........
Jeremy Hylton [Tue, 31 Mar 2009 14:40:19 +0000 (14:40 +0000)]
Update HTTPResponse documentation and add placeholder for HTTPMessage.
Jeremy Hylton [Tue, 31 Mar 2009 14:38:13 +0000 (14:38 +0000)]
Document public attributes of urllib.request.Request.
Jeremy Hylton [Tue, 31 Mar 2009 14:37:44 +0000 (14:37 +0000)]
Change email address.
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.
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.
........
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.
........
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.
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.
Jesse Noller [Tue, 31 Mar 2009 03:37:07 +0000 (03:37 +0000)]
merge 70792 to py3k
Jesse Noller [Tue, 31 Mar 2009 03:25:07 +0000 (03:25 +0000)]
merge 70783 to py3k
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.
Georg Brandl [Tue, 31 Mar 2009 00:33:15 +0000 (00:33 +0000)]
Add example for new copydir_run_2to3().