python_lang:hongbins-mirror.git
7 years agoha ha py3k-signalfd-issue8407
jean-paul.calderone [Mon, 21 Jun 2010 00:50:31 +0000 (00:50 +0000)]
ha ha

git-svn-id: http://svn.python.org/projects/python/branches/py3k-signalfd-issue8407@82124 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoSome debug helpers to see how far this test gets on the build slaves
jean-paul.calderone [Mon, 21 Jun 2010 00:25:16 +0000 (00:25 +0000)]
Some debug helpers to see how far this test gets on the build slaves

git-svn-id: http://svn.python.org/projects/python/branches/py3k-signalfd-issue8407@82123 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoUse the version of signalfd that has the skip behavior
jean-paul.calderone [Mon, 21 Jun 2010 00:21:59 +0000 (00:21 +0000)]
Use the version of signalfd that has the skip behavior

git-svn-id: http://svn.python.org/projects/python/branches/py3k-signalfd-issue8407@82122 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoHandle ENOSYS case
jean-paul.calderone [Sun, 20 Jun 2010 23:34:17 +0000 (23:34 +0000)]
Handle ENOSYS case

git-svn-id: http://svn.python.org/projects/python/branches/py3k-signalfd-issue8407@82121 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoverbose test runs please
jean-paul.calderone [Sun, 20 Jun 2010 19:36:00 +0000 (19:36 +0000)]
verbose test runs please

git-svn-id: http://svn.python.org/projects/python/branches/py3k-signalfd-issue8407@82118 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agodangers of light night coding revealed
jean-paul.calderone [Sun, 20 Jun 2010 04:33:55 +0000 (04:33 +0000)]
dangers of light night coding revealed

also the wonders of feature branches

git-svn-id: http://svn.python.org/projects/python/branches/py3k-signalfd-issue8407@82109 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoSkip on middle-ish versions of Linux
jean-paul.calderone [Sun, 20 Jun 2010 04:08:55 +0000 (04:08 +0000)]
Skip on middle-ish versions of Linux

git-svn-id: http://svn.python.org/projects/python/branches/py3k-signalfd-issue8407@82108 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoSkip like this
jean-paul.calderone [Sat, 19 Jun 2010 23:13:24 +0000 (23:13 +0000)]
Skip like this

git-svn-id: http://svn.python.org/projects/python/branches/py3k-signalfd-issue8407@82107 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoDo this HAVE_SYS_SIGNALFD_H thing
jean-paul.calderone [Sat, 19 Jun 2010 23:10:53 +0000 (23:10 +0000)]
Do this HAVE_SYS_SIGNALFD_H thing

It's probably wrong.  I don't know about this stuff.

Some systems appear to HAVE_SIGNALFD while not having <sys/signalfd.h> though.

git-svn-id: http://svn.python.org/projects/python/branches/py3k-signalfd-issue8407@82106 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoClean up the environment a little
jean-paul.calderone [Sat, 19 Jun 2010 23:00:34 +0000 (23:00 +0000)]
Clean up the environment a little

This seems only to be necessary to support Linux systems with LinuxThreads instead of NPTL

git-svn-id: http://svn.python.org/projects/python/branches/py3k-signalfd-issue8407@82105 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoSkip _iterable_to_mask if there's no sigprocmask
jean-paul.calderone [Sat, 19 Jun 2010 21:44:59 +0000 (21:44 +0000)]
Skip _iterable_to_mask if there's no sigprocmask

git-svn-id: http://svn.python.org/projects/python/branches/py3k-signalfd-issue8407@82104 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoUse PyErr_Format instead of PyOS_snprintf
jean-paul.calderone [Sat, 19 Jun 2010 21:08:58 +0000 (21:08 +0000)]
Use PyErr_Format instead of PyOS_snprintf

git-svn-id: http://svn.python.org/projects/python/branches/py3k-signalfd-issue8407@82103 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoDrop the test for `long` signals, as there is no longer any such thing. Skip the...
jean-paul.calderone [Sat, 19 Jun 2010 21:04:17 +0000 (21:04 +0000)]
Drop the test for `long` signals, as there is no longer any such thing.  Skip the signalfd tests on non-linux platforms

