Commit Graph

36983 Commits

Author SHA1 Message Date
Georg Brandl 734e268062 Merged revisions 65437,65469,65476,65480,65502,65528,65539,65543,65558,65561-65562,65565,65591,65601,65608,65610,65639 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r65437 | georg.brandl | 2008-08-03 22:28:55 +0000 (Sun, 03 Aug 2008) | 2 lines

  Note the removal of several committers.
........
  r65469 | gregory.p.smith | 2008-08-04 01:03:50 +0000 (Mon, 04 Aug 2008) | 3 lines

  issue1606: Add warnings to the subprocess documentation about common pitfalls
  of using pipes that cause deadlocks.
........
  r65476 | georg.brandl | 2008-08-04 06:29:36 +0000 (Mon, 04 Aug 2008) | 2 lines

  Fix markup.
........
  r65480 | georg.brandl | 2008-08-04 07:31:50 +0000 (Mon, 04 Aug 2008) | 3 lines

  Clarify the meaning of the select() parameters and sync
  names with docstring.
........
  r65502 | gregory.p.smith | 2008-08-04 18:34:07 +0000 (Mon, 04 Aug 2008) | 2 lines

  more cleanup ups of the recently added warnings in the subprocess docs.
........
  r65528 | brett.cannon | 2008-08-04 21:52:25 +0000 (Mon, 04 Aug 2008) | 4 lines

  Add a note about all the modules/packages changed to silence -3 warnings. More
  changes are needed once some decisions are made, but this is the work up to this
  point.
........
  r65539 | andrew.kuchling | 2008-08-05 01:38:08 +0000 (Tue, 05 Aug 2008) | 6 lines

  #3367 from Kristjan Valur Jonsson:
  If a PyTokenizer_FromString() is called with an empty string, the
  tokenizer's line_start member never gets initialized.  Later, it is
  compared with the token pointer 'a' in parsetok.c:193 and that behavior
  can result in undefined behavior.
........
  r65543 | andrew.kuchling | 2008-08-05 02:05:23 +0000 (Tue, 05 Aug 2008) | 1 line

  #3367: revert rev. 65539: this change causes test_parser to fail
........
  r65558 | georg.brandl | 2008-08-06 17:20:41 +0000 (Wed, 06 Aug 2008) | 2 lines

  Fix longstringitem definition. #3505.
........
  r65561 | mark.dickinson | 2008-08-06 20:12:30 +0000 (Wed, 06 Aug 2008) | 2 lines

  Docstring typo
........
  r65562 | mark.dickinson | 2008-08-06 21:36:57 +0000 (Wed, 06 Aug 2008) | 2 lines

  Remove duplicate import
........
  r65565 | andrew.kuchling | 2008-08-07 01:47:34 +0000 (Thu, 07 Aug 2008) | 1 line

  Add some items
........
  r65591 | georg.brandl | 2008-08-08 06:42:20 +0000 (Fri, 08 Aug 2008) | 2 lines

  #3519: callee is an expression too.
........
  r65601 | georg.brandl | 2008-08-08 15:34:34 +0000 (Fri, 08 Aug 2008) | 2 lines

  Remove mention of backquotes in the tutorial.
........
  r65608 | guido.van.rossum | 2008-08-09 14:55:34 +0000 (Sat, 09 Aug 2008) | 2 lines

  Add news item about _sre.compile() re-bytecode validator.
........
  r65610 | antoine.pitrou | 2008-08-09 17:27:23 +0000 (Sat, 09 Aug 2008) | 3 lines

  move NEWS entry to the appropriate section (oops!)
........
  r65639 | georg.brandl | 2008-08-11 10:27:31 +0000 (Mon, 11 Aug 2008) | 2 lines

  #3540: fix exception name.
........
2008-08-12 08:18:18 +00:00
Nick Coghlan eaf8f7a4c0 Blocked revisions 65642 via svnmerge
........
  r65642 | nick.coghlan | 2008-08-12 01:45:58 +1000 (Tue, 12 Aug 2008) | 1 line

  Issue 2235: Py3k warnings are now emitted for classes that will no longer inherit a__hash__ implementation from a parent class in Python 3.x. The standard library and test suite have been updated to not emit these warnings.
