Commit Graph

42023 Commits

Author SHA1 Message Date
Mark Dickinson
6ded1d5687 Merged revisions 82117 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r82117 | mark.dickinson | 2010-06-20 19:50:19 +0100 (Sun, 20 Jun 2010) | 1 line

  Merge test_strtod and test_float string-to-float conversion tests.
........
2010-06-20 20:01:04 +00:00
Benjamin Peterson
851ffef6be add copyright years 2010-06-20 15:27:42 +00:00
Benjamin Peterson
95d6264195 update release schedule url 2010-06-20 15:27:07 +00:00
Benjamin Peterson
051291fdb7 Blocked revisions 82112 via svnmerge
........
  r82112 | benjamin.peterson | 2010-06-20 10:12:04 -0500 (Sun, 20 Jun 2010) | 1 line

  update emacs section
........
2010-06-20 15:25:14 +00:00
Jean-Paul Calderone
6ed7ac48ec Revert r82089. Commit was intended for a branch. 2010-06-19 19:58:37 +00:00
Jean-Paul Calderone
867c435460 merge forward from the python 2.x branch 2010-06-19 19:54:48 +00:00
Victor Stinner
2aa3af4a16 Issue #8939: Improve arg.rst
* Add :ctype: to Py_BEGIN_ALLOW_THREADS and int
 * "s" and "s#" formats of Py_BuildValue(): specify that the Python object type
   is str in the description
2010-06-18 23:59:45 +00:00
Jean-Paul Calderone
1ddd4075bf Merged revisions 82075 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r82075 | jean-paul.calderone | 2010-06-18 16:00:17 -0400 (Fri, 18 Jun 2010) | 12 lines

  Revert r60115

  This revision introduced quoting for strings containing | based
  on a misunderstanding of the commonly used quoting rules used
  on Windows.

  | is interpreted by cmd.exe, not by the MS C runtime argv initializer.
  It only needs to be quoted if it is part of an argument passed through
  cmd.exe.

  See issue1300, issue7839, and issue8972.
........
2010-06-18 20:03:54 +00:00
Alexander Belopolsky
f568218e7e Issue #6641: Original commit for this issue, r82053, introduced a
regression making datetime subclass' strptime return datetime rather
than subclass instances.  Fixed this bug and a few typos.
2010-06-18 18:44:37 +00:00
Alexander Belopolsky
49d7a57f33 Added a new line at the end of the file. 2010-06-18 16:57:49 +00:00
Alexander Belopolsky
3fe3e12de6 Fixed a typo in a comment. 2010-06-18 16:22:00 +00:00
Senthil Kumaran
80f1b05971 Fix Issue1368368 - prompt_user_passwd() in FancyURLopener masks 401 Unauthorized error page 2010-06-18 15:08:18 +00:00
Victor Stinner
2cd12528e4 Issue #6543: Mention the author of the patch, Amaury Forgeot d'Arc 2010-06-17 23:17:37 +00:00
Victor Stinner
0fe25a445d Issue #6543: Write the traceback in the terminal encoding instead of utf-8.
Fix the encoding of the modules filename.

Reindent also traceback.h, just because I hate tabs :-)
2010-06-17 23:08:50 +00:00
Victor Stinner
870f09a7f4 Issue #8203: Fix IDLE Credits dialog: view_file() uses its encoding argument. 2010-06-17 21:43:33 +00:00
Barry Warsaw
7c9627b4de Typo repair. 2010-06-17 18:38:20 +00:00
Alexander Belopolsky
ca94f55758 Issue #6641: The datetime.strptime method now supports the %z directive. 2010-06-17 18:30:34 +00:00
Mark Dickinson
f4112e2653 Add note about changes to the round function between 2.x and 3.x. 2010-06-17 18:24:52 +00:00
Senthil Kumaran
684760a148 Merged revisions 82047 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r82047 | senthil.kumaran | 2010-06-17 22:08:34 +0530 (Thu, 17 Jun 2010) | 3 lines

  Fix Issue4452 - Incorrect docstring of os.setpgrp