git-svn-id: http://svn.python.org/projects/python/branches/py3k-signalfd-issue8407@82102 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoPyInt_* becomes PyLong_*
jean-paul.calderone [Sat, 19 Jun 2010 20:57:07 +0000 (20:57 +0000)]
PyInt_* becomes PyLong_*

git-svn-id: http://svn.python.org/projects/python/branches/py3k-signalfd-issue8407@82101 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoadd file descriptors and descriptions to the glossary
jean-paul.calderone [Sat, 19 Jun 2010 20:49:50 +0000 (20:49 +0000)]
add file descriptors and descriptions to the glossary

git-svn-id: http://svn.python.org/projects/python/branches/py3k-signalfd-issue8407@82100 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoDo not use :platform:, it is a module directive.
jean-paul.calderone [Sat, 19 Jun 2010 20:33:43 +0000 (20:33 +0000)]
Do not use :platform:, it is a module directive.

git-svn-id: http://svn.python.org/projects/python/branches/py3k-signalfd-issue8407@82099 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoUse :platform: like this
jean-paul.calderone [Sat, 19 Jun 2010 20:26:31 +0000 (20:26 +0000)]
Use :platform: like this

git-svn-id: http://svn.python.org/projects/python/branches/py3k-signalfd-issue8407@82098 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years ago:platform: does not seem to be rendered in any particular way
jean-paul.calderone [Sat, 19 Jun 2010 20:22:14 +0000 (20:22 +0000)]
:platform: does not seem to be rendered in any particular way

git-svn-id: http://svn.python.org/projects/python/branches/py3k-signalfd-issue8407@82097 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoIndent a versionadded tag properly
jean-paul.calderone [Sat, 19 Jun 2010 20:21:42 +0000 (20:21 +0000)]
Indent a versionadded tag properly

git-svn-id: http://svn.python.org/projects/python/branches/py3k-signalfd-issue8407@82096 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoTry this emphasis on SFD_NONBLOCK; also see what :platform: does
jean-paul.calderone [Sat, 19 Jun 2010 20:08:54 +0000 (20:08 +0000)]
Try this emphasis on SFD_NONBLOCK; also see what :platform: does

git-svn-id: http://svn.python.org/projects/python/branches/py3k-signalfd-issue8407@82095 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoAnd likewise for the functions
jean-paul.calderone [Sat, 19 Jun 2010 20:06:03 +0000 (20:06 +0000)]
And likewise for the functions

git-svn-id: http://svn.python.org/projects/python/branches/py3k-signalfd-issue8407@82094 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoIt's 3.2 now, not 2.7
jean-paul.calderone [Sat, 19 Jun 2010 20:05:29 +0000 (20:05 +0000)]
It's 3.2 now, not 2.7

git-svn-id: http://svn.python.org/projects/python/branches/py3k-signalfd-issue8407@82093 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoremove manual section from one of these
jean-paul.calderone [Sat, 19 Jun 2010 20:01:16 +0000 (20:01 +0000)]
remove manual section from one of these

git-svn-id: http://svn.python.org/projects/python/branches/py3k-signalfd-issue8407@82092 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agomerge forward from the python 2.x branch
jean-paul.calderone [Sat, 19 Jun 2010 19:59:44 +0000 (19:59 +0000)]
merge forward from the python 2.x branch

git-svn-id: http://svn.python.org/projects/python/branches/py3k-signalfd-issue8407@82091 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoCreate a branch for adding signalfd support to py3k
jean-paul.calderone [Sat, 19 Jun 2010 19:48:39 +0000 (19:48 +0000)]
Create a branch for adding signalfd support to py3k

git-svn-id: http://svn.python.org/projects/python/branches/py3k-signalfd-issue8407@82088 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoIssue #8939: Improve arg.rst
victor.stinner [Fri, 18 Jun 2010 23:59:45 +0000 (23:59 +0000)]
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

git-svn-id: http://svn.python.org/projects/python/branches/py3k@82084 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoMerged revisions 82075 via svnmerge from
jean-paul.calderone [Fri, 18 Jun 2010 20:03:54 +0000 (20:03 +0000)]
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.
........

