]> granicus.if.org Git - python/log
python
15 years ago#6694: fix old function names.
Georg Brandl [Thu, 13 Aug 2009 09:16:39 +0000 (09:16 +0000)]
#6694: fix old function names.

15 years agoMerged revisions 74328,74332-74333,74365 via svnmerge from
Georg Brandl [Thu, 13 Aug 2009 07:56:35 +0000 (07:56 +0000)]
Merged revisions 74328,74332-74333,74365 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r74328 | georg.brandl | 2009-08-06 17:06:25 +0200 (Do, 06 Aug 2009) | 1 line

  Fix base keyword arg name for int() and long().
........
  r74332 | georg.brandl | 2009-08-06 19:23:21 +0200 (Do, 06 Aug 2009) | 1 line

  Fix punctuation and one copy-paste error.
........
  r74333 | georg.brandl | 2009-08-06 19:43:55 +0200 (Do, 06 Aug 2009) | 1 line

  #6658: fix two typos.
........
  r74365 | georg.brandl | 2009-08-13 09:48:05 +0200 (Do, 13 Aug 2009) | 1 line

  #6679: Remove mention that sub supports no flags.
........

15 years ago#6126: fix pdb stepping and breakpoints by giving the executed code the correct filen...
Georg Brandl [Thu, 13 Aug 2009 07:50:57 +0000 (07:50 +0000)]
#6126: fix pdb stepping and breakpoints by giving the executed code the correct filename; this used execfile() in 2.x which did this automatically.

15 years agosearch through db.h in binary #6680
Benjamin Peterson [Wed, 12 Aug 2009 18:18:03 +0000 (18:18 +0000)]
search through db.h in binary #6680

15 years agofix typo in c++ ifdef
Benjamin Peterson [Wed, 12 Aug 2009 18:11:03 +0000 (18:11 +0000)]
fix typo in c++ ifdef

15 years agoFix typo
Antoine Pitrou [Thu, 6 Aug 2009 21:00:37 +0000 (21:00 +0000)]
Fix typo

15 years agoMerged revisions 74336 via svnmerge from
Antoine Pitrou [Thu, 6 Aug 2009 20:29:56 +0000 (20:29 +0000)]
Merged revisions 74336 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r74336 | antoine.pitrou | 2009-08-06 22:18:29 +0200 (jeu., 06 août 2009) | 8 lines

  Issue #6629: Fix a data corruption issue in the new `io` package, which could
  occur when writing to a BufferedRandom object (e.g. a file opened in "rb+" or
  "wb+" mode) after having buffered a certain amount of data for reading. This
  bug was not present in the pure Python implementation.

  Yes, this is a serious issue.
........

15 years agotypo
Philip Jenvey [Thu, 6 Aug 2009 20:00:08 +0000 (20:00 +0000)]
typo

15 years ago#6648: mention surrogateescape handler where all standard handlers are listed.
Georg Brandl [Thu, 6 Aug 2009 17:51:03 +0000 (17:51 +0000)]
#6648: mention surrogateescape handler where all standard handlers are listed.

15 years agoIssue #6622: Fix 'variable referenced before assignment' bug in POP3.apop.
Mark Dickinson [Thu, 6 Aug 2009 16:06:25 +0000 (16:06 +0000)]
Issue #6622:  Fix 'variable referenced before assignment' bug in POP3.apop.
Thanks Vincent Legoll.

15 years agoIssue 5449: Fix io.BytesIO to not accept arbitrary keywords
Alexandre Vassalotti [Tue, 4 Aug 2009 23:19:13 +0000 (23:19 +0000)]
Issue 5449: Fix io.BytesIO to not accept arbitrary keywords

Patch contributed by Erick Tryzelaar.

15 years agoMerged revisions 74312 via svnmerge from
Mark Dickinson [Tue, 4 Aug 2009 21:57:18 +0000 (21:57 +0000)]
Merged revisions 74312 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r74312 | mark.dickinson | 2009-08-04 22:56:04 +0100 (Tue, 04 Aug 2009) | 4 lines

  Issue #6620: Slightly safer code for _grouping_intervals in the locale
  module.  Fixes a 'possible use before assignment' warning from pylint.
  Thanks Vincent Legoll.
........

15 years agoSlightly improve buffer-related error message.
Georg Brandl [Tue, 4 Aug 2009 20:29:27 +0000 (20:29 +0000)]
Slightly improve buffer-related error message.

15 years agoMerged revisions 74307 via svnmerge from
Georg Brandl [Tue, 4 Aug 2009 20:25:54 +0000 (20:25 +0000)]
Merged revisions 74307 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r74307 | georg.brandl | 2009-08-04 22:22:43 +0200 (Di, 04 Aug 2009) | 1 line

  Add donation link to docs footer.
........

15 years agoMerged revisions 74303 via svnmerge from
Mark Dickinson [Tue, 4 Aug 2009 19:25:12 +0000 (19:25 +0000)]
Merged revisions 74303 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r74303 | mark.dickinson | 2009-08-04 20:22:35 +0100 (Tue, 04 Aug 2009) | 2 lines

  Issue #6644:  Fix compile error on AIX.
........

15 years agoIssue 6637: defaultdict.copy() failed with an empty factory.
Raymond Hettinger [Tue, 4 Aug 2009 19:16:39 +0000 (19:16 +0000)]
Issue 6637: defaultdict.copy() failed with an empty factory.

15 years ago#6618: fix invalid 3k syntax.
Georg Brandl [Mon, 3 Aug 2009 17:50:20 +0000 (17:50 +0000)]
#6618: fix invalid 3k syntax.

