]> granicus.if.org Git - python/log
python
16 years agoAdd a NEWS entry for issue2221.
Amaury Forgeot d'Arc [Thu, 10 Apr 2008 21:03:09 +0000 (21:03 +0000)]
Add a NEWS entry for issue2221.

Also don't flush stdout on each call to exec() or eval().
Only interactive input really needs it.

16 years agoUpdate test_ssl.py to reflect the new approach for writing network-oriented tests...
Trent Nelson [Thu, 10 Apr 2008 20:54:35 +0000 (20:54 +0000)]
Update test_ssl.py to reflect the new approach for writing network-oriented tests in such a way that contention for ports is eliminated, thus allowing multiple instances of the same test to be run in parallel without issue (import for buildbots to run smoothly).  This change is in line with the changes made to network-oriented tests in trunk in r62234.  test_ssl.py is an odd case because the py3k version was newer than trunk.  When the most recent svnmerge was run from trunk to py3k in r62242, the older trunk version was brought over on top of the newer py3k version.  So, the plan was/is: revert the recent svnmerged version (done), manually make the changes to improve running in parallel (done with this commit), copy this version back to trunk and manually 3to2 it (to do next), check that in, then svnmerge block it.  Then when future changes need to be made to test_ssl.py, we can make them against trunk, and hopefully the merge to py3k should be a lot less painful.

16 years agoRevert r62242: trunk's test_ssl.py isn't as up-to-date as py3k's, and should't have...
Trent Nelson [Thu, 10 Apr 2008 20:12:06 +0000 (20:12 +0000)]
Revert r62242: trunk's test_ssl.py isn't as up-to-date as py3k's, and should't have been brought over in the merge.

16 years agoBug #2606: Avoid calling .sort() on a dict_keys object.
Martin v. Löwis [Thu, 10 Apr 2008 19:02:25 +0000 (19:02 +0000)]
Bug #2606: Avoid calling .sort() on a dict_keys object.

16 years agoIssue 2440: fix the handling of %n in Python/getargs.c's convertsimple(), extend...
Trent Nelson [Thu, 10 Apr 2008 16:25:37 +0000 (16:25 +0000)]
Issue 2440: fix the handling of %n in Python/getargs.c's convertsimple(), extend Objects/abstract.c's PyNumber_Index() to accept PyObjects that have nb_int slots, and update test_getargs2 to test that an exception is thrown when __int__() returns a non-int object.

16 years agoMerged revisions 62246-62259 via svnmerge from
Martin v. Löwis [Thu, 10 Apr 2008 03:06:53 +0000 (03:06 +0000)]
Merged revisions 62246-62259 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r62246 | georg.brandl | 2008-04-09 19:57:38 +0200 (Mi, 09 Apr 2008) | 2 lines

  #2585: initialize code attribute of HTTPError.
........
  r62247 | georg.brandl | 2008-04-09 19:58:56 +0200 (Mi, 09 Apr 2008) | 2 lines

  Add :issue: directive for easy linking to bugs.python.org.
........
  r62249 | gregory.p.smith | 2008-04-09 20:18:43 +0200 (Mi, 09 Apr 2008) | 2 lines

  Add a note about the zlib.decompressobj().flush() fix.
........
  r62255 | martin.v.loewis | 2008-04-09 20:56:20 +0200 (Mi, 09 Apr 2008) | 2 lines

  Package wininst*.exe from distutils/command.
........
  r62259 | andrew.kuchling | 2008-04-10 00:28:43 +0200 (Do, 10 Apr 2008) | 1 line

  Try out the new issue role.  Thanks, Georg!
........

16 years agoMerged revisions 62263 via svnmerge from
Martin v. Löwis [Thu, 10 Apr 2008 02:50:50 +0000 (02:50 +0000)]
Merged revisions 62263 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

................
  r62263 | martin.v.loewis | 2008-04-10 04:48:01 +0200 (Do, 10 Apr 2008) | 19 lines

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

  ........
    r62092 | collin.winter | 2008-04-01 18:27:10 +0200 (Di, 01 Apr 2008) | 1 line

    Add get_prev_sibling() to complement pytree's get_next_sibling().
  ........
    r62226 | collin.winter | 2008-04-08 21:07:56 +0200 (Di, 08 Apr 2008) | 1 line

    Add min() and max() to the list of special contexts that don't require adding list() calls around dict methods.
  ........
    r62232 | collin.winter | 2008-04-09 00:12:38 +0200 (Mi, 09 Apr 2008) | 4 lines

    Fix for http://bugs.python.org/issue2596

    This extends fix_xrange to know about the (mostly) same special contexts as fix_dict (where a special context is something that is guaranteed to fully consume the iterable), adding list() calls where appropriate. It also special-cases "x in range(y)".
  ........
................

16 years agozap the last of the class.method typos in io docs
Benjamin Peterson [Wed, 9 Apr 2008 21:38:38 +0000 (21:38 +0000)]
zap the last of the class.method typos in io docs

16 years ago#2575: bininteger missing in production list.
Georg Brandl [Wed, 9 Apr 2008 18:46:46 +0000 (18:46 +0000)]
#2575: bininteger missing in production list.

16 years ago#2580: int() docs revision.
Georg Brandl [Wed, 9 Apr 2008 18:45:14 +0000 (18:45 +0000)]
#2580: int() docs revision.

16 years ago#2530: io module documentation.
Georg Brandl [Wed, 9 Apr 2008 18:40:51 +0000 (18:40 +0000)]
#2530: io module documentation.

16 years agoRemove __repr__ that doesn't have any advantage compared to the standard one.
Georg Brandl [Wed, 9 Apr 2008 18:40:09 +0000 (18:40 +0000)]
Remove __repr__ that doesn't have any advantage compared to the standard one.

16 years agoMerged revisions 62194,62197-62198,62204-62205,62214,62219-62221,62227,62229-62231...
Christian Heimes [Wed, 9 Apr 2008 08:37:03 +0000 (08:37 +0000)]
Merged revisions 62194,62197-62198,62204-62205,62214,62219-62221,62227,62229-62231,62233-62235,62237-62239 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r62194 | jeffrey.yasskin | 2008-04-07 01:04:28 +0200 (Mon, 07 Apr 2008) | 7 lines

  Add enough debugging information to diagnose failures where the
  HandlerBException is ignored, and fix one such problem, where it was thrown
  during the __del__ method of the previous Popen object.

  We may want to find a better way of printing verbose information so it's not
  spammy when the test passes.
........
  r62197 | mark.hammond | 2008-04-07 03:53:39 +0200 (Mon, 07 Apr 2008) | 2 lines

  Issue #2513: enable 64bit cross compilation on windows.
........
  r62198 | mark.hammond | 2008-04-07 03:59:40 +0200 (Mon, 07 Apr 2008) | 2 lines

  correct heading underline for new "Cross-compiling on Windows" section
........
  r62204 | gregory.p.smith | 2008-04-07 08:33:21 +0200 (Mon, 07 Apr 2008) | 4 lines

  Use the new PyFile_IncUseCount & PyFile_DecUseCount calls appropriatly
  within the standard library.  These modules use PyFile_AsFile and later
  release the GIL while operating on the previously returned FILE*.
........
  r62205 | mark.summerfield | 2008-04-07 09:39:23 +0200 (Mon, 07 Apr 2008) | 4 lines

  changed "2500 components" to "several thousand" since the number keeps
  growning:-)
........
  r62214 | georg.brandl | 2008-04-07 20:51:59 +0200 (Mon, 07 Apr 2008) | 2 lines

  #2525: update timezone info examples in the docs.
........
  r62219 | andrew.kuchling | 2008-04-08 01:57:07 +0200 (Tue, 08 Apr 2008) | 1 line

  Write PEP 3127 section; add items
........
  r62220 | andrew.kuchling | 2008-04-08 01:57:21 +0200 (Tue, 08 Apr 2008) | 1 line

  Typo fix
........
  r62221 | andrew.kuchling | 2008-04-08 03:33:10 +0200 (Tue, 08 Apr 2008) | 1 line

  Typographical fix: 32bit -> 32-bit, 64bit -> 64-bit
........
  r62227 | andrew.kuchling | 2008-04-08 23:22:53 +0200 (Tue, 08 Apr 2008) | 1 line

  Add items
........
  r62229 | amaury.forgeotdarc | 2008-04-08 23:27:42 +0200 (Tue, 08 Apr 2008) | 7 lines

  Issue2564: Prevent a hang in "import test.autotest", which runs the entire test
  suite as a side-effect of importing the module.

  - in test_capi, a thread tried to import other modules
  - re.compile() imported sre_parse again on every call.
........
  r62230 | amaury.forgeotdarc | 2008-04-08 23:51:57 +0200 (Tue, 08 Apr 2008) | 2 lines

  Prevent an error when inspect.isabstract() is called with something else than a new-style class.