git-svn-id: http://svn.python.org/projects/python/branches/py3k@82076 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoIssue #6641: Original commit for this issue, r82053, introduced a
alexander.belopolsky [Fri, 18 Jun 2010 18:44:37 +0000 (18:44 +0000)]
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.

git-svn-id: http://svn.python.org/projects/python/branches/py3k@82073 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoAdded a new line at the end of the file.
alexander.belopolsky [Fri, 18 Jun 2010 16:57:49 +0000 (16:57 +0000)]
Added a new line at the end of the file.

git-svn-id: http://svn.python.org/projects/python/branches/py3k@82071 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoFixed a typo in a comment.
alexander.belopolsky [Fri, 18 Jun 2010 16:22:00 +0000 (16:22 +0000)]
Fixed a typo in a comment.

git-svn-id: http://svn.python.org/projects/python/branches/py3k@82070 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoFix Issue1368368 - prompt_user_passwd() in FancyURLopener masks 401 Unauthorized...
senthil.kumaran [Fri, 18 Jun 2010 15:08:18 +0000 (15:08 +0000)]
Fix Issue1368368 - prompt_user_passwd() in FancyURLopener masks 401 Unauthorized error page

git-svn-id: http://svn.python.org/projects/python/branches/py3k@82068 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoIssue #6543: Mention the author of the patch, Amaury Forgeot d'Arc
victor.stinner [Thu, 17 Jun 2010 23:17:37 +0000 (23:17 +0000)]
Issue #6543: Mention the author of the patch, Amaury Forgeot d'Arc

git-svn-id: http://svn.python.org/projects/python/branches/py3k@82061 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoIssue #6543: Write the traceback in the terminal encoding instead of utf-8.
victor.stinner [Thu, 17 Jun 2010 23:08:50 +0000 (23:08 +0000)]
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 :-)

git-svn-id: http://svn.python.org/projects/python/branches/py3k@82059 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoIssue #8203: Fix IDLE Credits dialog: view_file() uses its encoding argument.
victor.stinner [Thu, 17 Jun 2010 21:43:33 +0000 (21:43 +0000)]
Issue #8203: Fix IDLE Credits dialog: view_file() uses its encoding argument.

git-svn-id: http://svn.python.org/projects/python/branches/py3k@82057 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoTypo repair.
barry.warsaw [Thu, 17 Jun 2010 18:38:20 +0000 (18:38 +0000)]
Typo repair.

git-svn-id: http://svn.python.org/projects/python/branches/py3k@82055 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoIssue #6641: The datetime.strptime method now supports the %z directive.
alexander.belopolsky [Thu, 17 Jun 2010 18:30:34 +0000 (18:30 +0000)]
Issue #6641: The datetime.strptime method now supports the %z directive.

git-svn-id: http://svn.python.org/projects/python/branches/py3k@82053 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoAdd note about changes to the `round` function between 2.x and 3.x.
mark.dickinson [Thu, 17 Jun 2010 18:24:52 +0000 (18:24 +0000)]
Add note about changes to the `round` function between 2.x and 3.x.

git-svn-id: http://svn.python.org/projects/python/branches/py3k@82051 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoMerged revisions 82047 via svnmerge from
senthil.kumaran [Thu, 17 Jun 2010 16:48:06 +0000 (16:48 +0000)]
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
........

git-svn-id: http://svn.python.org/projects/python/branches/py3k@82049 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoDon't use os.normcase when the result we are expecting is None.
r.david.murray [Thu, 17 Jun 2010 13:23:18 +0000 (13:23 +0000)]
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.

git-svn-id: http://svn.python.org/projects/python/branches/py3k@82045 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoIssue #9011: Remove buggy and unnecessary ST->AST compilation code
mark.dickinson [Thu, 17 Jun 2010 12:33:22 +0000 (12:33 +0000)]
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.)

git-svn-id: http://svn.python.org/projects/python/branches/py3k@82043 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoMerged revisions 82039 via svnmerge from
r.david.murray [Thu, 17 Jun 2010 02:04:29 +0000 (02:04 +0000)]
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.
........

