Commit Graph

39585 Commits

Author SHA1 Message Date
Benjamin Peterson e1759f8da5 Merged revisions 73717 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r73717 | benjamin.peterson | 2009-06-30 18:30:12 -0500 (Tue, 30 Jun 2009) | 1 line

  use assert* methods in test_unittest
........
2009-06-30 23:35:19 +00:00
Benjamin Peterson 5e474d355c Blocked revisions 73714 via svnmerge
........
  r73714 | benjamin.peterson | 2009-06-30 17:57:08 -0500 (Tue, 30 Jun 2009) | 1 line

  convert usage of fail* to assert*
........
2009-06-30 23:09:03 +00:00
Benjamin Peterson c9c0f201fe convert old fail* assertions to assert* 2009-06-30 23:06:06 +00:00
Benjamin Peterson 98d23f2e06 Merged revisions 73710 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r73710 | benjamin.peterson | 2009-06-30 17:14:33 -0500 (Tue, 30 Jun 2009) | 1 line

  provide a dummy __exit__ on windows
........
2009-06-30 22:27:25 +00:00
Mark Dickinson 835a6c8467 Merged revisions 73701 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r73701 | mark.dickinson | 2009-06-30 16:32:30 +0100 (Tue, 30 Jun 2009) | 3 lines

  Issue #6347:  Add inttypes.h to the pyport.h #includes;  fixes a build
  failure on HP-UX 11.00.
........
2009-06-30 15:45:17 +00:00
Gregory P. Smith aa3b5b8577 PendingDeprecationWarning -> DeprecationWarning. Both of these were
properly documented as being deprecated in 3.1.
2009-06-30 05:33:50 +00:00
Amaury Forgeot d'Arc 84ec8d9314 #6373: SystemError in str.encode('latin1', 'surrogateescape')
if the string contains unpaired surrogates.
(In debug build, crash in assert())

This can happen with normal processing, if python starts with utf-8,
then calls sys.setfilesystemencoding('latin-1')
2009-06-29 22:36:49 +00:00
Raymond Hettinger f909202c11 Issue 6370: Performance issue with collections.Counter(). 2009-06-29 18:30:43 +00:00
Tarek Ziadé 0156f91771 Merged revisions 73688 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r73688 | tarek.ziade | 2009-06-29 18:13:39 +0200 (Mon, 29 Jun 2009) | 1 line

  Fixed 6365: wrong inplace location for build_ext if the extension had dots
........
2009-06-29 16:19:22 +00:00
Hirokazu Yamamoto b1445cb258 Blocked revisions 73686 via svnmerge
........
  r73686 | hirokazu.yamamoto | 2009-06-30 00:52:21 +0900 | 1 line

  Issue #6368: Fixed unused variable warning on Unix.
........
2009-06-29 16:03:21 +00:00
Hirokazu Yamamoto 7a9e1bd924 Merged revisions 73677,73681 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r73677 | hirokazu.yamamoto | 2009-06-29 22:25:16 +0900 | 2 lines

  Issue #6344: Fixed a crash of mmap.read() when passed a negative argument.
  Reviewed by Amaury Forgeot d'Arc.
........
  r73681 | hirokazu.yamamoto | 2009-06-29 23:29:31 +0900 | 1 line

  Fixed NEWS.
........
2009-06-29 14:54:12 +00:00
Antoine Pitrou 4b1f3e55c7 Blocked revisions 73679 via svnmerge
........
  r73679 | antoine.pitrou | 2009-06-29 16:14:56 +0200 (lun., 29 juin 2009) | 3 lines

  Backport fix for buglet from py3k
........
2009-06-29 14:17:23 +00:00
Antoine Pitrou 88909540ff Merged revisions 73072 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r73072 | antoine.pitrou | 2009-05-31 16:20:14 +0200 (dim., 31 mai 2009) | 4 lines

  Issue #6152: New option '-j'/'--multiprocess' for regrtest allows running
  regression tests in parallel, shortening the total runtime.
........
2009-06-29 13:54:42 +00:00
Hirokazu Yamamoto 6fbdfdabb6 Merged revisions 73675 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r73675 | hirokazu.yamamoto | 2009-06-29 20:27:03 +0900 | 3 lines

  Issue #4856: Py_GetFileAttributesEx[AW] are not needed because GetFileAttributesEx[AW]
  won't fail with ERROR_CALL_NOT_IMPLEMENTED on win NT.
  Reviewed by Amaury Forgeot d'Arc.