........
  r62231 | amaury.forgeotdarc | 2008-04-09 00:07:05 +0200 (Wed, 09 Apr 2008) | 8 lines

  Issue 2408: remove the _types module
  It was only used as a helper in types.py to access types (GetSetDescriptorType and MemberDescriptorType),
  when they can easily be obtained with python code.
  These expressions even work with Jython.

  I don't know what the future of the types module is; (cf. discussion in http://bugs.python.org/issue1605 )
  at least this change makes it simpler.
........
  r62233 | amaury.forgeotdarc | 2008-04-09 01:10:07 +0200 (Wed, 09 Apr 2008) | 2 lines

  Add a NEWS entry for previous checkin
........
  r62234 | trent.nelson | 2008-04-09 01:47:30 +0200 (Wed, 09 Apr 2008) | 37 lines

  - Issue #2550: The approach used by client/server code for obtaining ports
    to listen on in network-oriented tests has been refined in an effort to
    facilitate running multiple instances of the entire regression test suite
    in parallel without issue.  test_support.bind_port() has been fixed such
    that it will always return a unique port -- which wasn't always the case
    with the previous implementation, especially if socket options had been
    set that affected address reuse (i.e. SO_REUSEADDR, SO_REUSEPORT).  The
    new implementation of bind_port() will actually raise an exception if it
    is passed an AF_INET/SOCK_STREAM socket with either the SO_REUSEADDR or
    SO_REUSEPORT socket option set.  Furthermore, if available, bind_port()
    will set the SO_EXCLUSIVEADDRUSE option on the socket it's been passed.
    This currently only applies to Windows.  This option prevents any other
    sockets from binding to the host/port we've bound to, thus removing the
    possibility of the 'non-deterministic' behaviour, as Microsoft puts it,
    that occurs when a second SOCK_STREAM socket binds and accepts to a
    host/port that's already been bound by another socket.  The optional
    preferred port parameter to bind_port() has been removed.  Under no
    circumstances should tests be hard coding ports!

    test_support.find_unused_port() has also been introduced, which will pass
    a temporary socket object to bind_port() in order to obtain an unused port.
    The temporary socket object is then closed and deleted, and the port is
    returned.  This method should only be used for obtaining an unused port
    in order to pass to an external program (i.e. the -accept [port] argument
    to openssl's s_server mode) or as a parameter to a server-oriented class
    that doesn't give you direct access to the underlying socket used.

    Finally, test_support.HOST has been introduced, which should be used for
    the host argument of any relevant socket calls (i.e. bind and connect).

    The following tests were updated to following the new conventions:
      test_socket, test_smtplib, test_asyncore, test_ssl, test_httplib,
      test_poplib, test_ftplib, test_telnetlib, test_socketserver,
      test_asynchat and test_socket_ssl.

    It is now possible for multiple instances of the regression test suite to
    run in parallel without issue.
........
  r62235 | gregory.p.smith | 2008-04-09 02:25:17 +0200 (Wed, 09 Apr 2008) | 3 lines

  Fix zlib crash from zlib.decompressobj().flush(val) when val was not positive.
  It tried to allocate negative or zero memory.  That fails.
........
  r62237 | trent.nelson | 2008-04-09 02:34:53 +0200 (Wed, 09 Apr 2008) | 1 line

  Fix typo with regards to self.PORT shadowing class variables with the same name.
........
  r62238 | andrew.kuchling | 2008-04-09 03:08:32 +0200 (Wed, 09 Apr 2008) | 1 line

  Add items
........
  r62239 | jerry.seutter | 2008-04-09 07:07:58 +0200 (Wed, 09 Apr 2008) | 1 line

  Changed test so it no longer runs as a side effect of importing.
........

16 years agoMore docstring fixes, and an XXX.
Georg Brandl [Wed, 9 Apr 2008 07:33:01 +0000 (07:33 +0000)]
More docstring fixes, and an XXX.

16 years agoClarify xrange() entry.
Georg Brandl [Wed, 9 Apr 2008 07:32:07 +0000 (07:32 +0000)]
Clarify xrange() entry.

16 years agoSuppress compilation of lib2to3 py2_ test files.
Martin v. Löwis [Tue, 8 Apr 2008 17:17:46 +0000 (17:17 +0000)]
Suppress compilation of lib2to3 py2_ test files.

16 years agoTentatively Blocked revisions 62223 via svnmerge,
Martin v. Löwis [Tue, 8 Apr 2008 16:53:25 +0000 (16:53 +0000)]
Tentatively Blocked revisions 62223 via svnmerge,
as compilation of py3_ should work in py3k.

........
  r62223 | martin.v.loewis | 2008-04-08 18:48:35 +0200 (Di, 08 Apr 2008) | 1 line

  Suppress compilation of py3_ files upon installation.
........

16 years agoBlocked revisions 62195 via svnmerge
Christian Heimes [Tue, 8 Apr 2008 09:44:14 +0000 (09:44 +0000)]
Blocked revisions 62195 via svnmerge

........
  r62195 | gregory.p.smith | 2008-04-07 01:11:17 +0200 (Mon, 07 Apr 2008) | 10 lines

  Make file objects as thread safe as the underlying libc FILE* implementation.
  close() will now raise an IOError if any operations on the file object
  are currently in progress in other threads.

  Most code was written by Antoine Pitrou (pitrou).  Additional testing,
  documentation and test suite cleanup done by me (gregory.p.smith).

  Fixes issue 815646 and 595601 (as well as many other bugs and
  references to this problem dating back to the dawn of Python).
........

16 years agofixed outdated annotation of readinto in io
Benjamin Peterson [Mon, 7 Apr 2008 22:27:34 +0000 (22:27 +0000)]
fixed outdated  annotation of readinto in io

16 years agoMerged revisions 62207-62210 via svnmerge from
Martin v. Löwis [Mon, 7 Apr 2008 21:14:19 +0000 (21:14 +0000)]
Merged revisions 62207-62210 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r62207 | martin.v.loewis | 2008-04-07 16:53:34 +0200 (Mo, 07 Apr 2008) | 1 line

  Delete ALLUSERS property merged from CRT merge module, so that per-user installations become possible again.
........
  r62208 | martin.v.loewis | 2008-04-07 16:54:16 +0200 (Mo, 07 Apr 2008) | 1 line

  Make private_crt feature object a global variable.
........
  r62209 | martin.v.loewis | 2008-04-07 16:55:53 +0200 (Mo, 07 Apr 2008) | 1 line

  Drop support for 7.1 CRT.
........
  r62210 | martin.v.loewis | 2008-04-07 18:34:04 +0200 (Mo, 07 Apr 2008) | 2 lines

  Make the "private CRT" case work, by editing the
  manifest in DLLs to refer to the root copy of the CRT.
........

16 years ago#2567: remove new-style/old-style class docs.
Georg Brandl [Mon, 7 Apr 2008 19:17:06 +0000 (19:17 +0000)]
#2567: remove new-style/old-style class docs.

16 years ago"make install" is now an alias for "make altinstall", to prevent
Guido van Rossum [Mon, 7 Apr 2008 18:37:41 +0000 (18:37 +0000)]
"make install" is now an alias for "make altinstall", to prevent
accidentally overwriting a Python 2.x installation.
Use "make fullinstall" to force Python 3.0 to be installed as
"python".

16 years agoAdd uuids for 3.0a4 and 3.0a5.
Martin v. Löwis [Mon, 7 Apr 2008 16:44:13 +0000 (16:44 +0000)]
Add uuids for 3.0a4 and 3.0a5.

16 years agoBug #2565: The repr() of type objects now calls them 'class',
Martin v. Löwis [Mon, 7 Apr 2008 05:43:42 +0000 (05:43 +0000)]
Bug #2565: The repr() of type objects now calls them 'class',
not 'type' - whether they are builtin types or not.

16 years agoMerged revisions 62199 via svnmerge from
Martin v. Löwis [Mon, 7 Apr 2008 03:22:07 +0000 (03:22 +0000)]
Merged revisions 62199 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r62199 | martin.v.loewis | 2008-04-07 05:08:28 +0200 (Mo, 07 Apr 2008) | 2 lines

  Bug #2388: Fix gcc warnings when compiling with --enable-unicode=ucs4.
........

16 years agoMerged revisions 62177-62178,62180-62193 via svnmerge from
Martin v. Löwis [Mon, 7 Apr 2008 03:17:54 +0000 (03:17 +0000)]
Merged revisions 62177-62178,62180-62193 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r62177 | skip.montanaro | 2008-04-05 21:47:47 +0200 (Sa, 05 Apr 2008) | 2 lines

  Declare inittimezone static.
........
  r62180 | mark.hammond | 2008-04-06 03:42:06 +0200 (So, 06 Apr 2008) | 4 lines

  From issue 1753245 - better _winreg support for x64.
  Adds _winreg.DisableReflectionKey, EnableReflectionKey, QueryReflectionKey,
  KEY_WOW64_64KEY and KEY_WOW64_32KEY.
........
  r62187 | skip.montanaro | 2008-04-06 19:05:57 +0200 (So, 06 Apr 2008) | 1 line

  type
........
  r62193 | trent.nelson | 2008-04-06 22:51:23 +0200 (So, 06 Apr 2008) | 1 line

  Don't run kill_python as part of the build process.  Change the buildbots so they have to call it explicitly instead.
........

16 years agoMerged revisions 62179 via svnmerge from
Thomas Wouters [Mon, 7 Apr 2008 00:25:59 +0000 (00:25 +0000)]
Merged revisions 62179 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r62179 | thomas.wouters | 2008-04-06 01:39:15 +0200 (Sun, 06 Apr 2008) | 10 lines

  Fix test_distutils to not fail when running 'make test' from a Python build
  directory that is not the source directory (ie, one created using
  '/path/to/source/configure'.) Leaves this test very slightly degraded in
  that particular case, compared to the build-in-sourcedir case, but that case
  isn't a particularly strong test either: neither test the actual path that
  will be used after installing. There isn't a particularly good way to test
  this, and a poor test beats a failing test.
........

16 years agoDocstring fix.
Georg Brandl [Sun, 6 Apr 2008 20:27:02 +0000 (20:27 +0000)]
Docstring fix.

16 years agoConvert another %s to %ls.
Martin v. Löwis [Sun, 6 Apr 2008 17:57:16 +0000 (17:57 +0000)]
Convert another %s to %ls.

16 years agofix typo in doc string
Benjamin Peterson [Sun, 6 Apr 2008 16:47:13 +0000 (16:47 +0000)]
fix typo in doc string

16 years ago#2558: document pickle protocol version 3. Thanks to Guilherme Polo.
Georg Brandl [Sun, 6 Apr 2008 08:39:37 +0000 (08:39 +0000)]
#2558: document pickle protocol version 3. Thanks to Guilherme Polo.

16 years agoChange command line processing API to use wchar_t.
Martin v. Löwis [Sat, 5 Apr 2008 20:41:37 +0000 (20:41 +0000)]
Change command line processing API to use wchar_t.
Fixes #2128.

16 years agoRemove baseName argument from Tkapp_New, as it apparently
Martin v. Löwis [Sat, 5 Apr 2008 19:47:23 +0000 (19:47 +0000)]
Remove baseName argument from Tkapp_New, as it apparently
isn't used anymore.

16 years agoMerged revisions 61440-61441,61443,61445-61448,61451-61452,61455-61457,61459-61464...
Martin v. Löwis [Sat, 5 Apr 2008 18:58:09 +0000 (18:58 +0000)]
Merged revisions 61440-61441,61443,61445-61448,61451-61452,61455-61457,61459-61464,61466-61467,61469-61470,61476-61477,61479,61481-61482,61485,61487,61490,61493-61494,61497,61499-61502,61505-61506,61508,61511-61514,61519,61521-61522,61530-61531,61533-61537,61541-61555,61557-61558,61561-61562,61566-61569,61572-61574,61578-61579,61583-61584,61588-61589,61592,61594,61598-61601,61603-61604,61607-61612,61617,61619-61620,61624,61626,61628-61630,61635-61638,61640-61643,61645,61648,61653-61655,61659-61662,61664,61666,61668-61671,61673,61675,61679-61680,61682,61685-61686,61689-61695,61697-61699,61701-61703,61706,61710,61713,61717,61723,61726-61730,61736,61738,61740,61742,61745-61752,61754-61760,61762-61764,61768,61770-61772,61774-61775,61784-61787,61789-61792,61794-61795,61797-61806,61808-61809,61811-61812,61814-61819,61824,61826-61833,61835-61840,61843-61845,61848,61850,61854-61862,61865-61866,61868,61872-61873,61876-61877,61883-61888,61890-61891,61893-61899,61901-61903,61905-61912,61914,61917,61920-61921,61927,61930,61932-61934,61939,61941-61942,61944-61951,61955,61960-61963,61980,61982-61983,61991,61994-61996,62001-62003,62008-62010,62016-62017,62022,62024,62027,62031-62034,62041,62045-62046,62055-62058,62060-62066,62068-62074,62076-62079,62081-62083,62086-62089,62092-62094,62098,62101,62104,62106-62109,62115-62122,62124-62125,62128,62130,62132,62134-62135,62137,62139-62140,62144,62146,62151,62155,62157,62162-62174 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r62167 | martin.v.loewis | 2008-04-05 17:45:25 +0200 (Sa, 05 Apr 2008) | 1 line

  Extend sizes of various fields, to support the CRT90 merge module.
........
  r62168 | martin.v.loewis | 2008-04-05 17:48:36 +0200 (Sa, 05 Apr 2008) | 1 line

  Add two features to distinguish between private and SxS CRT.
........
  r62169 | martin.v.loewis | 2008-04-05 17:50:58 +0200 (Sa, 05 Apr 2008) | 1 line

  Add script to merge msvcr90.
........
  r62170 | andrew.kuchling | 2008-04-05 17:57:46 +0200 (Sa, 05 Apr 2008) | 1 line

  Markup fixes; write PEP 3118 section
........
  r62173 | georg.brandl | 2008-04-05 19:45:58 +0200 (Sa, 05 Apr 2008) | 2 lines

  Mention that the tuple returned by __reduce__ is pickled as normal.
........
  r62174 | andrew.kuchling | 2008-04-05 20:15:30 +0200 (Sa, 05 Apr 2008) | 1 line

  Write PEP 3119 section
........

16 years agoceil and floor return ints in 3k.
Georg Brandl [Sat, 5 Apr 2008 17:37:09 +0000 (17:37 +0000)]
ceil and floor return ints in 3k.

16 years agoAdded a test to make sure raw strings don't get unicode escapes
Benjamin Peterson [Sat, 5 Apr 2008 15:09:30 +0000 (15:09 +0000)]
Added a test to make sure raw strings don't get unicode escapes

16 years agoReverted r62128 on Guido's orders
Benjamin Peterson [Sat, 5 Apr 2008 14:49:54 +0000 (14:49 +0000)]
Reverted r62128 on Guido's orders

16 years agoChange \u which is causing a syntax error. I'm not sure if that should be, but
Neal Norwitz [Sat, 5 Apr 2008 06:16:50 +0000 (06:16 +0000)]
Change \u which is causing a syntax error.  I'm not sure if that should be, but
at least this should let the build get farther on amd64 machines.

16 years agoMerged revisions 61440-61441,61443,61445-61448,61451-61452,61455-61457,61459-61464...
Neal Norwitz [Sat, 5 Apr 2008 04:47:45 +0000 (04:47 +0000)]
Merged revisions 61440-61441,61443,61445-61448,61451-61452,61455-61457,61459-61464,61466-61467,61469-61470,61476-61477,61479,61481-61482,61485,61487,61490,61493-61494,61497,61499-61502,61505-61506,61508,61511-61514,61519,61521-61522,61530-61531,61533-61537,61541-61555,61557-61558,61561-61562,61566-61569,61572-61574,61578-61579,61583-61584,61588-61589,61592,61594,61598-61601,61603-61604,61607-61612,61617,61619-61620,61624,61626,61628-61630,61635-61638,61640-61643,61645,61648,61653-61655,61659-61662,61664,61666,61668-61671,61673,61675,61679-61680,61682,61685-61686,61689-61695,61697-61699,61701-61703,61706,61710,61713,61717,61723,61726-61730,61736,61738,61740,61742,61745-61752,61754-61760,61762-61764,61768,61770-61772,61774-61775,61784-61787,61789-61792,61794-61795,61797-61806,61808-61809,61811-61812,61814-61819,61824,61826-61833,61835-61840,61843-61845,61848,61850,61854-61862,61865-61866,61868,61872-61873,61876-61877,61883-61888,61890-61891,61893-61899,61901-61903,61905-61912,61914,61917,61920-61921,61927,61930,61932-61934,61939,61941-61942,61944-61951,61955,61960-61963,61980,61982-61983,61991,61994-61996,62001-62003,62008-62010,62016-62017,62022,62024,62027,62031-62034,62041,62045-62046,62055-62058,62060-62066,62068-62074,62076-62079,62081-62083,62086-62089,62092-62094,62098,62101,62104,62106-62109,62115-62122,62124-62125,62127-62128,62130,62132,62134-62137,62139-62142,62144,62146-62148,62150-62152,62155-62161 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r62127 | trent.nelson | 2008-04-03 08:39:17 -0700 (Thu, 03 Apr 2008) | 1 line

  Remove the building of Berkeley DB step; _bsddb44.vcproj takes care of this for us now.
........
  r62136 | amaury.forgeotdarc | 2008-04-03 16:07:55 -0700 (Thu, 03 Apr 2008) | 9 lines

  #1733757: the interpreter would hang on shutdown, if the function set by sys.settrace
  calls threading.currentThread.

  The correction somewhat improves the code, but it was close.
  Many thanks to the "with" construct, which turns python code into C calls.

  I wonder if it is not better to sys.settrace(None) just after
  running the __main__ module and before finalization.
........
  r62141 | jeffrey.yasskin | 2008-04-03 21:51:19 -0700 (Thu, 03 Apr 2008) | 5 lines

  Doh! os.read() raises an OSError, not an IOError when it's interrupted.

  And fix some flakiness in test_itimer_prof, which could detect that the timer
  had reached 0 before the signal arrived announcing that fact.
........
  r62142 | fred.drake | 2008-04-03 22:41:30 -0700 (Thu, 03 Apr 2008) | 4 lines

  - Issue #2385: distutils.core.run_script() makes __file__ available, so the
    controlled environment will more closely mirror the typical script
    environment.  This supports setup.py scripts that refer to data files.
........
  r62147 | fred.drake | 2008-04-04 04:31:14 -0700 (Fri, 04 Apr 2008) | 6 lines

  my previous change did what I said it should not: it changed the current
  directory to the directory in which the setup.py script lived (which made
  __file__ wrong)

  fixed, with test that the script is run in the current directory of the caller
........
  r62148 | fred.drake | 2008-04-04 04:38:51 -0700 (Fri, 04 Apr 2008) | 2 lines

  stupid, stupid, stupid!
........
  r62150 | jeffrey.yasskin | 2008-04-04 09:48:19 -0700 (Fri, 04 Apr 2008) | 2 lines

  Oops again. EINTR is in errno, not signal.
........
  r62158 | andrew.kuchling | 2008-04-04 19:42:20 -0700 (Fri, 04 Apr 2008) | 1 line

  Minor edits
........
  r62159 | andrew.kuchling | 2008-04-04 19:47:07 -0700 (Fri, 04 Apr 2008) | 1 line

  Markup fix; explain what interval timers do; typo fix
........
  r62160 | andrew.kuchling | 2008-04-04 20:38:39 -0700 (Fri, 04 Apr 2008) | 1 line

  Various edits
........
  r62161 | neal.norwitz | 2008-04-04 21:26:31 -0700 (Fri, 04 Apr 2008) | 9 lines

  Prevent test_sqlite from hanging on older versions of sqlite.
  The problem is that when trying to do the second insert, sqlite seems to sleep
  for a very long time.  Here is the output from strace:

    read(6, "SQLite format 3\0\4\0\1\1\0@  \0\0\0\1\0\0\0\0"..., 1024) = 1024
    nanosleep({4294, 966296000},  <unfinished ...>

  I don't know which version this was fixed in, but 3.2.1 definitely fails.
........

16 years agoIssue2221: in Idle, exec('xx') raised a SystemError('error return without exception...
Amaury Forgeot d'Arc [Fri, 4 Apr 2008 23:25:27 +0000 (23:25 +0000)]
Issue2221: in Idle, exec('xx') raised a SystemError('error return without exception set')
instead of the expected NameError

This happens when sys.stdout is redirected to something that cannot flush().
the flush_io() function must be exception-neutral: don't raise, and don't clear exceptions.

Next step: exec() is not supposed to flush sys.stdout...

16 years agoMerged revisions 62149, 62153, 62154 via svnmerge from
Thomas Heller [Fri, 4 Apr 2008 19:53:14 +0000 (19:53 +0000)]
Merged revisions 62149, 62153, 62154 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

Sync with files from the just released libffi 3.0.5 version.

More files from libffi 3.0.5.
Removed libffi.pc.in because it is not needed for ctypes.

News entry for: Sync with files from the just released libffi 3.0.5 version.

16 years agoMerged revisions 62145 via svnmerge from
Thomas Heller [Fri, 4 Apr 2008 10:18:23 +0000 (10:18 +0000)]
Merged revisions 62145 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r62145 | thomas.heller | 2008-04-04 12:07:55 +0200 (Fri, 04 Apr 2008) | 3 lines

  Issue #2544: On HP-UX systems, use 'gcc -shared' for linking when gcc
  is used as compiler.
........

16 years agoBlocked revisions 62143 via svnmerge
Thomas Heller [Fri, 4 Apr 2008 08:37:59 +0000 (08:37 +0000)]
Blocked revisions 62143 via svnmerge

........
  r62143 | thomas.heller | 2008-04-04 10:35:44 +0200 (Fr, 04 Apr 2008) | 1 line

  Issue #2543: Make ctypes compatible (again) with Python 2.3, 2.4, and 2.5.
........

16 years agoBlocked revisions 62138 via svnmerge
Benjamin Peterson [Fri, 4 Apr 2008 02:31:12 +0000 (02:31 +0000)]
Blocked revisions 62138 via svnmerge

........
  r62138 | barry.warsaw | 2008-04-03 20:34:41 -0500 (Thu, 03 Apr 2008) | 1 line

  post release updates
........

16 years agopost release updates
Barry Warsaw [Fri, 4 Apr 2008 01:36:36 +0000 (01:36 +0000)]
post release updates

16 years agoMerged revisions 62129,62131,62133 via svnmerge from
Trent Nelson [Thu, 3 Apr 2008 20:47:30 +0000 (20:47 +0000)]
Merged revisions 62129,62131,62133 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r62129 | trent.nelson | 2008-04-03 19:27:06 +0100 (Thu, 03 Apr 2008) | 16 lines

  Reimplement kill_python.  The existing version had a number of flaws, namely, it didn't work for x64 and it wasn't precise about which python_d.exe it was killing -- it just killed the first one it came across that happened to have 'pcbuild\python_d.exe' or 'build\python_d.exe' in it's path.  The new version has been rewritten from the ground up and now lives in PCbuild, instead of Tools\buildbot, and it has also been incorporated into the Visual Studio solution (pcbuild.sln) as 'kill_python'.  The solution has also been altered such that kill_python is called where necessary in the build process in order to prevent any linking errors due to open file locks.  In lieu of this, all of the existing bits and pieces in Tools\buildbot that called out to kill_python at various points have also been removed as they are now obsolete.  Tested on both Win32 and x64.

  Change set (included to improve usefulness of svnmerge log entry):
  M      PCbuild\pythoncore.vcproj
  M      PCbuild\pcbuild.sln
  M      PCbuild\release.vsprops
  A      PCbuild\kill_python.vcproj
  M      PCbuild\debug.vsprops
  A      PCbuild\kill_python.c
  D      Tools\buildbot\kill_python.bat
  D      Tools\buildbot\kill_python.mak
  M      Tools\buildbot\build.bat
  D      Tools\buildbot\Makefile
  M      Tools\buildbot\build-amd64.bat
  M      Tools\buildbot\buildmsi.bat
  D      Tools\buildbot\kill_python.c
........
  r62131 | trent.nelson | 2008-04-03 19:48:53 +0100 (Thu, 03 Apr 2008) | 1 line

  Add the correct OutputFile values for debug builds.  Fixes r62129's commit.
........
  r62133 | trent.nelson | 2008-04-03 21:00:08 +0100 (Thu, 03 Apr 2008) | 1 line

  Make kill_python a little more forgiving if it can't obtain a snapshot of module information for a given python[_d].exe process.  Failing here was too pessimistic; the python[_d].exe process may be owned by another user, which is the case in some buildbot environments.
........

16 years agoUnblock revision 62129.
Trent Nelson [Thu, 3 Apr 2008 20:44:03 +0000 (20:44 +0000)]
Unblock revision 62129.

16 years agoBlocked revisions 62123,62126 via svnmerge
Benjamin Peterson [Thu, 3 Apr 2008 19:48:41 +0000 (19:48 +0000)]
Blocked revisions 62123,62126 via svnmerge

........
  r62123 | barry.warsaw | 2008-04-02 23:10:02 -0500 (Wed, 02 Apr 2008) | 2 lines

  Updating for 2.6a2
........
  r62126 | barry.warsaw | 2008-04-02 23:14:19 -0500 (Wed, 02 Apr 2008) | 1 line

  Post tag version tweak
........

16 years ago[XXX: this is a temporary block, given the addition/deletion of new files I'll unbloc...
Trent Nelson [Thu, 3 Apr 2008 18:39:00 +0000 (18:39 +0000)]
[XXX: this is a temporary block, given the addition/deletion of new files I'll unblock and merge it to py3k myself once I've observed trunk buildbots' behaviour.]

Blocked revisions 62129 via svnmerge

........
  r62129 | trent.nelson | 2008-04-03 19:27:06 +0100 (Thu, 03 Apr 2008) | 16 lines

  Reimplement kill_python.  The existing version had a number of flaws, namely, it didn't work for x64 and it wasn't precise about which python_d.exe it was killing -- it just killed the first one it came across that happened to have 'pcbuild\python_d.exe' or 'build\python_d.exe' in it's path.  The new version has been rewritten from the ground up and now lives in PCbuild, instead of Tools\buildbot, and it has also been incorporated into the Visual Studio solution (pcbuild.sln) as 'kill_python'.  The solution has also been altered such that kill_python is called where necessary in the build process in order to prevent any linking errors due to open file locks.  In lieu of this, all of the existing bits and pieces in Tools\buildbot that called out to kill_python at various points have also been removed as they are now obsolete.  Tested on both Win32 and x64.

  Change set (included to improve usefulness of svnmerge log entry):
  M      PCbuild\pythoncore.vcproj
  M      PCbuild\pcbuild.sln
  M      PCbuild\release.vsprops
  A      PCbuild\kill_python.vcproj
  M      PCbuild\debug.vsprops
  A      PCbuild\kill_python.c
  D      Tools\buildbot\kill_python.bat
  D      Tools\buildbot\kill_python.mak
  M      Tools\buildbot\build.bat
  D      Tools\buildbot\Makefile
  M      Tools\buildbot\build-amd64.bat
  M      Tools\buildbot\buildmsi.bat
  D      Tools\buildbot\kill_python.c
........

16 years ago#2541 Allow unicode escapes in raw strings
Benjamin Peterson [Thu, 3 Apr 2008 16:27:27 +0000 (16:27 +0000)]
#2541 Allow unicode escapes in raw strings

16 years agoPost tag version tweak
Barry Warsaw [Thu, 3 Apr 2008 04:13:12 +0000 (04:13 +0000)]
Post tag version tweak

16 years agoTagging 3.0a4.
Barry Warsaw [Wed, 2 Apr 2008 23:47:54 +0000 (23:47 +0000)]
Tagging 3.0a4.

16 years agorelease.py induced and manual editing steps for 3.0a4. v3.0a4
Barry Warsaw [Wed, 2 Apr 2008 23:33:27 +0000 (23:33 +0000)]
release.py induced and manual editing steps for 3.0a4.

16 years agorelease.py wants to rename the spec file.
Barry Warsaw [Wed, 2 Apr 2008 22:51:13 +0000 (22:51 +0000)]
release.py wants to rename the spec file.

16 years agoFixed NEWS due to my bad merging skills
Benjamin Peterson [Wed, 2 Apr 2008 22:44:10 +0000 (22:44 +0000)]
Fixed NEWS due to my bad merging skills

16 years agoMerged revisions 62090-62091,62096,62100,62102,62110-62114 via svnmerge from
Benjamin Peterson [Wed, 2 Apr 2008 21:49:44 +0000 (21:49 +0000)]
Merged revisions 62090-62091,62096,62100,62102,62110-62114 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r62090 | brett.cannon | 2008-04-01 07:37:43 -0500 (Tue, 01 Apr 2008) | 3 lines

  Generalize test.test_support.test_stdout() with a base context manager so that
  it is easy to capture stderr if desired.
........
  r62091 | brett.cannon | 2008-04-01 07:46:02 -0500 (Tue, 01 Apr 2008) | 3 lines

  Add ``if __name__ == '__main__'`` to some test files where it didn't take a lot
  of effort to do so.
........
  r62096 | amaury.forgeotdarc | 2008-04-01 17:52:48 -0500 (Tue, 01 Apr 2008) | 4 lines

  Newly enabled test appears to leak:
  it registers the same codec on each iteration.
  Do it only once at load time.
........
  r62100 | amaury.forgeotdarc | 2008-04-01 19:55:04 -0500 (Tue, 01 Apr 2008) | 4 lines

  A DocTestSuite cannot run multiple times: it clears its globals dictionary after the first run.

  Rebuild the DocTestSuite on each iteration.
........
  r62102 | jeffrey.yasskin | 2008-04-01 23:07:44 -0500 (Tue, 01 Apr 2008) | 3 lines

  Try to make test_signal less flaky.  I still see some flakiness in
  test_itimer_prof.
........
  r62110 | vinay.sajip | 2008-04-02 16:09:27 -0500 (Wed, 02 Apr 2008) | 1 line

  Fix: #2315, #2316, #2317: TimedRotatingFileHandler - changed logic to better handle daylight savings time, deletion of old log files, and fixed a bug in calculating rollover when no logging occurs for a longer interval than the rollover period.
........
  r62111 | vinay.sajip | 2008-04-02 16:10:23 -0500 (Wed, 02 Apr 2008) | 1 line

  Added updates with respect to recent changes to TimedRotatingFileHandler.
........
  r62112 | vinay.sajip | 2008-04-02 16:17:25 -0500 (Wed, 02 Apr 2008) | 1 line

  Added updates with respect to recent changes to TimedRotatingFileHandler.
........
  r62113 | amaury.forgeotdarc | 2008-04-02 16:18:46 -0500 (Wed, 02 Apr 2008) | 2 lines

  Remove debug prints; the buildbot now passes the tests
........
  r62114 | benjamin.peterson | 2008-04-02 16:20:35 -0500 (Wed, 02 Apr 2008) | 2 lines

  Suggested proposed changes to Python be considered on some mailing lists first
........

16 years agoBlocked revisions 62097 via svnmerge
Benjamin Peterson [Wed, 2 Apr 2008 21:21:29 +0000 (21:21 +0000)]
Blocked revisions 62097 via svnmerge

........
  r62097 | guido.van.rossum | 2008-04-01 18:57:36 -0500 (Tue, 01 Apr 2008) | 3 lines

  Remove the advertising clause from the BSD license in timing.h.
  I have the email trail to prove that George Neville-Neil approved this.
........

16 years agoMerged revisions 62105 via svnmerge from
Trent Nelson [Wed, 2 Apr 2008 15:06:49 +0000 (15:06 +0000)]
Merged revisions 62105 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r62105 | trent.nelson | 2008-04-02 16:01:00 +0100 (Wed, 02 Apr 2008) | 1 line

  Update information pertaining to building external components, as well as notes on x64 builds.  This file now accurately describes the build process as is; however, there's still a lot of room for improvement, especially with regards to how we build Tcl/Tk, Tix, and OpenSSL.  Watch this space for further improvements.
........

16 years agoBlocked revisions 62103 via svnmerge
Neal Norwitz [Wed, 2 Apr 2008 07:06:14 +0000 (07:06 +0000)]
Blocked revisions 62103 via svnmerge

........
  r62103 | neal.norwitz | 2008-04-01 22:54:27 -0700 (Tue, 01 Apr 2008) | 3 lines

  Apply same patch from 3k branch to try and prevent this test from hanging
  on various platforms, most recently the Alpha Tru64.
........

16 years agoBlocked revisions 62095,62099 via svnmerge
Benjamin Peterson [Wed, 2 Apr 2008 02:27:22 +0000 (02:27 +0000)]
Blocked revisions 62095,62099 via svnmerge

........
  r62095 | amaury.forgeotdarc | 2008-04-01 17:37:33 -0500 (Tue, 01 Apr 2008) | 5 lines

  Fix and enable a skipped test:
  with python 2.6, enumerating bytes yields 1-char strings, not numbers.

  Don't merge this into the py3k branch.
........
  r62099 | amaury.forgeotdarc | 2008-04-01 19:25:14 -0500 (Tue, 01 Apr 2008) | 14 lines

  Correct the apparent refleak in test_io:
  When cls is an ABCMeta, every call to isinstance(x, cls)
  records type(x) in the cls._abc_cache of cls_abc_negative_cache.
  So we clear these caches at the end of the test.

  inspect.isabstract() is not the correct test for all ABCs, because there is no @abstractmethod in io.py (why?)
  isinstance(cls, ABCMeta) would be more exact, but it fails with an infinite recursion.
  So I used a hack to determine whether a class is an ABCMeta.

  The true correction would be to turn cls._abc_cache &co into a WeakSet, as py3k does.
  But classic classes are not weak referenceable...

  Of course, this change should not be merged into the py3k branch.
........

16 years agoPrevent test_queue from leaking: one worker thread was not stopped.
Amaury Forgeot d'Arc [Tue, 1 Apr 2008 21:23:34 +0000 (21:23 +0000)]
Prevent test_queue from leaking: one worker thread was not stopped.

The version in trunk/ is correct; the problem with 3.0 is that
None cannot be used as a marker in a PriorityQueue, because it cannot be compared with ints.

16 years agoFix refleak with nested classes. Fix originally by Amaury in r62015.
Neal Norwitz [Tue, 1 Apr 2008 08:08:09 +0000 (08:08 +0000)]
Fix refleak with nested classes.  Fix originally by Amaury in r62015.

16 years agoBe more forgiving if we get an error, there are lots of potential socket errors
Neal Norwitz [Tue, 1 Apr 2008 07:38:41 +0000 (07:38 +0000)]
Be more forgiving if we get an error, there are lots of potential socket errors

16 years agoFix a refleak
Neal Norwitz [Tue, 1 Apr 2008 07:37:58 +0000 (07:37 +0000)]
Fix a refleak

16 years agoMerged revisions 61440-61441,61443,61445-61448,61451-61452,61455-61457,61459-61464...
Martin v. Löwis [Tue, 1 Apr 2008 06:17:46 +0000 (06:17 +0000)]
Merged revisions 61440-61441,61443,61445-61448,61451-61452,61455-61457,61459-61464,61466-61467,61469-61470,61476-61477,61479,61481-61482,61485,61487,61490,61493-61494,61497,61499-61502,61505-61506,61508,61511-61514,61519,61521-61522,61530-61531,61533-61537,61541-61555,61557-61558,61561-61562,61566-61569,61572-61574,61578-61579,61583-61584,61588-61589,61592,61594,61598-61601,61603-61604,61607-61612,61617,61619-61620,61624,61626,61628-61630,61635-61638,61640-61643,61645,61648,61653-61655,61659-61662,61664,61666,61668-61671,61673,61675,61679-61680,61682,61685-61686,61689-61695,61697-61699,61701-61703,61706,61710,61713,61717,61723,61726-61730,61736,61738,61740,61742,61745-61752,61754-61760,61762-61764,61768,61770-61772,61774-61775,61784-61787,61789-61792,61794-61795,61797-61806,61808-61809,61811-61812,61814-61819,61824,61826-61833,61835-61840,61843-61845,61848,61850,61854-61862,61865-61866,61868,61872-61873,61876-61877,61883-61888,61890-61891,61893-61899,61901-61903,61905-61912,61914,61917,61920-61921,61927,61930,61932-61934,61939,61941-61942,61944-61951,61955,61960-61963,61980,61982-61983,61991,61994-61996,62001-62003,62008-62010,62016-62017,62022,62024,62027,62031-62034,62041,62045-62046,62055-62058,62060-62066,62068-62074,62076-62085 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

................
  r62080 | martin.v.loewis | 2008-03-31 07:20:55 +0200 (Mo, 31 Mär 2008) | 9 lines

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

  ........
    r62017 | david.wolever | 2008-03-28 21:54:37 +0100 (Fr, 28 Mär 2008) | 1 line

    Fixed an out-of-date comment.
  ........
................
  r62084 | benjamin.peterson | 2008-03-31 23:57:13 +0200 (Mo, 31 Mär 2008) | 2 lines

  PyErr_Warn is decrepated. Use PyErr_WarnEx
................
  r62085 | neal.norwitz | 2008-04-01 07:40:43 +0200 (Di, 01 Apr 2008) | 4 lines

  Be sure to close the file.  2 places were deleting the file, so it was probably
  fine, but the last change may be required for the test to pass on Windows.
  Should we always close the mmap too?
................

16 years agoThis was required on OS X to prevent the test from deadlocking. I'm not sure
Neal Norwitz [Mon, 31 Mar 2008 05:39:26 +0000 (05:39 +0000)]
This was required on OS X to prevent the test from deadlocking.  I'm not sure
if this is just a test problem or something deeper.  Hopefully the test will
stop hanging.

16 years agoMerged revisions 61440-61441,61443,61445-61448,61451-61452,61455-61457,61459-61464...
Neal Norwitz [Mon, 31 Mar 2008 05:29:39 +0000 (05:29 +0000)]
Merged revisions 61440-61441,61443,61445-61448,61451-61452,61455-61457,61459-61464,61466-61467,61469-61470,61476-61477,61479,61481-61482,61485,61487,61490,61493-61494,61497,61499-61502,61505-61506,61508,61511-61514,61519,61521-61522,61530-61531,61533-61537,61541-61555,61557-61558,61561-61562,61566-61569,61572-61574,61578-61579,61583-61584,61588-61589,61592,61594,61598-61601,61603-61604,61607-61612,61617,61619-61620,61624,61626,61628-61630,61635-61638,61640-61643,61645,61648,61653-61655,61659-61662,61664,61666,61668-61671,61673,61675,61679-61680,61682,61685-61686,61689-61695,61697-61699,61701-61703,61706,61710,61713,61717,61723,61726-61730,61736,61738,61740,61742,61745-61752,61754-61760,61762-61764,61768,61770-61772,61774-61775,61784-61787,61789-61792,61794-61795,61797-61806,61808-61809,61811-61812,61814-61819,61824,61826-61833,61835-61840,61843-61845,61848,61850,61854-61862,61865-61866,61868,61872-61873,61876-61877,61883-61888,61890-61891,61893-61899,61901-61903,61905-61912,61914,61917,61920-61921,61927,61930,61932-61934,61939,61941-61942,61944-61951,61955,61960-61963,61980,61982-61983,61991,61994-61996,62001-62003,62008-62010,62016-62017,62022,62024,62027,62031-62034,62041,62045-62046,62048,62050-62051,62055-62066,62068-62074,62076-62078 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r62048 | georg.brandl | 2008-03-29 23:53:55 -0700 (Sat, 29 Mar 2008) | 2 lines

  Adapt test_ast to the new ExceptHandler type.
........
  r62050 | georg.brandl | 2008-03-30 00:09:22 -0700 (Sun, 30 Mar 2008) | 2 lines

  Convert test_ast to unittest and add a test for r62049.
........
  r62051 | georg.brandl | 2008-03-30 12:00:49 -0700 (Sun, 30 Mar 2008) | 2 lines

  Make _fields attr for no fields consistent with _attributes attr.
........
  r62059 | georg.brandl | 2008-03-30 13:20:39 -0700 (Sun, 30 Mar 2008) | 2 lines

  Make AST nodes pickleable.
........

16 years agoMerged revisions 62047 via svnmerge from
Neal Norwitz [Mon, 31 Mar 2008 05:14:30 +0000 (05:14 +0000)]
Merged revisions 62047 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r62047 | georg.brandl | 2008-03-29 23:40:17 -0700 (Sat, 29 Mar 2008) | 2 lines

  Patch #2511: Give the "excepthandler" AST item proper attributes by making it a Sum.
........

16 years agoBlocked revisions 62075 via svnmerge
Neal Norwitz [Mon, 31 Mar 2008 04:47:25 +0000 (04:47 +0000)]
Blocked revisions 62075 via svnmerge

........
  r62075 | neal.norwitz | 2008-03-30 21:28:40 -0700 (Sun, 30 Mar 2008) | 1 line

  Use file.write instead of print to make it easier to merge with 3k.
........

16 years agoMerged revisions 62049,62054 via svnmerge from
Neal Norwitz [Mon, 31 Mar 2008 04:42:11 +0000 (04:42 +0000)]
Merged revisions 62049,62054 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r62049 | georg.brandl | 2008-03-30 00:01:47 -0700 (Sun, 30 Mar 2008) | 2 lines

  #2505: allow easier creation of AST nodes.
........
  r62054 | georg.brandl | 2008-03-30 12:43:27 -0700 (Sun, 30 Mar 2008) | 2 lines

  Fix error message -- "expects either 0 or 0 arguments"
........

16 years agoMerged revisions 62039-62042 via svnmerge from
Neal Norwitz [Mon, 31 Mar 2008 04:20:05 +0000 (04:20 +0000)]
Merged revisions 62039-62042 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r62039 | georg.brandl | 2008-03-29 06:24:23 -0700 (Sat, 29 Mar 2008) | 3 lines

  Properly check for consistency with the third argument of
  compile() when compiling an AST node.
........
  r62040 | amaury.forgeotdarc | 2008-03-29 06:47:05 -0700 (Sat, 29 Mar 2008) | 5 lines

  The buildbot "x86 W2k8 trunk" seems to hang in test_socket.
  http://www.python.org/dev/buildbot/trunk/x86%20W2k8%20trunk/builds/255/step-test/0

  Temporarily increase verbosity of this test.
........
  r62042 | amaury.forgeotdarc | 2008-03-29 07:53:05 -0700 (Sat, 29 Mar 2008) | 3 lines

  Still investigating on the hanging test_socket.
  the test itself doesn't do anything on windows, focus on setUp and tearDown.
........

16 years agoBlocked revisions 62020 via svnmerge
Neal Norwitz [Mon, 31 Mar 2008 03:02:08 +0000 (03:02 +0000)]
Blocked revisions 62020 via svnmerge

........
  r62020 | amaury.forgeotdarc | 2008-03-28 15:43:38 -0700 (Fri, 28 Mar 2008) | 5 lines

  One #ifdef too much, and I broke all windows buildbots:
  in pyconfig.h, NTDDI_WIN2KSP4 is not *yet* defined, but will be at some point on some modules.

  Let this line even for older SDKs, they don't use it anyway.
........

16 years agoRevert r62070 due to syntax errors
Neal Norwitz [Mon, 31 Mar 2008 02:56:33 +0000 (02:56 +0000)]
Revert r62070 due to syntax errors

16 years agoRevert r62070 due to syntax errors
Neal Norwitz [Mon, 31 Mar 2008 02:55:15 +0000 (02:55 +0000)]
Revert r62070 due to syntax errors

16 years agoRolled back revisions 62038 via svnmerge from
Benjamin Peterson [Mon, 31 Mar 2008 02:36:22 +0000 (02:36 +0000)]
Rolled back revisions 62038 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
This was incorrectly merged.

16 years agoMerged revisions 62021,62029,62035-62038,62043-62044,62052-62053 via svnmerge from
Benjamin Peterson [Mon, 31 Mar 2008 01:51:45 +0000 (01:51 +0000)]
Merged revisions 62021,62029,62035-62038,62043-62044,62052-62053 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r62021 | benjamin.peterson | 2008-03-28 18:11:01 -0500 (Fri, 28 Mar 2008) | 2 lines

  NIL => NULL
........
  r62029 | amaury.forgeotdarc | 2008-03-28 20:42:31 -0500 (Fri, 28 Mar 2008) | 3 lines

  Correctly call the base class tearDown();
  otherwise running test_logging twice produce the errors we see on all buildbots
........
  r62035 | raymond.hettinger | 2008-03-29 05:42:07 -0500 (Sat, 29 Mar 2008) | 1 line

  Be explicit about what efficient means.
........
  r62036 | georg.brandl | 2008-03-29 06:46:18 -0500 (Sat, 29 Mar 2008) | 2 lines

  Fix capitalization.
........
  r62037 | amaury.forgeotdarc | 2008-03-29 07:42:54 -0500 (Sat, 29 Mar 2008) | 5 lines

  lib2to3 should install a logging handler only when run as a main program,
  not when used as a library.

  This may please the buildbots, which fail when test_lib2to3 is run before test_logging.
........
  r62043 | benjamin.peterson | 2008-03-29 10:24:25 -0500 (Sat, 29 Mar 2008) | 3 lines

  #2503 make singletons compared with "is" not == or !=
  Thanks to Wummel for the patch
........
  r62044 | gerhard.haering | 2008-03-29 14:11:52 -0500 (Sat, 29 Mar 2008) | 2 lines

  Documented the lastrowid attribute.
........
  r62052 | benjamin.peterson | 2008-03-30 14:35:10 -0500 (Sun, 30 Mar 2008) | 2 lines

  Updated README regarding doc formats
........
  r62053 | georg.brandl | 2008-03-30 14:41:39 -0500 (Sun, 30 Mar 2008) | 2 lines

  The other download formats will be available for 2.6 too.
........

16 years agoBlocked revisions 62067 via svnmerge
Jeffrey Yasskin [Mon, 31 Mar 2008 00:38:53 +0000 (00:38 +0000)]
Blocked revisions 62067 via svnmerge

........
  r62067 | jeffrey.yasskin | 2008-03-30 17:35:53 -0700 (Sun, 30 Mar 2008) | 2 lines

  Block the sys.exc_clear -3 warning from threading.py.
........

16 years agoBlocked revisions 62023,62025,62028 via svnmerge
Neal Norwitz [Sun, 30 Mar 2008 22:49:52 +0000 (22:49 +0000)]
Blocked revisions 62023,62025,62028 via svnmerge

........
  r62023 | amaury.forgeotdarc | 2008-03-28 17:44:58 -0700 (Fri, 28 Mar 2008) | 5 lines

  Try to understand why most buildbots suddenly turned to red.
  Undo the only change that might have unexpected effects.

  To be followed.
........
  r62025 | amaury.forgeotdarc | 2008-03-28 17:49:07 -0700 (Fri, 28 Mar 2008) | 2 lines

  At least let the module compile
........
  r62028 | amaury.forgeotdarc | 2008-03-28 18:41:08 -0700 (Fri, 28 Mar 2008) | 2 lines

  Revert my experiment. I found one reason of failures in test_logging.
........

16 years agoBlocked revisions 62019 via svnmerge
Martin v. Löwis [Sun, 30 Mar 2008 20:45:26 +0000 (20:45 +0000)]
Blocked revisions 62019 via svnmerge

........
  r62019 | amaury.forgeotdarc | 2008-03-28 22:55:29 +0100 (Fr, 28 Mär 2008) | 7 lines

  Repair compilation for Visual Studio 2005.

  I applied the same changes manually to VS7.1 and VC6 files; completely untested.

  (Christian, don't try too hard merging this change into py3k.
  It will be easier to do the same work again on the branch)
........

16 years agoMerged revisions 62018 via svnmerge from
Martin v. Löwis [Sun, 30 Mar 2008 20:43:50 +0000 (20:43 +0000)]
Merged revisions 62018 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r62018 | benjamin.peterson | 2008-03-28 21:56:00 +0100 (Fr, 28 Mär 2008) | 2 lines

  #2498 modernized try, except, finally statments in bdb
........

16 years agoBlocked revisions 62015 via svnmerge
Martin v. Löwis [Sun, 30 Mar 2008 20:38:01 +0000 (20:38 +0000)]
Blocked revisions 62015 via svnmerge
This was apparently fixed in r54428 already
........
  r62015 | amaury.forgeotdarc | 2008-03-28 21:30:50 +0100 (Fr, 28 Mär 2008) | 5 lines

  Fix a reference leak found by Georg, when compiling a class nested in another class.
  Now "regrtest.py -R:: test_compile" is satisfied.

  Will backport.
........

16 years agoMerged revisions 62013-62014 via svnmerge from
Martin v. Löwis [Sun, 30 Mar 2008 20:29:36 +0000 (20:29 +0000)]
Merged revisions 62013-62014 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r62013 | amaury.forgeotdarc | 2008-03-28 21:17:51 +0100 (Fr, 28 Mär 2008) | 2 lines

  Silence a compilation warning
........
  r62014 | georg.brandl | 2008-03-28 21:22:56 +0100 (Fr, 28 Mär 2008) | 2 lines

  Silence compiler warning at the source.
........

16 years agoMerged revisions 62012 via svnmerge from
Martin v. Löwis [Sun, 30 Mar 2008 20:23:50 +0000 (20:23 +0000)]
Merged revisions 62012 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r62012 | gregory.p.smith | 2008-03-28 21:11:49 +0100 (Fr, 28 Mär 2008) | 2 lines

  These svn adds were forgotten in r62000
........
test/dump.py was already added in r62022,
so it was not merged.

16 years agoMerged revisions 62011 via svnmerge from
Martin v. Löwis [Sun, 30 Mar 2008 20:21:00 +0000 (20:21 +0000)]
Merged revisions 62011 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r62011 | gerhard.haering | 2008-03-28 21:08:36 +0100 (Fr, 28 Mär 2008) | 2 lines

  Update sqlite3 module to match current version of pysqlite.
........

16 years agoMerged revisions 62007 via svnmerge from
Martin v. Löwis [Sun, 30 Mar 2008 20:18:05 +0000 (20:18 +0000)]
Merged revisions 62007 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r62007 | georg.brandl | 2008-03-28 13:58:26 +0100 (Fr, 28 Mär 2008) | 2 lines

  #2502: add example how to do enum types with named tuples.
........

16 years agoBlock 62006, as that section was rewritten in 58038.
Martin v. Löwis [Sun, 30 Mar 2008 20:16:56 +0000 (20:16 +0000)]
Block 62006, as that section was rewritten in 58038.

16 years agoBlock 62005, as it applies only to the trunk.
Martin v. Löwis [Sun, 30 Mar 2008 20:09:13 +0000 (20:09 +0000)]
Block 62005, as it applies only to the trunk.

16 years agoMerged revisions 62004 via svnmerge from
Martin v. Löwis [Sun, 30 Mar 2008 20:03:44 +0000 (20:03 +0000)]
Merged revisions 62004 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r62004 | georg.brandl | 2008-03-28 13:11:56 +0100 (Fr, 28 Mär 2008) | 4 lines

  Patch #1810 by Thomas Lee, reviewed by myself:
  allow compiling Python AST objects into code objects
  in compile().
........

16 years agoDocumented lastrowid attribute in py3k branch.
Gerhard Häring [Sat, 29 Mar 2008 19:13:55 +0000 (19:13 +0000)]
Documented lastrowid attribute in py3k branch.

16 years agoMoved DECREF to correct place to get rid of leaked references.
Gerhard Häring [Sat, 29 Mar 2008 14:11:55 +0000 (14:11 +0000)]
Moved DECREF to correct place to get rid of leaked references.

16 years agoUpdate test_threading with a couple changes from trunk that got lost due, I
Jeffrey Yasskin [Sat, 29 Mar 2008 05:06:52 +0000 (05:06 +0000)]
Update test_threading with a couple changes from trunk that got lost due, I
presume, to merge conflicts.

16 years agoBlocked revisions 62030 via svnmerge
Georg Brandl [Sat, 29 Mar 2008 02:04:05 +0000 (02:04 +0000)]
Blocked revisions 62030 via svnmerge

........
  r62030 | georg.brandl | 2008-03-29 02:50:06 +0100 (Sat, 29 Mar 2008) | 2 lines

  Backport #1442: report exception when startup file cannot be run.
........

16 years agoBlocked revisions 62026 via svnmerge
Georg Brandl [Sat, 29 Mar 2008 02:00:47 +0000 (02:00 +0000)]
Blocked revisions 62026 via svnmerge

........
  r62026 | gerhard.haering | 2008-03-29 02:27:37 +0100 (Sat, 29 Mar 2008) | 3 lines

  Brought documentation for sqlite3 module up-to-date. Fixed Issue1625205 which
  complained about commit, rollback and close not being documented.
........

16 years agoSame documentation for sqlite3 module as in 2.6.
Gerhard Häring [Sat, 29 Mar 2008 01:32:44 +0000 (01:32 +0000)]
Same documentation for sqlite3 module as in 2.6.

16 years agoBring sqlite3 module up-to-date with what's now in 2.6. Almost. I intentionally
Gerhard Häring [Sat, 29 Mar 2008 00:45:29 +0000 (00:45 +0000)]
Bring sqlite3 module up-to-date with what's now in 2.6. Almost. I intentionally
left out the stuff about creating a connection object from a APSW connection.

16 years agoAdded missing files for new iterdump method.
Gerhard Häring [Sat, 29 Mar 2008 00:41:18 +0000 (00:41 +0000)]
Added missing files for new iterdump method.

16 years agoMerged revisions 61981,61984-61987,61992-61993,61997-62000 via svnmerge from
Christian Heimes [Fri, 28 Mar 2008 10:53:29 +0000 (10:53 +0000)]
Merged revisions 61981,61984-61987,61992-61993,61997-62000 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r61981 | amaury.forgeotdarc | 2008-03-28 01:21:34 +0100 (Fri, 28 Mar 2008) | 2 lines

  test_future3.py is a regular test file, and should be part of the test suite
........
  r61984 | jeffrey.yasskin | 2008-03-28 05:11:18 +0100 (Fri, 28 Mar 2008) | 6 lines

  Kill a race in test_threading in which the exception info in a thread finishing
  up after it was joined had a traceback pointing to that thread's (deleted)
  target attribute, while the test was trying to check that the target was
  destroyed. Big thanks to Antoine Pitrou for diagnosing the race and pointing
  out sys.exc_clear() to kill the exception early. This fixes issue 2496.
........
  r61985 | neal.norwitz | 2008-03-28 05:41:34 +0100 (Fri, 28 Mar 2008) | 1 line

  Allow use of other ports so the test can pass if 9091 is in use
........
  r61986 | jeffrey.yasskin | 2008-03-28 05:53:10 +0100 (Fri, 28 Mar 2008) | 2 lines

  Print more information the next time test_socket throws the wrong exception.
........
  r61987 | neal.norwitz | 2008-03-28 05:58:51 +0100 (Fri, 28 Mar 2008) | 5 lines

  Revert r61969 which added casts to Py_CHARMASK to avoid compiler warnings.
  Rather than sprinkle casts throughout the code, change Py_CHARMASK to
  always cast it's result to an unsigned char.  This should ensure we
  do the right thing when accessing an array with the result.
........
  r61992 | neal.norwitz | 2008-03-28 06:34:59 +0100 (Fri, 28 Mar 2008) | 2 lines

  Fix compiler warning about finite() missing on Solaris.
........
  r61993 | neal.norwitz | 2008-03-28 07:34:03 +0100 (Fri, 28 Mar 2008) | 11 lines

  Bug 1503: Get the test to pass on OSX.  This should make the test more
  reliable, but I'm not convinced it is the right solution.  We need
  to determine if this causes the test to hang on any platforms or do
  other bad things.

  Even if it gets the test to pass reliably, it might be that we want
  to fix this in socket.  The socket returned from accept() is different
  on different platforms (inheriting attributes or not) and we might
  want to ensure that the attributes (at least blocking) is the same
  across all platforms.
........
  r61997 | neal.norwitz | 2008-03-28 08:36:31 +0100 (Fri, 28 Mar 2008) | 1 line

  Name the main method correctly so the test is run
........
  r61998 | gregory.p.smith | 2008-03-28 09:00:44 +0100 (Fri, 28 Mar 2008) | 7 lines

  This patch moves some tests from test_urllib2_net to test_urllib2_localnet.
  The moved tests use a local server rather than going out to external servers.

  Accepts patch from issue2429.

  Contributed by Jerry Seutter & Michael Foord (fuzzyman) at PyCon 2008.
........
  r61999 | georg.brandl | 2008-03-28 09:06:56 +0100 (Fri, 28 Mar 2008) | 2 lines

  #2406: add examples to gzip docs.
........
  r62000 | gregory.p.smith | 2008-03-28 09:32:09 +0100 (Fri, 28 Mar 2008) | 4 lines

  Accept patch issue2426 by Paul Kippes (kippesp).

  Adds sqlite3.Connection.iterdump to allow dumping of databases.
........

16 years agoFixed an import
Christian Heimes [Fri, 28 Mar 2008 10:52:42 +0000 (10:52 +0000)]
Fixed an import

16 years agoMerged revisions 61988-61990 via svnmerge from
Martin v. Löwis [Fri, 28 Mar 2008 05:29:57 +0000 (05:29 +0000)]
Merged revisions 61988-61990 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

................
  r61988 | martin.v.loewis | 2008-03-28 06:25:36 +0100 (Fr, 28 Mär 2008) | 2 lines

  Disable test that depends on #2412 being fixed.
................
  r61989 | martin.v.loewis | 2008-03-28 06:26:10 +0100 (Fr, 28 Mär 2008) | 2 lines

  Run 2to3 tests.
................
  r61990 | martin.v.loewis | 2008-03-28 06:27:44 +0100 (Fr, 28 Mär 2008) | 13 lines

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

  ........
    r61899 | collin.winter | 2008-03-25 17:53:41 +0100 (Di, 25 Mär 2008) | 1 line

    Add a missing explicit fixer to test_all_fixers.
  ........
    r61983 | collin.winter | 2008-03-28 03:19:46 +0100 (Fr, 28 Mär 2008) | 2 lines

    Fix http://bugs.python.org/issue2453: support empty excepts in fix_except.
  ........
................

16 years agoMerged revisions 61964-61979 via svnmerge from
Christian Heimes [Fri, 28 Mar 2008 00:55:15 +0000 (00:55 +0000)]
Merged revisions 61964-61979 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r61964 | benjamin.peterson | 2008-03-27 01:25:33 +0100 (Thu, 27 Mar 2008) | 2 lines

  add commas for introductory clauses
........
  r61965 | christian.heimes | 2008-03-27 02:36:21 +0100 (Thu, 27 Mar 2008) | 1 line

  Hopefully added _fileio module to the Windows build system
........
  r61966 | christian.heimes | 2008-03-27 02:38:47 +0100 (Thu, 27 Mar 2008) | 1 line

  Revert commit accident
........
  r61967 | neal.norwitz | 2008-03-27 04:49:54 +0100 (Thu, 27 Mar 2008) | 3 lines

  Fix bytes so it works on 64-bit platforms.
  (Also remove some #if 0 code that is already handled in _getbytevalue.)
........
  r61968 | neal.norwitz | 2008-03-27 05:40:07 +0100 (Thu, 27 Mar 2008) | 1 line

  Fix memory leaks
........
  r61969 | neal.norwitz | 2008-03-27 05:40:50 +0100 (Thu, 27 Mar 2008) | 3 lines

  Fix warnings about using char as an array subscript.  This is not portable
  since char is signed on some platforms and unsigned on others.
........
  r61970 | neal.norwitz | 2008-03-27 06:02:57 +0100 (Thu, 27 Mar 2008) | 1 line

  Fix test_compiler after adding unicode_literals
........
  r61971 | neal.norwitz | 2008-03-27 06:03:11 +0100 (Thu, 27 Mar 2008) | 1 line

  Fix compiler warnings
........
  r61972 | neal.norwitz | 2008-03-27 07:52:01 +0100 (Thu, 27 Mar 2008) | 1 line

  Pluralss only need one s, not 2 (intss -> ints)
........
  r61973 | christian.heimes | 2008-03-27 10:02:33 +0100 (Thu, 27 Mar 2008) | 1 line

  Quick 'n dirty hack: Increase the magic by 2 to force a rebuild of pyc/pyo files on the build bots
........
  r61974 | eric.smith | 2008-03-27 10:42:35 +0100 (Thu, 27 Mar 2008) | 3 lines

  Added test cases for single quoted strings, both forms of triple quotes,
   and some string concatenations.
  Removed unneeded __future__ print_function import.
........
  r61975 | christian.heimes | 2008-03-27 11:35:52 +0100 (Thu, 27 Mar 2008) | 1 line

  Build bots are working again - removing the hack
........
  r61976 | christian.heimes | 2008-03-27 12:46:37 +0100 (Thu, 27 Mar 2008) | 2 lines

  Fixed tokenize tests
  The tokenize module doesn't understand __future__.unicode_literals yet
........
  r61977 | georg.brandl | 2008-03-27 14:27:31 +0100 (Thu, 27 Mar 2008) | 2 lines

  #2248: return result of QUIT from quit().
........
  r61978 | georg.brandl | 2008-03-27 14:34:59 +0100 (Thu, 27 Mar 2008) | 2 lines

  The bug for which there was a test in outstanding_bugs.py was agreed not to be a bug.
........
  r61979 | amaury.forgeotdarc | 2008-03-28 00:23:54 +0100 (Fri, 28 Mar 2008) | 5 lines

  Issue2495: tokenize.untokenize did not insert space between two consecutive string literals:
  "" "" => """", which is invalid code.

  Will backport
........