git-svn-id: http://svn.python.org/projects/python/branches/py3k@82041 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoIssue #850997: Oops, I forgot the author of the patch: Mark Hammond
victor.stinner [Wed, 16 Jun 2010 23:48:49 +0000 (23:48 +0000)]
Issue #850997: Oops, I forgot the author of the patch: Mark Hammond

git-svn-id: http://svn.python.org/projects/python/branches/py3k@82038 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoIssue #850997: mbcs encoding (Windows only) handles errors argument: strict
victor.stinner [Wed, 16 Jun 2010 23:33:54 +0000 (23:33 +0000)]
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.

git-svn-id: http://svn.python.org/projects/python/branches/py3k@82037 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoIssue #9012: Add _time.c and _time.h to the Visual Studio project file
victor.stinner [Wed, 16 Jun 2010 23:05:06 +0000 (23:05 +0000)]
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.

git-svn-id: http://svn.python.org/projects/python/branches/py3k@82035 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoIssue #9012: "Separate compilation of time and datetime modules."
alexander.belopolsky [Wed, 16 Jun 2010 22:38:15 +0000 (22:38 +0000)]
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.

git-svn-id: http://svn.python.org/projects/python/branches/py3k@82034 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoMerged revisions 82026 via svnmerge from
senthil.kumaran [Wed, 16 Jun 2010 17:44:57 +0000 (17:44 +0000)]
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.
........

git-svn-id: http://svn.python.org/projects/python/branches/py3k@82028 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoMerged revisions 82018 via svnmerge from
senthil.kumaran [Wed, 16 Jun 2010 16:41:11 +0000 (16:41 +0000)]
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
........

git-svn-id: http://svn.python.org/projects/python/branches/py3k@82022 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoRemove versionadded accidentally introduced by r82008.
r.david.murray [Wed, 16 Jun 2010 12:56:31 +0000 (12:56 +0000)]
Remove versionadded accidentally introduced by r82008.

git-svn-id: http://svn.python.org/projects/python/branches/py3k@82015 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoBlocked revisions 81571,81678 via svnmerge
r.david.murray [Wed, 16 Jun 2010 12:53:07 +0000 (12:53 +0000)]
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.
........

git-svn-id: http://svn.python.org/projects/python/branches/py3k@82014 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoMerged revisions 81675 via svnmerge from
r.david.murray [Wed, 16 Jun 2010 02:19:40 +0000 (02:19 +0000)]
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.
........

git-svn-id: http://svn.python.org/projects/python/branches/py3k@82011 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoMerged revisions 81634 via svnmerge from
r.david.murray [Tue, 15 Jun 2010 23:46:40 +0000 (23:46 +0000)]
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.
........

git-svn-id: http://svn.python.org/projects/python/branches/py3k@82008 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoFix for buildbot failure in r81999.
ronald.oussoren [Tue, 15 Jun 2010 21:19:50 +0000 (21:19 +0000)]
Fix for buildbot failure in  r81999.

git-svn-id: http://svn.python.org/projects/python/branches/py3k@82005 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoIssue 5094: minor documentation fixes
alexander.belopolsky [Tue, 15 Jun 2010 19:24:52 +0000 (19:24 +0000)]
Issue 5094: minor documentation fixes

git-svn-id: http://svn.python.org/projects/python/branches/py3k@82004 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoMinor changes to the choice of assert methods
alexander.belopolsky [Tue, 15 Jun 2010 18:40:23 +0000 (18:40 +0000)]
Minor changes to the choice of assert methods

git-svn-id: http://svn.python.org/projects/python/branches/py3k@82003 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoFurther refinements to the C file API.
antoine.pitrou [Tue, 15 Jun 2010 17:30:16 +0000 (17:30 +0000)]
Further refinements to the C file API.

git-svn-id: http://svn.python.org/projects/python/branches/py3k@82001 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoFixes to the PyFile_FromFd() doc, by Renato Cunha.
antoine.pitrou [Tue, 15 Jun 2010 17:00:21 +0000 (17:00 +0000)]
Fixes to the PyFile_FromFd() doc, by Renato Cunha.

