]> granicus.if.org Git - python/log
python
17 years agoRemove duplicate entry.
Georg Brandl [Tue, 15 Jan 2008 06:58:15 +0000 (06:58 +0000)]
Remove duplicate entry.

17 years agoTypo.
Georg Brandl [Tue, 15 Jan 2008 06:55:56 +0000 (06:55 +0000)]
Typo.

17 years agoSmall grammar nit
Raymond Hettinger [Tue, 15 Jan 2008 05:46:43 +0000 (05:46 +0000)]
Small grammar nit

17 years agoTemporarily revert 59967 until GC can be added.
Raymond Hettinger [Tue, 15 Jan 2008 05:39:59 +0000 (05:39 +0000)]
Temporarily revert 59967 until GC can be added.

17 years agoBetter (?) text describing the lack of guarantees provided by qsize(),
Skip Montanaro [Tue, 15 Jan 2008 03:40:20 +0000 (03:40 +0000)]
Better (?) text describing the lack of guarantees provided by qsize(),
empty() and full().

17 years agoTighten the definition of a named tuple.
Raymond Hettinger [Tue, 15 Jan 2008 03:07:42 +0000 (03:07 +0000)]
Tighten the definition of a named tuple.

17 years agoIssue 1820: structseq objects did not work with the % formatting operator or isinsta...
Raymond Hettinger [Tue, 15 Jan 2008 03:02:37 +0000 (03:02 +0000)]
Issue 1820:  structseq objects did not work with the % formatting operator or isinstance(t, tuple).

Orignal patch (without tests) by Leif Walsh.

17 years agoRepair unfinished sentence
Andrew M. Kuchling [Tue, 15 Jan 2008 01:55:32 +0000 (01:55 +0000)]
Repair unfinished sentence

17 years agoAdd many items
Andrew M. Kuchling [Tue, 15 Jan 2008 01:47:32 +0000 (01:47 +0000)]
Add many items

17 years agoMarkup fix
Andrew M. Kuchling [Tue, 15 Jan 2008 01:29:44 +0000 (01:29 +0000)]
Markup fix

17 years agoTypo fixes
Andrew M. Kuchling [Tue, 15 Jan 2008 01:29:16 +0000 (01:29 +0000)]
Typo fixes

17 years agoFix 1698398: Zipfile.printdir() crashed because the format string expected a tuple...
Raymond Hettinger [Mon, 14 Jan 2008 22:58:05 +0000 (22:58 +0000)]
Fix 1698398:  Zipfile.printdir() crashed because the format string expected a tuple object of length six instead of a time.struct_time object.

17 years agoUpdate description of float_info
Andrew M. Kuchling [Mon, 14 Jan 2008 14:48:43 +0000 (14:48 +0000)]
Update description of float_info

17 years agoIssue 1821: configure libffi for amd64 on FreeeBSD.
Thomas Heller [Mon, 14 Jan 2008 10:35:28 +0000 (10:35 +0000)]
Issue 1821: configure libffi for amd64 on FreeeBSD.

17 years agoAdded more comments to the new structseq repr code and implemented several of Neal...
Christian Heimes [Mon, 14 Jan 2008 06:06:19 +0000 (06:06 +0000)]
Added more comments to the new structseq repr code and implemented several of Neal's suggestions.

17 years agoNow that I've learnt about structseq objects I felt like converting sys.float_info...
Christian Heimes [Mon, 14 Jan 2008 04:13:37 +0000 (04:13 +0000)]
Now that I've learnt about structseq objects I felt like converting sys.float_info to a structseq. It's
readonly and help(sys.float_info) explains the attributes nicely.

17 years agoApplied patch #1816: sys.flags patch
Christian Heimes [Mon, 14 Jan 2008 03:42:48 +0000 (03:42 +0000)]
Applied patch #1816: sys.flags patch

17 years agoI missed the most important file
Christian Heimes [Mon, 14 Jan 2008 03:35:38 +0000 (03:35 +0000)]
I missed the most important file