........
2008-08-11 15:49:03 +00:00
Georg Brandl bae1b94d9e Remove long integer output. 2008-08-10 12:16:45 +00:00
Robert Schuppenies 3d1c7dec4a Merged revisions 65622 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r65622 | robert.schuppenies | 2008-08-10 13:01:53 +0200 (Sun, 10 Aug 2008) | 4 lines

  Issue #1342811: Fix leak in Tkinter.Menu.delete. Commands associated to
  menu entries were not deleted.
........
2008-08-10 11:28:17 +00:00
Brett Cannon 2828ab2c55 Blocked revisions 65619 via svnmerge
........
  r65619 | brett.cannon | 2008-08-09 16:39:11 -0700 (Sat, 09 Aug 2008) | 3 lines

  Silence warnings in csv about using reduce() when run under -3 by using
  functools.reduce() instead.
........
2008-08-09 23:40:18 +00:00
Brett Cannon 39f8c81a5c Blocked revisions 65617 via svnmerge
........
  r65617 | brett.cannon | 2008-08-09 16:34:11 -0700 (Sat, 09 Aug 2008) | 3 lines

  Use functools.reduce() in difflib instead of __builtin__.reduce() to silence
  warnings when running under -3.
........
2008-08-09 23:35:24 +00:00
Brett Cannon 8c4c705f44 Blocked revisions 65615 via svnmerge
........
  r65615 | brett.cannon | 2008-08-09 16:30:55 -0700 (Sat, 09 Aug 2008) | 3 lines

  Copy reduce() to _functools so to have functools.reduce() not raise a warning
  from usage under -3.
........
2008-08-09 23:32:13 +00:00
Brett Cannon bc385e7ba0 Blocked revisions 65613 via svnmerge
........
  r65613 | brett.cannon | 2008-08-09 16:06:16 -0700 (Sat, 09 Aug 2008) | 4 lines

  Suppress the warning in asynchat from using buffer() when running udner -3.
  Naively removing the usage causes a large number of test failures, so it was
  just easier to suppress the warning.
........
2008-08-09 23:08:15 +00:00
Skip Montanaro 2f30a5df24 prop change? 2008-08-09 21:26:45 +00:00
Skip Montanaro af8fcfaef5 Merged revisions 65605 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r65605 | skip.montanaro | 2008-08-08 17:52:51 -0500 (Fri, 08 Aug 2008) | 1 line

  accept issue 3436
........
2008-08-09 19:44:22 +00:00
Antoine Pitrou bea655e53b Blocked revisions 65606 via svnmerge
........
  r65606 | antoine.pitrou | 2008-08-09 14:43:23 +0200 (sam., 09 août 2008) | 3 lines

  Fix slightly misleading statement in the NEWS file.
........
2008-08-09 12:47:13 +00:00
Georg Brandl 0dcb7ac754 #3524: fix up some old-style IO descriptions. 2008-08-08 07:04:38 +00:00
Georg Brandl f5f2630db6 #3525: 3.0 exception changes in tutorial. 2008-08-08 06:50:56 +00:00
Georg Brandl 1e3830a178 #3523: no backquotes any more. 2008-08-08 06:45:01 +00:00
Georg Brandl 409c9d7184 #3522: zip() returns an iterator. 2008-08-08 06:44:14 +00:00
Brett Cannon 676cce3b4b Blocked revisions 65588 via svnmerge
........
  r65588 | brett.cannon | 2008-08-07 21:27:28 -0700 (Thu, 07 Aug 2008) | 3 lines

  Remove buffer() usage in the socket module by just slicing directly on the
  object. This removes all warnings for the module caused by running under -3.