........
2010-06-17 16:48:06 +00:00
R. David Murray
4155f97699 Don't use os.normcase when the result we are expecting is None.
This worked fine on linux but fails on Windows.  That may or may
not be a but in normcase.
2010-06-17 13:23:18 +00:00
Mark Dickinson
d35a32e12e Issue #9011: Remove buggy and unnecessary ST->AST compilation code
dealing with unary minus applied to a constant.  The removed code was
mutating the ST, causing a second compilation to fail.  (The peephole
optimizer already takes care of optimizing this case, so there's no
lost optimization opportunity here.)
2010-06-17 12:33:22 +00:00
R. David Murray
a1b3740d04 Merged revisions 82039 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r82039 | r.david.murray | 2010-06-16 21:36:52 -0400 (Wed, 16 Jun 2010) | 10 lines

  #8720: fix inspect regression by teaching getsourcefile about linecache.

  The fix for issue 4050 caused a regression:  before that fix, source
  lines in the linecache would eventually be found by inspect.  After the
  fix inspect reports an error earlier, and the source isn't found.
  The fix for the fix is to have getsourcefile look in the linecache for
  the file and return the psuedo-filename if the source is there, just as
  it already returns it if there is a PEP 302 loader.
........
2010-06-17 02:04:29 +00:00
Victor Stinner
2bdab24063 Issue #850997: Oops, I forgot the author of the patch: Mark Hammond 2010-06-16 23:48:49 +00:00
Victor Stinner
554f3f0081 Issue #850997: mbcs encoding (Windows only) handles errors argument: strict
mode raises unicode errors. The encoder only supports "strict" and "replace"
error handlers, the decoder only supports "strict" and "ignore" error handlers.
2010-06-16 23:33:54 +00:00
Victor Stinner
79ee19f3db Issue #9012: Add _time.c and _time.h to the Visual Studio project file
Add these new files, added by r82034, to the pythoncore project.
2010-06-16 23:05:06 +00:00
Alexander Belopolsky
d95a586d77 Issue #9012: "Separate compilation of time and datetime modules."
Segregated code shared between time and datetime modules into
Modules/_time.c.  Added a new header file, Modules/_time.h, which
will be used instead of Include/timefuncs.h for declarations shared
between time and datetime modules.
2010-06-16 22:38:15 +00:00
Senthil Kumaran
294f27141f Merged revisions 82026 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r82026 | senthil.kumaran | 2010-06-16 23:07:32 +0530 (Wed, 16 Jun 2010) | 3 lines

  Addressing RDM's review comments on the doc change.
........
2010-06-16 17:44:57 +00:00
Senthil Kumaran
97db43b6cc Merged revisions 82018 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r82018 | senthil.kumaran | 2010-06-16 20:25:31 +0530 (Wed, 16 Jun 2010) | 3 lines

  Fix Issue8937 - SimpleHTTPServer should contain usage example
........
2010-06-16 16:41:11 +00:00
R. David Murray
17c371ca30 Remove versionadded accidentally introduced by r82008. 2010-06-16 12:56:31 +00:00
R. David Murray
a7a1572097 Blocked revisions 81571,81678 via svnmerge
I'm going to merge 81678 by hand.

........
  r81571 | victor.stinner | 2010-05-27 18:29:48 -0400 (Thu, 27 May 2010) | 3 lines

  Issue #8835: test_support.transient_internet() catchs gaierror(EAI_NONAME) and
  gaierror(EAI_NODATA)
........
  r81678 | r.david.murray | 2010-06-03 16:19:25 -0400 (Thu, 03 Jun 2010) | 7 lines

  #8889: rewrite transient_internet so we don't use EAI_NODATA on FreeBSD.

  FreeBSD doesn't have socket.EAI_NODATA.  I rewrote the routine because
  there's no easy way to conditionally include a context manager in a
  with statement.  As a side benefit, instead of a stack of context
  managers there's now only one.
........
2010-06-16 12:53:07 +00:00
R. David Murray
45e0e1444b Merged revisions 81675 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81675 | r.david.murray | 2010-06-03 11:43:20 -0400 (Thu, 03 Jun 2010) | 10 lines

  #5610: use \Z not $ so we don't eat extra chars when body part ends with \r\n.

  If a body part ended with \r\n, feedparser, using '$' to terminate its
  search for the newline, would match on the \r\n, and think that it needed
  to strip two characters in order to account for the line end before the
  boundary.  That made it chop one too many characters off the end of
  the body part.  Using \Z makes the match correct.

  Patch and test by Tony Nelson.
