]>
granicus.if.org Git - python/log
Hirokazu Yamamoto [Mon, 13 Sep 2010 07:18:30 +0000 (07:18 +0000)]
get_build_version() is needed even where sys.platform != "win32".
Try to fix buildbot error in other way.
Hirokazu Yamamoto [Mon, 13 Sep 2010 06:21:54 +0000 (06:21 +0000)]
Cosmetic fix to project files.
Hirokazu Yamamoto [Mon, 13 Sep 2010 05:59:38 +0000 (05:59 +0000)]
Updated PC/VS8.0 with PCBuild/vs9to8.py.
Hirokazu Yamamoto [Mon, 13 Sep 2010 05:36:21 +0000 (05:36 +0000)]
Issue #9313: Use unittest.skipUnless to skip old MSVC.
Florent Xicluna [Mon, 13 Sep 2010 02:28:18 +0000 (02:28 +0000)]
Reenable test_ucs4 and remove some duplicated lines.
Benjamin Peterson [Mon, 13 Sep 2010 01:31:57 +0000 (01:31 +0000)]
add spaces
Benjamin Peterson [Mon, 13 Sep 2010 01:30:04 +0000 (01:30 +0000)]
remove less complete of duplicate docs
Benjamin Peterson [Mon, 13 Sep 2010 01:25:38 +0000 (01:25 +0000)]
remove duplicate statement
Hirokazu Yamamoto [Sun, 12 Sep 2010 22:55:40 +0000 (22:55 +0000)]
Issue #9313: Skips test_remove_visual_c_ref on old MSVC.
Amaury Forgeot d'Arc [Sun, 12 Sep 2010 22:42:57 +0000 (22:42 +0000)]
#9210: remove --with-wctype-functions configure option.
The internal unicode database is now always used.
(after 5 years: see
http://mail.python.org/pipermail/python-dev/2004-December/050193.html
)
Georg Brandl [Sun, 12 Sep 2010 20:58:19 +0000 (20:58 +0000)]
Get rid of tabs.
Victor Stinner [Sun, 12 Sep 2010 20:32:57 +0000 (20:32 +0000)]
Document changes on mbcs encoding
Raymond Hettinger [Sun, 12 Sep 2010 18:16:01 +0000 (18:16 +0000)]
Put tests in more logical order.
Raymond Hettinger [Sun, 12 Sep 2010 18:13:46 +0000 (18:13 +0000)]
Use weakrefs for both forward and backward links.
Georg Brandl [Sun, 12 Sep 2010 17:14:26 +0000 (17:14 +0000)]
9806: add --extension-suffix option to python-config.
Benjamin Peterson [Sun, 12 Sep 2010 16:40:53 +0000 (16:40 +0000)]
use return NULL; it's just as correct
Matthias Klose [Sun, 12 Sep 2010 16:31:58 +0000 (16:31 +0000)]
- Issue #9817: Add expat COPYING file; add expat, libffi and expat licenses
to Doc/license.rst.
Hirokazu Yamamoto [Sun, 12 Sep 2010 16:06:18 +0000 (16:06 +0000)]
Fixed refcount bug. I placed Py_INCREF in create_comerror() for compatibility
with Python2.7.
Antoine Pitrou [Sun, 12 Sep 2010 14:51:20 +0000 (14:51 +0000)]
Issue #9837: The read() method of ZipExtFile objects (as returned by
ZipFile.open()) could return more bytes than requested.
Benjamin Peterson [Sun, 12 Sep 2010 13:55:02 +0000 (13:55 +0000)]
reenable test_nis on solaris #3402
Victor Stinner [Sun, 12 Sep 2010 08:00:41 +0000 (08:00 +0000)]
Isse #8589: Decode PYTHONWARNINGS from utf-8 on Mac OS X
Instead of the locale encoding.
Victor Stinner [Sun, 12 Sep 2010 07:51:18 +0000 (07:51 +0000)]
Issue #9738, #9836: Fix refleak introduced by r84704
Raymond Hettinger [Sun, 12 Sep 2010 05:15:22 +0000 (05:15 +0000)]
Issue #9826: Handle recursive repr in collections.OrderedDict.
Raymond Hettinger [Sun, 12 Sep 2010 04:12:42 +0000 (04:12 +0000)]
Issue #9825: Replace OrderedDict.__del__() with weakrefs.
Benjamin Peterson [Sun, 12 Sep 2010 03:40:54 +0000 (03:40 +0000)]
detect non-ascii characters much earlier (plugs ref leak)
Hirokazu Yamamoto [Sat, 11 Sep 2010 22:35:24 +0000 (22:35 +0000)]
Issue #9318: Use Py_LL for old compiler.
R. David Murray [Sat, 11 Sep 2010 18:12:25 +0000 (18:12 +0000)]
#9608, #8518 : clarify and improve discussion of exceptions in howto.
Benjamin Peterson [Sat, 11 Sep 2010 16:39:57 +0000 (16:39 +0000)]
fix formatting
Benjamin Peterson [Sat, 11 Sep 2010 16:02:03 +0000 (16:02 +0000)]
check for NULL tp_as_mapping in PySequence_(Get/Set/Del)Slice #9834
Éric Araujo [Sat, 11 Sep 2010 15:28:56 +0000 (15:28 +0000)]
Fix typo in option name
Victor Stinner [Sat, 11 Sep 2010 12:52:30 +0000 (12:52 +0000)]
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.
Vinay Sajip [Sat, 11 Sep 2010 10:25:28 +0000 (10:25 +0000)]
Issue #9827: clarified LogRecord documentation.
Raymond Hettinger [Sat, 11 Sep 2010 08:07:42 +0000 (08:07 +0000)]
Revert r84700 which had an unfortunate performance cost.
Georg Brandl [Sat, 11 Sep 2010 06:41:30 +0000 (06:41 +0000)]
Remove compatibility code for Python < 2.1, < 2.2 and < 2.4.
Georg Brandl [Sat, 11 Sep 2010 06:39:58 +0000 (06:39 +0000)]
Add new generated file to ignoreds.
Victor Stinner [Sat, 11 Sep 2010 00:54:47 +0000 (00:54 +0000)]
Issue #9738: PyUnicode_FromFormat() and PyErr_Format() raise an error on
a non-ASCII byte in the format string.
Document also the encoding.
Nick Coghlan [Sat, 11 Sep 2010 00:39:25 +0000 (00:39 +0000)]
Fix incorrect comment regarding MAGIC and TAG in import.c
Victor Stinner [Sat, 11 Sep 2010 00:22:12 +0000 (00:22 +0000)]
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.
Raymond Hettinger [Sat, 11 Sep 2010 00:05:44 +0000 (00:05 +0000)]
Separate positional arguments from localized globals.
Benjamin Peterson [Fri, 10 Sep 2010 23:53:14 +0000 (23:53 +0000)]
typo
Benjamin Peterson [Fri, 10 Sep 2010 23:52:42 +0000 (23:52 +0000)]
use Py_REFCNT
Victor Stinner [Fri, 10 Sep 2010 23:50:31 +0000 (23:50 +0000)]
Issue #9579, #9580: Oops, add the author of the patch
Victor Stinner [Fri, 10 Sep 2010 23:49:04 +0000 (23:49 +0000)]
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).
Benjamin Peterson [Fri, 10 Sep 2010 23:35:52 +0000 (23:35 +0000)]
add reduce and partial to __all__
Victor Stinner [Fri, 10 Sep 2010 23:13:52 +0000 (23:13 +0000)]
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.
Benjamin Peterson [Fri, 10 Sep 2010 22:47:02 +0000 (22:47 +0000)]
remove gil_drop_request in --without-threads
Victor Stinner [Fri, 10 Sep 2010 22:25:19 +0000 (22:25 +0000)]
Issue #9402: pyexpat uses Py_DECREF() instead of PyObject_DEL()
Fix a crash if Python is compiled in pydebug mode.
Victor Stinner [Fri, 10 Sep 2010 22:18:16 +0000 (22:18 +0000)]
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.
Benjamin Peterson [Fri, 10 Sep 2010 22:02:31 +0000 (22:02 +0000)]
use DISPATCH() instead of continue
Benjamin Peterson [Fri, 10 Sep 2010 21:59:21 +0000 (21:59 +0000)]
add newline
Victor Stinner [Fri, 10 Sep 2010 21:57:59 +0000 (21:57 +0000)]
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.
Benjamin Peterson [Fri, 10 Sep 2010 21:51:44 +0000 (21:51 +0000)]
bump magic number for DELETE_DEREF
Amaury Forgeot d'Arc [Fri, 10 Sep 2010 21:39:53 +0000 (21:39 +0000)]
#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.
Georg Brandl [Fri, 10 Sep 2010 20:43:53 +0000 (20:43 +0000)]
release() is probably not the most important method
Amaury Forgeot d'Arc [Fri, 10 Sep 2010 19:47:43 +0000 (19:47 +0000)]
The "if 1": trick seems cleaner that the one with regular expressions.
Use it here again.
Antoine Pitrou [Fri, 10 Sep 2010 19:44:44 +0000 (19:44 +0000)]
Issue #941346: Improve the build process under AIX and allow Python to
be built as a shared library. Patch by Sébastien Sablé.
Amaury Forgeot d'Arc [Fri, 10 Sep 2010 19:40:52 +0000 (19:40 +0000)]
Use the "if 1:" prefix so that quoted code appears nicely
nested inside the test suite.
def test_me():
exec("""if 1:
...code...
""")
No other change here.
Benjamin Peterson [Fri, 10 Sep 2010 18:50:38 +0000 (18:50 +0000)]
add reference to file object
Antoine Pitrou [Fri, 10 Sep 2010 18:39:00 +0000 (18:39 +0000)]
Followup to #4026: better patch for flock detection.
Amaury Forgeot d'Arc [Fri, 10 Sep 2010 18:11:45 +0000 (18:11 +0000)]
Untabify file.
Nick Coghlan [Fri, 10 Sep 2010 14:08:04 +0000 (14:08 +0000)]
As per python-dev discussion with Eli, properly document and publish dis.show_code
Nick Coghlan [Fri, 10 Sep 2010 12:32:58 +0000 (12:32 +0000)]
Leave show_code out of __all__ and make it clear that its lack of documentation is deliberate
Nick Coghlan [Fri, 10 Sep 2010 12:24:24 +0000 (12:24 +0000)]
Fix dis.__all__ for new additions to module in 3.2(spotted by Eli Bendersky)
Victor Stinner [Fri, 10 Sep 2010 11:19:59 +0000 (11:19 +0000)]
Issue #9819: fix TESTFN_UNENCODABLE for japanese code page
Vinay Sajip [Fri, 10 Sep 2010 08:25:13 +0000 (08:25 +0000)]
logging: Added threading interlock in basicConfig().
Daniel Stutzbach [Thu, 9 Sep 2010 21:18:04 +0000 (21:18 +0000)]
Fix Issue #9752: MSVC compiler warning due to undefined function
(Patch by Jon Anglin)
Daniel Stutzbach [Thu, 9 Sep 2010 21:17:58 +0000 (21:17 +0000)]
Skip socket tests that require the network, if the network resource is not enabled
Antoine Pitrou [Thu, 9 Sep 2010 20:40:28 +0000 (20:40 +0000)]
Remove workaround
Antoine Pitrou [Thu, 9 Sep 2010 20:30:23 +0000 (20:30 +0000)]
Issue #9804: ascii() now always represents unicode surrogate pairs as
a single `\UXXXXXXXX`, regardless of whether the character is printable
or not. Also, the "backslashreplace" error handler now joins surrogate
pairs into a single character on UCS-2 builds.
Antoine Pitrou [Thu, 9 Sep 2010 18:33:21 +0000 (18:33 +0000)]
Issue #9410: Various optimizations to the pickle module, leading to
speedups up to 4x (depending on the benchmark). Mostly ported from
Unladen Swallow; initial patch by Alexandre Vassalotti.
Antoine Pitrou [Thu, 9 Sep 2010 13:31:46 +0000 (13:31 +0000)]
Use transient_internet() where appropriate in test_ssl
(svn.python.org is sometimes unavailable)
Antoine Pitrou [Thu, 9 Sep 2010 12:59:39 +0000 (12:59 +0000)]
Issue #9757: memoryview objects get a release() method to release the
underlying buffer (previously this was only done when deallocating the
memoryview), and gain support for the context management protocol.
Raymond Hettinger [Thu, 9 Sep 2010 12:31:00 +0000 (12:31 +0000)]
Have pprint() respect the order in an OrderedDict.
Raymond Hettinger [Thu, 9 Sep 2010 08:29:05 +0000 (08:29 +0000)]
A little bit more readable repr method.
Raymond Hettinger [Thu, 9 Sep 2010 07:15:18 +0000 (07:15 +0000)]
Experiment: Let collections.namedtuple() do the work. This should work now that _collections is pre-built. The buildbots will tell us shortly.
Hirokazu Yamamoto [Thu, 9 Sep 2010 06:24:43 +0000 (06:24 +0000)]
PCBuild cosmetic fixes.
* pythoncore.vcproj: Fixed indentation
* _multiprocessing.vcproj: Converted ProjectGUID to uppercase. Otherwise,
VS8 _multiprocessing.vcproj created by vs9to8.py was modified every time
loads it in VS8 IDE.
Hirokazu Yamamoto [Thu, 9 Sep 2010 06:14:23 +0000 (06:14 +0000)]
Updated VS7.1 project file. (I cannot test this file because I don't have VS7.1)
Hirokazu Yamamoto [Thu, 9 Sep 2010 06:08:36 +0000 (06:08 +0000)]
Updated VC6 files.
* pythoncore.dsp: updated project file
* readme.txt: removed dead link
* tcl852.patch: fixed patch. it was doubled.
Raymond Hettinger [Thu, 9 Sep 2010 04:32:39 +0000 (04:32 +0000)]
Improve the repr for the TokenInfo named tuple.
Raymond Hettinger [Thu, 9 Sep 2010 03:53:22 +0000 (03:53 +0000)]
Add docstring to cmd.Cmd.do_help()
Raymond Hettinger [Thu, 9 Sep 2010 01:40:50 +0000 (01:40 +0000)]
Add a working example for the cmd module.
Giampaolo Rodolà [Wed, 8 Sep 2010 22:44:12 +0000 (22:44 +0000)]
Fix issue 9794: adds context manager protocol to socket.socket so that socket.create_connection() can be used with the 'with' statement.
Antoine Pitrou [Wed, 8 Sep 2010 21:57:37 +0000 (21:57 +0000)]
gdb: fix representation of non-printable surrogate pairs, and workaround
a bug in ascii().
Antoine Pitrou [Wed, 8 Sep 2010 21:07:40 +0000 (21:07 +0000)]
Add a safety limit to the number of unicode characters we fetch
(followup to r84635, suggested by Dave Malcolm).
Antoine Pitrou [Wed, 8 Sep 2010 20:57:48 +0000 (20:57 +0000)]
Issue #9188: The gdb extension now handles correctly narrow (UCS2) as well
as wide (UCS4) unicode builds for both the host interpreter (embedded
inside gdb) and the interpreter under test.
Raymond Hettinger [Wed, 8 Sep 2010 19:27:59 +0000 (19:27 +0000)]
Improve variable name (don't shadow a builtin).
Raymond Hettinger [Wed, 8 Sep 2010 18:58:33 +0000 (18:58 +0000)]
One more conversion from pow() to **.
Raymond Hettinger [Wed, 8 Sep 2010 18:48:21 +0000 (18:48 +0000)]
* Remove dependency on binascii.hexlify by using int.from_bytes().
* Use the new super() with no arguments.
* Replace pow() call with the ** operator.
* Increase urandom seeding from 16 bytes to 32 bytes.
* Clean-up docstring.
Matthias Klose [Wed, 8 Sep 2010 16:22:10 +0000 (16:22 +0000)]
PEP 3149: Try to load the extension with the SOABI before trying
to load the one without the SOABI in the name.
Senthil Kumaran [Wed, 8 Sep 2010 12:50:29 +0000 (12:50 +0000)]
Revert the doc change done in r83880. str.replace with negative count value is not a feature.
Antoine Pitrou [Wed, 8 Sep 2010 12:37:10 +0000 (12:37 +0000)]
Issue #9797: pystate.c wrongly assumed that zero couldn't be a valid
thread-local storage key.
Vinay Sajip [Wed, 8 Sep 2010 10:46:15 +0000 (10:46 +0000)]
logging: Added QueueHandler.
Georg Brandl [Wed, 8 Sep 2010 10:43:45 +0000 (10:43 +0000)]
Add Lukasz.
Raymond Hettinger [Wed, 8 Sep 2010 00:30:28 +0000 (00:30 +0000)]
In the case where only a user supplied random() method is available,
adopt a strategy that makes the fewest calls to random().
Éric Araujo [Wed, 8 Sep 2010 00:00:45 +0000 (00:00 +0000)]
Follow-up to #9199: Fix str.join use, add newlines.
Thanks to Konrad Delong for writing a test for upload_docs
--show-response in distutils2, letting me catch my mistake.
Éric Araujo [Tue, 7 Sep 2010 23:08:57 +0000 (23:08 +0000)]
Fix incorrect use of Command.announce (#9199)
Éric Araujo [Tue, 7 Sep 2010 22:11:52 +0000 (22:11 +0000)]
Fix eon-old bug in build_clib options (#
1718574 )
Antoine Pitrou [Tue, 7 Sep 2010 22:06:17 +0000 (22:06 +0000)]
Issue #9707: Rewritten reference implementation of threading.local which
is friendlier towards reference cycles. This change is not normally
visible since an optimized C implementation (_thread._local) is used
instead.
Antoine Pitrou [Tue, 7 Sep 2010 21:43:31 +0000 (21:43 +0000)]
Also catch some gaierrors
Éric Araujo [Tue, 7 Sep 2010 21:35:35 +0000 (21:35 +0000)]
Fix typo in whatsnew (#9793)