15 years agoMerged revisions 74291 via svnmerge from
Frank Wierzbicki [Sun, 2 Aug 2009 22:19:05 +0000 (22:19 +0000)]
Merged revisions 74291 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r74291 | frank.wierzbicki | 2009-08-02 16:37:48 -0400 (Sun, 02 Aug 2009) | 6 lines

  Adding tests derived from the Jython project.  These are primarily tests of
  'single' statements with partial sentences (so they test things like "try:" in
  interactive mode).  Others tests hit areas that previously failed in Jython. A
  couple still fail in Jython, mainly due to the difficulty of parsing partial
  sentences (but should be fixed by Jython 2.6).
........

15 years agoIssues #2715, #6621: Remove unused and undefined references to FSSpec
Mark Dickinson [Sun, 2 Aug 2009 20:08:54 +0000 (20:08 +0000)]
Issues #2715, #6621: Remove unused and undefined references to FSSpec
from binhex module.  Thanks Vincent Legoll.

15 years agoMerged revisions 74285 via svnmerge from
Mark Dickinson [Sun, 2 Aug 2009 15:51:19 +0000 (15:51 +0000)]
Merged revisions 74285 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r74285 | mark.dickinson | 2009-08-02 16:40:11 +0100 (Sun, 02 Aug 2009) | 3 lines

  Issue #6619:  Remove duplicate 'isgenerator' function from inspect module.
  Thanks Vincent Legoll.
........

15 years agoBlocked revisions 74281 via svnmerge
Mark Dickinson [Sun, 2 Aug 2009 11:02:05 +0000 (11:02 +0000)]
Blocked revisions 74281 via svnmerge

........
  r74281 | mark.dickinson | 2009-08-02 11:59:36 +0100 (Sun, 02 Aug 2009) | 4 lines

  Issue #6595: Allow Decimal constructor to accept non-European decimal
  digits, as recommended by the specification.  (Backport of r74279 from
  py3k.)
........

15 years agoIssue #6595: Allow Decimal constructor to accept non-European decimal digits, as...
Mark Dickinson [Sun, 2 Aug 2009 10:14:23 +0000 (10:14 +0000)]
Issue #6595: Allow Decimal constructor to accept non-European decimal digits, as recommended by the specification.

15 years ago- Issue #6624: yArg_ParseTuple with "s" format when parsing argument with
Sean Reifscheider [Sat, 1 Aug 2009 23:55:06 +0000 (23:55 +0000)]
- Issue #6624: yArg_ParseTuple with "s" format when parsing argument with
  NUL: Bogus TypeError detail string.

15 years agoMerged revisions 74269 via svnmerge from
Eric Smith [Thu, 30 Jul 2009 13:43:08 +0000 (13:43 +0000)]
Merged revisions 74269 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r74269 | eric.smith | 2009-07-30 09:39:44 -0400 (Thu, 30 Jul 2009) | 1 line

  Issue 6330: Fix --enable-unicode=ucs4.
........

15 years agoMerged revisions 74265 via svnmerge from
Mark Dickinson [Thu, 30 Jul 2009 10:02:09 +0000 (10:02 +0000)]
Merged revisions 74265 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r74265 | mark.dickinson | 2009-07-30 11:00:10 +0100 (Thu, 30 Jul 2009) | 1 line

  Documentation fix for change introduced in r71832
........

15 years agoMerged revisions 74075,74187,74197,74201,74216,74225 via svnmerge from
Alexandre Vassalotti [Wed, 29 Jul 2009 20:12:15 +0000 (20:12 +0000)]
Merged revisions 74075,74187,74197,74201,74216,74225 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r74075 | georg.brandl | 2009-07-18 05:06:31 -0400 (Sat, 18 Jul 2009) | 1 line

  #6505: fix typos.
........
  r74187 | benjamin.peterson | 2009-07-23 10:19:08 -0400 (Thu, 23 Jul 2009) | 1 line

  use bools for autoraise
........
  r74197 | benjamin.peterson | 2009-07-24 22:03:48 -0400 (Fri, 24 Jul 2009) | 1 line

  clarify
........
  r74201 | amaury.forgeotdarc | 2009-07-25 12:22:06 -0400 (Sat, 25 Jul 2009) | 2 lines

  Better name a variable: 'buf' seems to imply a mutable buffer.
........
  r74216 | michael.foord | 2009-07-26 17:12:14 -0400 (Sun, 26 Jul 2009) | 1 line

  Issue 6581. Michael Foord
........
  r74225 | kurt.kaiser | 2009-07-27 12:09:28 -0400 (Mon, 27 Jul 2009) | 5 lines

  1. Clean workspace more thoughly before build.
  2. Add url of branch we are building to 'results' webpage.
     (url is now available in $repo_path, could be added to failure email.)
  3. Adjust permissions to improve upload reliability.
........

15 years agoBlocked revisions 74134,74147 via svnmerge
Alexandre Vassalotti [Wed, 29 Jul 2009 20:00:39 +0000 (20:00 +0000)]
Blocked revisions 74134,74147 via svnmerge

........
  r74134 | thomas.heller | 2009-07-21 02:27:14 -0400 (Tue, 21 Jul 2009) | 3 lines

  Issue #6493: Fix a ctypes problem setting bitfields more than 31 bits
  wide.
........
  r74147 | thomas.heller | 2009-07-21 15:04:02 -0400 (Tue, 21 Jul 2009) | 1 line

  Revert rev 74134, as it does not completely fixx issue #6493.
........

15 years agoMerged revisions 74074,74077,74111,74188,74192-74193,74200,74252-74253,74258-74261...
Alexandre Vassalotti [Wed, 29 Jul 2009 19:54:39 +0000 (19:54 +0000)]
Merged revisions 74074,74077,74111,74188,74192-74193,74200,74252-74253,74258-74261 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r74074 | georg.brandl | 2009-07-18 05:03:10 -0400 (Sat, 18 Jul 2009) | 1 line

  #6513: fix example code: warning categories are classes, not instances.