........
2008-08-08 04:28:30 +00:00
Brett Cannon 81df721be2 Blocked revisions 65586 via svnmerge
........
  r65586 | brett.cannon | 2008-08-07 21:19:32 -0700 (Thu, 07 Aug 2008) | 5 lines

  Remove warnings generated for the suprocess module when run under -3. Required
  commenting out True/False compatbility stuff, remove a use of apply(), and
  remove a use of buffer() (just pulled the solution used in 3.0 which is direct
  slicing).
........
2008-08-08 04:20:32 +00:00
Brett Cannon e3e4dbbc97 Blocked revisions 65584 via svnmerge
........
  r65584 | brett.cannon | 2008-08-07 21:15:53 -0700 (Thu, 07 Aug 2008) | 3 lines

  Change the warning emitted for using the buffer() object; memoryview() in 3.0
  is not an equivalent.
........
2008-08-08 04:16:58 +00:00
Antoine Pitrou af14b79cce issue #3460: PyUnicode_Join() implementation can be simplified in py3k 2008-08-07 21:50:41 +00:00
Marc-André Lemburg 4cc0f24857 Rename PyUnicode_AsString -> _PyUnicode_AsString and
PyUnicode_AsStringAndSize -> _PyUnicode_AsStringAndSize to mark
them for interpreter internal use only.

We'll have to rework these APIs or create new ones for the
purpose of accessing the UTF-8 representation of Unicode objects
for 3.1.
2008-08-07 18:54:33 +00:00
Antoine Pitrou 28bd1a3bd5 Blocked revisions 65578 via svnmerge
........
  r65578 | antoine.pitrou | 2008-08-07 20:42:40 +0200 (jeu., 07 août 2008) | 3 lines

  #1288615: Python code.interact() and non-ASCII input
........
2008-08-07 18:47:28 +00:00
Brett Cannon 007ca12d1e Blocked revisions 65563 via svnmerge
........
  r65563 | brett.cannon | 2008-08-06 15:28:09 -0700 (Wed, 06 Aug 2008) | 3 lines

  Add imp.reload(). This to help with transitioning to 3.0 the reload() built-in
  has been removed there.
........
2008-08-06 22:28:55 +00:00
Guido van Rossum df9f1ecce6 Revert accidentally committed files. Oops! 2008-08-06 19:31:34 +00:00
Guido van Rossum 10faf6a0a3 Merged revisions 65544 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r65544 | guido.van.rossum | 2008-08-04 20:39:21 -0700 (Mon, 04 Aug 2008) | 28 lines

  Tracker issue 3487: sre "bytecode" verifier.

  This is a verifier for the binary code used by the _sre module (this
  is often called bytecode, though to distinguish it from Python bytecode
  I put it in quotes).

  I wrote this for Google App Engine, and am making the patch available as
  open source under the Apache 2 license.  Below are the copyright
  statement and license, for completeness.

  # Copyright 2008 Google Inc.
  #
  # Licensed under the Apache License, Version 2.0 (the "License");
  # you may not use this file except in compliance with the License.
  # You may obtain a copy of the License at
  #
  #     http://www.apache.org/licenses/LICENSE-2.0
  #
  # Unless required by applicable law or agreed to in writing, software
  # distributed under the License is distributed on an "AS IS" BASIS,
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  # See the License for the specific language governing permissions and
  # limitations under the License.

  It's not necessary to include these copyrights and bytecode in the
  source file.  Google has signed a contributor's agreement with the PSF
  already.
........
2008-08-06 19:29:14 +00:00
Georg Brandl 11e18b0c2e #3503: fix print statements in 3k doc. 2008-08-05 09:04:16 +00:00
Brett Cannon 694f1f8c27 Blocked revisions 65524 via svnmerge
........
  r65524 | brett.cannon | 2008-08-04 14:34:34 -0700 (Mon, 04 Aug 2008) | 2 lines

  Remove use of callable() from pickle to silence warnings under -3.
........
2008-08-04 21:35:14 +00:00
Brett Cannon bd53352d79 Blocked revisions 65522 via svnmerge
........
  r65522 | brett.cannon | 2008-08-04 14:33:00 -0700 (Mon, 04 Aug 2008) | 2 lines

  Remove tuple parameter unpacking in aifc to silence warnings under -3.