........
2009-06-29 11:37:19 +00:00
Martin v. Löwis 3d2eca0eda Link to PEP 383. 2009-06-29 06:35:26 +00:00
Benjamin Peterson 0a3faef5f2 Merged revisions 73669 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r73669 | benjamin.peterson | 2009-06-28 22:30:55 -0500 (Sun, 28 Jun 2009) | 1 line

  update to sphinx 0.6.2
........
2009-06-29 03:37:21 +00:00
Alexandre Vassalotti 5629268e9d Make b64encode raises properly a TypeError when altchars is not bytes. 2009-06-29 01:13:41 +00:00
Benjamin Peterson 70f52768fd In most cases, the parser will protect True, False, and None from being assign to.
We must check for __debug__ in all cases.
2009-06-28 23:32:44 +00:00
Raymond Hettinger 1d1806843b Clean-up floating point tutorial. 2009-06-28 23:21:38 +00:00
Mark Dickinson e9eb7b6581 Merged revisions 73660 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r73660 | mark.dickinson | 2009-06-28 23:37:13 +0100 (Sun, 28 Jun 2009) | 1 line

  Remove unused stdint.h includes
........
2009-06-28 22:40:48 +00:00
Raymond Hettinger eafaf4c0b5 Small doc fix-ups to floatingpoint.rst. More are forthcoming. 2009-06-28 22:30:13 +00:00
Benjamin Peterson 97479ad607 Blocked revisions 73272,73546 via svnmerge
........
  r73272 | kristjan.jonsson | 2009-06-07 11:43:23 -0500 (Sun, 07 Jun 2009) | 2 lines

  http://bugs.python.org/issue6192
  Add a feature to disable the Nagle algorithm on sockets in TCPServer
........
  r73546 | kristjan.jonsson | 2009-06-24 04:17:04 -0500 (Wed, 24 Jun 2009) | 2 lines

  http://bugs.python.org/issue6192
  Move the newly introduced disable_nagle_algorithm flag into the StreamRequestHandler, where it is more appropriate.
........
2009-06-28 22:24:31 +00:00
Mark Dickinson 732166df68 Fix description of range_length_obj 2009-06-28 22:08:40 +00:00
Mark Dickinson 3fc65526e6 Blocked revisions 73653 via svnmerge
........
  r73653 | mark.dickinson | 2009-06-28 22:48:15 +0100 (Sun, 28 Jun 2009) | 1 line

  More Decimal quote fixing;  backport of r73642
........
2009-06-28 21:59:52 +00:00
Benjamin Peterson 6fd7d6c89f include 3.2 in toctree 2009-06-28 21:41:24 +00:00
Raymond Hettinger f558ddd61f Fill-in some new news. 2009-06-28 21:37:08 +00:00
Benjamin Peterson 5a6deb4cae remove string.maketrans 2009-06-28 21:35:31 +00:00
Kristján Valur Jónsson 41a5750656 http://bugs.python.org/issue6192
Mergin revisions 73272 and 73546 to py3k
2009-06-28 21:34:22 +00:00
Tarek Ziadé 8f480e5401 Merged revisions 73490 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r73490 | tarek.ziade | 2009-06-20 15:57:20 +0200 (Sat, 20 Jun 2009) | 1 line

  Fixed #6164 AIX specific linker argument in Distutils unixcompiler
........
2009-06-28 21:30:52 +00:00
Tarek Ziadé cc9144a916 Merged revisions 73445 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r73445 | tarek.ziade | 2009-06-16 10:31:01 +0200 (Tue, 16 Jun 2009) | 1 line

  starting distutils.ccompiler test coverage and cleanup
........
2009-06-28 21:29:24 +00:00
Tarek Ziadé 25bd2062f1 Merged revisions 73436 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r73436 | tarek.ziade | 2009-06-16 01:30:13 +0200 (Tue, 16 Jun 2009) | 1 line

  Issue #6286: distutils upload command now uses urllib2
