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