........
  r74077 | georg.brandl | 2009-07-18 05:43:40 -0400 (Sat, 18 Jul 2009) | 1 line

  #6489: fix an ambiguity in getiterator() documentation.
........
  r74111 | benjamin.peterson | 2009-07-20 09:30:10 -0400 (Mon, 20 Jul 2009) | 1 line

  remove docs for deprecated -p option
........
  r74188 | benjamin.peterson | 2009-07-23 10:25:31 -0400 (Thu, 23 Jul 2009) | 1 line

  use bools
........
  r74192 | georg.brandl | 2009-07-24 12:28:38 -0400 (Fri, 24 Jul 2009) | 1 line

  Fix arg types of et#.
........
  r74193 | georg.brandl | 2009-07-24 12:46:38 -0400 (Fri, 24 Jul 2009) | 1 line

  Dont put "void" in signature for nullary functions.
........
  r74200 | georg.brandl | 2009-07-25 09:02:15 -0400 (Sat, 25 Jul 2009) | 1 line

  #6571: add index entries for more operators.
........
  r74252 | georg.brandl | 2009-07-29 12:06:31 -0400 (Wed, 29 Jul 2009) | 1 line

  #6593: fix link targets.
........
  r74253 | georg.brandl | 2009-07-29 12:09:17 -0400 (Wed, 29 Jul 2009) | 1 line

  #6591: add reference to ioctl in fcntl module for platforms other than Windows.
........
  r74258 | georg.brandl | 2009-07-29 12:57:05 -0400 (Wed, 29 Jul 2009) | 1 line

  Add a link to readline, and mention IPython and bpython.
........
  r74259 | georg.brandl | 2009-07-29 13:07:21 -0400 (Wed, 29 Jul 2009) | 1 line

  Fix some markup and small factual glitches found by M. Markert.
........
  r74260 | georg.brandl | 2009-07-29 13:15:20 -0400 (Wed, 29 Jul 2009) | 1 line

  Fix a few markup glitches.
........
  r74261 | georg.brandl | 2009-07-29 13:50:25 -0400 (Wed, 29 Jul 2009) | 1 line

  Rewrite the section about classes a bit; mostly tidbits, and a larger update to the section about "private" variables to reflect the Pythonic consensus better.
........

15 years agoBlocked revisions 74256 via svnmerge
Georg Brandl [Wed, 29 Jul 2009 16:33:19 +0000 (16:33 +0000)]
Blocked revisions 74256 via svnmerge

........
  r74256 | georg.brandl | 2009-07-29 16:32:30 +0000 (Mi, 29 Jul 2009) | 1 line

  #6336: Add nb_divide.
........

15 years ago#6586: fix return/argument type doc for os.read() and os.write().
Georg Brandl [Wed, 29 Jul 2009 16:14:16 +0000 (16:14 +0000)]
#6586: fix return/argument type doc for os.read() and os.write().

15 years agoRecorded merge of revisions 74228 via svnmerge from
R. David Murray [Wed, 29 Jul 2009 14:12:23 +0000 (14:12 +0000)]
Recorded merge of revisions 74228 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

Applied in r74226.

........
  r74228 | raymond.hettinger | 2009-07-27 16:32:04 -0400 (Mon, 27 Jul 2009) | 1 line

  Issue 6573: Fix set.union() for cases where self is in the argument chain.
........

15 years agoMerged revisions 74239 via svnmerge from
Georg Brandl [Wed, 29 Jul 2009 07:27:08 +0000 (07:27 +0000)]
Merged revisions 74239 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r74239 | georg.brandl | 2009-07-28 18:55:32 +0000 (Di, 28 Jul 2009) | 1 line

  Clarify quote_plus() usage.
........

15 years agoMerged revisions 74245 via svnmerge from
Amaury Forgeot d'Arc [Tue, 28 Jul 2009 22:18:57 +0000 (22:18 +0000)]
Merged revisions 74245 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r74245 | amaury.forgeotdarc | 2009-07-29 00:15:30 +0200 (mer., 29 juil. 2009) | 3 lines

  #6511: ZipFile will now raise BadZipfile when opening an empty or tiny file,
  like it does for larger invalid files.
........

15 years agoBlocked revisions 74243 via svnmerge
Amaury Forgeot d'Arc [Tue, 28 Jul 2009 21:32:43 +0000 (21:32 +0000)]
Blocked revisions 74243 via svnmerge

........
  r74243 | amaury.forgeotdarc | 2009-07-28 22:47:55 +0200 (mar., 28 juil. 2009) | 2 lines

  "Fix" for the refleak report: the ABC classes are now in the _pyio module
........

15 years agoBlocked revisions 74240 via svnmerge
Mark Dickinson [Tue, 28 Jul 2009 20:36:23 +0000 (20:36 +0000)]
Blocked revisions 74240 via svnmerge

........
  r74240 | mark.dickinson | 2009-07-28 21:35:03 +0100 (Tue, 28 Jul 2009) | 4 lines

  Issue #6561: '\d' regular expression should not match characters of
  category [No]; only those of category [Nd].  (Backport of r74237
  from py3k.)
........

15 years agoIssue #6561: '\d' in a regular expression should match only Unicode
Mark Dickinson [Tue, 28 Jul 2009 17:22:36 +0000 (17:22 +0000)]
Issue #6561:  '\d' in a regular expression should match only Unicode
character category [Nd],  not [No].

15 years agoBlocked revisions 74234 via svnmerge
Mark Dickinson [Tue, 28 Jul 2009 16:46:53 +0000 (16:46 +0000)]
Blocked revisions 74234 via svnmerge

........
  r74234 | mark.dickinson | 2009-07-28 17:45:13 +0100 (Tue, 28 Jul 2009) | 1 line

  Remove leading blank line from cmath.rst
