]> granicus.if.org Git - python/log
python
14 years agoImproved basicConfig and custom level documentation.
Vinay Sajip [Fri, 17 Sep 2010 10:09:04 +0000 (10:09 +0000)]
Improved basicConfig and custom level documentation.

14 years agoLet's see if tcl/tk test runs on windows buildbot with this fix.
Hirokazu Yamamoto [Fri, 17 Sep 2010 08:53:31 +0000 (08:53 +0000)]
Let's see if tcl/tk test runs on windows buildbot with this fix.

14 years agoFix typo in example regular expression.
Raymond Hettinger [Fri, 17 Sep 2010 06:26:45 +0000 (06:26 +0000)]
Fix typo in example regular expression.

14 years agoIssue 9865: add __sizeof__ to OrderedDict.
Raymond Hettinger [Thu, 16 Sep 2010 19:10:17 +0000 (19:10 +0000)]
Issue 9865:  add __sizeof__ to OrderedDict.

14 years agoIssue #9810: Compile bzip2 source files in python's project file
Hirokazu Yamamoto [Thu, 16 Sep 2010 17:50:57 +0000 (17:50 +0000)]
Issue #9810: Compile bzip2 source files in python's project file
directly. It used to be built with bzip2's makefile.

14 years agoRelax test condition (fix failures on FreeBSD buildbots)
Antoine Pitrou [Thu, 16 Sep 2010 15:04:49 +0000 (15:04 +0000)]
Relax test condition (fix failures on FreeBSD buildbots)

14 years agoAdd tokenizer example to regex docs.
Raymond Hettinger [Thu, 16 Sep 2010 12:02:17 +0000 (12:02 +0000)]
Add tokenizer example to regex docs.

14 years agoRemove unneeded exception chaining.
Raymond Hettinger [Thu, 16 Sep 2010 08:06:05 +0000 (08:06 +0000)]
Remove unneeded exception chaining.

14 years agoImprove comment
Raymond Hettinger [Thu, 16 Sep 2010 00:31:21 +0000 (00:31 +0000)]
Improve comment

14 years agorename DISCONNECTED global constant in _DISCONNECTED
Giampaolo Rodolà [Wed, 15 Sep 2010 21:59:04 +0000 (21:59 +0000)]
rename DISCONNECTED global constant in _DISCONNECTED

14 years agoStore all errors signaling a disconnection into a global frozenset to save some compu...
Giampaolo Rodolà [Wed, 15 Sep 2010 21:43:47 +0000 (21:43 +0000)]
Store all errors signaling a disconnection into a global frozenset to save some computation time on recv() and send().

14 years agoMove library changes to the right section
Antoine Pitrou [Wed, 15 Sep 2010 15:13:17 +0000 (15:13 +0000)]
Move library changes to the right section

14 years agoAdd entries to whatsnew
Antoine Pitrou [Wed, 15 Sep 2010 15:09:40 +0000 (15:09 +0000)]
Add entries to whatsnew

14 years agoTry harder on issue #7356: ctypes.util: Make parsing of ldconfig output
Matthias Klose [Wed, 15 Sep 2010 13:06:09 +0000 (13:06 +0000)]
Try harder on issue #7356: ctypes.util: Make parsing of ldconfig output
independent of the locale. Set LC_ALL=C too.

14 years agoReverted unwanted change in r84826
Antoine Pitrou [Wed, 15 Sep 2010 11:12:57 +0000 (11:12 +0000)]
Reverted unwanted change in r84826

14 years agoAdd cross-references to the glossary entry for file objects.
Antoine Pitrou [Wed, 15 Sep 2010 11:11:28 +0000 (11:11 +0000)]
Add cross-references to the glossary entry for file objects.

14 years agoUpdate file-related information in the FAQ.
Antoine Pitrou [Wed, 15 Sep 2010 10:08:31 +0000 (10:08 +0000)]
Update file-related information in the FAQ.

14 years agoAdd a glossary entry for file objects.
Antoine Pitrou [Wed, 15 Sep 2010 09:58:26 +0000 (09:58 +0000)]
Add a glossary entry for file objects.

14 years agoImprove docs for socket.makefile() and SocketIO
Antoine Pitrou [Wed, 15 Sep 2010 09:32:45 +0000 (09:32 +0000)]
Improve docs for socket.makefile() and SocketIO