........
2009-06-28 21:26:27 +00:00
Mark Dickinson 2c02bdc8a6 Fix incorrect quote type on Decimal examples 2009-06-28 21:24:42 +00:00
Mark Dickinson af15f3c084 Issue #6354 continued: reword confusing tutorial note on the (no-longer
existing) difference between str(8/5) and repr(8/5).
2009-06-28 21:19:18 +00:00
Tarek Ziadé 6f6f9462b0 Merged revisions 73435 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r73435 | tarek.ziade | 2009-06-16 01:04:29 +0200 (Tue, 16 Jun 2009) | 1 line

  code cleanup
........
2009-06-28 21:10:49 +00:00
Mark Dickinson 5a55b61a2a Issue #6354: More fixes for code examples involving the repr of a float. 2009-06-28 20:59:42 +00:00
Raymond Hettinger 6e6565b64b Whatsnew begins afresh 2009-06-28 20:56:11 +00:00
Mark Dickinson 8dad7df2b0 Corrections to decimal flying circus: round returns a Decimal;
float should have a short repr.
2009-06-28 20:36:54 +00:00
Benjamin Peterson 500c6ef67f simplify this expression 2009-06-28 19:30:36 +00:00
Benjamin Peterson a56d036db5 Blocked revisions 73627 via svnmerge
........
  r73627 | benjamin.peterson | 2009-06-28 14:27:55 -0500 (Sun, 28 Jun 2009) | 1 line

  return locals and cells in get_locals() not bound globals, though
........
2009-06-28 19:29:09 +00:00
Benjamin Peterson 78565b2216 Merged revisions 73376,73393,73398,73400,73404-73405,73409,73419-73421,73432,73457,73460,73485-73486,73488-73489,73501-73502,73513-73514 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r73376 | benjamin.peterson | 2009-06-11 17:29:23 -0500 (Thu, 11 Jun 2009) | 1 line

  remove check for case handled in sub-function
........
  r73393 | alexandre.vassalotti | 2009-06-12 13:56:57 -0500 (Fri, 12 Jun 2009) | 2 lines

  Clear reference to the static PyExc_RecursionErrorInst in _PyExc_Fini.
........
  r73398 | alexandre.vassalotti | 2009-06-12 15:57:12 -0500 (Fri, 12 Jun 2009) | 3 lines

  Add const qualifier to PyErr_SetFromErrnoWithFilename and to
  PyErr_SetFromErrnoWithUnicodeFilename.
........
  r73400 | alexandre.vassalotti | 2009-06-12 16:43:47 -0500 (Fri, 12 Jun 2009) | 2 lines

  Delete outdated make file for building the parser with MSVC 6.
........
  r73404 | benjamin.peterson | 2009-06-12 20:40:00 -0500 (Fri, 12 Jun 2009) | 1 line

  keep the slice.step field as NULL if no step expression is given
........
  r73405 | benjamin.peterson | 2009-06-12 22:46:30 -0500 (Fri, 12 Jun 2009) | 1 line

  prevent import statements from assigning to None
........
  r73409 | benjamin.peterson | 2009-06-13 08:06:21 -0500 (Sat, 13 Jun 2009) | 1 line

  allow importing from a module named None if it has an 'as' clause
........
  r73419 | benjamin.peterson | 2009-06-13 11:19:19 -0500 (Sat, 13 Jun 2009) | 1 line

  set Print.values to NULL if there are no values
........
  r73420 | benjamin.peterson | 2009-06-13 12:08:53 -0500 (Sat, 13 Jun 2009) | 1 line

  give a better error message when deleting ()
........
  r73421 | benjamin.peterson | 2009-06-13 15:23:33 -0500 (Sat, 13 Jun 2009) | 1 line

  when no module is given in a 'from' relative import, make ImportFrom.module NULL
........
  r73432 | amaury.forgeotdarc | 2009-06-14 16:20:40 -0500 (Sun, 14 Jun 2009) | 3 lines

  #6227: Because of a wrong indentation, the test was not testing what it should.
  Ensure that the snippet in doctest_aliases actually contains aliases.
........
  r73457 | benjamin.peterson | 2009-06-16 18:13:09 -0500 (Tue, 16 Jun 2009) | 1 line

  add underscores
........
  r73460 | benjamin.peterson | 2009-06-16 22:23:04 -0500 (Tue, 16 Jun 2009) | 1 line

  remove unused 'encoding' member from the compiler struct