17 years agoAdded new an better structseq representation. E.g. repr(time.gmtime(0)) now returns...
Christian Heimes [Mon, 14 Jan 2008 03:33:52 +0000 (03:33 +0000)]
Added new an better structseq representation. E.g. repr(time.gmtime(0)) now returns 'time.struct_time(tm_year=1970, tm_mon=1, tm_mday=1, tm_hour=0, tm_min=0, tm_sec=0, tm_wday=3, tm_yday=1, tm_isdst=0)' instead of '(1970, 1, 1, 0, 0, 0, 3, 1, 0)'. The feature is part of #1816: sys.flags

17 years ago?Why did my tests not notice this before?
Amaury Forgeot d'Arc [Mon, 14 Jan 2008 01:07:27 +0000 (01:07 +0000)]
?Why did my tests not notice this before?
Slots inheritance is very different from OO inheritance.
This code lead to infinite recursion on classes derived from StructType.

17 years agoRe-apply patch #1700288 (first applied in r59931, rolled back in r59940)
Amaury Forgeot d'Arc [Mon, 14 Jan 2008 00:29:41 +0000 (00:29 +0000)]
Re-apply patch #1700288 (first applied in r59931, rolled back in r59940)
now that ctypes uses a more supported method to create types:

Method cache optimization, by Armin Rigo, ported to 2.6 by Kevin Jacobs.

17 years agoAs discussed in issue 1700288:
Amaury Forgeot d'Arc [Mon, 14 Jan 2008 00:22:44 +0000 (00:22 +0000)]
As discussed in issue 1700288:
ctypes takes some liberties when creating python types: it modifies the types'
__dict__ directly, bypassing all the machinery of type objects which deal with
special methods.  And this broke recent optimisations of method lookup.
Now we try to modify the type with more "official" functions.

17 years agoBack out r59931 - test_ctypes fails with it.
Georg Brandl [Sun, 13 Jan 2008 15:04:05 +0000 (15:04 +0000)]
Back out r59931 - test_ctypes fails with it.

17 years agoCheck in the patch proposed by Ben Hayden (benjhayden) for issue
Ka-Ping Yee [Sun, 13 Jan 2008 11:25:13 +0000 (11:25 +0000)]
Check in the patch proposed by Ben Hayden (benjhayden) for issue
#1550: help('modules') broken by several 3rd party libraries.

Tested with Python build: trunk:54235:59936M -- the reported error
occurs with Django installed (or with any __init__.py present on
the path that raises an exception), and such errors indeed go away
when this change is applied.

17 years agoMake Modules/socketobject.c compile for Windows again.
Thomas Heller [Sun, 13 Jan 2008 11:19:43 +0000 (11:19 +0000)]
Make Modules/socketobject.c compile for Windows again.

17 years agoClarify the effect of text mode.
Georg Brandl [Sun, 13 Jan 2008 09:36:18 +0000 (09:36 +0000)]
Clarify the effect of text mode.

17 years agoFix spelling.
Raymond Hettinger [Sun, 13 Jan 2008 06:18:07 +0000 (06:18 +0000)]
Fix spelling.

17 years agoNamed tuple is a concept, not a specific type.
Raymond Hettinger [Sun, 13 Jan 2008 06:15:15 +0000 (06:15 +0000)]
Named tuple is a concept, not a specific type.

17 years agoFix editing glitch.
Georg Brandl [Sat, 12 Jan 2008 16:11:09 +0000 (16:11 +0000)]
Fix editing glitch.

17 years agoPatch #1700288: Method cache optimization, by Armin Rigo, ported to
Georg Brandl [Sat, 12 Jan 2008 13:47:57 +0000 (13:47 +0000)]
Patch #1700288: Method cache optimization, by Armin Rigo, ported to
2.6 by Kevin Jacobs.

17 years agoMove OSError docs to exceptions doc, remove obsolete descriptions
Georg Brandl [Sat, 12 Jan 2008 10:53:29 +0000 (10:53 +0000)]
Move OSError docs to exceptions doc, remove obsolete descriptions
from os docs, rework posix docs.

17 years agoIssue 1780: Allow leading and trailing whitespace in Decimal constructor,
Mark Dickinson [Sat, 12 Jan 2008 01:56:00 +0000 (01:56 +0000)]
Issue 1780: Allow leading and trailing whitespace in Decimal constructor,
when constructing from a string. Disallow trailing newlines in
Context.create_decimal.