........
2008-08-04 21:33:39 +00:00
Brett Cannon 701c9ae14e Blocked revisions 65519 via svnmerge
........
  r65519 | brett.cannon | 2008-08-04 14:30:53 -0700 (Mon, 04 Aug 2008) | 2 lines

  Silence warnings under -3 triggered by wsgiref.
........
2008-08-04 21:32:00 +00:00
Brett Cannon 4618d340bb Blocked revisions 65516 via svnmerge
........
  r65516 | brett.cannon | 2008-08-04 14:24:43 -0700 (Mon, 04 Aug 2008) | 2 lines

  Remove a use of callable() from Tkinter to silence warnings under -3.
........
2008-08-04 21:25:42 +00:00
Brett Cannon 4c92e95527 Blocked revisions 65514 via svnmerge
........
  r65514 | brett.cannon | 2008-08-04 14:23:07 -0700 (Mon, 04 Aug 2008) | 3 lines

  Remove a dict.has_key() and list.sort(cmp=) usage from tarfile to silence
  warnings under -3.
........
2008-08-04 21:23:44 +00:00
Brett Cannon 8697eba521 Blocked revisions 65512 via svnmerge
........
  r65512 | brett.cannon | 2008-08-04 14:19:41 -0700 (Mon, 04 Aug 2008) | 2 lines

  Remove usage of apply() in sqlite3 to silence warnings under -3.
........
2008-08-04 21:20:29 +00:00
Brett Cannon f5f74f109a Blocked revisions 65510 via svnmerge
........
  r65510 | brett.cannon | 2008-08-04 14:17:15 -0700 (Mon, 04 Aug 2008) | 2 lines

  Remove dict.has_key() usage in the shelve module to silence warnings under -3.
........
2008-08-04 21:17:53 +00:00
Brett Cannon 4dfca90d60 Blocked revisions 65508 via svnmerge
........
  r65508 | brett.cannon | 2008-08-04 14:10:50 -0700 (Mon, 04 Aug 2008) | 2 lines

  Remove dict.has_key() usage in xml.sax to silence warnings under -3.
........
2008-08-04 21:13:59 +00:00
Brett Cannon 6b8e4372be Blocked revisions 65506 via svnmerge
........
  r65506 | brett.cannon | 2008-08-04 14:07:59 -0700 (Mon, 04 Aug 2008) | 2 lines

  Remove the use of callable() in re to silence warnings under -3.