........

15 years agoMerged revisions 74184,74230 via svnmerge from
Mark Dickinson [Tue, 28 Jul 2009 16:31:03 +0000 (16:31 +0000)]
Merged revisions 74184,74230 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r74184 | georg.brandl | 2009-07-23 08:08:58 +0100 (Thu, 23 Jul 2009) | 1 line

  #6548: dont suggest existence of real and imag functions in cmath.
........
  r74230 | mark.dickinson | 2009-07-28 17:12:40 +0100 (Tue, 28 Jul 2009) | 4 lines

  Issue #6458: Reorganize cmath documentation into sections (similar to
  the way that the math documentation is organized); clarify section on
  conversions to and from polar coordinates.
........

15 years agoIssue 6573: Fix set.union() for cases where self is in the argument chain.
Raymond Hettinger [Mon, 27 Jul 2009 20:16:37 +0000 (20:16 +0000)]
Issue 6573: Fix set.union() for cases where self is in the argument chain.

15 years ago- belated ACK for issue #6106
Jack Diederich [Mon, 27 Jul 2009 09:03:14 +0000 (09:03 +0000)]
- belated ACK for issue #6106

15 years agoSync trunk and py3k versions of string formatting. Manual merge of r74219.
Eric Smith [Mon, 27 Jul 2009 02:10:42 +0000 (02:10 +0000)]
Sync trunk and py3k versions of string formatting. Manual merge of r74219.

15 years agoBlocked revisions 74219 via svnmerge
Eric Smith [Mon, 27 Jul 2009 02:00:11 +0000 (02:00 +0000)]
Blocked revisions 74219 via svnmerge

........
  r74219 | eric.smith | 2009-07-26 21:58:25 -0400 (Sun, 26 Jul 2009) | 1 line

  Sync trunk and py3k versions of string formatting. Will manually merge into py3k.
........

15 years ago- fix issue #6106, Telnet.process_rawq default handling of WILL/WONT/DO/DONT
Jack Diederich [Sun, 26 Jul 2009 22:23:04 +0000 (22:23 +0000)]
- fix issue #6106, Telnet.process_rawq default handling of WILL/WONT/DO/DONT

15 years agoMerged revisions 74205 via svnmerge from
Georg Brandl [Sun, 26 Jul 2009 15:03:49 +0000 (15:03 +0000)]
Merged revisions 74205 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r74205 | georg.brandl | 2009-07-26 15:36:39 +0200 (So, 26 Jul 2009) | 1 line

  #6576: fix cross-refs in re docs.
........

15 years agoMerged revisions 74207 via svnmerge from
Georg Brandl [Sun, 26 Jul 2009 15:02:41 +0000 (15:02 +0000)]
Merged revisions 74207 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r74207 | georg.brandl | 2009-07-26 16:19:57 +0200 (So, 26 Jul 2009) | 1 line

  #6577: fix (hopefully) all links to builtin instead of module/class-specific objects.
........

15 years agoMerged revisions 74209 via svnmerge from
Georg Brandl [Sun, 26 Jul 2009 14:54:51 +0000 (14:54 +0000)]
Merged revisions 74209 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r74209 | georg.brandl | 2009-07-26 16:37:28 +0200 (So, 26 Jul 2009) | 1 line

  builtin -> built-in.
........

15 years agoRecorded merge of revisions 74210 via svnmerge from
Georg Brandl [Sun, 26 Jul 2009 14:48:09 +0000 (14:48 +0000)]
Recorded merge of revisions 74210 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r74210 | georg.brandl | 2009-07-26 16:44:23 +0200 (So, 26 Jul 2009) | 1 line

  Move member descriptions inside the classes.
........

15 years agoFixing module names in the NEWS entry.
Senthil Kumaran [Sun, 26 Jul 2009 04:46:00 +0000 (04:46 +0000)]
Fixing module names in the NEWS entry.

15 years agoversionadded: 3.2. not 3.1.
Senthil Kumaran [Sat, 25 Jul 2009 04:27:38 +0000 (04:27 +0000)]
versionadded: 3.2. not 3.1.

15 years agoFixed Issue1424152 in Py3k: urllib2 fails with HTTPS over Proxy.
Senthil Kumaran [Sat, 25 Jul 2009 04:24:38 +0000 (04:24 +0000)]
Fixed Issue1424152 in Py3k: urllib2 fails with HTTPS over Proxy.

15 years agoaccount for range() py3k change
Benjamin Peterson [Sat, 25 Jul 2009 01:02:01 +0000 (01:02 +0000)]
account for range() py3k change

15 years agoBlocked revisions 74194 via svnmerge
Georg Brandl [Fri, 24 Jul 2009 20:13:37 +0000 (20:13 +0000)]
Blocked revisions 74194 via svnmerge

........
  r74194 | georg.brandl | 2009-07-24 22:09:46 +0200 (Fr, 24 Jul 2009) | 1 line

  #6564: fix section about the two raise syntaxes.
........

15 years agoBlocked revisions 74189 via svnmerge
Amaury Forgeot d'Arc [Thu, 23 Jul 2009 22:34:27 +0000 (22:34 +0000)]
Blocked revisions 74189 via svnmerge

........
  r74189 | amaury.forgeotdarc | 2009-07-23 21:26:02 +0200 (jeu., 23 juil. 2009) | 4 lines

  #6553: crash in cPickle.load(), when given a StringIO with incomplete data.

  Will backport to 2.6, 3.x already fixed a similar issue with issue4298.
........

15 years agoRecorded merge of revisions 74185 via svnmerge from
Georg Brandl [Thu, 23 Jul 2009 09:19:09 +0000 (09:19 +0000)]
Recorded merge of revisions 74185 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r74185 | georg.brandl | 2009-07-23 11:17:09 +0200 (Do, 23 Jul 2009) | 1 line

  Fix the "pylocals" gdb command.
