Commit graph

48682 commits

Author SHA1 Message Date
Hirokazu Yamamoto
ffa272d4d8 Merged revisions 83841,84741 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r83841 | thomas.heller | 2010-08-09 03:16:20 +0900 | 2 lines

  Fix issue6869: refcount problem in the _ctypes extension.
........
  r84741 | hirokazu.yamamoto | 2010-09-13 01:06:18 +0900 | 2 lines

  Fixed refcount bug. I placed Py_INCREF in create_comerror() for compatibility
  with Python2.7.
........
2010-09-12 16:19:05 +00:00
Hirokazu Yamamoto
34aa30ca2b Fixed refcount bug. I placed Py_INCREF in create_comerror() for compatibility
with Python2.7.
2010-09-12 16:06:18 +00:00
Antoine Pitrou
1052e3993b Merged revisions 84737 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

Only the tests are merged, 3.1 doesn't exhibit the issue.

........
  r84737 | antoine.pitrou | 2010-09-12 16:51:20 +0200 (dim., 12 sept. 2010) | 4 lines

  Issue #9837: The read() method of ZipExtFile objects (as returned by
  ZipFile.open()) could return more bytes than requested.
........
2010-09-12 14:55:22 +00:00
Antoine Pitrou
6464d5ffdc Issue #9837: The read() method of ZipExtFile objects (as returned by
ZipFile.open()) could return more bytes than requested.
2010-09-12 14:51:20 +00:00
Benjamin Peterson
ee906192b5 Merged revisions 84735 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r84735 | benjamin.peterson | 2010-09-12 08:55:02 -0500 (Sun, 12 Sep 2010) | 1 line

  reenable test_nis on solaris #3402
........
2010-09-12 13:58:34 +00:00
Benjamin Peterson
0b9489d21d reenable test_nis on solaris #3402 2010-09-12 13:55:02 +00:00
Vinay Sajip
7f536b03a2 Issue #9827: clarified LogRecord documentation a little more. 2010-09-12 11:51:26 +00:00
Vinay Sajip
2b65fc8aed Issue #9827: clarified LogRecord documentation. 2010-09-12 11:47:47 +00:00
Victor Stinner
5c848a84fd Isse #8589: Decode PYTHONWARNINGS from utf-8 on Mac OS X
Instead of the locale encoding.
2010-09-12 08:00:41 +00:00
Victor Stinner
4c7db315df Issue #9738, #9836: Fix refleak introduced by r84704 2010-09-12 07:51:18 +00:00
Raymond Hettinger
69976a7fbe Issue #9826: Handle recursive repr in collections.OrderedDict. 2010-09-12 05:28:42 +00:00
Raymond Hettinger
dc08a143e0 Issue #9826: Handle recursive repr in collections.OrderedDict. 2010-09-12 05:15:22 +00:00
Raymond Hettinger
fa11db0a02 Issue #9825: Replace OrderedDict.__del__() with weakrefs. 2010-09-12 04:12:42 +00:00
Benjamin Peterson
9be0b2e312 detect non-ascii characters much earlier (plugs ref leak) 2010-09-12 03:40:54 +00:00
Hirokazu Yamamoto
f13c6d8d34 Issue #9318: Use Py_LL for old compiler. 2010-09-11 22:35:24 +00:00
Hirokazu Yamamoto
22450c2aee Blocked revisions 84643 via svnmerge
........
  r84643 | hirokazu.yamamoto | 2010-09-09 15:08:36 +0900 | 4 lines

  Updated VC6 files.
  * pythoncore.dsp: updated project file
  * readme.txt: removed dead link
  * tcl852.patch: fixed patch. it was doubled.
........
2010-09-11 22:26:07 +00:00
R. David Murray
bec04a9032 Merged revisions 84719 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r84719 | r.david.murray | 2010-09-11 14:12:25 -0400 (Sat, 11 Sep 2010) | 2 lines

  #9608, #8518 : clarify and improve discussion of exceptions in howto.
........
2010-09-11 18:20:06 +00:00
R. David Murray
44ef7749dc #9608, #8518 : clarify and improve discussion of exceptions in howto. 2010-09-11 18:12:25 +00:00
Benjamin Peterson
42bc69154f Merged revisions 84717 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r84717 | benjamin.peterson | 2010-09-11 11:39:57 -0500 (Sat, 11 Sep 2010) | 1 line

  fix formatting
........
2010-09-11 16:40:47 +00:00
Benjamin Peterson
41ece39c21 fix formatting 2010-09-11 16:39:57 +00:00
Benjamin Peterson
5d7d9e6899 Merged revisions 84705 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r84705 | georg.brandl | 2010-09-11 01:39:58 -0500 (Sat, 11 Sep 2010) | 1 line

  Add new generated file to ignoreds.
........
2010-09-11 16:23:57 +00:00
Benjamin Peterson
8042f4af29 Merged revisions 84714 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r84714 | benjamin.peterson | 2010-09-11 11:02:03 -0500 (Sat, 11 Sep 2010) | 1 line

  check for NULL tp_as_mapping in PySequence_(Get/Set/Del)Slice #9834
........
2010-09-11 16:03:33 +00:00
Benjamin Peterson
568867a6f2 check for NULL tp_as_mapping in PySequence_(Get/Set/Del)Slice #9834 2010-09-11 16:02:03 +00:00
Éric Araujo
40f7e11f12 Merged revisions 84711 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r84711 | eric.araujo | 2010-09-11 17:28:56 +0200 (sam., 11 sept. 2010) | 2 lines

  Fix typo in option name