........
  r73485 | benjamin.peterson | 2009-06-19 17:07:47 -0500 (Fri, 19 Jun 2009) | 1 line

  remove duplicate test
........
  r73486 | benjamin.peterson | 2009-06-19 17:09:17 -0500 (Fri, 19 Jun 2009) | 1 line

  add missing assertion #6313
........
  r73488 | benjamin.peterson | 2009-06-19 17:16:28 -0500 (Fri, 19 Jun 2009) | 1 line

  show that this one isn't used
........
  r73489 | benjamin.peterson | 2009-06-19 17:21:12 -0500 (Fri, 19 Jun 2009) | 1 line

  use closures
........
  r73501 | benjamin.peterson | 2009-06-21 18:01:07 -0500 (Sun, 21 Jun 2009) | 1 line

  don't need to add the name 'lambda' as assigned
........
  r73502 | benjamin.peterson | 2009-06-21 18:03:36 -0500 (Sun, 21 Jun 2009) | 1 line

  remove tmpname support since it's no longer used
........
  r73513 | benjamin.peterson | 2009-06-22 20:18:57 -0500 (Mon, 22 Jun 2009) | 1 line

  fix grammar
........
  r73514 | benjamin.peterson | 2009-06-22 22:01:56 -0500 (Mon, 22 Jun 2009) | 1 line

  remove some unused symtable constants
........
2009-06-28 19:19:51 +00:00
Benjamin Peterson c609b6b04b document BufferedIOBase.raw and TextIOBase.buffer 2009-06-28 17:32:20 +00:00
Benjamin Peterson 0289b15820 Merged revisions 73004,73439,73496,73509,73529,73564,73576-73577,73595-73596,73605 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r73004 | jeffrey.yasskin | 2009-05-28 22:44:31 -0500 (Thu, 28 May 2009) | 5 lines

  Fix nearly all compilation warnings under Apple gcc-4.0.  Tested with OPT="-g
  -Wall -Wstrict-prototypes -Werror" in both --with-pydebug mode and --without.
  There's still a batch of non-prototype warnings in Xlib.h that I don't know how
  to fix.
........
  r73439 | benjamin.peterson | 2009-06-15 19:29:31 -0500 (Mon, 15 Jun 2009) | 1 line

  don't mask encoding errors when decoding a string #6289
........
  r73496 | vinay.sajip | 2009-06-21 12:37:27 -0500 (Sun, 21 Jun 2009) | 1 line

  Issue #6314: logging.basicConfig() performs extra checks on the "level" argument.
........
  r73509 | amaury.forgeotdarc | 2009-06-22 14:33:48 -0500 (Mon, 22 Jun 2009) | 2 lines

  #4490 Fix sample code run by "python -m xml.sax.xmlreader"
........
  r73529 | r.david.murray | 2009-06-23 13:02:46 -0500 (Tue, 23 Jun 2009) | 4 lines

  Fix issue 5230 by having pydoc's safeimport check to see if the import
  error was thrown from itself in order to decide if the module can't be
  found.  Thanks to Lucas Prado Melo for collaborating on the fix and tests.
........
  r73564 | amaury.forgeotdarc | 2009-06-25 17:29:29 -0500 (Thu, 25 Jun 2009) | 6 lines

  #2016 Fix a crash in function call when the **kwargs dictionary is mutated
  during the function call setup.

  This even gives a slight speedup, probably because tuple allocation
  is faster than PyMem_NEW.
........
  r73576 | benjamin.peterson | 2009-06-26 18:37:06 -0500 (Fri, 26 Jun 2009) | 1 line

  document is_declared_global()
........
  r73577 | benjamin.peterson | 2009-06-27 09:16:23 -0500 (Sat, 27 Jun 2009) | 1 line

  link to extensive generator docs in the reference manual
........
  r73595 | ezio.melotti | 2009-06-27 18:45:39 -0500 (Sat, 27 Jun 2009) | 1 line

  stmt and setup can contain multiple statements, see #5896
........
  r73596 | ezio.melotti | 2009-06-27 19:07:45 -0500 (Sat, 27 Jun 2009) | 1 line

  Fixed a wrong apostrophe