........

15 years agoSpecialize assertTrue checks when possible.
Alexandre Vassalotti [Wed, 22 Jul 2009 23:27:17 +0000 (23:27 +0000)]
Specialize assertTrue checks when possible.

We should get slightly more helpful failure messages with this change.

15 years agoUse assertGreater instead of assertTrue(x > y).
Alexandre Vassalotti [Wed, 22 Jul 2009 21:29:01 +0000 (21:29 +0000)]
Use assertGreater instead of assertTrue(x > y).

15 years agoClean up test_curses.
Alexandre Vassalotti [Wed, 22 Jul 2009 21:27:53 +0000 (21:27 +0000)]
Clean up test_curses.

By using __stdout__ directly, test_curses caused regrtest.py
to duplicate the output of some test results.

15 years agoMerged revisions 74179 via svnmerge from
Ezio Melotti [Wed, 22 Jul 2009 21:17:14 +0000 (21:17 +0000)]
Merged revisions 74179 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r74179 | ezio.melotti | 2009-07-23 00:08:49 +0300 (Thu, 23 Jul 2009) | 1 line

  #6423 has_key -> in
........

15 years agoRecorded merge of revisions 74175 via svnmerge from
R. David Murray [Wed, 22 Jul 2009 17:42:10 +0000 (17:42 +0000)]
Recorded merge of revisions 74175 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r74175 | r.david.murray | 2009-07-22 13:22:58 -0400 (Wed, 22 Jul 2009) | 4 lines

  Backport of fix for issue 6542: make sure
  test_os.TestInvalidFD.test_closerange does not close any
  valid file descriptors.
........

15 years agoBlocked revisions 74152,74173 via svnmerge
Benjamin Peterson [Wed, 22 Jul 2009 16:36:58 +0000 (16:36 +0000)]
Blocked revisions 74152,74173 via svnmerge

........
  r74152 | benjamin.peterson | 2009-07-21 19:03:43 -0500 (Tue, 21 Jul 2009) | 1 line

  simplify
........
  r74173 | benjamin.peterson | 2009-07-22 11:34:37 -0500 (Wed, 22 Jul 2009) | 1 line

  revert r74152
........

15 years agoIssue 6542: Make sure that TestInvalidFD.test_closerange does not
R. David Murray [Wed, 22 Jul 2009 15:20:27 +0000 (15:20 +0000)]
Issue 6542: Make sure that TestInvalidFD.test_closerange does not
close any valid file descriptors.

15 years agoMerged revisions 74167 via svnmerge from
Georg Brandl [Wed, 22 Jul 2009 12:03:59 +0000 (12:03 +0000)]
Merged revisions 74167 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r74167 | georg.brandl | 2009-07-22 13:57:15 +0200 (Mi, 22 Jul 2009) | 1 line

  Issue #6540: Fixed crash for bytearray.translate() with invalid parameters.
........

15 years agoMerged revisions 74163 via svnmerge from
Tarek Ziadé [Wed, 22 Jul 2009 08:57:28 +0000 (08:57 +0000)]
Merged revisions 74163 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r74163 | tarek.ziade | 2009-07-22 10:55:19 +0200 (Wed, 22 Jul 2009) | 1 line

  Issue #6545: Removed assert statements in distutils.Extension, so the behavior is similar when used with -O
........

15 years agoUse unittest.SkipTest to skip tests in test_threading.
Alexandre Vassalotti [Wed, 22 Jul 2009 04:54:52 +0000 (04:54 +0000)]
Use unittest.SkipTest to skip tests in test_threading.

15 years agoRemove erroneous print statement.
Alexandre Vassalotti [Wed, 22 Jul 2009 04:43:33 +0000 (04:43 +0000)]
Remove erroneous print statement.

15 years agoOnly skip test_nis on Solaris.
Alexandre Vassalotti [Wed, 22 Jul 2009 04:27:34 +0000 (04:27 +0000)]
Only skip test_nis on Solaris.

15 years agoIssue #6151: Make PyDescr_COMMON conform to standard C.
Alexandre Vassalotti [Wed, 22 Jul 2009 03:56:36 +0000 (03:56 +0000)]
Issue #6151: Make PyDescr_COMMON conform to standard C.

15 years agoIssue #6218: Make io.BytesIO and io.StringIO picklable.
Alexandre Vassalotti [Wed, 22 Jul 2009 03:24:36 +0000 (03:24 +0000)]
Issue #6218: Make io.BytesIO and io.StringIO picklable.

15 years agoIssue #6241: Better type checking for the arguments of io.StringIO.
Alexandre Vassalotti [Wed, 22 Jul 2009 03:07:33 +0000 (03:07 +0000)]
Issue #6241: Better type checking for the arguments of io.StringIO.

15 years agoIssue #6360: Simplify string decoding in xmlrpc.client.
Alexandre Vassalotti [Wed, 22 Jul 2009 02:32:34 +0000 (02:32 +0000)]
Issue #6360: Simplify string decoding in xmlrpc.client.

15 years agoIssue #6242: Fix deallocator of io.StringIO and io.BytesIO.
Alexandre Vassalotti [Wed, 22 Jul 2009 02:24:49 +0000 (02:24 +0000)]
Issue #6242: Fix deallocator of io.StringIO and io.BytesIO.

15 years agoMake test_normalization verify the version of the correct test data file.
Alexandre Vassalotti [Wed, 22 Jul 2009 00:30:24 +0000 (00:30 +0000)]
Make test_normalization verify the version of the correct test data file.

15 years agoFix open_urlresource() to pass its arguments to open() when the resource is cached.
Alexandre Vassalotti [Wed, 22 Jul 2009 00:19:57 +0000 (00:19 +0000)]
Fix open_urlresource() to pass its arguments to open() when the resource is cached.