17 years agoUpdate the opcode docs for STORE_MAP and BUILD_MAP
Raymond Hettinger [Fri, 11 Jan 2008 23:25:18 +0000 (23:25 +0000)]
Update the opcode docs for STORE_MAP and BUILD_MAP

17 years agoFix a potential 'SystemError: NULL result without error'.
Thomas Heller [Fri, 11 Jan 2008 20:29:19 +0000 (20:29 +0000)]
Fix a potential 'SystemError: NULL result without error'.
NULL may be a valid return value from PyLong_AsVoidPtr.

Will backport to release25-maint.

17 years agoRaise an error instead of crashing with a segfault when a NULL
Thomas Heller [Fri, 11 Jan 2008 19:34:06 +0000 (19:34 +0000)]
Raise an error instead of crashing with a segfault when a NULL
function pointer is called.

Will backport to release25-maint.

17 years agoBug #1790: update link; remove outdated paragraph
Andrew M. Kuchling [Fri, 11 Jan 2008 19:33:24 +0000 (19:33 +0000)]
Bug #1790: update link; remove outdated paragraph

17 years agoSpeed-up and simplify code urlparse's result objects.
Raymond Hettinger [Fri, 11 Jan 2008 18:04:55 +0000 (18:04 +0000)]
Speed-up and simplify code urlparse's result objects.

17 years agoRemoved unused variable
Christian Heimes [Fri, 11 Jan 2008 15:42:29 +0000 (15:42 +0000)]
Removed unused variable

17 years agoRevert revision 59913, because it was wrong:
Thomas Heller [Fri, 11 Jan 2008 15:38:46 +0000 (15:38 +0000)]
Revert revision 59913, because it was wrong:

  The sqlite3 dll, when compiled in debug mode, must be linked with
  /MDd to use the debug runtime library.  Further, the dll will be
  named sqlite3_d.dll.

17 years agoThe sqlite3 dll, when compiled in debug mode, must be linked with /MDd
Thomas Heller [Fri, 11 Jan 2008 12:41:39 +0000 (12:41 +0000)]
The sqlite3 dll, when compiled in debug mode, must be linked with /MDd
to use the debug runtime library.  Further, the dll will be named
sqlite3_d.dll.

17 years agoDocumentation for r5990[3567].
Georg Brandl [Fri, 11 Jan 2008 09:55:53 +0000 (09:55 +0000)]
Documentation for r5990[3567].

17 years agoNews entries for rev. 5990[567].
Georg Brandl [Fri, 11 Jan 2008 09:20:58 +0000 (09:20 +0000)]
News entries for rev. 5990[567].

17 years agoGuard definition of TIPC_SUB_CANCEL with an #ifdef.
Georg Brandl [Fri, 11 Jan 2008 09:19:11 +0000 (09:19 +0000)]
Guard definition of TIPC_SUB_CANCEL with an #ifdef.

17 years agoAdd an important missing blank.
Thomas Heller [Fri, 11 Jan 2008 08:04:03 +0000 (08:04 +0000)]
Add an important missing blank.

17 years agoImprove usability of the SequenceMatcher by returning named tuples describing match...
Raymond Hettinger [Fri, 11 Jan 2008 03:20:54 +0000 (03:20 +0000)]
Improve usability of the SequenceMatcher by returning named tuples describing match ranges.

17 years agoLet most inspect functions return named tuples
Raymond Hettinger [Fri, 11 Jan 2008 03:04:50 +0000 (03:04 +0000)]
Let most inspect functions return named tuples

17 years agoHave Decimal.as_tuple return a named tuple.
Raymond Hettinger [Fri, 11 Jan 2008 02:24:13 +0000 (02:24 +0000)]
Have Decimal.as_tuple return a named tuple.

17 years agoComment-out missing constant (from rev 59819)
Raymond Hettinger [Fri, 11 Jan 2008 02:12:33 +0000 (02:12 +0000)]
Comment-out missing constant (from rev 59819)

17 years agoDoctest results return a named tuple for readability
Raymond Hettinger [Fri, 11 Jan 2008 01:25:54 +0000 (01:25 +0000)]
Doctest results return a named tuple for readability