........
  r73605 | georg.brandl | 2009-06-28 07:10:18 -0500 (Sun, 28 Jun 2009) | 1 line

  Remove stray pychecker directive.
........
2009-06-28 17:22:03 +00:00
Benjamin Peterson cd3ffe6859 Blocked revisions 73459,73563 via svnmerge
........
  r73459 | raymond.hettinger | 2009-06-16 20:43:47 -0500 (Tue, 16 Jun 2009) | 1 line

  Add usage note.
........
  r73563 | amaury.forgeotdarc | 2009-06-25 16:29:32 -0500 (Thu, 25 Jun 2009) | 2 lines

  Fix a compilation warning on Windows
........
2009-06-28 16:51:58 +00:00
Benjamin Peterson c6a5455e87 Blocked revisions 73382,73394-73397,73401-73402,73422,73480,73536,73540 via svnmerge
........
  r73382 | raymond.hettinger | 2009-06-11 18:14:53 -0500 (Thu, 11 Jun 2009) | 1 line

  Issue 6261: Clarify behavior of random.uniform().
........
  r73394 | antoine.pitrou | 2009-06-12 15:14:08 -0500 (Fri, 12 Jun 2009) | 3 lines

  Issue #6215: backport the 3.1 io lib
........
  r73395 | antoine.pitrou | 2009-06-12 15:36:25 -0500 (Fri, 12 Jun 2009) | 4 lines

  Restore the old test_file.py (for the builtin file object) as a new file named test_file2k.py
........
  r73396 | antoine.pitrou | 2009-06-12 15:41:52 -0500 (Fri, 12 Jun 2009) | 4 lines

  Try to restore the old test_file and test_univnewlines as new, different files
  (with the right revisions this time, hopefully)
........
  r73397 | antoine.pitrou | 2009-06-12 15:54:21 -0500 (Fri, 12 Jun 2009) | 3 lines

  Re-enable testing of builtin open() in test_bufio in test_largefile
........
  r73401 | alexandre.vassalotti | 2009-06-12 16:52:14 -0500 (Fri, 12 Jun 2009) | 2 lines

  Make pickling of OrderedDict instances more efficient.
........
  r73402 | alexandre.vassalotti | 2009-06-12 18:03:35 -0500 (Fri, 12 Jun 2009) | 6 lines

  Revert r73401 per Raymond Hettinger's request.

  The rational is the change might cause imcompatiblity problems with
  PyYAML. In addition, Raymond wants to kept the different versions of
  collections synchronized across Python versions.
........
  r73422 | benjamin.peterson | 2009-06-13 15:30:48 -0500 (Sat, 13 Jun 2009) | 1 line

  update ast version
........
  r73480 | facundo.batista | 2009-06-19 13:02:28 -0500 (Fri, 19 Jun 2009) | 3 lines

  Issue #6274. Fixed a potential FD leak in subprocess.py.
........
  r73536 | raymond.hettinger | 2009-06-23 16:32:28 -0500 (Tue, 23 Jun 2009) | 1 line

  Issue 6305: Clarify error message for large arguments to itertools.islice().
........
  r73540 | raymond.hettinger | 2009-06-23 17:20:04 -0500 (Tue, 23 Jun 2009) | 1 line

  Add procedural note.
........
2009-06-28 16:39:56 +00:00
Benjamin Peterson 47a1c937c6 delete unused properties 2009-06-28 16:27:27 +00:00
Benjamin Peterson 3e791903ce fix useless comparison #6355 2009-06-28 16:23:55 +00:00
Benjamin Peterson b1715f131f use stack altering macros here 2009-06-28 16:21:52 +00:00
Benjamin Peterson 6d46a91dc0 Merged revisions 73614-73615 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r73614 | benjamin.peterson | 2009-06-28 11:08:02 -0500 (Sun, 28 Jun 2009) | 1 line

  add two generic macros for peeking and setting in the stack
........
  r73615 | benjamin.peterson | 2009-06-28 11:14:07 -0500 (Sun, 28 Jun 2009) | 1 line

  use stack macros
........
2009-06-28 16:17:34 +00:00
Benjamin Peterson ac8c73075a this is better written as an assertion 2009-06-28 16:03:15 +00:00
Benjamin Peterson fec42da1ab update comments 2009-06-28 15:55:46 +00:00