]> granicus.if.org Git - python/log
python
14 years agoMerged revisions 82225 via svnmerge from
Benjamin Peterson [Fri, 25 Jun 2010 20:37:22 +0000 (20:37 +0000)]
Merged revisions 82225 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r82225 | benjamin.peterson | 2010-06-25 15:34:01 -0500 (Fri, 25 Jun 2010) | 1 line

  mark implementation detail as such
........

14 years agoMerged revisions 82221 via svnmerge from
Mark Dickinson [Fri, 25 Jun 2010 20:22:24 +0000 (20:22 +0000)]
Merged revisions 82221 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r82221 | mark.dickinson | 2010-06-25 21:19:48 +0100 (Fri, 25 Jun 2010) | 1 line

  Fix indentation of Python code example in C comment.
........

14 years agoonly take into account positional arguments count in related error messages
Benjamin Peterson [Fri, 25 Jun 2010 19:30:21 +0000 (19:30 +0000)]
only take into account positional arguments count in related error messages

14 years ago#9018: os.path.normcase() now raises a TypeError if the argument is not str or bytes.
Ezio Melotti [Fri, 25 Jun 2010 10:56:11 +0000 (10:56 +0000)]
#9018: os.path.normcase() now raises a TypeError if the argument is not str or bytes.

14 years agoMerged revisions 82210 via svnmerge from
Antoine Pitrou [Fri, 25 Jun 2010 00:07:34 +0000 (00:07 +0000)]
Merged revisions 82210 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r82210 | antoine.pitrou | 2010-06-25 02:03:21 +0200 (ven., 25 juin 2010) | 4 lines

  Issue #9075: In the ssl module, remove the setting of a `debug` flag
  on an OpenSSL structure.
........

14 years agoIssue #8850: Remove "w" and "w#" formats from PyArg_Parse*() functions, use
Victor Stinner [Fri, 25 Jun 2010 00:02:38 +0000 (00:02 +0000)]
Issue #8850: Remove "w" and "w#" formats from PyArg_Parse*() functions, use
"w*" format instead. Add tests for "w*" format.

14 years agogetbuffer(): release the buffer on error (if the buffer is not contiguous)
Victor Stinner [Thu, 24 Jun 2010 22:57:10 +0000 (22:57 +0000)]
getbuffer(): release the buffer on error (if the buffer is not contiguous)

14 years agoIssue #8682: The ssl module now temporary increments the reference count of
Antoine Pitrou [Thu, 24 Jun 2010 22:34:04 +0000 (22:34 +0000)]
Issue #8682: The ssl module now temporary increments the reference count of
a socket object got through `PyWeakref_GetObject`, so as to avoid possible
deallocation while the object is still being used.

14 years agoPyArg_Parse*() functions: factorize code for s/z and u/Z formats
Victor Stinner [Thu, 24 Jun 2010 22:31:12 +0000 (22:31 +0000)]
PyArg_Parse*() functions: factorize code for s/z and u/Z formats

14 years agoIssue #8949: "z" format of PyArg_Parse*() functions doesn't accept bytes
Victor Stinner [Thu, 24 Jun 2010 22:08:25 +0000 (22:08 +0000)]
Issue #8949: "z" format of PyArg_Parse*() functions doesn't accept bytes
objects, as described in the documentation.

14 years agoAdd specification for the Py_IS* macros in pyctype.h.
Stefan Krah [Thu, 24 Jun 2010 10:25:08 +0000 (10:25 +0000)]
Add specification for the Py_IS* macros in pyctype.h.

14 years agoBlocked revisions 82191 via svnmerge
Stefan Krah [Thu, 24 Jun 2010 10:22:10 +0000 (10:22 +0000)]
Blocked revisions 82191 via svnmerge

........
  r82191 | stefan.krah | 2010-06-24 11:33:05 +0200 (Thu, 24 Jun 2010) | 5 lines

  Issue #9020: The Py_IS* macros from pyctype.h should generally only be
  used with signed/unsigned char arguments. For integer arguments, EOF
  has to be handled separately.
........

14 years agoMerged revisions 82189 via svnmerge from
Benjamin Peterson [Thu, 24 Jun 2010 00:17:03 +0000 (00:17 +0000)]
Merged revisions 82189 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r82189 | benjamin.peterson | 2010-06-23 19:12:40 -0500 (Wed, 23 Jun 2010) | 1 line

  prevent assignment to set literals
........