........
2010-09-11 15:30:19 +00:00
Éric Araujo
e861598dcb Fix typo in option name 2010-09-11 15:28:56 +00:00
Victor Stinner
ca6525afba Issue #9819: don't try to encode TESTFN_UNICODE on Windows
mbcs (Windows default filesystem encoding) is now strict by default, and
depending on the code page, TESTFN_UNICODE may not be encodable to bytes.

Remove also unused "encoded" argument from _do_directory() method.
2010-09-11 12:52:30 +00:00
Vinay Sajip
4039aff814 Issue #9827: clarified LogRecord documentation. 2010-09-11 10:25:28 +00:00
Raymond Hettinger
bd88802c1f Revert r84700 which had an unfortunate performance cost. 2010-09-11 08:07:42 +00:00
Georg Brandl
5e1fdacc36 Remove compatibility code for Python < 2.1, < 2.2 and < 2.4. 2010-09-11 06:41:30 +00:00
Georg Brandl
9988b7173e Add new generated file to ignoreds. 2010-09-11 06:39:58 +00:00
Victor Stinner
1205f2774e Issue #9738: PyUnicode_FromFormat() and PyErr_Format() raise an error on
a non-ASCII byte in the format string.

Document also the encoding.
2010-09-11 00:54:47 +00:00
Nick Coghlan
cd419abe42 Fix incorrect comment regarding MAGIC and TAG in import.c 2010-09-11 00:39:25 +00:00
Victor Stinner
a76020a544 Merged revisions 84701 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r84701 | victor.stinner | 2010-09-11 02:22:12 +0200 (sam., 11 sept. 2010) | 5 lines

  Issue #767645: fix os.path.supports_unicode_filenames definition

  os.listdir(str) always returns unicode and it can return non-ascii filenames
  even if supports_unicode_filenames is False.
........
2010-09-11 00:23:53 +00:00
Victor Stinner
b55e498f56 Issue #767645: fix os.path.supports_unicode_filenames definition
os.listdir(str) always returns unicode and it can return non-ascii filenames
even if supports_unicode_filenames is False.
2010-09-11 00:22:12 +00:00
Raymond Hettinger
22b46e0ba9 Separate positional arguments from localized globals. 2010-09-11 00:05:44 +00:00
Benjamin Peterson
e208b7c5b1 typo 2010-09-10 23:53:14 +00:00
Benjamin Peterson
d0de25d731 use Py_REFCNT 2010-09-10 23:52:42 +00:00
Victor Stinner
6f7b783cde Issue #9579, #9580: Oops, add the author of the patch 2010-09-10 23:50:31 +00:00
Victor Stinner
cb04352e8c Issue #9579, #9580: Fix os.confstr() for value longer than 255 bytes and encode
the value with filesystem encoding and surrogateescape (instead of utf-8 in
strict mode).
2010-09-10 23:49:04 +00:00
Benjamin Peterson
1017ae5253 add reduce and partial to __all__ 2010-09-10 23:35:52 +00:00
Victor Stinner
c2d76fd339 Issue #8589: surrogateescape error handler is not available at startup
Py_Main() uses _Py_wchar2char() + PyUnicode_FromWideChar() instead of
PyUnicode_DecodeFSDefault(), because the PyCodec machinery is not ready yet.
2010-09-10 23:13:52 +00:00
Benjamin Peterson
d2be5b4fe4 remove gil_drop_request in --without-threads 2010-09-10 22:47:02 +00:00
Victor Stinner
b4ba986a71 Issue #9402: pyexpat uses Py_DECREF() instead of PyObject_DEL()
Fix a crash if Python is compiled in pydebug mode.
2010-09-10 22:25:19 +00:00
Victor Stinner
3d75d0cc92 Issue #8603: Environ.data is now protected -> Environ._data
os.environ.data was a str dict in Python 3.1. In Python 3.2 on UNIX/BSD,
os.environ.data is now a bytes dict: mark it as protected to avoid confusion.
2010-09-10 22:18:16 +00:00
Benjamin Peterson
00ebe2cdc4 use DISPATCH() instead of continue 2010-09-10 22:02:31 +00:00
Benjamin Peterson
d032532bb9 add newline 2010-09-10 21:59:21 +00:00
Victor Stinner
5b519e0201 Issue #9632: Remove sys.setfilesystemencoding() function: use PYTHONFSENCODING
environment variable to set the filesystem encoding at Python startup.
sys.setfilesystemencoding() creates inconsistencies because it is unable to
reencode all filenames in all objects.
2010-09-10 21:57:59 +00:00
Benjamin Peterson
6246d6dcb0 bump magic number for DELETE_DEREF 2010-09-10 21:51:44 +00:00
Amaury Forgeot d'Arc
ba117ef7e9 #4617: Previously it was illegal to delete a name from the local
namespace if it occurs as a free variable in a nested block.  This limitation
of the compiler has been lifted, and a new opcode introduced (DELETE_DEREF).

This sample was valid in 2.6, but fails to compile in 3.x without this change::

   >>> def f():
   ...     def print_error():
   ...        print(e)
   ...     try:
   ...        something
   ...     except Exception as e:
   ...        print_error()
   ...        # implicit "del e" here


This sample has always been invalid in Python, and now works::

   >>> def outer(x):
   ...     def inner():
   ...        return x
   ...     inner()
   ...     del x

There is no need to bump the PYC magic number: the new opcode is used
for code that did not compile before.
2010-09-10 21:39:53 +00:00
Georg Brandl
4785916d62 release() is probably not the most important method 2010-09-10 20:43:53 +00:00