summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Merged revisions 70801,70809 via svnmerge fromJeremy Hylton2009-03-314-22/+123
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. ........
* Update HTTPResponse documentation and add placeholder for HTTPMessage.Jeremy Hylton2009-03-311-4/+26
|
* Document public attributes of urllib.request.Request.Jeremy Hylton2009-03-311-40/+78
|
* Change email address.Jeremy Hylton2009-03-311-1/+1
|
* Simplify the Request class. The basic components of the parsedJeremy Hylton2009-03-314-125/+138
| | | | | | | | | | | | 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.
* Merged revisions 70800 via svnmerge fromHirokazu Yamamoto2009-03-313-4/+21
| | | | | | | | | | 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. ........
* Merged revisions 70802 via svnmerge fromRonald Oussoren2009-03-311-0/+11
| | | | | | | | | | | | 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. ........
* Fix segfaults when running test_exceptions with coverage tracing, caused by ↵Georg Brandl2009-03-314-10/+114
| | | | 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.
* The message for the exception when time.strptime was passed something otherBrett Cannon2009-03-311-1/+1
| | | | than str did not output the type of the argument but the object itself.
* merge 70792 to py3kJesse Noller2009-03-311-1/+1
|
* merge 70783 to py3kJesse Noller2009-03-314-2/+9
|
* Add new copydir_run_2to3() function, for use e.g. in test runners to ↵Georg Brandl2009-03-311-0/+33
| | | | transparently convert and run tests written for Python 2.
* Add example for new copydir_run_2to3().Georg Brandl2009-03-313-2/+29
|
* Merged revisions 70778 via svnmerge fromRonald Oussoren2009-03-302-4/+8
| | | | | | | | | | | | 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. ........
* "Port" the fix for issue 1974 from the trunk (2.7). Because Python 3.x does ↵Barry Warsaw2009-03-305-84/+7
| | | | | | 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.
* finalize the queue to resolve test issueJesse Noller2009-03-301-0/+2
|
* Issue #5604: non-ASCII characters in module name passed toGuido van Rossum2009-03-304-16/+117
| | | | | | | | 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.)
* Fix for Issue4962, issue4675.Senthil Kumaran2009-03-303-2/+21
|
* Make sure time.strptime only accepts strings (and document the fact likeBrett Cannon2009-03-305-7/+25
| | | | | | | 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.
* Remove merging leftover.Georg Brandl2009-03-301-1/+0
|
* Thorough review of importlib docs. Reviewed by Brett himself.Guido van Rossum2009-03-301-34/+50
|
* Fix for issue 5558Ronald Oussoren2009-03-301-3/+5
|
* Merged revisions 70746 via svnmerge fromRonald Oussoren2009-03-302-1/+7
| | | | | | | | | | 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 ........
* Merged revisions 70741 via svnmerge fromRonald Oussoren2009-03-302-5/+12
| | | | | | | | | | 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 ........
* Fix importlib.machinery.PathFinder.find_module() to essentially skip over NoneBrett Cannon2009-03-302-3/+23
| | | | | | 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.
* Enable "--with-computed-gotos" for the binary installerRonald Oussoren2009-03-301-1/+1
| | | | on OSX.
* Merged revisions 70737 via svnmerge fromRonald Oussoren2009-03-302-87/+148
| | | | | | | | | | | | | | 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) ........
* Merged revisions 70735 via svnmerge fromRonald Oussoren2009-03-301-2/+2
| | | | | | | | | | | 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. ........
* Merged revisions 70730 via svnmerge fromRonald Oussoren2009-03-302-1/+5
| | | | | | | | | | | 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) ........
* Merged revisions 70727 via svnmerge fromRonald Oussoren2009-03-302-109/+64
| | | | | | | | | | | | | 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 ........
* fix bad NEWS mergeJesse Noller2009-03-301-30/+4
|
* Merge 70717 to 30maintJesse Noller2009-03-303-0/+55
|
* Add simple tests for __import__ for future optimizations to importlib.Brett Cannon2009-03-301-0/+82
|
* Merged revisions 70656,70668-70669,70671,70701,70703,70706 via svnmerge fromBenjamin Peterson2009-03-304-8/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70656 | georg.brandl | 2009-03-28 14:33:33 -0500 (Sat, 28 Mar 2009) | 2 lines Add a script to fixup rst files if the pre-commit hook rejects them. ........ r70668 | benjamin.peterson | 2009-03-28 22:16:57 -0500 (Sat, 28 Mar 2009) | 1 line a more realistic example ........ r70669 | benjamin.peterson | 2009-03-28 22:31:40 -0500 (Sat, 28 Mar 2009) | 1 line stop the versionchanged directive from hiding the docs ........ r70671 | benjamin.peterson | 2009-03-28 22:39:58 -0500 (Sat, 28 Mar 2009) | 1 line fix consistency ........ r70701 | benjamin.peterson | 2009-03-29 17:27:26 -0500 (Sun, 29 Mar 2009) | 1 line add missing import ........ r70703 | benjamin.peterson | 2009-03-29 21:14:21 -0500 (Sun, 29 Mar 2009) | 1 line fix import ........ r70706 | benjamin.peterson | 2009-03-30 09:42:23 -0500 (Mon, 30 Mar 2009) | 1 line add missing import ........
* Merged revisions ↵Benjamin Peterson2009-03-3017-77/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 70578,70599,70641-70642,70650,70660-70661,70674,70691,70697-70698,70700,70704 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r70578 | benjamin.peterson | 2009-03-23 22:24:56 -0500 (Mon, 23 Mar 2009) | 1 line this is better written using assertRaises ........ r70599 | benjamin.peterson | 2009-03-25 16:42:51 -0500 (Wed, 25 Mar 2009) | 1 line this can be slightly less ugly ........ r70641 | guilherme.polo | 2009-03-27 16:43:08 -0500 (Fri, 27 Mar 2009) | 3 lines Adjusted _tkinter to compile without warnings when WITH_THREAD is not defined (part of issue #5035) ........ r70642 | georg.brandl | 2009-03-27 19:48:48 -0500 (Fri, 27 Mar 2009) | 1 line Fix typo. ........ r70650 | benjamin.peterson | 2009-03-28 14:16:10 -0500 (Sat, 28 Mar 2009) | 1 line give os.symlink and os.link() better parameter names #5564 ........ r70660 | georg.brandl | 2009-03-28 14:52:58 -0500 (Sat, 28 Mar 2009) | 1 line Switch to fixed Sphinx version. ........ r70661 | georg.brandl | 2009-03-28 14:57:36 -0500 (Sat, 28 Mar 2009) | 2 lines Add section numbering to some of the larger subdocuments. ........ r70674 | guilherme.polo | 2009-03-29 05:19:05 -0500 (Sun, 29 Mar 2009) | 1 line Typo fix. ........ r70691 | raymond.hettinger | 2009-03-29 13:51:11 -0500 (Sun, 29 Mar 2009) | 1 line Make life easier for non-CPython implementations. ........ r70697 | benjamin.peterson | 2009-03-29 16:22:35 -0500 (Sun, 29 Mar 2009) | 1 line this has been fixed since 2.6 (I love removing these) ........ r70698 | benjamin.peterson | 2009-03-29 16:31:05 -0500 (Sun, 29 Mar 2009) | 1 line thanks to guido's bytecode verifier, this is fixed ........ r70700 | benjamin.peterson | 2009-03-29 16:50:14 -0500 (Sun, 29 Mar 2009) | 1 line use the awesome new status iterator ........ r70704 | benjamin.peterson | 2009-03-29 21:49:32 -0500 (Sun, 29 Mar 2009) | 1 line there's actually three methods here #5600 ........
* Fix test_subprocess so that it works when launched from another directory thanAntoine Pitrou2009-03-291-2/+3
| | | | the source dist.
* Make life easier for non-CPython implementationsRaymond Hettinger2009-03-291-1/+1
|
* Rewrite IOBase.readall to avoid costly string resizes, and plug a leakAntoine Pitrou2009-03-292-38/+21
|
* Plug another leak, and finally add a test for #1174606 (read() from /dev/zero).Antoine Pitrou2009-03-292-0/+17
| | | | The leak was the reason my previous attempts at testing failed...
* Fix leak in _fileio.c (patch by Hirokazu Yamamoto)Antoine Pitrou2009-03-291-0/+1
|
* Issue #5463: Remove _PY_STRUCT_RANGE_CHECKING constant from structMark Dickinson2009-03-294-50/+39
| | | | | | module, and remove associated code from test_struct. This was a mechanism for skipping some of the tests for overflow behaviour when packing integers; it's no longer necessary.
* Merged revisions 70682,70684 via svnmerge fromMark Dickinson2009-03-291-0/+9
| | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70682 | mark.dickinson | 2009-03-29 17:17:16 +0100 (Sun, 29 Mar 2009) | 3 lines Issue #532631: Add paranoid check to avoid potential buffer overflow on systems with sizeof(int) > 4. ........ r70684 | mark.dickinson | 2009-03-29 17:24:29 +0100 (Sun, 29 Mar 2009) | 3 lines Issue #532631: Apply floatformat changes to unicodeobject.c as well as stringobject.c. ........
* Merged revisions 70678 via svnmerge fromMark Dickinson2009-03-293-3/+3
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70678 | mark.dickinson | 2009-03-29 15:37:51 +0100 (Sun, 29 Mar 2009) | 3 lines Issue #532631: Replace confusing fabs(x)/1e25 >= 1e25 test with fabs(x) >= 1e50, and fix documentation. ........
* fix variable name #5595Benjamin Peterson2009-03-292-1/+3
|
* Blocked revisions 70672 via svnmergeBenjamin Peterson2009-03-290-0/+0
| | | | | | | | | | ........ r70672 | collin.winter | 2009-03-28 22:44:19 -0500 (Sat, 28 Mar 2009) | 4 lines Add the ability to control the random seed used by regrtest.py -r. This adds a --randseed option, and makes regrtest.py -r indicate what random seed it's using so that that value can later be fed back to --randseed. This option is useful for tracking down test order-related issues found by make buildbottest, for example. ........
* Port r70672 to py3k. Add the ability to control the random seed used by ↵Collin Winter2009-03-291-5/+18
| | | | regrtest.py -r.
* Restore a conditional I removed by mistake.Antoine Pitrou2009-03-291-1/+1
|
* Issue #1174606: Calling read() without arguments of an unbounded fileAntoine Pitrou2009-03-292-3/+17
| | | | | | (typically /dev/zero under Unix) could crash the interpreter. No test as there always seems to be a risk of putting the machine on its knees.
* Issue #5592: make the encodefuncs symbol staticAntoine Pitrou2009-03-281-11/+11
|
* Merged revisions ↵Benjamin Peterson2009-03-2843-215/+359
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 70554,70588-70589,70598,70605,70611-70621,70623-70624,70626-70627 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r70554 | benjamin.peterson | 2009-03-23 16:25:15 -0500 (Mon, 23 Mar 2009) | 1 line complain when there's no last exception ........ r70588 | benjamin.peterson | 2009-03-24 17:56:32 -0500 (Tue, 24 Mar 2009) | 1 line fix newline issue in test summary ........ r70589 | benjamin.peterson | 2009-03-24 18:07:07 -0500 (Tue, 24 Mar 2009) | 1 line another style nit ........ r70598 | benjamin.peterson | 2009-03-25 16:24:04 -0500 (Wed, 25 Mar 2009) | 1 line add shorthands for expected failures and unexpected success ........ r70605 | benjamin.peterson | 2009-03-26 11:32:23 -0500 (Thu, 26 Mar 2009) | 1 line remove uneeded function ........ r70611 | benjamin.peterson | 2009-03-26 13:35:37 -0500 (Thu, 26 Mar 2009) | 1 line add much better tests for python version information parsing ........ r70612 | benjamin.peterson | 2009-03-26 13:55:48 -0500 (Thu, 26 Mar 2009) | 1 line more and more implementations now support sys.subversion ........ r70613 | benjamin.peterson | 2009-03-26 13:58:30 -0500 (Thu, 26 Mar 2009) | 1 line roll old test in with new one ........ r70614 | benjamin.peterson | 2009-03-26 14:09:21 -0500 (Thu, 26 Mar 2009) | 1 line add support for PyPy ........ r70615 | benjamin.peterson | 2009-03-26 14:58:18 -0500 (Thu, 26 Mar 2009) | 5 lines add some useful utilities for skipping tests with unittest's new skipping ability most significantly apply a modified portion of the patch from #4242 with patches for skipping implementation details ........ r70616 | benjamin.peterson | 2009-03-26 15:05:50 -0500 (Thu, 26 Mar 2009) | 1 line rename TestCase.skip() to skipTest() because it causes annoying problems with trial #5571 ........ r70617 | benjamin.peterson | 2009-03-26 15:17:27 -0500 (Thu, 26 Mar 2009) | 1 line apply the second part of #4242's patch; classify all the implementation details in test_descr ........ r70618 | benjamin.peterson | 2009-03-26 15:48:25 -0500 (Thu, 26 Mar 2009) | 1 line remove test_support.TestSkipped and just use unittest.SkipTest ........ r70619 | benjamin.peterson | 2009-03-26 15:49:40 -0500 (Thu, 26 Mar 2009) | 1 line fix naming ........ r70620 | benjamin.peterson | 2009-03-26 16:10:30 -0500 (Thu, 26 Mar 2009) | 1 line fix incorrect auto-translation of TestSkipped -> unittest.SkipTest ........ r70621 | benjamin.peterson | 2009-03-26 16:11:16 -0500 (Thu, 26 Mar 2009) | 1 line must pass argument to get expected behavior ;) ........ r70623 | benjamin.peterson | 2009-03-26 16:30:10 -0500 (Thu, 26 Mar 2009) | 1 line add missing import ........ r70624 | benjamin.peterson | 2009-03-26 16:30:54 -0500 (Thu, 26 Mar 2009) | 1 line ** is required here ........ r70626 | benjamin.peterson | 2009-03-26 16:40:29 -0500 (Thu, 26 Mar 2009) | 1 line update email tests to use SkipTest ........ r70627 | benjamin.peterson | 2009-03-26 16:44:43 -0500 (Thu, 26 Mar 2009) | 1 line fix another name ........