14 years agoAdded more test cases
Alexander Belopolsky [Wed, 23 Jun 2010 22:58:49 +0000 (22:58 +0000)]
Added more test cases

14 years agoTest future pickle protocols. Thanks Antoine Pitrou for suggestion.
Alexander Belopolsky [Wed, 23 Jun 2010 22:29:48 +0000 (22:29 +0000)]
Test future pickle protocols.  Thanks Antoine Pitrou for suggestion.

14 years agoIssue #9051: Instances of timezone class can now be pickled.
Alexander Belopolsky [Wed, 23 Jun 2010 21:40:15 +0000 (21:40 +0000)]
Issue #9051: Instances of timezone class can now be pickled.

14 years agoIssue #8930: Remaining indentation fixes after the Grand Unified Indenting.
Stefan Krah [Wed, 23 Jun 2010 18:42:39 +0000 (18:42 +0000)]
Issue #8930: Remaining indentation fixes after the Grand Unified Indenting.

14 years agoBlocked revisions 82177 via svnmerge
Stefan Krah [Wed, 23 Jun 2010 18:35:33 +0000 (18:35 +0000)]
Blocked revisions 82177 via svnmerge

........
  r82177 | stefan.krah | 2010-06-23 20:12:09 +0200 (Wed, 23 Jun 2010) | 3 lines

  Issue #8930: Remaining indentation fixes after the Grand Unified Indenting.
........

14 years agoMerged revisions 82169 via svnmerge from
Antoine Pitrou [Tue, 22 Jun 2010 21:49:39 +0000 (21:49 +0000)]
Merged revisions 82169 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r82169 | antoine.pitrou | 2010-06-22 23:42:05 +0200 (mar., 22 juin 2010) | 4 lines

  Fix misindents in compile.c (for Benjamin).
  Of course, whoever used the wrong indentation rules needs to be spanked.
........

14 years agoMerged revisions 82167 via svnmerge from
Benjamin Peterson [Tue, 22 Jun 2010 20:34:34 +0000 (20:34 +0000)]
Merged revisions 82167 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r82167 | benjamin.peterson | 2010-06-22 15:32:02 -0500 (Tue, 22 Jun 2010) | 1 line

  mark ref counting as impl detail
........

14 years agoMerged revisions 82165 via svnmerge from
Benjamin Peterson [Tue, 22 Jun 2010 20:29:32 +0000 (20:29 +0000)]
Merged revisions 82165 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r82165 | benjamin.peterson | 2010-06-22 15:26:20 -0500 (Tue, 22 Jun 2010) | 1 line

  must force gc here
........

14 years agoMerged revisions 82160 via svnmerge from
Benjamin Peterson [Tue, 22 Jun 2010 20:02:39 +0000 (20:02 +0000)]
Merged revisions 82160 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r82160 | benjamin.peterson | 2010-06-22 14:45:51 -0500 (Tue, 22 Jun 2010) | 1 line

  spacing nit; this isn't C
........

14 years agoBlocked revisions 82161 via svnmerge
Benjamin Peterson [Tue, 22 Jun 2010 19:52:02 +0000 (19:52 +0000)]
Blocked revisions 82161 via svnmerge

........
  r82161 | benjamin.peterson | 2010-06-22 14:49:47 -0500 (Tue, 22 Jun 2010) | 1 line

  bump revision
........

14 years agoMerged revisions 82157 via svnmerge from
Benjamin Peterson [Tue, 22 Jun 2010 19:21:52 +0000 (19:21 +0000)]
Merged revisions 82157 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r82157 | benjamin.peterson | 2010-06-22 14:16:37 -0500 (Tue, 22 Jun 2010) | 1 line

  remove INT_MAX assertions; they can fail with large Py_ssize_t #9058
........

14 years agoBlocked revisions 82155 via svnmerge
Benjamin Peterson [Tue, 22 Jun 2010 18:11:34 +0000 (18:11 +0000)]
Blocked revisions 82155 via svnmerge

........
  r82155 | benjamin.peterson | 2010-06-22 13:09:02 -0500 (Tue, 22 Jun 2010) | 4 lines

  keep UserDict an old-style class

  Be generous in abc.py to allow this.
........

14 years agoAdded more test cases
Alexander Belopolsky [Tue, 22 Jun 2010 14:07:33 +0000 (14:07 +0000)]
Added more test cases

14 years agoMinor comment formatting.
Senthil Kumaran [Tue, 22 Jun 2010 02:57:23 +0000 (02:57 +0000)]
Minor comment formatting.