........
2010-06-16 02:19:40 +00:00
R. David Murray
9691e59d77 Merged revisions 81634 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81634 | r.david.murray | 2010-05-31 21:42:41 -0400 (Mon, 31 May 2010) | 2 lines

  #7583: clarify discussion of hard tab expansion in doctests.
........
2010-06-15 23:46:40 +00:00
Ronald Oussoren
ab4fd61b60 Fix for buildbot failure in r81999. 2010-06-15 21:19:50 +00:00
Alexander Belopolsky
b39a0c242d Issue 5094: minor documentation fixes 2010-06-15 19:24:52 +00:00
Alexander Belopolsky
05cc2030e5 Minor changes to the choice of assert methods 2010-06-15 18:40:23 +00:00
Antoine Pitrou
046028899d Further refinements to the C file API. 2010-06-15 17:30:16 +00:00
Antoine Pitrou
5d8a6c85ec Fixes to the PyFile_FromFd() doc, by Renato Cunha. 2010-06-15 17:00:21 +00:00
Ronald Oussoren
e41a19e71a Fix for issue #8577: without this patch test_distutils
will fail when builddir != srcdir (that is, when you
run configure in a directory that is not the top of
the source tree).
2010-06-15 16:05:20 +00:00
Mark Dickinson
cb532f13e3 Merged revisions 81992 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81992 | mark.dickinson | 2010-06-15 09:33:03 +0100 (Tue, 15 Jun 2010) | 3 lines

  Issue #8469:  Further clarifications and improvements to struct module
  documentation.  Thanks Mads Kiilerich.
........
2010-06-15 08:42:37 +00:00
Brett Cannon
4507190a1e Switch the __import__ state check from using __builtins__ to builtins to be
nicer to other VMs.

Thanks to Philip Jenvey for the pointer.
2010-06-14 22:22:54 +00:00
Alexander Belopolsky
97958cf3f8 Undo r81988 code change leaving added test. 2010-06-14 18:33:19 +00:00
Alexander Belopolsky
43ca710a44 Issue 6280: Tests and simpler implementation for calendar.timegm 2010-06-14 17:32:03 +00:00
Alexander Belopolsky
4e749a1113 Issue #5094: The `datetime` module now has a simple concrete class
implementing ``datetime.tzinfo`` interface.
2010-06-14 14:15:50 +00:00
Victor Stinner
510b6227a7 getargs.c: remove last reference to "t#" format
"t#" format was removed from convertitem() (convertsimple) but not skipitem().
2010-06-13 20:31:26 +00:00
Victor Stinner
06e49dd029 Issue #8592: PyArg_Parse*() functions raise a TypeError for "y", "u" and "Z"
formats if the string contains a null byte/character. Write unit tests for
string formats.
2010-06-13 18:21:50 +00:00
Mark Dickinson
edc5d20f3b Merged revisions 81971 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81971 | mark.dickinson | 2010-06-13 13:01:34 +0100 (Sun, 13 Jun 2010) | 1 line

  Ezio Melotti was missing from Misc/ACKS.
........
2010-06-13 12:02:07 +00:00
Mark Dickinson
3898174c54 Merged revisions 81969 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81969 | mark.dickinson | 2010-06-13 12:07:00 +0100 (Sun, 13 Jun 2010) | 1 line

  Add Éric Araujo to Misc/ACKS for doc work and many patch and commit reviews.
........
2010-06-13 11:07:57 +00:00
Mark Dickinson
bcdf9da265 Merged revisions 81967 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81967 | mark.dickinson | 2010-06-13 11:50:29 +0100 (Sun, 13 Jun 2010) | 4 lines

  Issue #8986: erfc was raising OverflowError on Linux for arguments in
  the (approximate) range (-27.3, 30.0), as a result of an escaped errno
  value.
........
2010-06-13 10:52:38 +00:00
Mark Dickinson
c6f1396be0 Remove unnecessary brackets from docstring optional arguments. 2010-06-13 09:17:13 +00:00
Alexander Belopolsky
0bd003a55e Issue #8973: Expanded Struct.__doc__. 2010-06-12 19:36:28 +00:00