14 years agoAdd a comment explaining why SocketIO is needed
Antoine Pitrou [Wed, 15 Sep 2010 08:39:25 +0000 (08:39 +0000)]
Add a comment explaining why SocketIO is needed

14 years agoClarify where support for negative indices fall in the language hierarchy.
Raymond Hettinger [Wed, 15 Sep 2010 00:09:26 +0000 (00:09 +0000)]
Clarify where support for negative indices fall in the language hierarchy.

14 years agoIssue 9802: Document min()/max() sort stability
Raymond Hettinger [Tue, 14 Sep 2010 23:13:42 +0000 (23:13 +0000)]
Issue 9802:  Document min()/max() sort stability

14 years agoFuture proof total_ordering against changes in methods defined on object.
Raymond Hettinger [Tue, 14 Sep 2010 22:55:13 +0000 (22:55 +0000)]
Future proof total_ordering against changes in methods defined on object.

14 years agoMake testDefaults in test.test_socket.BasicSocketPairTest more reliable.
Antoine Pitrou [Tue, 14 Sep 2010 21:24:25 +0000 (21:24 +0000)]
Make testDefaults in test.test_socket.BasicSocketPairTest more reliable.

14 years agosetup.py was trying to build _weakref which is redundant as it's a built-in
Brett Cannon [Tue, 14 Sep 2010 19:41:23 +0000 (19:41 +0000)]
setup.py was trying to build _weakref which is redundant as it's a built-in
module.

Closes issue #9848. Thanks to Arfrever Frehtes Taifersar Arahesis for the bug
report.

14 years agoImprove iteration speed by only proxying back links.
Raymond Hettinger [Tue, 14 Sep 2010 19:40:15 +0000 (19:40 +0000)]
Improve iteration speed by only proxying back links.
The forward links are hard references.
The sentinel element is also a weakref proxy
(to break a forward cylce wrapping around the sentinel).

14 years agoIssue #9854: The default read() implementation in io.RawIOBase now
Antoine Pitrou [Tue, 14 Sep 2010 18:37:24 +0000 (18:37 +0000)]
Issue #9854: The default read() implementation in io.RawIOBase now
handles non-blocking readinto() returning None correctly.

14 years agoIssue #1552: socket.socketpair() now returns regular socket.socket
Antoine Pitrou [Tue, 14 Sep 2010 18:00:02 +0000 (18:00 +0000)]
Issue #1552: socket.socketpair() now returns regular socket.socket
objects supporting the whole socket API (rather than the "raw"
_socket.socket objects).

14 years agoRemove pointers to a FAQ entry that no longer exists. Incorporate some text from...
Daniel Stutzbach [Tue, 14 Sep 2010 16:02:01 +0000 (16:02 +0000)]
Remove pointers to a FAQ entry that no longer exists.  Incorporate some text from the old FAQ into the docs

14 years agoIssue #9853: Fix the signature of SSLSocket.recvfrom() and
Antoine Pitrou [Tue, 14 Sep 2010 14:43:44 +0000 (14:43 +0000)]
Issue #9853: Fix the signature of SSLSocket.recvfrom() and
SSLSocket.sendto() to match the corresponding socket methods.

14 years agoIssue 9315: Added test/tracedmodules to LIBSUBDIRS
Alexander Belopolsky [Tue, 14 Sep 2010 14:12:19 +0000 (14:12 +0000)]
Issue 9315: Added test/tracedmodules to LIBSUBDIRS

14 years agoRemove C++-style comments
Antoine Pitrou [Tue, 14 Sep 2010 10:08:08 +0000 (10:08 +0000)]
Remove C++-style comments

14 years agoDo not print additional shutdown message when gc.DEBUG_SAVEALL is set
Antoine Pitrou [Tue, 14 Sep 2010 09:48:39 +0000 (09:48 +0000)]
Do not print additional shutdown message when gc.DEBUG_SAVEALL is set

14 years agoTidied example script.
Vinay Sajip [Tue, 14 Sep 2010 09:42:39 +0000 (09:42 +0000)]
Tidied example script.

14 years agoAdded test for QueueHandler.
Vinay Sajip [Tue, 14 Sep 2010 09:34:09 +0000 (09:34 +0000)]
Added test for QueueHandler.

