Commit Graph

42181 Commits

Author SHA1 Message Date
R. David Murray 7118954914 Make it clear up front that shelve only records changes
when objects are assigned back to it when writeback is False.
2009-05-12 01:36:57 +00:00
Michael Foord 5471a77687 Add missing # to NEWS 2009-05-11 18:01:45 +00:00
Michael Foord 5d31e057c5 Adds a verbosity keyword argument to unittest.main plus a minor fix allowing you to specify test modules / classes
from the command line.

Closes issue 5995.

Michael Foord
2009-05-11 17:59:43 +00:00
Mark Dickinson b1d45856c2 Issue #5981: Fix some float.fromhex bugs related to inf and nan handling. 2009-05-11 15:33:08 +00:00
Tarek Ziadé 68e27eb834 distutils.test_build_clib added a new line at the end of the file, to avoid a warning with some compilers 2009-05-11 08:45:17 +00:00
Benjamin Peterson 3dabc10134 sys.setdefaultencoding() strikes me as a bad example 2009-05-10 23:52:09 +00:00
Tarek Ziadé 2bb084e643 fixed test_build_ext for win32 2009-05-10 21:27:55 +00:00
Benjamin Peterson e1577fb20f use isinstance 2009-05-10 14:16:47 +00:00
Tarek Ziadé e3f68a1a96 fixed test for all platforms 2009-05-10 12:36:48 +00:00
Tarek Ziadé 450ca11a58 now using EnvironGuard everywhere 2009-05-10 12:17:30 +00:00
Tarek Ziadé d35f2a33d5 refactored test_sysconfig so it uses test.test_support.EnvironmentVarGuard 2009-05-10 11:59:30 +00:00
Tarek Ziadé 234ab8fc1c Added tests form install_lib and pep8-fied the module 2009-05-10 11:42:46 +00:00
Tarek Ziadé d5d83424d2 fixed #5984 and improved test coverage 2009-05-10 10:12:08 +00:00
Benjamin Peterson b91e8ede7a make sure files are closed using the with statement 2009-05-10 02:29:00 +00:00
Benjamin Peterson 14c7bc2ad2 close file explicitly 2009-05-10 01:38:02 +00:00
Benjamin Peterson ceea163e7c clear error state properly 2009-05-09 19:18:36 +00:00
Benjamin Peterson 4c1fe51ca0 don't ignore exceptions from _PyObject_LengthHint 2009-05-09 19:17:59 +00:00
Benjamin Peterson a7dc949e17 ignore AttributeErrors for classic classes 2009-05-09 19:03:05 +00:00
Benjamin Peterson 784d455066 *sigh* deal with instances correctly 2009-05-09 17:23:03 +00:00
Benjamin Peterson 0a32f9c448 can't handle classic classes here 2009-05-09 17:13:10 +00:00
Benjamin Peterson 3f3d36bd03 ignore classic classes 2009-05-09 16:51:51 +00:00
Benjamin Peterson af1692a266 convert some more special methods to use _PyObject_LookupSpecial 2009-05-09 16:36:39 +00:00
Vinay Sajip f9b01fe692 Issue #5971: StreamHandler.handleError now swallows IOErrors which occur when trying to print a traceback. 2009-05-09 12:07:17 +00:00
Tarek Ziadé 812d77152e #5976: fixed distutils test_check_environ 2009-05-09 10:06:00 +00:00
Tarek Ziadé e2be83def8 Fixed Issue 5900: distutils.command.build_ext - Ensure RUNPATH is added to extension modules with RPATH if GNU ld is used 2009-05-09 08:28:53 +00:00
Benjamin Peterson 809e22543f lookup __reversed__ correctly as a special method 2009-05-09 02:07:04 +00:00
Benjamin Peterson 84ad84e0bb Merged revisions 72491-72493 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3

........
  r72491 | benjamin.peterson | 2009-05-08 19:33:27 -0500 (Fri, 08 May 2009) | 7 lines

  make 2to3 use unicode internally on 2.x

  This started out as a fix for #2660, but became this large refactoring
  when I realized the dire state this was in. 2to3 now uses
  tokenize.detect_encoding to decode the files correctly into unicode.
........
  r72492 | benjamin.peterson | 2009-05-08 19:35:38 -0500 (Fri, 08 May 2009) | 1 line

  remove compat code