........
2008-08-04 21:08:43 +00:00
Nick Coghlan cea04af09a Blocked revisions 65487-65488 via svnmerge
........
  r65487 | nick.coghlan | 2008-08-04 22:40:59 +1000 (Mon, 04 Aug 2008) | 1 line

  Issue 643841: better documentation of the special method lookup process, especially for new-style classes. Also removes the warnings about not being authoritative for new-style classes - the language reference actually covers those fairly well now (albeit in a fashion that isn't always particularly easy to follow).
........
  r65488 | nick.coghlan | 2008-08-04 22:47:17 +1000 (Mon, 04 Aug 2008) | 1 line

  Add missing NEWS entry for r65487
........
2008-08-04 13:00:15 +00:00
Georg Brandl 8c66a6d25f Remove the deprecated posix attribute. 2008-08-04 08:25:03 +00:00
Georg Brandl 655c641ad1 Blocked revisions 65477 via svnmerge
........
  r65477 | georg.brandl | 2008-08-04 07:23:29 +0000 (Mon, 04 Aug 2008) | 2 lines

  Template is always "tmp".
........
2008-08-04 07:26:07 +00:00
Georg Brandl 4b26ff8327 Undocument deprecated module global "template". 2008-08-04 07:24:52 +00:00
Brett Cannon 18c55d340f Blocked revisions 65467 via svnmerge
........
  r65467 | brett.cannon | 2008-08-03 17:50:11 -0700 (Sun, 03 Aug 2008) | 3 lines

  Remove assignment to True/False and use of dict.has_key() to silence warnings
  while running under -3.
........
2008-08-04 00:51:17 +00:00
Brett Cannon 71ff98f708 Blocked revisions 65464 via svnmerge
........
  r65464 | brett.cannon | 2008-08-03 17:27:29 -0700 (Sun, 03 Aug 2008) | 2 lines

  Silence warnings under -3 about using dict.has_key() for modulefinder.
........
2008-08-04 00:28:42 +00:00
Brett Cannon f3e432a405 Blocked revisions 65462 via svnmerge
........
  r65462 | brett.cannon | 2008-08-03 17:23:58 -0700 (Sun, 03 Aug 2008) | 3 lines

  Remove dict.has_key() usage in xml.dom.minidom to silence warnings while
  running under -3.
........
2008-08-04 00:24:38 +00:00
Brett Cannon 85866243cd Blocked revisions 65457 via svnmerge
........
  r65457 | brett.cannon | 2008-08-03 17:09:43 -0700 (Sun, 03 Aug 2008) | 3 lines

  Remove dict.has_key() and apply() usage from the logging package to silence
  warnings when run under -3.
........
2008-08-04 00:10:29 +00:00
Brett Cannon ce1396a5db Blocked revisions 65455 via svnmerge
........
  r65455 | brett.cannon | 2008-08-03 16:52:32 -0700 (Sun, 03 Aug 2008) | 2 lines

  Remove a use of callable() in fileinput to silence a -3 warning.
........
2008-08-03 23:53:13 +00:00
Brett Cannon db09c8d16a Blocked revisions 65453 via svnmerge
........
  r65453 | brett.cannon | 2008-08-03 16:46:46 -0700 (Sun, 03 Aug 2008) | 3 lines

  Move filecmp from using dict.has_key() to dict.__contains__() to silence
  warnings triggered under -3.
........
2008-08-03 23:47:26 +00:00
Brett Cannon 2dd17e435e Blocked revisions 65451 via svnmerge
........
  r65451 | brett.cannon | 2008-08-03 16:40:13 -0700 (Sun, 03 Aug 2008) | 2 lines

  Remove a dict.has_key() usage in email._parseaddr found while running -3.
........
2008-08-03 23:40:51 +00:00
Brett Cannon 6d898391af Blocked revisions 65449 via svnmerge
........
  r65449 | brett.cannon | 2008-08-03 16:27:32 -0700 (Sun, 03 Aug 2008) | 3 lines

  Remove Barry's love of deprecated syntax to silence warnings in the email
  package, when run under -3, about using <>.
........
2008-08-03 23:28:13 +00:00
Brett Cannon cc5dca5cdf Blocked revisions 65446 via svnmerge
........
  r65446 | brett.cannon | 2008-08-03 15:59:46 -0700 (Sun, 03 Aug 2008) | 2 lines

  Remove a dict.has_key() use in DocXMLRPCServer that comes up under -3.
........
2008-08-03 23:00:33 +00:00
Brett Cannon 68751a2c6e Blocked revisions 65444 via svnmerge
........
  r65444 | brett.cannon | 2008-08-03 15:57:23 -0700 (Sun, 03 Aug 2008) | 3 lines

  Remove a dict.has_key() and callable() usage in SimpleXMLRPCServer as triggered
  under -3 through test_xmlrpc.
........
2008-08-03 22:58:03 +00:00
Brett Cannon e5a9b80f89 Blocked revisions 65442 via svnmerge
........
  r65442 | brett.cannon | 2008-08-03 15:52:42 -0700 (Sun, 03 Aug 2008) | 3 lines

  Silence -3 warnings in pstats: a dict.has_key() usage and backport solution to
  move from list.sort(cmp=) to key=.
........
2008-08-03 22:53:31 +00:00
Brett Cannon cc834497b3 Blocked revisions 65440 via svnmerge
........
  r65440 | brett.cannon | 2008-08-03 15:38:19 -0700 (Sun, 03 Aug 2008) | 2 lines

  Remove a dict.has_key() usage in profile to silence a -3 DeprecationWarning.
........
2008-08-03 22:38:58 +00:00