This fixes the failure of test_normalization on the Windows buildbots,
where the Normalization.txt file was read as a MBCS text file, instead
as a UTF-8 one.

15 years agoMerged revisions 74150 via svnmerge from
Benjamin Peterson [Tue, 21 Jul 2009 23:18:55 +0000 (23:18 +0000)]
Merged revisions 74150 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r74150 | benjamin.peterson | 2009-07-21 18:13:14 -0500 (Tue, 21 Jul 2009) | 1 line

  install unittest as a package
........

15 years agoMerged revisions 74148 via svnmerge from
Ezio Melotti [Tue, 21 Jul 2009 20:37:52 +0000 (20:37 +0000)]
Merged revisions 74148 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r74148 | ezio.melotti | 2009-07-21 23:18:27 +0300 (Tue, 21 Jul 2009) | 1 line

  #6536 fixed typo
........

15 years agoMerged revisions 74139 via svnmerge from
Benjamin Peterson [Tue, 21 Jul 2009 14:11:27 +0000 (14:11 +0000)]
Merged revisions 74139 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r74139 | benjamin.peterson | 2009-07-21 09:08:40 -0500 (Tue, 21 Jul 2009) | 1 line

  must use _PyThreadState_Current so it isn't checked for NULL #6530
........

15 years agoMerged revisions 74117,74123 via svnmerge from
Benjamin Peterson [Tue, 21 Jul 2009 12:51:07 +0000 (12:51 +0000)]
Merged revisions 74117,74123 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

................
  r74117 | benjamin.peterson | 2009-07-20 12:24:30 -0500 (Mon, 20 Jul 2009) | 9 lines

  Merged revisions 74116 via svnmerge from
  svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3

  ........
    r74116 | benjamin.peterson | 2009-07-20 12:22:35 -0500 (Mon, 20 Jul 2009) | 1 line

    placate windows
  ........
................
  r74123 | benjamin.peterson | 2009-07-20 16:09:45 -0500 (Mon, 20 Jul 2009) | 13 lines

  Merged revisions 74121-74122 via svnmerge from
  svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3

  ........
    r74121 | benjamin.peterson | 2009-07-20 15:40:59 -0500 (Mon, 20 Jul 2009) | 1 line

    try to make warning tests more robust
  ........
    r74122 | benjamin.peterson | 2009-07-20 15:44:14 -0500 (Mon, 20 Jul 2009) | 1 line

    platform compat
  ........
................

15 years agoMerged revisions 73750 via svnmerge from
Alexandre Vassalotti [Tue, 21 Jul 2009 05:23:51 +0000 (05:23 +0000)]
Merged revisions 73750 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r73750 | benjamin.peterson | 2009-07-01 19:45:19 -0400 (Wed, 01 Jul 2009) | 1 line

  small optimization: avoid popping the current block until we have to
........

15 years agoMerged revisions 72487-72488,72879 via svnmerge from
Alexandre Vassalotti [Tue, 21 Jul 2009 04:30:03 +0000 (04:30 +0000)]
Merged revisions 72487-72488,72879 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72487 | jeffrey.yasskin | 2009-05-08 17:51:06 -0400 (Fri, 08 May 2009) | 7 lines

  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.
........
  r72488 | jeffrey.yasskin | 2009-05-08 18:23:21 -0400 (Fri, 08 May 2009) | 13 lines

  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.
........
  r72879 | jeffrey.yasskin | 2009-05-23 19:23:01 -0400 (Sat, 23 May 2009) | 14 lines

  Issue #6042:
  lnotab-based tracing is very complicated and isn't documented very well.  There
  were at least 3 comment blocks purporting to document co_lnotab, and none did a
  very good job. This patch unifies them into Objects/lnotab_notes.txt which
  tries to completely capture the current state of affairs.

  I also discovered that we've attached 2 layers of patches to the basic tracing
  scheme. The first layer avoids jumping to instructions that don't start a line,
  to avoid problems in if statements and while loops.  The second layer
  discovered that jumps backward do need to trace at instructions that don't
  start a line, so it added extra lnotab entries for 'while' and 'for' loops, and
  added a special case for backward jumps within the same line. I replaced these
  patches by just treating forward and backward jumps differently.
........

15 years agoMerged revisions 73683,73786 via svnmerge from
Alexandre Vassalotti [Tue, 21 Jul 2009 02:51:58 +0000 (02:51 +0000)]
Merged revisions 73683,73786 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r73683 | georg.brandl | 2009-06-29 10:44:49 -0400 (Mon, 29 Jun 2009) | 1 line

  Fix error handling in PyCode_Optimize, by Alexander Schremmer at EuroPython sprint.
........
  r73786 | benjamin.peterson | 2009-07-02 18:56:16 -0400 (Thu, 02 Jul 2009) | 1 line

  condense with assertRaises
........

15 years agoAdd ignore rule for the Doc/tools/jinga2/ directory.
Alexandre Vassalotti [Tue, 21 Jul 2009 00:57:50 +0000 (00:57 +0000)]
Add ignore rule for the Doc/tools/jinga2/ directory.

15 years agoRevert r74125.
Alexandre Vassalotti [Tue, 21 Jul 2009 00:55:16 +0000 (00:55 +0000)]
Revert r74125.

15 years agoMerged revisions 73706,73778 via svnmerge from
Alexandre Vassalotti [Tue, 21 Jul 2009 00:51:58 +0000 (00:51 +0000)]
Merged revisions 73706,73778 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r73706 | georg.brandl | 2009-06-30 12:18:55 -0400 (Tue, 30 Jun 2009) | 1 line

  #6384: Add a heading for the exception hierarchy.