git-svn-id: http://svn.python.org/projects/python/branches/py3k@82000 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoFix for issue #8577: without this patch test_distutils
ronald.oussoren [Tue, 15 Jun 2010 16:05:20 +0000 (16:05 +0000)]
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).

git-svn-id: http://svn.python.org/projects/python/branches/py3k@81999 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoMerged revisions 81992 via svnmerge from
mark.dickinson [Tue, 15 Jun 2010 08:42:37 +0000 (08:42 +0000)]
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.
........

git-svn-id: http://svn.python.org/projects/python/branches/py3k@81994 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoSwitch the __import__ state check from using __builtins__ to builtins to be
brett.cannon [Mon, 14 Jun 2010 22:22:54 +0000 (22:22 +0000)]
Switch the __import__ state check from using __builtins__ to builtins to be
nicer to other VMs.

Thanks to Philip Jenvey for the pointer.

git-svn-id: http://svn.python.org/projects/python/branches/py3k@81990 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoUndo r81988 code change leaving added test.
alexander.belopolsky [Mon, 14 Jun 2010 18:33:19 +0000 (18:33 +0000)]
Undo r81988 code change leaving added test.

git-svn-id: http://svn.python.org/projects/python/branches/py3k@81989 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoIssue 6280: Tests and simpler implementation for calendar.timegm
alexander.belopolsky [Mon, 14 Jun 2010 17:32:03 +0000 (17:32 +0000)]
Issue 6280: Tests and simpler implementation for calendar.timegm

git-svn-id: http://svn.python.org/projects/python/branches/py3k@81988 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoIssue #5094: The ``datetime`` module now has a simple concrete class
alexander.belopolsky [Mon, 14 Jun 2010 14:15:50 +0000 (14:15 +0000)]
Issue #5094: The ``datetime`` module now has a simple concrete class
implementing ``datetime.tzinfo`` interface.

git-svn-id: http://svn.python.org/projects/python/branches/py3k@81981 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agogetargs.c: remove last reference to "t#" format
victor.stinner [Sun, 13 Jun 2010 20:31:26 +0000 (20:31 +0000)]
getargs.c: remove last reference to "t#" format

"t#" format was removed from convertitem() (convertsimple) but not skipitem().

git-svn-id: http://svn.python.org/projects/python/branches/py3k@81974 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoIssue #8592: PyArg_Parse*() functions raise a TypeError for "y", "u" and "Z"
victor.stinner [Sun, 13 Jun 2010 18:21:50 +0000 (18:21 +0000)]
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.

git-svn-id: http://svn.python.org/projects/python/branches/py3k@81973 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoMerged revisions 81971 via svnmerge from
mark.dickinson [Sun, 13 Jun 2010 12:02:07 +0000 (12:02 +0000)]
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.
........

git-svn-id: http://svn.python.org/projects/python/branches/py3k@81972 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoMerged revisions 81969 via svnmerge from
mark.dickinson [Sun, 13 Jun 2010 11:07:57 +0000 (11:07 +0000)]
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.
........

git-svn-id: http://svn.python.org/projects/python/branches/py3k@81970 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoMerged revisions 81967 via svnmerge from
mark.dickinson [Sun, 13 Jun 2010 10:52:38 +0000 (10:52 +0000)]
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.
........

git-svn-id: http://svn.python.org/projects/python/branches/py3k@81968 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoRemove unnecessary brackets from docstring optional arguments.
mark.dickinson [Sun, 13 Jun 2010 09:17:13 +0000 (09:17 +0000)]
Remove unnecessary brackets from docstring optional arguments.

git-svn-id: http://svn.python.org/projects/python/branches/py3k@81965 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoIssue #8973: Expanded Struct.__doc__.
alexander.belopolsky [Sat, 12 Jun 2010 19:36:28 +0000 (19:36 +0000)]
Issue #8973: Expanded Struct.__doc__.

git-svn-id: http://svn.python.org/projects/python/branches/py3k@81961 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoBlocked revisions 81957 via svnmerge
mark.dickinson [Sat, 12 Jun 2010 18:54:20 +0000 (18:54 +0000)]
Blocked revisions 81957 via svnmerge