17 years agoRun doctests on the collections module
Raymond Hettinger [Fri, 11 Jan 2008 00:23:13 +0000 (00:23 +0000)]
Run doctests on the collections module

17 years agoNeaten-up the named tuple docs
Raymond Hettinger [Thu, 10 Jan 2008 23:00:01 +0000 (23:00 +0000)]
Neaten-up the named tuple docs

17 years agoClosing issue1761.
Amaury Forgeot d'Arc [Thu, 10 Jan 2008 21:59:42 +0000 (21:59 +0000)]
Closing issue1761.
Surprising behaviour of the "$" regexp: it matches the
end of the string, AND just before the newline at the end
of the string::

    re.sub('$', '#', 'foo\n') == 'foo#\n#'

Python is consistent with Perl and the pcre library, so
we just document it.
Guido prefers "\Z" to match only the end of the string.

17 years agoClarify how to add a field to a named tuple.
Raymond Hettinger [Thu, 10 Jan 2008 20:37:12 +0000 (20:37 +0000)]
Clarify how to add a field to a named tuple.

17 years agoExamples for named tuple subclassing should include __slots__
Raymond Hettinger [Thu, 10 Jan 2008 19:15:10 +0000 (19:15 +0000)]
Examples for named tuple subclassing should include __slots__

17 years agoReflow a paragraph, and fix a typo.
Thomas Heller [Thu, 10 Jan 2008 18:45:40 +0000 (18:45 +0000)]
Reflow a paragraph, and fix a typo.

17 years agoCheck for fd of -1 to save fsync() and fstat() call
Andrew M. Kuchling [Thu, 10 Jan 2008 13:37:12 +0000 (13:37 +0000)]
Check for fd of -1 to save fsync() and fstat() call

17 years agoReword entry, not sure I made it much better though.
Neal Norwitz [Thu, 10 Jan 2008 05:42:58 +0000 (05:42 +0000)]
Reword entry, not sure I made it much better though.

17 years agoChange amd64 buildbot scripts to use Visual Studio 2008, and
Thomas Heller [Wed, 9 Jan 2008 21:35:43 +0000 (21:35 +0000)]
Change amd64 buildbot scripts to use Visual Studio 2008, and
to use the required versions of external sources.
External sources are not yet built, so the build-step fails to
built some targets.

17 years agoChange amd64 buildbot scripts to use Visual Studio 2008, and
Thomas Heller [Wed, 9 Jan 2008 21:35:04 +0000 (21:35 +0000)]
Change amd64 buildbot scripts to use Visual Studio 2008, and
to use the required versions of external sources.
External sources are not yet built, so the build-step fails to
built some targets.

17 years agoFixed #1776. __import__() no longer imports modules by file name
Christian Heimes [Wed, 9 Jan 2008 19:56:33 +0000 (19:56 +0000)]
Fixed #1776. __import__() no longer imports modules by file name

17 years agovs9to8 sync
Christian Heimes [Wed, 9 Jan 2008 14:46:10 +0000 (14:46 +0000)]
vs9to8 sync

17 years agoRelated to patch #1114: fix another place where attr_t is assumed to be a long
Andrew M. Kuchling [Wed, 9 Jan 2008 12:27:41 +0000 (12:27 +0000)]
Related to patch #1114: fix another place where attr_t is assumed to be a long

17 years agoSet the output file in the _ctypes Debug|x64 configuration.
Thomas Heller [Wed, 9 Jan 2008 11:19:19 +0000 (11:19 +0000)]
Set the output file in the _ctypes Debug|x64 configuration.

17 years agoFix typo
Raymond Hettinger [Wed, 9 Jan 2008 03:13:20 +0000 (03:13 +0000)]
Fix typo

17 years agominor cleaning
Fred Drake [Wed, 9 Jan 2008 03:11:28 +0000 (03:11 +0000)]
minor cleaning

17 years agoSyntax highlighting only works when >>> lines are accompanied by ... lines
Raymond Hettinger [Wed, 9 Jan 2008 03:02:23 +0000 (03:02 +0000)]
Syntax highlighting only works when >>> lines are accompanied by ... lines

