Commit Graph

42181 Commits

Author SHA1 Message Date
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
Mark Dickinson 8d81c6a6f4 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.
........
2010-06-12 18:54:20 +00:00
Mark Dickinson cfd56f2dc6 Issue #8469: Reorder struct module sections for clarity; other minor tweaks. 2010-06-12 18:37:54 +00:00
Mark Dickinson 7a70b2c450 Issue #8469: add standard sizes to struct docs table. 2010-06-12 18:20:47 +00:00
Benjamin Peterson ac1a50b56a 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
........
2010-06-12 17:54:44 +00:00
Alexander Belopolsky fcdc79aeb3 Added acknowlegement for Issue #3129 2010-06-12 17:18:45 +00:00
Mark Dickinson aa63c4d6f2 Fix mild type confusion in decimal module docstring. 2010-06-12 16:37:53 +00:00
Mark Dickinson fdb99f1563 More struct module docs and docstring tweaks. 2010-06-12 16:30:53 +00:00
Mark Dickinson aacfa95d2e Issue #8973: Improve struct module docstrings. 2010-06-12 15:43:45 +00:00
Mark Dickinson d80a8eefe6 Remove accidental (yet-to-be-reviewed) docstring changes included in r81947. 2010-06-12 15:19:23 +00:00
Mark Dickinson 4b80ef5432 Issue #8973: Add __all__ to struct module, so that help(struct) correctly
displays information for the struct.Struct class.
2010-06-12 15:17:02 +00:00
Nick Coghlan 3a810e6825 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
........
2010-06-12 13:46:56 +00:00
Nick Coghlan 5e76e94fd4 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)
........
2010-06-12 13:42:46 +00:00
Mark Dickinson 0681785d09 Remove unused variable. 2010-06-12 09:25:13 +00:00
Mark Dickinson bfd57618b5 Issue #8981: Remove _struct.__version__. 2010-06-12 09:24:01 +00:00
Mark Dickinson 7db923cc99 Silence 'unused variable' gcc warning. Patch by Éric Araujo. 2010-06-12 09:10:14 +00:00
Brett Cannon c236850ad1 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.
2010-06-12 00:39:28 +00:00
Brett Cannon 5976d975f8 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.
2010-06-12 00:38:29 +00:00
Victor Stinner 313a120ab6 Issue #8969: On Windows, use mbcs codec in strict mode to encode and decode
filenames and enable os.fsencode().
2010-06-11 23:56:51 +00:00
Victor Stinner 0f35e2c0f4 Issue #8784: Set tarfile default encoding to 'utf-8' on Windows.
Note: file system encoding cannot be None anymore (since r81190, issue #8610).
2010-06-11 23:46:47 +00:00
Victor Stinner 7909b0085a 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
2010-06-11 23:30:12 +00:00
Victor Stinner 9a45a6b1c2 Issue #8965: Write more tests for sys.getfilesystemencoding() 2010-06-11 23:06:13 +00:00
Victor Stinner 19e65a3563 readline: use PyUnicode_FSConverter() to parse filenames 2010-06-11 22:27:14 +00:00
Victor Stinner 2690461a9e Issue #8965: Add a regression test to test_sys with LANG=C 2010-06-11 22:17:52 +00:00
Victor Stinner 9e19ca42d3 locale.bindtextdomain(): use PyUnicode_FSConverter() to parse the filename 2010-06-11 22:09:51 +00:00
Benjamin Peterson c629d51ea9 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
........
2010-06-11 21:53:07 +00:00
Victor Stinner da0eca427a 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).
2010-06-11 21:50:30 +00:00
Antoine Pitrou cc0cfd3576 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).
........
2010-06-11 21:46:32 +00:00
Mark Dickinson 0277555ff2 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.
........
2010-06-11 20:29:09 +00:00
Mark Dickinson b72e6860d8 Fix more undefined-behaviour inducing overflow checks in struct module. 2010-06-11 19:50:30 +00:00
Victor Stinner 2e5416d0e6 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
........
2010-06-11 19:24:36 +00:00
Mark Dickinson eac0e68c10 Fix an incorrect return type. 2010-06-11 19:05:08 +00:00
Mark Dickinson ab4096f2f9 Avoid possible undefined behaviour from signed overflow. 2010-06-11 16:56:34 +00:00
Mark Dickinson 1c164a6f85 Fix typo in docstring. 2010-06-11 16:49:20 +00:00
Alexander Belopolsky 177e8530cb Issue #3129: Trailing digits in format string are no longer ignored. 2010-06-11 16:04:59 +00:00
Mark Dickinson 9b88b916a9 Fix issue number typo. 2010-06-11 10:46:57 +00:00
Mark Dickinson 08ade6faa0 Issue #8188: Comparisons between Decimal objects and other numeric
objects (Fraction, float, complex, int) now all function as expected.
2010-06-11 10:44:52 +00:00
Ezio Melotti bfd73faf86 Merged revisions 81889 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81889 | ezio.melotti | 2010-06-11 05:21:25 +0300 (Fri, 11 Jun 2010) | 1 line

  Remove extra ] from itertools.count docstring.
........
2010-06-11 02:26:42 +00:00
Victor Stinner 1286d7f060 test_sys: add a test on the file system encoding for darwin 2010-06-11 00:41:41 +00:00
Victor Stinner 7f84ab5952 Issue #8965: initfsencoding() doesn't change the encoding on Mac OS X
File system encoding have to be hardcoded to "utf-8" on Mac OS X. r81190
introduced a regression: the encoding was changed depending on the locale.
2010-06-11 00:36:33 +00:00
Michael Foord 2b293cf1a5 Merged revisions 81878 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81878 | michael.foord | 2010-06-10 21:40:21 +0100 (Thu, 10 Jun 2010) | 2 lines

  Fix issue with nested test suites debug method and module setups. (unittest)
........
2010-06-10 20:41:54 +00:00
Michael Foord d8efa020d8 Blocked revisions 81876 via svnmerge
........
  r81876 | michael.foord | 2010-06-10 17:32:00 +0100 (Thu, 10 Jun 2010) | 1 line

  NEWS update for issue 8948.
........
2010-06-10 16:33:34 +00:00
Michael Foord c41d141f4f Merged revisions 81859 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81859 | michael.foord | 2010-06-09 13:29:56 +0100 (Wed, 09 Jun 2010) | 1 line

  Typo correction.
........
2010-06-10 16:17:07 +00:00