........
  r72493 | benjamin.peterson | 2009-05-08 19:54:15 -0500 (Fri, 08 May 2009) | 1 line

  add a test for \r\n newlines
........
2009-05-09 01:01:14 +00:00
Gregory P. Smith 5edb1a1b0a Fix an off by one error on negative indexs to __getitem__
http://code.google.com/p/ipaddr-py/issues/detail?id=15
2009-05-08 23:16:47 +00:00
Jeffrey Yasskin f7f858d141 Issue 5954, PyFrame_GetLineNumber:
Most uses of PyCode_Addr2Line
(http://www.google.com/codesearch?q=PyCode_Addr2Line) are just trying to get
the line number of a specified frame, but there's no way to do that directly.
Forcing people to go through the code object makes them know more about the
guts of the interpreter than they should need.

The remaining uses of PyCode_Addr2Line seem to be getting the line from a
traceback (for example,
http://www.google.com/codesearch/p?hl=en#u_9_nDrchrw/pygame-1.7.1release/src/base.c&q=PyCode_Addr2Line),
which is replaced by the tb_lineno field.  So we may be able to deprecate
PyCode_Addr2Line entirely for external use.
2009-05-08 22:23:21 +00:00
Jeffrey Yasskin 1aa4700234 PyCode_NewEmpty:
Most uses of PyCode_New found by http://www.google.com/codesearch?q=PyCode_New
are trying to build an empty code object, usually to put it in a dummy frame
object. This patch adds a PyCode_NewEmpty wrapper which lets the user specify
just the filename, function name, and first line number, instead of also
requiring lots of code internals.
2009-05-08 21:51:06 +00:00
Mark Dickinson 083d1f9f9a Issue #5933: Fix gcc -Wextra compiler warnings (and remove some
trailing whitespace).
2009-05-08 20:58:08 +00:00
Thomas Heller fd1ee7a8a0 Add a file that contains diffs between offical libffi files and the
files in this repository.  Should make it easier to merge new libffi
versions.
2009-05-08 20:09:40 +00:00
Benjamin Peterson db7ebcf469 fix this test 2009-05-08 17:59:29 +00:00
Jeroen Ruigrok van der Werven b87b33462c Update the Windows locale mapping with the ones introduced with Vista. 2009-05-08 14:11:23 +00:00
Jeroen Ruigrok van der Werven 51133d4297 Add ISO-8859-16. 2009-05-08 13:07:39 +00:00
Georg Brandl d8282eeb51 Fix name. 2009-05-08 12:17:34 +00:00
Benjamin Peterson 3a9930db47 this is now a bound method 2009-05-08 03:29:26 +00:00
Benjamin Peterson 399e4c4f8f add _PyObject_LookupSpecial to handle fetching special method lookup 2009-05-08 03:06:00 +00:00
Philip Jenvey d846f1d4c2 #4351: more appropriate DeprecationWarning stacklevels 2009-05-08 02:28:39 +00:00
Tarek Ziadé 6f9977852f fixed AR/ARFLAGS values in test_sysconfig 2009-05-07 23:01:56 +00:00
Tarek Ziadé 3a6e886f5e run autoconf (step forgotten in r72445) 2009-05-07 22:19:27 +00:00
Tarek Ziadé 99f660af3f Fixed #5941: added ARFLAGS for the archiver command. 2009-05-07 21:20:34 +00:00
Tarek Ziadé ff748cd6eb removed remaining spaces 2009-05-07 21:13:02 +00:00
Eric Smith 7523234abf Fixed wording for formatting integers: precision is not allowed. 2009-05-07 19:36:09 +00:00
R. David Murray f7e7babb55 Pre-opened test file needs to be opened in binary mode. 2009-05-07 18:09:58 +00:00
R. David Murray d3bf34cd4b News item for Issue5955. 2009-05-07 16:29:19 +00:00
R. David Murray 8fd522fb5f Issue5955: aifc's close method did not close the file it wrapped,
now it does.  This also means getfp method now returns the real fp.
2009-05-07 16:27:02 +00:00
Benjamin Peterson 0258811125 actually close files instead of leaving it to the gc #5955 2009-05-07 11:45:38 +00:00
R. David Murray dd26681155 Revert inappropriate doc change. 2009-05-07 01:43:57 +00:00
R. David Murray e202700f4f Document how to pass a 'decode' argument to get_payload when
is_multipart is False.
2009-05-07 01:39:25 +00:00