17 years agoIssue 846388. Adds a call to PyErr_CheckSignals to
Facundo Batista [Tue, 8 Jan 2008 21:10:12 +0000 (21:10 +0000)]
Issue 846388. Adds a call to PyErr_CheckSignals to
SRE_MATCH so that signal handlers can be invoked during
long regular expression matches.  It also adds a new
error return value indicating that an exception
occurred in a signal handler during the match, allowing
exceptions in the signal handler to propagate up to the
main loop.  Thanks Josh Hoyt and Ralf Schmitt.

17 years agoBetter method for associating .py files with the interpreter.
Georg Brandl [Tue, 8 Jan 2008 19:42:30 +0000 (19:42 +0000)]
Better method for associating .py files with the interpreter.

17 years agoFix markup errors from r59857 and clarify key.__enter__/__exit__ docs
Georg Brandl [Tue, 8 Jan 2008 16:18:26 +0000 (16:18 +0000)]
Fix markup errors from r59857 and clarify key.__enter__/__exit__ docs

17 years agoAdded __enter__ and __exit__ functions to HKEY object
Christian Heimes [Tue, 8 Jan 2008 15:46:10 +0000 (15:46 +0000)]
Added __enter__ and __exit__ functions to HKEY object
Added ExpandEnvironmentStrings to the _winreg module.

17 years agoUse relative instead of absolute filenames in the C-level tracebacks.
Thomas Heller [Tue, 8 Jan 2008 15:15:09 +0000 (15:15 +0000)]
Use relative instead of absolute filenames in the C-level tracebacks.
This prevents traceback prints pointing to files in this way:

  File "\loewis\25\python\Modules\_ctypes\callbacks.c", line 206, in 'calling callback function'

17 years agoPatch 1114: fix compilation of curses module on 64-bit AIX, and any other LP64 platfo...
Andrew M. Kuchling [Tue, 8 Jan 2008 14:56:02 +0000 (14:56 +0000)]
Patch 1114: fix compilation of curses module on 64-bit AIX, and any other LP64 platforms where attr_t isn't a C long

17 years agoPatch 1137: allow assigning to .buffer_size attribute of PyExpat.parser objects
Andrew M. Kuchling [Tue, 8 Jan 2008 14:30:55 +0000 (14:30 +0000)]
Patch 1137: allow assigning to .buffer_size attribute of PyExpat.parser objects

17 years agoIssue #1757: The hash of a Decimal instance is no longer affected
Facundo Batista [Tue, 8 Jan 2008 12:25:20 +0000 (12:25 +0000)]
Issue #1757: The hash of a Decimal instance is no longer affected
by the current context.  Thanks Mark Dickinson.

17 years agoIt's verbose, not debug
Christian Heimes [Tue, 8 Jan 2008 03:40:04 +0000 (03:40 +0000)]
It's verbose, not debug

17 years agoDocs on named tuple's naming conventions and limits of subclassing
Raymond Hettinger [Tue, 8 Jan 2008 02:24:15 +0000 (02:24 +0000)]
Docs on named tuple's naming conventions and limits of subclassing

17 years agoExpand comment.
Raymond Hettinger [Tue, 8 Jan 2008 02:02:05 +0000 (02:02 +0000)]
Expand comment.

17 years agoDocumentation nits.
Raymond Hettinger [Mon, 7 Jan 2008 21:33:51 +0000 (21:33 +0000)]
Documentation nits.

17 years agoUse get() instead of pop() for the optimized version of _replace().
Raymond Hettinger [Mon, 7 Jan 2008 20:56:05 +0000 (20:56 +0000)]
Use get() instead of pop() for the optimized version of _replace().

17 years agoMinor markup fix
Raymond Hettinger [Mon, 7 Jan 2008 20:17:35 +0000 (20:17 +0000)]
Minor markup fix

17 years agoCleanup named tuple subclassing example.
Raymond Hettinger [Mon, 7 Jan 2008 20:07:38 +0000 (20:07 +0000)]
Cleanup named tuple subclassing example.

17 years agoFixed indention problem that caused the second TIPC test to run on systems without...
Christian Heimes [Mon, 7 Jan 2008 19:58:41 +0000 (19:58 +0000)]
Fixed indention problem that caused the second TIPC test to run on systems without TIPC

17 years agoAdded section about adding contextual information to log output.
Vinay Sajip [Mon, 7 Jan 2008 19:40:10 +0000 (19:40 +0000)]
Added section about adding contextual information to log output.