........
  r81957 | mark.dickinson | 2010-06-12 19:50:34 +0100 (Sat, 12 Jun 2010) | 5 lines

  Issue #8469:  Add standard sizes to table in struct documentation; additional
  clarifications and documentation tweaks.

  Backport of revisions 81955-81956 from py3k.
........

git-svn-id: http://svn.python.org/projects/python/branches/py3k@81958 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoIssue #8469: Reorder struct module sections for clarity; other minor tweaks.
mark.dickinson [Sat, 12 Jun 2010 18:37:54 +0000 (18:37 +0000)]
Issue #8469:  Reorder struct module sections for clarity;  other minor tweaks.

git-svn-id: http://svn.python.org/projects/python/branches/py3k@81956 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoIssue #8469: add standard sizes to struct docs table.
mark.dickinson [Sat, 12 Jun 2010 18:20:47 +0000 (18:20 +0000)]
Issue #8469: add standard sizes to struct docs table.

git-svn-id: http://svn.python.org/projects/python/branches/py3k@81955 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoMerged revisions 81953 via svnmerge from
benjamin.peterson [Sat, 12 Jun 2010 17:54:44 +0000 (17:54 +0000)]
Merged revisions 81953 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81953 | benjamin.peterson | 2010-06-12 12:47:06 -0500 (Sat, 12 Jun 2010) | 1 line

  fix warning with ucs4
........

git-svn-id: http://svn.python.org/projects/python/branches/py3k@81954 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoAdded acknowlegement for Issue #3129
alexander.belopolsky [Sat, 12 Jun 2010 17:18:45 +0000 (17:18 +0000)]
Added acknowlegement for Issue #3129

git-svn-id: http://svn.python.org/projects/python/branches/py3k@81952 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoFix mild type confusion in decimal module docstring.
mark.dickinson [Sat, 12 Jun 2010 16:37:53 +0000 (16:37 +0000)]
Fix mild type confusion in decimal module docstring.

git-svn-id: http://svn.python.org/projects/python/branches/py3k@81951 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoMore struct module docs and docstring tweaks.
mark.dickinson [Sat, 12 Jun 2010 16:30:53 +0000 (16:30 +0000)]
More struct module docs and docstring tweaks.

git-svn-id: http://svn.python.org/projects/python/branches/py3k@81950 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoIssue #8973: Improve struct module docstrings.
mark.dickinson [Sat, 12 Jun 2010 15:43:45 +0000 (15:43 +0000)]
Issue #8973:  Improve struct module docstrings.

git-svn-id: http://svn.python.org/projects/python/branches/py3k@81949 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoRemove accidental (yet-to-be-reviewed) docstring changes included in r81947.
mark.dickinson [Sat, 12 Jun 2010 15:19:23 +0000 (15:19 +0000)]
Remove accidental (yet-to-be-reviewed) docstring changes included in r81947.

git-svn-id: http://svn.python.org/projects/python/branches/py3k@81948 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoIssue #8973: Add __all__ to struct module, so that help(struct) correctly
mark.dickinson [Sat, 12 Jun 2010 15:17:02 +0000 (15:17 +0000)]
Issue #8973:  Add __all__ to struct module, so that help(struct) correctly
displays information for the struct.Struct class.

git-svn-id: http://svn.python.org/projects/python/branches/py3k@81947 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoBlocked revisions 81945 via svnmerge
nick.coghlan [Sat, 12 Jun 2010 13:46:56 +0000 (13:46 +0000)]
Blocked revisions 81945 via svnmerge

........
  r81945 | nick.coghlan | 2010-06-12 23:45:37 +1000 (Sat, 12 Jun 2010) | 1 line

  Backport a fix from Py3k for a potentially misleading example
........

git-svn-id: http://svn.python.org/projects/python/branches/py3k@81946 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoMerged revisions 80578 via svnmerge from
nick.coghlan [Sat, 12 Jun 2010 13:42:46 +0000 (13:42 +0000)]
Merged revisions 80578 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r80578 | nick.coghlan | 2010-04-29 00:29:06 +1000 (Thu, 29 Apr 2010) | 1 line

  Issue 7490: make IGNORE_EXCEPTION_DETAIL also ignore details of the module containing the exception under test (original patch by Lennart Regebro)