14 years agoMinor docs issue.
Senthil Kumaran [Tue, 22 Jun 2010 02:42:52 +0000 (02:42 +0000)]
Minor docs issue.

14 years agoMerged revisions 82126-82127 via svnmerge from
Thomas Heller [Mon, 21 Jun 2010 16:00:31 +0000 (16:00 +0000)]
Merged revisions 82126-82127 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r82126 | thomas.heller | 2010-06-21 16:00:24 +0200 (Mo, 21 Jun 2010) | 1 line

  Fix #8959 by reverting revision 80761.
........
  r82127 | thomas.heller | 2010-06-21 17:01:18 +0200 (Mo, 21 Jun 2010) | 2 lines

  Add tests for problems reported in issue 8959.
........

14 years agoMerged revisions 82130 via svnmerge from
Benjamin Peterson [Mon, 21 Jun 2010 15:37:16 +0000 (15:37 +0000)]
Merged revisions 82130 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r82130 | benjamin.peterson | 2010-06-21 10:27:46 -0500 (Mon, 21 Jun 2010) | 1 line

  fix finding visual studio 2008 on 64 bit #8854
........

14 years agoIssue #9005: Prevent utctimetuple() from producing year 0 or year 10,000.
Alexander Belopolsky [Mon, 21 Jun 2010 15:21:14 +0000 (15:21 +0000)]
Issue #9005: Prevent utctimetuple() from producing year 0 or year 10,000.

14 years agoMove over to assertIs.
Brett Cannon [Mon, 21 Jun 2010 02:49:35 +0000 (02:49 +0000)]
Move over to assertIs.

14 years agoMerged revisions 82117 via svnmerge from
Mark Dickinson [Sun, 20 Jun 2010 20:01:04 +0000 (20:01 +0000)]
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.
........

14 years agoadd copyright years
Benjamin Peterson [Sun, 20 Jun 2010 15:27:42 +0000 (15:27 +0000)]
add copyright years

14 years agoupdate release schedule url
Benjamin Peterson [Sun, 20 Jun 2010 15:27:07 +0000 (15:27 +0000)]
update release schedule url

14 years agoBlocked revisions 82112 via svnmerge
Benjamin Peterson [Sun, 20 Jun 2010 15:25:14 +0000 (15:25 +0000)]
Blocked revisions 82112 via svnmerge

........
  r82112 | benjamin.peterson | 2010-06-20 10:12:04 -0500 (Sun, 20 Jun 2010) | 1 line

  update emacs section
........

14 years agoRevert r82089. Commit was intended for a branch.
Jean-Paul Calderone [Sat, 19 Jun 2010 19:58:37 +0000 (19:58 +0000)]
Revert r82089.  Commit was intended for a branch.

14 years agomerge forward from the python 2.x branch
Jean-Paul Calderone [Sat, 19 Jun 2010 19:54:48 +0000 (19:54 +0000)]
merge forward from the python 2.x branch

14 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

14 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.
........

14 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.

14 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.

14 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.

14 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

14 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

14 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 :-)

14 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.

14 years agoTypo repair.
Barry Warsaw [Thu, 17 Jun 2010 18:38:20 +0000 (18:38 +0000)]
Typo repair.

14 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.

14 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.

14 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
........

14 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.

14 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.)

14 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.
........

14 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

14 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.

14 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.

14 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.

14 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.
........

14 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
........

14 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.

14 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.
........

14 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.
........

14 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.
........

14 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.

14 years agoIssue 5094: minor documentation fixes
Alexander Belopolsky [Tue, 15 Jun 2010 19:24:52 +0000 (19:24 +0000)]
Issue 5094: minor documentation fixes

14 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

14 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.

14 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.

14 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).

14 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.
........

14 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.

14 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.

14 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

14 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.

14 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().

14 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.

14 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.
........

14 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.
........

14 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.
........

14 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.

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

14 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.
........

14 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.

14 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.

14 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
........

14 years agoAdded acknowlegement for Issue #3129
Alexander Belopolsky [Sat, 12 Jun 2010 17:18:45 +0000 (17:18 +0000)]
Added acknowlegement for Issue #3129

14 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.

14 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.

14 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.

14 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.

14 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.

14 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
........

14 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)
........

14 years agoRemove unused variable.
Mark Dickinson [Sat, 12 Jun 2010 09:25:13 +0000 (09:25 +0000)]
Remove unused variable.

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

14 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.

14 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.

14 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.

14 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().