Commit Graph

42713 Commits

Author SHA1 Message Date
Antoine Pitrou 696e03553b Issue #477863: Print a warning at shutdown if gc.garbage is not empty. 2010-08-08 22:18:46 +00:00
Victor Stinner 2e5f1178ac Issue #9425: fix setup_context() for non-ascii filenames
setup_context() replaces .pyc or .pyo filename suffix by .py, but it
didn't work if the filename contains a non-ascii character because the
function used the wrong unit for the length (number of characters
instead of the number of bytes).

With this patch, it uses unicode filenames instead of bytes filenames,
to fix the bug and to be fully unicode compliant.
2010-08-08 22:12:45 +00:00
Florent Xicluna eb6f3ead00 Fix #8530: Prevent stringlib fastsearch from reading beyond the front of an array. 2010-08-08 22:07:16 +00:00
Antoine Pitrou bddc9fe22b Issue #5319: Print an error if flushing stdout fails at interpreter
shutdown.
2010-08-08 20:46:42 +00:00
Florent Xicluna c17f17294f Issue #8047: Fix the xml.etree serializer to return bytes by default.
Use ``encoding="unicode"`` to generate a Unicode string.
2010-08-08 19:48:29 +00:00
Benjamin Peterson 1a0a737b13 revert r83830, breaks tests on unixes 2010-08-08 19:08:44 +00:00
Benjamin Peterson 4eb5fa56e4 Merged revisions 82779,82855,83740,83789-83791,83797-83801,83803,83811,83827,83844 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3

........
  r82779 | benjamin.peterson | 2010-07-10 14:45:08 -0500 (Sat, 10 Jul 2010) | 1 line

  typo in attribute name #9217
........
  r82855 | benjamin.peterson | 2010-07-13 16:27:38 -0500 (Tue, 13 Jul 2010) | 1 line

  remove more extraneous commas #9245
........
  r83740 | alexandre.vassalotti | 2010-08-05 01:58:36 -0500 (Thu, 05 Aug 2010) | 4 lines

  Issue 5077: Update fixer for the other functions gone from the operator module.

  Patch by Meador Inge.
........
  r83789 | benjamin.peterson | 2010-08-07 17:45:14 -0500 (Sat, 07 Aug 2010) | 1 line

  cleanup and use unicode consistently
........
  r83790 | benjamin.peterson | 2010-08-07 17:52:06 -0500 (Sat, 07 Aug 2010) | 1 line

  unicode literal
........
  r83791 | benjamin.peterson | 2010-08-07 17:52:55 -0500 (Sat, 07 Aug 2010) | 1 line

  .get() is pointless here
........
  r83797 | benjamin.peterson | 2010-08-07 18:54:51 -0500 (Sat, 07 Aug 2010) | 1 line

  add a function to find how a node is indented
........
  r83798 | benjamin.peterson | 2010-08-07 18:55:28 -0500 (Sat, 07 Aug 2010) | 1 line

  when splitting import statements, use correct indentation #9386
........
  r83799 | benjamin.peterson | 2010-08-07 18:57:43 -0500 (Sat, 07 Aug 2010) | 1 line

  double quotes
........
  r83800 | benjamin.peterson | 2010-08-07 18:58:52 -0500 (Sat, 07 Aug 2010) | 1 line

  add another test
........
  r83801 | benjamin.peterson | 2010-08-07 19:02:10 -0500 (Sat, 07 Aug 2010) | 1 line

  cleanup; style-nits
........
  r83803 | benjamin.peterson | 2010-08-07 19:05:08 -0500 (Sat, 07 Aug 2010) | 1 line

  slightly more explicit
........
  r83811 | benjamin.peterson | 2010-08-07 22:56:44 -0500 (Sat, 07 Aug 2010) | 4 lines

  Fix node.pre_order() to call the right method on its children.

  This was a rather tragic copy-paste error.
........
  r83827 | benjamin.peterson | 2010-08-08 08:12:48 -0500 (Sun, 08 Aug 2010) | 1 line

  cause test to actually run and fix it
........
  r83844 | benjamin.peterson | 2010-08-08 13:46:37 -0500 (Sun, 08 Aug 2010) | 1 line

  fix whitespace