........
  r73778 | r.david.murray | 2009-07-02 14:19:20 -0400 (Thu, 02 Jul 2009) | 3 lines

  Issue 6389: add documentation for the 'mode' flags defined in the
  stat module.
........

15 years agoMerged revisions 73871 via svnmerge from
Alexandre Vassalotti [Tue, 21 Jul 2009 00:39:03 +0000 (00:39 +0000)]
Merged revisions 73871 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r73871 | alexandre.vassalotti | 2009-07-06 22:17:30 -0400 (Mon, 06 Jul 2009) | 7 lines

  Grow the allocated buffer in PyUnicode_EncodeUTF7 to avoid buffer overrun.

  Without this change, test_unicode.UnicodeTest.test_codecs_utf7 crashes in
  debug mode. What happens is the unicode string u'\U000abcde' with a length
  of 1 encodes to the string '+2m/c3g-' of length 8. Since only 5 bytes is
  reserved in the buffer, a buffer overrun occurs.
........

15 years agoIgnore the correct jinga directory.
Alexandre Vassalotti [Mon, 20 Jul 2009 23:59:41 +0000 (23:59 +0000)]
Ignore the correct jinga directory.

15 years agoMake the wdocs for importlib.abc.ExecutionLoader to be weaker in terms of what is...
Brett Cannon [Mon, 20 Jul 2009 22:59:00 +0000 (22:59 +0000)]
Make the wdocs for importlib.abc.ExecutionLoader to be weaker in terms of what is needed to execute a module.

15 years agoBlocked revisions 74119 via svnmerge
Benjamin Peterson [Mon, 20 Jul 2009 20:36:45 +0000 (20:36 +0000)]
Blocked revisions 74119 via svnmerge

........
  r74119 | benjamin.peterson | 2009-07-20 15:28:08 -0500 (Mon, 20 Jul 2009) | 2 lines

  the Slice in x[::] has to have step as None to help the interpreter
........

15 years agoRemove apparently unneeded and un-cleaned-up munging of sys.path from
R. David Murray [Mon, 20 Jul 2009 17:34:54 +0000 (17:34 +0000)]
Remove apparently unneeded and un-cleaned-up munging of sys.path from
test_re.  Tests pass on my machine without it, and I can't see
any obvious place in the tests that would need it.

15 years agoMerged revisions 74114 via svnmerge from
Benjamin Peterson [Mon, 20 Jul 2009 16:42:03 +0000 (16:42 +0000)]
Merged revisions 74114 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

................
  r74114 | benjamin.peterson | 2009-07-20 10:33:09 -0500 (Mon, 20 Jul 2009) | 110 lines

  Merged revisions 73771,73811,73840,73842,73848-73849,73861,73957-73960,73964-73969,73972-73974,73977,73981,73984,74065,74113 via svnmerge from
  svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3

  ........
    r73771 | benjamin.peterson | 2009-07-02 10:56:55 -0500 (Thu, 02 Jul 2009) | 1 line

    force the imports fixer to be run after the import one #6400
  ........
    r73811 | benjamin.peterson | 2009-07-03 09:03:14 -0500 (Fri, 03 Jul 2009) | 1 line

    check for sep, not pathsep when looking for a subpackage #6408
  ........
    r73840 | benjamin.peterson | 2009-07-04 09:52:28 -0500 (Sat, 04 Jul 2009) | 1 line

    don't print diffs by default; it's annoying
  ........
    r73842 | benjamin.peterson | 2009-07-04 09:58:46 -0500 (Sat, 04 Jul 2009) | 1 line

    complain when not showing diffs or writing
  ........
    r73848 | alexandre.vassalotti | 2009-07-04 23:38:19 -0500 (Sat, 04 Jul 2009) | 2 lines

    Fix test_refactor_stdin to handle print_output() method with 4 arguments.
  ........
    r73849 | alexandre.vassalotti | 2009-07-04 23:43:18 -0500 (Sat, 04 Jul 2009) | 5 lines

    Issue 2370: Add fixer for the removal of operator.isCallable() and
    operator.sequenceIncludes().

    Patch contributed by Jeff Balogh (and updated by me).
  ........
    r73861 | benjamin.peterson | 2009-07-05 09:15:53 -0500 (Sun, 05 Jul 2009) | 1 line

    cleanup and use unicode where appropiate
  ........
    r73957 | benjamin.peterson | 2009-07-11 15:49:56 -0500 (Sat, 11 Jul 2009) | 1 line

    fix calls to str() with unicode()
  ........
    r73958 | benjamin.peterson | 2009-07-11 15:51:51 -0500 (Sat, 11 Jul 2009) | 1 line

    more str() -> unicode()
  ........
    r73959 | benjamin.peterson | 2009-07-11 16:40:08 -0500 (Sat, 11 Jul 2009) | 1 line

    add tests for refactor_dir()
  ........
    r73960 | benjamin.peterson | 2009-07-11 16:44:32 -0500 (Sat, 11 Jul 2009) | 1 line

    don't parse files just because they end with 'py' (no dot)
  ........
    r73964 | benjamin.peterson | 2009-07-11 17:30:15 -0500 (Sat, 11 Jul 2009) | 1 line

    simplify
  ........
    r73965 | benjamin.peterson | 2009-07-11 17:31:30 -0500 (Sat, 11 Jul 2009) | 1 line

    remove usage of get_prefix()
  ........
    r73966 | benjamin.peterson | 2009-07-11 17:33:35 -0500 (Sat, 11 Jul 2009) | 1 line

    revert unintended change in 73965
  ........
    r73967 | benjamin.peterson | 2009-07-11 17:34:44 -0500 (Sat, 11 Jul 2009) | 1 line

    avoid expensive checks and assume the node did change
  ........
    r73968 | benjamin.peterson | 2009-07-11 20:46:46 -0500 (Sat, 11 Jul 2009) | 1 line

    use a regular dict for the heads to avoid adding lists in the loop
  ........
    r73969 | benjamin.peterson | 2009-07-11 20:50:43 -0500 (Sat, 11 Jul 2009) | 1 line

    prefix headnode functions with '_'
  ........
    r73972 | benjamin.peterson | 2009-07-11 21:25:45 -0500 (Sat, 11 Jul 2009) | 1 line

    try to make the head node dict as sparse as possible
  ........
    r73973 | benjamin.peterson | 2009-07-11 21:59:49 -0500 (Sat, 11 Jul 2009) | 1 line

    a better idea; add an option to *not* print diffs
  ........
    r73974 | benjamin.peterson | 2009-07-11 22:00:29 -0500 (Sat, 11 Jul 2009) | 1 line

    add space
  ........
    r73977 | benjamin.peterson | 2009-07-12 10:16:07 -0500 (Sun, 12 Jul 2009) | 1 line

    update get_headnode_dict tests for recent changes
  ........
    r73981 | benjamin.peterson | 2009-07-12 12:06:39 -0500 (Sun, 12 Jul 2009) | 4 lines

    detect when "from __future__ import print_function" is given

    Deprecate the 'print_function' option and the -p flag
  ........
    r73984 | benjamin.peterson | 2009-07-12 16:16:37 -0500 (Sun, 12 Jul 2009) | 1 line

    add tests for Call; thanks Joe Amenta
  ........
    r74065 | benjamin.peterson | 2009-07-17 12:52:49 -0500 (Fri, 17 Jul 2009) | 1 line

    pathname2url and url2pathname are in urllib.request not urllib.parse #6496
  ........
    r74113 | benjamin.peterson | 2009-07-20 08:56:57 -0500 (Mon, 20 Jul 2009) | 1 line

    fix deprecation warnings in tests
  ........