14 years agoTidied example script.
Vinay Sajip [Tue, 14 Sep 2010 06:59:24 +0000 (06:59 +0000)]
Tidied example script.

14 years agoAdded files missed in r84780. Thanks, Florent.
Alexander Belopolsky [Tue, 14 Sep 2010 01:11:35 +0000 (01:11 +0000)]
Added files missed in r84780.  Thanks, Florent.

14 years agoIssue 9840: Add reprlib.recursive_repr(), a decorator for handling recursive calls...
Raymond Hettinger [Mon, 13 Sep 2010 21:36:00 +0000 (21:36 +0000)]
Issue 9840:  Add reprlib.recursive_repr(), a decorator for handling recursive calls to __repr__ methods.

14 years agoIssue #9213: Add index and count methods to range objects, needed to
Daniel Stutzbach [Mon, 13 Sep 2010 21:16:29 +0000 (21:16 +0000)]
Issue #9213: Add index and count methods to range objects, needed to
meet the API of the collections.Sequence ABC.

14 years agoIssue 7994: Make object.__format__() raise a PendingDeprecationWarning
Eric Smith [Mon, 13 Sep 2010 20:48:43 +0000 (20:48 +0000)]
Issue 7994: Make object.__format__() raise a PendingDeprecationWarning
if the format string is not empty. Manually merge r79596 and r84772
from 2.x.

Also, apparently test_format() from test_builtin never made it into
3.x. I've added it as well. It tests the basic format()
infrastructure.

14 years agologging: enhanced HTTPHandler
Vinay Sajip [Mon, 13 Sep 2010 20:40:30 +0000 (20:40 +0000)]
logging: enhanced HTTPHandler

14 years agoEnhanced HTTPHandler documentation.
Vinay Sajip [Mon, 13 Sep 2010 20:37:50 +0000 (20:37 +0000)]
Enhanced HTTPHandler documentation.

14 years agoRemoved unused, commented-out code.
Vinay Sajip [Mon, 13 Sep 2010 20:28:57 +0000 (20:28 +0000)]
Removed unused, commented-out code.

14 years agoExpanded QueueHandler documentation.
Vinay Sajip [Mon, 13 Sep 2010 20:02:39 +0000 (20:02 +0000)]
Expanded QueueHandler documentation.

14 years agoIssue #767645: Set os.path.supports_unicode_filenames to True on Mac OS X
Victor Stinner [Mon, 13 Sep 2010 19:41:36 +0000 (19:41 +0000)]
Issue #767645: Set os.path.supports_unicode_filenames to True on Mac OS X
(macpath module).

14 years agoRemoved debugging setting
Alexander Belopolsky [Mon, 13 Sep 2010 18:15:33 +0000 (18:15 +0000)]
Removed debugging setting

14 years agoIssue #9315: Fix for the trace module to record correct class name
Alexander Belopolsky [Mon, 13 Sep 2010 18:14:34 +0000 (18:14 +0000)]
Issue #9315: Fix for the trace module to record correct class name
when tracing methods.  Unit tests. Patch by Eli Bendersky.