........

git-svn-id: http://svn.python.org/projects/python/branches/py3k@81944 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoRemove unused variable.
mark.dickinson [Sat, 12 Jun 2010 09:25:13 +0000 (09:25 +0000)]
Remove unused variable.

git-svn-id: http://svn.python.org/projects/python/branches/py3k@81938 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoIssue #8981: Remove _struct.__version__.
mark.dickinson [Sat, 12 Jun 2010 09:24:01 +0000 (09:24 +0000)]
Issue #8981:  Remove _struct.__version__.

git-svn-id: http://svn.python.org/projects/python/branches/py3k@81937 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoSilence 'unused variable' gcc warning. Patch by Éric Araujo.
mark.dickinson [Sat, 12 Jun 2010 09:10:14 +0000 (09:10 +0000)]
Silence 'unused variable' gcc warning.  Patch by Éric Araujo.

git-svn-id: http://svn.python.org/projects/python/branches/py3k@81936 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoCalling __import__ as a method technically works, but really should be wrapped
brett.cannon [Sat, 12 Jun 2010 00:39:28 +0000 (00:39 +0000)]
Calling __import__ as a method technically works, but really should be wrapped
in a staticmethod. This is important for when __import__ is set to a function
defined in Python instead of C.

git-svn-id: http://svn.python.org/projects/python/branches/py3k@81930 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoWhen dealing with __import__ for detecting a global state change made by a
brett.cannon [Sat, 12 Jun 2010 00:38:29 +0000 (00:38 +0000)]
When dealing with __import__ for detecting a global state change made by a
test, make sure to check if __builtins__ is a dict or not.

Discovered when running importlib.test.regrtest.

git-svn-id: http://svn.python.org/projects/python/branches/py3k@81929 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoIssue #8969: On Windows, use mbcs codec in strict mode to encode and decode
victor.stinner [Fri, 11 Jun 2010 23:56:51 +0000 (23:56 +0000)]
Issue #8969: On Windows, use mbcs codec in strict mode to encode and decode
filenames and enable os.fsencode().

git-svn-id: http://svn.python.org/projects/python/branches/py3k@81927 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoIssue #8784: Set tarfile default encoding to 'utf-8' on Windows.
victor.stinner [Fri, 11 Jun 2010 23:46:47 +0000 (23:46 +0000)]
Issue #8784: Set tarfile default encoding to 'utf-8' on Windows.