........
2010-08-08 19:01:25 +00:00
Thomas Heller bf4cc5d469 Fix issue6869: refcount problem in the _ctypes extension. 2010-08-08 18:16:20 +00:00
Florent Xicluna 39d795d8c1 Issue #7564: Skip test_ioctl if another process is attached to /dev/tty. 2010-08-08 18:06:13 +00:00
Florent Xicluna e7eaec699e Typo. 2010-08-08 18:03:44 +00:00
Thomas Heller 864cc6703a Fix issue5504: ctypes does now work with systems where mmap can't be
PROT_WRITE and PROT_EXEC.
2010-08-08 17:58:53 +00:00
Mark Dickinson 93d768d632 Remove unused import. 2010-08-08 17:12:46 +00:00
Benjamin Peterson 4e7f285252 remove dead code #9292 2010-08-08 16:54:58 +00:00
Florent Xicluna 37d3d9aa96 Add test case for the HTTPResponse being an iterable. Follow-up of issue #4608. 2010-08-08 16:25:27 +00:00
Tim Golden e3f76168a9 Issue #2304: Add additional quotes when using cmd shell on Windows. Original patch from Gabriel Genellina 2010-08-08 16:17:48 +00:00
Florent Xicluna 419e384601 Use unittest specific methods for some urllib test cases. And replace urllib2 with urllib.request in comments. 2010-08-08 16:16:07 +00:00
Benjamin Peterson 1f594ad424 use same quoting as the rest of the file 2010-08-08 13:17:07 +00:00
Senthil Kumaran c41e1fad49 Add a news entry for Issue8280. 2010-08-08 11:50:22 +00:00
Senthil Kumaran d95cc75483 Fix Issue8280 - urllib2's Request method will remove fragements in the url.
This is how it should work,wget and curl work like this way too. Old behavior was wrong.
2010-08-08 11:27:53 +00:00
Tim Golden ad537f23e2 Issue #3210: Revert C module changes and apply patch from Hirokazu Yamamoto instead 2010-08-08 11:18:16 +00:00
Raymond Hettinger afdeca980d Issue #4570: Clean-up tutorial example 2010-08-08 01:30:45 +00:00
Raymond Hettinger d331ce9e66 Issue #9507: Named tuple repr will now automatically display the right
name in a tuple subclass.
2010-08-08 01:13:42 +00:00
Raymond Hettinger a6b76ba52e Improve readability of collections docs by adding a summary table
at the top and by list concrete classes before abstract base classes.
2010-08-08 00:29:08 +00:00
Benjamin Peterson a09fabc14b set svn:eol-style 2010-08-08 00:04:26 +00:00
Raymond Hettinger 648e725712 Fix typo 2010-08-07 23:37:37 +00:00
Raymond Hettinger 0e833c3227 Document implementation notes for priority queues 2010-08-07 23:31:27 +00:00
Benjamin Peterson fa45076cbd kill outdated comment 2010-08-07 21:32:12 +00:00
Raymond Hettinger 769b6d3009 Clean-up docstring in examples. 2010-08-07 21:31:55 +00:00
Victor Stinner 0a3ddad666 Issue #9425: Create run_file() subfunction
* Call Py_MakePendingCalls() before converting the filename from
   wchar_t* to char*
 * Use PyUnicode_AsUTF8String() instead of _PyUnicode_AsString()
2010-08-07 16:34:25 +00:00
Mark Dickinson af43e9a288 Issue #8433: Fix test_curses failure for platforms with recent versions of ncurses. 2010-08-07 12:33:36 +00:00
Victor Stinner a62207c584 Issue #9425: Create run_command() subfunction
Use PyUnicode_AsUTF8String() instead of _PyUnicode_AsString()
2010-08-07 10:57:17 +00:00
Victor Stinner 6c6f851eae Issue #9425: skip tests if a filename is not encodable 2010-08-07 10:09:35 +00:00
Raymond Hettinger 87c9d6cf9c Improve the docs for bisect to cover common searching tasks. 2010-08-07 07:36:55 +00:00
Raymond Hettinger 1b66996281 Fix nit (sentinel on lhs of comparison). 2010-08-07 05:54:08 +00:00
Raymond Hettinger 08d01eedef Add partition recipe to itertools docs. 2010-08-07 05:36:53 +00:00
Raymond Hettinger e9499aef0a Fix markup 2010-08-07 04:19:49 +00:00
Brian Curtin 42143562c2 Fix an assertRaises situation and typo. Also pass all tests to run_unittest
rather than do it by platform -- the proper skips are in place already.
2010-08-07 03:47:21 +00:00
Raymond Hettinger 86f9613957 Improve the whatsnew article on the lru/lfu cache decorators. 2010-08-06 23:23:49 +00:00
Mark Dickinson 7e3b948cfe Issue #9530: Fix a couple of places where undefined behaviour can
occur, as a result of signed integer overflow.
2010-08-06 21:33:18 +00:00
R. David Murray d0511b0efb Add xml subpackages, since they are likely to have different maintainers.
And if not they can be merged back together when that becomes apparent.
2010-08-06 21:18:49 +00:00
Brian Curtin ef9efbd69c Fix #9324: Add parameter validation to signal.signal on Windows in order
to prevent crashes.
2010-08-06 19:27:32 +00:00
Mark Dickinson e6fc7401a9 In PySlice_IndicesEx, clip the step to [-PY_SSIZE_T_MAX, PY_SSIZE_T_MAX] rather than [PY_SSIZE_T_MIN, PY_SSIZE_T_MAX]. 2010-08-06 18:55:26 +00:00
Tim Golden af5ac3974b Issue #3210: Ensure stdio handles are closed if CreateProcess fails 2010-08-06 13:03:56 +00:00
Martin v. Löwis 2e3d539ce2 Change pyc removal to support __pycache__. 2010-08-06 10:43:31 +00:00
Raymond Hettinger 38bf2ccf4c Issue8757: Implicit set-to-frozenset conversion not thread-safe. 2010-08-06 09:52:17 +00:00
Mark Dickinson 4f3086f264 Misc/NEWS entry for r83751. 2010-08-06 09:38:58 +00:00
Mark Dickinson 346f0af4f6 Issue #9526: Remove outdated casts to int that were preventing the array module from working correctly with arrays > 2GB. 2010-08-06 09:36:57 +00:00
Raymond Hettinger 373e78c6f5 Fix the VS8.0 build 2010-08-06 09:22:46 +00:00
Gerhard Häring c34d76cdc3 Issue #3854: Documented using the sqlite3 module with multiple threads. 2010-08-06 06:12:05 +00:00
Brian Curtin f045d775fd Issue #9524: Document that two CTRL* signals are meant for use only
with os.kill.
2010-08-05 18:56:00 +00:00