14 years agoMake test.regrtest.__file__ absolute, this was not always the case when running profi...
Florent Xicluna [Mon, 13 Sep 2010 16:35:02 +0000 (16:35 +0000)]
Make test.regrtest.__file__ absolute, this was not always the case when running profile or trace, for example.  (issue #9323)

14 years agoIssue #9828: Destroy the GIL in Py_Finalize(), so that it gets properly
Antoine Pitrou [Mon, 13 Sep 2010 14:16:46 +0000 (14:16 +0000)]
Issue #9828: Destroy the GIL in Py_Finalize(), so that it gets properly
re-created on a subsequent call to Py_Initialize().  The problem (a crash)
wouldn't appear in 3.1 or 2.7 where the GIL's structure is more trivial.

14 years agoget_build_version() is needed even where sys.platform != "win32".
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.

14 years agoCosmetic fix to project files.
Hirokazu Yamamoto [Mon, 13 Sep 2010 06:21:54 +0000 (06:21 +0000)]
Cosmetic fix to project files.

14 years agoUpdated PC/VS8.0 with PCBuild/vs9to8.py.
Hirokazu Yamamoto [Mon, 13 Sep 2010 05:59:38 +0000 (05:59 +0000)]
Updated PC/VS8.0 with PCBuild/vs9to8.py.

14 years agoIssue #9313: Use unittest.skipUnless to skip old MSVC.
Hirokazu Yamamoto [Mon, 13 Sep 2010 05:36:21 +0000 (05:36 +0000)]
Issue #9313: Use unittest.skipUnless to skip old MSVC.

14 years agoReenable test_ucs4 and remove some duplicated lines.
Florent Xicluna [Mon, 13 Sep 2010 02:28:18 +0000 (02:28 +0000)]
Reenable test_ucs4 and remove some duplicated lines.

14 years agoadd spaces
Benjamin Peterson [Mon, 13 Sep 2010 01:31:57 +0000 (01:31 +0000)]
add spaces

14 years agoremove less complete of duplicate docs
Benjamin Peterson [Mon, 13 Sep 2010 01:30:04 +0000 (01:30 +0000)]
remove less complete of duplicate docs

14 years agoremove duplicate statement
Benjamin Peterson [Mon, 13 Sep 2010 01:25:38 +0000 (01:25 +0000)]
remove duplicate statement

14 years agoIssue #9313: Skips test_remove_visual_c_ref on old MSVC.
Hirokazu Yamamoto [Sun, 12 Sep 2010 22:55:40 +0000 (22:55 +0000)]
Issue #9313: Skips test_remove_visual_c_ref on old MSVC.

14 years ago#9210: remove --with-wctype-functions configure option.
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
)

14 years agoGet rid of tabs.
Georg Brandl [Sun, 12 Sep 2010 20:58:19 +0000 (20:58 +0000)]
Get rid of tabs.

14 years agoDocument changes on mbcs encoding
Victor Stinner [Sun, 12 Sep 2010 20:32:57 +0000 (20:32 +0000)]
Document changes on mbcs encoding

14 years agoPut tests in more logical order.
Raymond Hettinger [Sun, 12 Sep 2010 18:16:01 +0000 (18:16 +0000)]
Put tests in more logical order.

14 years agoUse weakrefs for both forward and backward links.
Raymond Hettinger [Sun, 12 Sep 2010 18:13:46 +0000 (18:13 +0000)]
Use weakrefs for both forward and backward links.

14 years ago9806: add --extension-suffix option to python-config.
Georg Brandl [Sun, 12 Sep 2010 17:14:26 +0000 (17:14 +0000)]
9806: add --extension-suffix option to python-config.

14 years agouse return NULL; it's just as correct
Benjamin Peterson [Sun, 12 Sep 2010 16:40:53 +0000 (16:40 +0000)]
use return NULL; it's just as correct

14 years ago- Issue #9817: Add expat COPYING file; add expat, libffi and expat licenses
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.

14 years agoFixed refcount bug. I placed Py_INCREF in create_comerror() for compatibility
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.

14 years agoIssue #9837: The read() method of ZipExtFile objects (as returned by
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.

14 years agoreenable test_nis on solaris #3402
Benjamin Peterson [Sun, 12 Sep 2010 13:55:02 +0000 (13:55 +0000)]
reenable test_nis on solaris #3402

14 years agoIsse #8589: Decode PYTHONWARNINGS from utf-8 on Mac OS X
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.

14 years agoIssue #9738, #9836: Fix refleak introduced by r84704
Victor Stinner [Sun, 12 Sep 2010 07:51:18 +0000 (07:51 +0000)]
Issue #9738, #9836: Fix refleak introduced by r84704

14 years agoIssue #9826: Handle recursive repr in collections.OrderedDict.
Raymond Hettinger [Sun, 12 Sep 2010 05:15:22 +0000 (05:15 +0000)]
Issue #9826:  Handle recursive repr in collections.OrderedDict.

14 years agoIssue #9825: Replace OrderedDict.__del__() with weakrefs.
Raymond Hettinger [Sun, 12 Sep 2010 04:12:42 +0000 (04:12 +0000)]
Issue #9825:  Replace OrderedDict.__del__() with weakrefs.

14 years agodetect non-ascii characters much earlier (plugs ref leak)
Benjamin Peterson [Sun, 12 Sep 2010 03:40:54 +0000 (03:40 +0000)]
detect non-ascii characters much earlier (plugs ref leak)