Note: file system encoding cannot be None anymore (since r81190, issue #8610).

git-svn-id: http://svn.python.org/projects/python/branches/py3k@81925 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoFix some bugs in c-api/arg.rst documentation
victor.stinner [Fri, 11 Jun 2010 23:30:12 +0000 (23:30 +0000)]
Fix some bugs in c-api/arg.rst documentation

 * replace "the default encoding" by "'utf-8' encoding"
 * fix "w" / "w*" / "w#" doc: similar to "y" / "y*" / "y#"
   and not "s" / "s*" / "s#"
 * "u#": remove "Non-Unicode objects are handled by interpreting their
   read-buffer pointer ...", it's no more true
 * "es", "es#": remove "... and objects convertible to Unicode into a character
   buffer", it's no more true
 * Py_BuildValue(), "K" and "L" formats: specify the name of the C type on
   Windows (_int64 / unsigned _int64) as done for PyArg_Parse*() long long
   types
--CETTE ligne, et les suivantes ci-dessous, seront ignorées--

M    Doc/c-api/arg.rst

git-svn-id: http://svn.python.org/projects/python/branches/py3k@81923 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoIssue #8965: Write more tests for sys.getfilesystemencoding()
victor.stinner [Fri, 11 Jun 2010 23:06:13 +0000 (23:06 +0000)]
Issue #8965: Write more tests for sys.getfilesystemencoding()

git-svn-id: http://svn.python.org/projects/python/branches/py3k@81920 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoreadline: use PyUnicode_FSConverter() to parse filenames
victor.stinner [Fri, 11 Jun 2010 22:27:14 +0000 (22:27 +0000)]
readline: use PyUnicode_FSConverter() to parse filenames

git-svn-id: http://svn.python.org/projects/python/branches/py3k@81918 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoIssue #8965: Add a regression test to test_sys with LANG=C
victor.stinner [Fri, 11 Jun 2010 22:17:52 +0000 (22:17 +0000)]
Issue #8965: Add a regression test to test_sys with LANG=C

git-svn-id: http://svn.python.org/projects/python/branches/py3k@81916 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agolocale.bindtextdomain(): use PyUnicode_FSConverter() to parse the filename
victor.stinner [Fri, 11 Jun 2010 22:09:51 +0000 (22:09 +0000)]
locale.bindtextdomain(): use PyUnicode_FSConverter() to parse the filename

git-svn-id: http://svn.python.org/projects/python/branches/py3k@81914 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoMerged revisions 81906 via svnmerge from
benjamin.peterson [Fri, 11 Jun 2010 21:53:07 +0000 (21:53 +0000)]
Merged revisions 81906 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81906 | benjamin.peterson | 2010-06-11 16:40:37 -0500 (Fri, 11 Jun 2010) | 1 line

  different spellings are just unacceptable
........

git-svn-id: http://svn.python.org/projects/python/branches/py3k@81912 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoIssue #8966: If a ctypes structure field is an array of c_char, convert its
victor.stinner [Fri, 11 Jun 2010 21:50:30 +0000 (21:50 +0000)]
Issue #8966: If a ctypes structure field is an array of c_char, convert its
value to bytes instead of str (as done for c_char and c_char_p).

git-svn-id: http://svn.python.org/projects/python/branches/py3k@81911 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoMerged revisions 81907 via svnmerge from
antoine.pitrou [Fri, 11 Jun 2010 21:46:32 +0000 (21:46 +0000)]
Merged revisions 81907 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81907 | antoine.pitrou | 2010-06-11 23:42:26 +0200 (ven., 11 juin 2010) | 5 lines

  Issue #8941: decoding big endian UTF-32 data in UCS-2 builds could crash
  the interpreter with characters outside the Basic Multilingual Plane
  (higher than 0x10000).
........

git-svn-id: http://svn.python.org/projects/python/branches/py3k@81908 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoBlocked revisions 81904 via svnmerge
mark.dickinson [Fri, 11 Jun 2010 20:29:09 +0000 (20:29 +0000)]
Blocked revisions 81904 via svnmerge

........
  r81904 | mark.dickinson | 2010-06-11 21:27:05 +0100 (Fri, 11 Jun 2010) | 4 lines

  Fix possible undefined behaviour from signed overflow in struct module.

  Backport of revisions 81897, 81898 and 81902 from py3k.
........

git-svn-id: http://svn.python.org/projects/python/branches/py3k@81905 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoFix more undefined-behaviour inducing overflow checks in struct module.
mark.dickinson [Fri, 11 Jun 2010 19:50:30 +0000 (19:50 +0000)]
Fix more undefined-behaviour inducing overflow checks in struct module.

git-svn-id: http://svn.python.org/projects/python/branches/py3k@81902 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoBlocked revisions 81899 via svnmerge
victor.stinner [Fri, 11 Jun 2010 19:24:36 +0000 (19:24 +0000)]
Blocked revisions 81899 via svnmerge

........
  r81899 | victor.stinner | 2010-06-11 21:22:28 +0200 (ven., 11 juin 2010) | 2 lines

  Issue #8362: Add Misc/maintainers.rst: list of module maintainers
........

git-svn-id: http://svn.python.org/projects/python/branches/py3k@81901 6015fed2-1504-0410-9fe1-9d1591cc4771

7 years agoFix an incorrect return type.
mark.dickinson [Fri, 11 Jun 2010 19:05:08 +0000 (19:05 +0000)]
Fix an incorrect return type.

git-svn-id: http://svn.python.org/projects/python/branches/py3k@81898 6015fed2-1504-0410-9fe1-9d1591cc4771