]>
granicus.if.org Git - python/log
Raymond Hettinger [Thu, 15 Nov 2007 02:55:42 +0000 (02:55 +0000)]
Small improvement to the implementation of __replace__().
Raymond Hettinger [Thu, 15 Nov 2007 02:44:53 +0000 (02:44 +0000)]
Accept Issac Morland's suggestion for __replace__ to allow multiple replacements
(suprisingly, this simplifies the signature, improves clarity, and is comparably fast).
Update the docs to reflect a previous change to the function name.
Add an example to the docs showing how to override the default __repr__ method.
Raymond Hettinger [Wed, 14 Nov 2007 23:02:30 +0000 (23:02 +0000)]
Add test for __fields__ being read-only
Raymond Hettinger [Wed, 14 Nov 2007 22:56:16 +0000 (22:56 +0000)]
Make __fields__ read-only. Suggested by Issac Morland
Georg Brandl [Wed, 14 Nov 2007 13:59:09 +0000 (13:59 +0000)]
Remove dead link from random docs.
Amaury Forgeot d'Arc [Tue, 13 Nov 2007 21:54:28 +0000 (21:54 +0000)]
Merge from py3k branch:
Correction for issue1265 (pdb bug with "with" statement).
When an unfinished generator-iterator is garbage collected, PyEval_EvalFrameEx
is called with a GeneratorExit exception set. This leads to funny results
if the sys.settrace function itself makes use of generators.
A visible effect is that the settrace function is reset to None.
Another is that the eventual "finally" block of the generator is not called.
It is necessary to save/restore the exception around the call to the trace
function.
This happens a lot with py3k: isinstance() of an ABCMeta instance runs
def __instancecheck__(cls, instance):
"""Override for isinstance(instance, cls)."""
return any(cls.__subclasscheck__(c)
for c in {instance.__class__, type(instance)})
which lets an opened generator expression each time it returns True.
Backport candidate, even if the case is less frequent in 2.5.
Guido van Rossum [Mon, 12 Nov 2007 20:06:40 +0000 (20:06 +0000)]
Add the test from issue
1704621 (the issue itself is already fixed here).
Christian Heimes [Mon, 12 Nov 2007 18:58:08 +0000 (18:58 +0000)]
readline module cleanup
fixed indention to tabs
use Py_RETURN_NONE macro
added more error checks to on_completion_display_matches_hook
open question: Does PyList_SetItem(l, i, o) steal a reference to o in the case of an error?
Walter Dörwald [Mon, 12 Nov 2007 10:01:33 +0000 (10:01 +0000)]
Fix TextCalendar.prweek(). This closes issue #1427.
Martin v. Löwis [Mon, 12 Nov 2007 05:14:05 +0000 (05:14 +0000)]
Patch #1418: Make the AC_REPLACE_FUNCS object files actually work.
Martin v. Löwis [Mon, 12 Nov 2007 04:53:02 +0000 (04:53 +0000)]
Only set rl_completion_display_matches_hook if there
is a Python hook function. Fixes #1425.
Andrew M. Kuchling [Mon, 12 Nov 2007 01:25:21 +0000 (01:25 +0000)]
Re-word sentence
Christian Heimes [Mon, 12 Nov 2007 01:20:56 +0000 (01:20 +0000)]
Fix for #1427: Error in standard module calendar
the prweek() method is still broken and I can't figure out how it suppose to work.
Christian Heimes [Mon, 12 Nov 2007 01:15:40 +0000 (01:15 +0000)]
Added new decorator syntax to property.__doc__
Guido prefers _x over __x.
Georg Brandl [Sun, 11 Nov 2007 15:16:16 +0000 (15:16 +0000)]
Remove duplication of "this".
Vinay Sajip [Sun, 11 Nov 2007 14:27:30 +0000 (14:27 +0000)]
Fixed a bug reported (in private email, by Robert Crida) in logging configuration whereby child loggers of a logger named in a configuration file, which are not themselves named in the configuration, are disabled when the configuration is applied.
Guido van Rossum [Sat, 10 Nov 2007 22:12:24 +0000 (22:12 +0000)]
Issue 1416. Add getter, setter, deleter methods to properties that can be
used as decorators to create fully-populated properties.
Raymond Hettinger [Sat, 10 Nov 2007 01:54:03 +0000 (01:54 +0000)]
Use a freelist to speed-up block allocation and deallocation in collections.deque().
Raymond Hettinger [Fri, 9 Nov 2007 23:14:44 +0000 (23:14 +0000)]
Optimize common case for dict.fromkeys().
Martin v. Löwis [Fri, 9 Nov 2007 22:56:30 +0000 (22:56 +0000)]
Add Amaury Forgeot d'Arc.
Georg Brandl [Fri, 9 Nov 2007 17:33:23 +0000 (17:33 +0000)]
Correct a comment about testing methods - nowadays most
tests don't run directly on import.
Georg Brandl [Fri, 9 Nov 2007 13:08:48 +0000 (13:08 +0000)]
Fix misleading example.
Georg Brandl [Fri, 9 Nov 2007 12:31:43 +0000 (12:31 +0000)]
Fix seealso link to sets docs. Do not merge to Py3k.
Raymond Hettinger [Thu, 8 Nov 2007 18:47:51 +0000 (18:47 +0000)]
Reposition the decref (spotted by eagle-eye norwitz).
Raymond Hettinger [Thu, 8 Nov 2007 02:52:43 +0000 (02:52 +0000)]
Add set.isdisjoint()
Christian Heimes [Wed, 7 Nov 2007 18:30:22 +0000 (18:30 +0000)]
Backport of Guido's review of my patch.
Christian Heimes [Wed, 7 Nov 2007 17:50:54 +0000 (17:50 +0000)]
Backported fix for bug #1392 from py3k branch r58903.
Nick Coghlan [Wed, 7 Nov 2007 11:57:51 +0000 (11:57 +0000)]
Add missing NEWS entry
Raymond Hettinger [Wed, 7 Nov 2007 02:45:46 +0000 (02:45 +0000)]
Add build option for faster loop execution.
Raymond Hettinger [Wed, 7 Nov 2007 02:26:17 +0000 (02:26 +0000)]
Optimize dict.fromkeys() with dict inputs. Useful for resetting bag/muliset counts for example.
Raymond Hettinger [Wed, 7 Nov 2007 01:13:09 +0000 (01:13 +0000)]
Fix marshal's incorrect handling of subclasses of builtin types (backport candidate).
Guido van Rossum [Tue, 6 Nov 2007 23:32:56 +0000 (23:32 +0000)]
Add missing "return NULL" in overflow check in PyObject_Repr().
Gregory P. Smith [Tue, 6 Nov 2007 00:19:03 +0000 (00:19 +0000)]
Fixes Issue 1385: The hmac module now computes the correct hmac when using
hashes with a block size other than 64 bytes (such as sha384 and sha512).
Mark Summerfield [Mon, 5 Nov 2007 14:38:50 +0000 (14:38 +0000)]
Clarified the fact that you can have comments for individual archive
members even though comments to the archive itself aren't currently
supported.
Mark Summerfield [Mon, 5 Nov 2007 09:22:48 +0000 (09:22 +0000)]
Added cross-references between the various archive file formats.
Gregory P. Smith [Mon, 5 Nov 2007 09:07:40 +0000 (09:07 +0000)]
* db->get_flags is only available in BerkeleyDB >= 4.2
Gregory P. Smith [Mon, 5 Nov 2007 09:06:28 +0000 (09:06 +0000)]
* db->get_types is only available in BerkeleyDB >= 4.2
* get compiling with older versions of python again for a stand alone release.
Gregory P. Smith [Mon, 5 Nov 2007 02:56:31 +0000 (02:56 +0000)]
Add the bsddb.db.DBEnv.lock_id_free method.
Improve test_lock's tempdir creation and cleanup.
Gregory P. Smith [Mon, 5 Nov 2007 02:32:26 +0000 (02:32 +0000)]
Fixes bug 477182 on pybsddb.sf.net. DB objects now load the flags and
pay attention to them when opening an existing database. This means
that d[] behaves properly even on databases previously created with DB_DUP
or DB_DUPSORT flags to allow duplicate keys.
http://sourceforge.net/tracker/index.php?func=detail&aid=477182&group_id=13900&atid=113900
Do not backport, this bugfix could be considered an API change.
Georg Brandl [Sun, 4 Nov 2007 17:43:49 +0000 (17:43 +0000)]
Fix syntax for versionchanged markup.
Skip Montanaro [Sun, 4 Nov 2007 15:56:52 +0000 (15:56 +0000)]
Note change to get_dialect semantics in 2.5. Will backport to 2.5.
Brett Cannon [Sat, 3 Nov 2007 06:47:02 +0000 (06:47 +0000)]
Add a missing quotation mark.
Georg Brandl [Fri, 2 Nov 2007 20:06:17 +0000 (20:06 +0000)]
Make "hashable" a glossary entry and clarify docs on __cmp__, __eq__ and __hash__.
I hope the concept of hashability is better understandable now.
Thanks to Tim Hatch for pointing out the flaws here.
Thomas Heller [Fri, 2 Nov 2007 19:11:23 +0000 (19:11 +0000)]
Enable the full ctypes c_longdouble tests again.
Thomas Heller [Fri, 2 Nov 2007 19:10:24 +0000 (19:10 +0000)]
Issue #1292: On alpha, arm, ppc, and s390 linux systems the
--with-system-ffi configure option defaults to "yes" because the
bundled libffi sources are too old.
Nick Coghlan [Fri, 2 Nov 2007 10:09:12 +0000 (10:09 +0000)]
Fix for bug
1705170 - contextmanager swallowing StopIteration (2.5 backport candidate)
Mark Summerfield [Fri, 2 Nov 2007 08:24:59 +0000 (08:24 +0000)]
Added more file-handling related cross-references.
Gregory P. Smith [Thu, 1 Nov 2007 21:17:47 +0000 (21:17 +0000)]
false "fix" undone as correct problem was found and fixed.
Gregory P. Smith [Thu, 1 Nov 2007 21:15:36 +0000 (21:15 +0000)]
Undo revision 58533 58534 fixes. Those were a workaround for
a problem introduced by 58385.
Gregory P. Smith [Thu, 1 Nov 2007 21:08:14 +0000 (21:08 +0000)]
Fix bug introduced in revision 58385. Database keys could no longer
have NULL bytes in them. Replace the errant strdup with a
malloc+memcpy. Adds a unit test for the correct behavior.
Georg Brandl [Thu, 1 Nov 2007 20:37:02 +0000 (20:37 +0000)]
Fix markup glitch.
Christian Heimes [Thu, 1 Nov 2007 20:11:06 +0000 (20:11 +0000)]
Removed non ASCII text from test as requested by Guido. Sorry :/
Christian Heimes [Thu, 1 Nov 2007 19:48:10 +0000 (19:48 +0000)]
Backport of import tests for bug http://bugs.python.org/issue1293 and bug http://bugs.python.org/issue1342
Georg Brandl [Thu, 1 Nov 2007 17:19:33 +0000 (17:19 +0000)]
#1364: os.lstat is available on Windows too, as an alias to os.stat.
Raymond Hettinger [Wed, 31 Oct 2007 22:15:49 +0000 (22:15 +0000)]
Sets are marshalable.
Raymond Hettinger [Wed, 31 Oct 2007 21:57:58 +0000 (21:57 +0000)]
Clarify the reasons why pickle is almost always better than marshal
Martin v. Löwis [Wed, 31 Oct 2007 17:19:33 +0000 (17:19 +0000)]
Adding Christian Heimes.
Neal Norwitz [Wed, 31 Oct 2007 06:33:20 +0000 (06:33 +0000)]
Fix some compiler warnings for signed comparisons on Unix and Windows.
Georg Brandl [Tue, 30 Oct 2007 17:57:12 +0000 (17:57 +0000)]
Make example about hiding None return values at the prompt clearer.
Georg Brandl [Tue, 30 Oct 2007 17:51:18 +0000 (17:51 +0000)]
Use correct markup.
Kurt B. Kaiser [Tue, 30 Oct 2007 02:38:54 +0000 (02:38 +0000)]
check in Tal Einat's update to tabpage.py
Patch
1612746
M configDialog.py
M NEWS.txt
AM tabbedpages.py
Guido van Rossum [Mon, 29 Oct 2007 22:15:05 +0000 (22:15 +0000)]
Backport fixes for the code that decodes octal escapes (and for PyString
also hex escapes) -- this was reaching beyond the end of the input string
buffer, even though it is not supposed to be \0-terminated.
This has no visible effect but is clearly the correct thing to do.
(In 3.0 it had a visible effect after removing ob_sstate from PyString.)
Guido van Rossum [Mon, 29 Oct 2007 20:52:45 +0000 (20:52 +0000)]
Patch 1353 by Jacob Winther.
Add mp4 mapping to mimetypes.py.
Kurt B. Kaiser [Sun, 28 Oct 2007 19:03:59 +0000 (19:03 +0000)]
Add confirmation dialog before printing. Patch
1717170 Tal Einat.
Hye-Shik Chang [Sun, 28 Oct 2007 12:38:09 +0000 (12:38 +0000)]
Enable platform-specific tweaks for FreeBSD 8 (exactly same to FreeBSD 7's yet)
Hye-Shik Chang [Sun, 28 Oct 2007 11:19:02 +0000 (11:19 +0000)]
- Add support for FreeBSD 8 which is recently forked from FreeBSD 7.
- Regenerate IN module for most recent maintenance tree of FreeBSD 6 and 7.
Neal Norwitz [Sat, 27 Oct 2007 22:32:21 +0000 (22:32 +0000)]
Update URL for Pygments. 0.8.1 is no longer available
Georg Brandl [Fri, 26 Oct 2007 18:30:41 +0000 (18:30 +0000)]
Fix new pop() method on os.environ on ignorecase-platforms.
Kurt B. Kaiser [Fri, 26 Oct 2007 00:10:09 +0000 (00:10 +0000)]
1. Add comments to provide top-level documentation.
2. Refactor to use more descriptive names.
3. Enhance tests in main().
Kurt B. Kaiser [Thu, 25 Oct 2007 22:43:45 +0000 (22:43 +0000)]
Correct an ancient bug in an unused path by removing that path: register() is
now idempotent.
Thomas Heller [Thu, 25 Oct 2007 19:47:32 +0000 (19:47 +0000)]
ffi_type_longdouble may be already #defined.
See issue 1324.
Matthias Klose [Thu, 25 Oct 2007 06:37:24 +0000 (06:37 +0000)]
- Build using system ffi library on arm*-linux*, pass --with-system-ffi to CONFIG_ARGS
Raymond Hettinger [Thu, 25 Oct 2007 02:26:58 +0000 (02:26 +0000)]
Missing DECREFs
Georg Brandl [Wed, 24 Oct 2007 21:40:38 +0000 (21:40 +0000)]
Bug #1287: make os.environ.pop() work as expected.
Matthias Klose [Wed, 24 Oct 2007 20:00:44 +0000 (20:00 +0000)]
- Build using system ffi library on arm*-linux*.
Thomas Heller [Wed, 24 Oct 2007 19:50:45 +0000 (19:50 +0000)]
Added unittest for calling a function with paramflags (backport from py3k branch).
Facundo Batista [Wed, 24 Oct 2007 19:11:08 +0000 (19:11 +0000)]
Issue 1290. CharacterData.__repr__ was constructing a string
in response that keeped having a non-ascii character.
Vinay Sajip [Wed, 24 Oct 2007 10:47:06 +0000 (10:47 +0000)]
Bug #1321: Fixed logic error in TimedRotatingFileHandler.__init__()
Raymond Hettinger [Wed, 24 Oct 2007 02:05:51 +0000 (02:05 +0000)]
Fixup error return and add support for intermixed ints and floats/
Raymond Hettinger [Wed, 24 Oct 2007 01:28:33 +0000 (01:28 +0000)]
Optimize sum() for integer and float inputs.
Raymond Hettinger [Tue, 23 Oct 2007 21:23:07 +0000 (21:23 +0000)]
Fixup news entry
Andrew M. Kuchling [Tue, 23 Oct 2007 20:55:47 +0000 (20:55 +0000)]
Update name
Raymond Hettinger [Tue, 23 Oct 2007 20:37:41 +0000 (20:37 +0000)]
Shorter name for namedtuple()
Guido van Rossum [Tue, 23 Oct 2007 19:25:41 +0000 (19:25 +0000)]
Issue 1307 by Derek Shockey, fox the same bug for RCPT.
Neal: please backport!
Georg Brandl [Tue, 23 Oct 2007 18:21:35 +0000 (18:21 +0000)]
Update Pygments version from externals.
Neal Norwitz [Tue, 23 Oct 2007 05:44:27 +0000 (05:44 +0000)]
Bug #1313, fix typo (wrong variable name) in example.
Travis E. Oliphant [Tue, 23 Oct 2007 02:40:56 +0000 (02:40 +0000)]
Add phuang patch from Issue 708374 which adds offset parameter to mmap module.
Guido van Rossum [Mon, 22 Oct 2007 16:27:19 +0000 (16:27 +0000)]
Issue #1307, patch by Derek Shockey.
When "MAIL" is received without args, an exception happens instead of
sending a 501 syntax error response.
Neal Norwitz [Mon, 22 Oct 2007 04:47:54 +0000 (04:47 +0000)]
Add Chris Monson so he can edit PEPs.
Georg Brandl [Sun, 21 Oct 2007 12:15:05 +0000 (12:15 +0000)]
Add :term:s for "new-style class".
Georg Brandl [Sun, 21 Oct 2007 12:10:28 +0000 (12:10 +0000)]
Add :term:s for iterator.
Georg Brandl [Sun, 21 Oct 2007 10:52:38 +0000 (10:52 +0000)]
Add :term: for generators.
Georg Brandl [Sun, 21 Oct 2007 10:46:24 +0000 (10:46 +0000)]
Unify "file-descriptor" to "file descriptor".
Georg Brandl [Sun, 21 Oct 2007 10:45:46 +0000 (10:45 +0000)]
Add :term:s for descriptors.
Georg Brandl [Sun, 21 Oct 2007 10:32:54 +0000 (10:32 +0000)]
Add markup to new function descriptions.
Georg Brandl [Sun, 21 Oct 2007 10:24:20 +0000 (10:24 +0000)]
Unify "byte code" to "bytecode". Also sprinkle :term: markup for it.
Georg Brandl [Sun, 21 Oct 2007 10:01:56 +0000 (10:01 +0000)]
Remove duplicate crasher.
Armin Rigo [Sun, 21 Oct 2007 09:14:15 +0000 (09:14 +0000)]
Add a crasher for the long-standing issue with closing a file
while another thread uses it.
Andrew M. Kuchling [Sat, 20 Oct 2007 19:39:35 +0000 (19:39 +0000)]
Use correct header line
Andrew M. Kuchling [Sat, 20 Oct 2007 19:35:18 +0000 (19:35 +0000)]
Various items