14 years agoIssue #9318: Use Py_LL for old compiler.
Hirokazu Yamamoto [Sat, 11 Sep 2010 22:35:24 +0000 (22:35 +0000)]
Issue #9318: Use Py_LL for old compiler.

14 years ago#9608, #8518 : clarify and improve discussion of exceptions in howto.
R. David Murray [Sat, 11 Sep 2010 18:12:25 +0000 (18:12 +0000)]
#9608, #8518 : clarify and improve discussion of exceptions in howto.

14 years agofix formatting
Benjamin Peterson [Sat, 11 Sep 2010 16:39:57 +0000 (16:39 +0000)]
fix formatting

14 years agocheck for NULL tp_as_mapping in PySequence_(Get/Set/Del)Slice #9834
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

14 years agoFix typo in option name
Éric Araujo [Sat, 11 Sep 2010 15:28:56 +0000 (15:28 +0000)]
Fix typo in option name

14 years agoIssue #9819: don't try to encode TESTFN_UNICODE on Windows
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.

14 years agoIssue #9827: clarified LogRecord documentation.
Vinay Sajip [Sat, 11 Sep 2010 10:25:28 +0000 (10:25 +0000)]
Issue #9827: clarified LogRecord documentation.

14 years agoRevert r84700 which had an unfortunate performance cost.
Raymond Hettinger [Sat, 11 Sep 2010 08:07:42 +0000 (08:07 +0000)]
Revert r84700 which had an unfortunate performance cost.

14 years agoRemove compatibility code for Python < 2.1, < 2.2 and < 2.4.
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.

14 years agoAdd new generated file to ignoreds.
Georg Brandl [Sat, 11 Sep 2010 06:39:58 +0000 (06:39 +0000)]
Add new generated file to ignoreds.

14 years agoIssue #9738: PyUnicode_FromFormat() and PyErr_Format() raise an error on
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.

14 years agoFix incorrect comment regarding MAGIC and TAG in import.c
Nick Coghlan [Sat, 11 Sep 2010 00:39:25 +0000 (00:39 +0000)]
Fix incorrect comment regarding MAGIC and TAG in import.c

14 years agoIssue #767645: fix os.path.supports_unicode_filenames definition
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.

14 years agoSeparate positional arguments from localized globals.
Raymond Hettinger [Sat, 11 Sep 2010 00:05:44 +0000 (00:05 +0000)]
Separate positional arguments from localized globals.

14 years agotypo
Benjamin Peterson [Fri, 10 Sep 2010 23:53:14 +0000 (23:53 +0000)]
typo

14 years agouse Py_REFCNT
Benjamin Peterson [Fri, 10 Sep 2010 23:52:42 +0000 (23:52 +0000)]
use Py_REFCNT

14 years agoIssue #9579, #9580: Oops, add the author of the patch
Victor Stinner [Fri, 10 Sep 2010 23:50:31 +0000 (23:50 +0000)]
Issue #9579, #9580: Oops, add the author of the patch

14 years agoIssue #9579, #9580: Fix os.confstr() for value longer than 255 bytes and encode
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).

14 years agoadd reduce and partial to __all__
Benjamin Peterson [Fri, 10 Sep 2010 23:35:52 +0000 (23:35 +0000)]
add reduce and partial to __all__

14 years agoIssue #8589: surrogateescape error handler is not available at startup
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.

14 years agoremove gil_drop_request in --without-threads
Benjamin Peterson [Fri, 10 Sep 2010 22:47:02 +0000 (22:47 +0000)]
remove gil_drop_request in --without-threads

14 years agoIssue #9402: pyexpat uses Py_DECREF() instead of PyObject_DEL()
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.

14 years agoIssue #8603: Environ.data is now protected -> Environ._data
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.

14 years agouse DISPATCH() instead of continue
Benjamin Peterson [Fri, 10 Sep 2010 22:02:31 +0000 (22:02 +0000)]
use DISPATCH() instead of continue

14 years agoadd newline
Benjamin Peterson [Fri, 10 Sep 2010 21:59:21 +0000 (21:59 +0000)]
add newline

14 years agoIssue #9632: Remove sys.setfilesystemencoding() function: use PYTHONFSENCODING
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.