17 years agoClarify metaclass docs and add example.
Georg Brandl [Mon, 7 Jan 2008 19:17:10 +0000 (19:17 +0000)]
Clarify metaclass docs and add example.

17 years agoFix two further doc build warnings.
Georg Brandl [Mon, 7 Jan 2008 18:57:03 +0000 (18:57 +0000)]
Fix two further doc build warnings.

17 years agoFix inconsistent title levels -- it made the whole doc build crash horribly.
Raymond Hettinger [Mon, 7 Jan 2008 18:52:19 +0000 (18:52 +0000)]
Fix inconsistent title levels -- it made the whole doc build crash horribly.

17 years ago#467924, patch by Alan McIntyre: Add ZipFile.extract and ZipFile.extractall.
Georg Brandl [Mon, 7 Jan 2008 18:47:44 +0000 (18:47 +0000)]
#467924, patch by Alan McIntyre: Add ZipFile.extract and ZipFile.extractall.

17 years agoFix #define ordering.
Georg Brandl [Mon, 7 Jan 2008 18:41:34 +0000 (18:41 +0000)]
Fix #define ordering.

17 years agoRestructure urllib doc structure.
Georg Brandl [Mon, 7 Jan 2008 18:23:27 +0000 (18:23 +0000)]
Restructure urllib doc structure.

17 years agoMake Python compile with --disable-unicode.
Georg Brandl [Mon, 7 Jan 2008 18:16:36 +0000 (18:16 +0000)]
Make Python compile with --disable-unicode.

17 years agopatch #1668: clarify envvar docs; rename THREADDEBUG to PYTHONTHREADDEBUG.
Georg Brandl [Mon, 7 Jan 2008 17:25:53 +0000 (17:25 +0000)]
patch #1668: clarify envvar docs; rename THREADDEBUG to PYTHONTHREADDEBUG.

17 years agoPatch #602345 by Neal Norwitz and me: add -B option and PYTHONDONTWRITEBYTECODE envva...
Georg Brandl [Mon, 7 Jan 2008 17:09:35 +0000 (17:09 +0000)]
Patch #602345 by Neal Norwitz and me: add -B option and PYTHONDONTWRITEBYTECODE envvar to skip writing bytecode.

17 years agoRestore "somenamedtuple" as the "class" for named tuple attrs.
Georg Brandl [Mon, 7 Jan 2008 16:43:47 +0000 (16:43 +0000)]
Restore "somenamedtuple" as the "class" for named tuple attrs.

17 years agoAdded a hyperlink from sequence types to mutable sequence types.
Mark Summerfield [Mon, 7 Jan 2008 16:42:08 +0000 (16:42 +0000)]
Added a hyperlink from sequence types to mutable sequence types.

17 years ago#1755: typo.
Georg Brandl [Mon, 7 Jan 2008 16:41:57 +0000 (16:41 +0000)]
#1755: typo.

17 years agoIssue #1646: Make socket support TIPC. The socket module now has support
Christian Heimes [Mon, 7 Jan 2008 16:12:44 +0000 (16:12 +0000)]
Issue #1646: Make socket support TIPC. The socket module now has support
for TIPC under Linux, see http://tipc.sf.net/ for more information.
Thanks to Alberto Bertogli for the patch

17 years agoUpdated docs for basicConfig to indicate it's a no-op if handlers have been defined...
Vinay Sajip [Mon, 7 Jan 2008 15:30:36 +0000 (15:30 +0000)]
Updated docs for basicConfig to indicate it's a no-op if handlers have been defined for the root logger.

17 years agoClean up markup.
Georg Brandl [Mon, 7 Jan 2008 09:18:17 +0000 (09:18 +0000)]
Clean up markup.

17 years agoConsistency nit.
Georg Brandl [Mon, 7 Jan 2008 09:16:08 +0000 (09:16 +0000)]
Consistency nit.

17 years agoChange virtual class name of __iter__ to "object" in order to make it linkable.
Georg Brandl [Mon, 7 Jan 2008 09:07:38 +0000 (09:07 +0000)]
Change virtual class name of __iter__ to "object" in order to make it linkable.