................

15 years agoImplement the PEP 302 protocol for get_filename() as
Brett Cannon [Mon, 20 Jul 2009 04:23:48 +0000 (04:23 +0000)]
Implement the PEP 302 protocol for get_filename() as
importlib.abc.ExecutionLoader. PyLoader now inherits from this ABC instead of
InspectLoader directly. Both PyLoader and PyPycLoader provide concrete
implementations of get_filename in terms of source_path and bytecode_path.

15 years agoImportlib's documentation said that importlib.abc.PyLoader inherited from
Brett Cannon [Mon, 20 Jul 2009 03:19:18 +0000 (03:19 +0000)]
Importlib's documentation said that importlib.abc.PyLoader inherited from
importlib.abc.ResourceLoader, when in fact it did not. Fixed the ABC to inherit
as documented.

This doesn't introduce an backwards-incompatiblity as the code in PyLoader
already required the single method ResourceLoader defined as an abstract
method.

15 years agoRemove custom test-skipping code in importlib tests for unittest code.
Brett Cannon [Mon, 20 Jul 2009 01:05:40 +0000 (01:05 +0000)]
Remove custom test-skipping code in importlib tests for unittest code.

15 years agoSome tests in importlib.test.source.test_abc_loader were testing what happens
Brett Cannon [Mon, 20 Jul 2009 00:14:29 +0000 (00:14 +0000)]
Some tests in importlib.test.source.test_abc_loader were testing what happens
when a loader is given missing or bad code object bytecode. Unfortunately an
exception related to source paths was masking what the proper exception to test
should be. Making the test explicitly set the environment fixed the test.

The code being test was not affected.

15 years agoUpdate importlib.test.source.test_abc_loader to new features added in Python 3.1.
Brett Cannon [Sun, 19 Jul 2009 23:43:45 +0000 (23:43 +0000)]
Update importlib.test.source.test_abc_loader to new features added in Python 3.1.

15 years agomerging revision 74100 from trunk:
Kristján Valur Jónsson [Sun, 19 Jul 2009 22:38:38 +0000 (22:38 +0000)]
merging revision 74100 from trunk:
http://bugs.python.org/issue6499
gzip.GzipFile may not exist as a parent class

15 years agoporting revision 74098 from trunk:
Kristján Valur Jónsson [Sun, 19 Jul 2009 22:29:24 +0000 (22:29 +0000)]
porting revision 74098 from trunk:
http://bugs.python.org/issue6499
zlib/gzip may not be present for all builds.  Make xmlrpclib gracefully not supporg gzip encoding in this case

15 years agoskip test when distutils is not made for py3k
Benjamin Peterson [Sun, 19 Jul 2009 21:52:02 +0000 (21:52 +0000)]
skip test when distutils is not made for py3k

15 years agoMerged revisions 74095 via svnmerge from
Benjamin Peterson [Sun, 19 Jul 2009 21:01:52 +0000 (21:01 +0000)]
Merged revisions 74095 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r74095 | benjamin.peterson | 2009-07-19 15:18:21 -0500 (Sun, 19 Jul 2009) | 1 line

  split unittest.py into a package
........

15 years agoRecorded merge of revisions 74089 via svnmerge from
Georg Brandl [Sun, 19 Jul 2009 07:25:56 +0000 (07:25 +0000)]
Recorded merge of revisions 74089 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r74089 | senthil.kumaran | 2009-07-19 04:43:43 +0200 (So, 19 Jul 2009) | 3 lines

  Fix for issue5102, timeout value propages between redirects, proxy, digest and
  auth handlers. Fixed tests to reflect the same.
........

15 years agoFix for issue5102, timeout value propages between redirects, proxy, digest and
Senthil Kumaran [Sun, 19 Jul 2009 02:44:19 +0000 (02:44 +0000)]
Fix for issue5102, timeout value propages between redirects, proxy, digest and
auth handlers. Fixed tests to reflect the same.