]> granicus.if.org Git - python/log
python
17 years agoAdded LoggerAdapter class, changed copyright dates, made check for extra parameter...
Vinay Sajip [Fri, 18 Jan 2008 15:55:57 +0000 (15:55 +0000)]
Added LoggerAdapter class, changed copyright dates, made check for extra parameter passed to logging methods explicitly against None rather than a truth value.

17 years agoAdded section on passing contextual information to logging and documentation for...
Vinay Sajip [Fri, 18 Jan 2008 15:54:14 +0000 (15:54 +0000)]
Added section on passing contextual information to logging and documentation for the LoggerAdapter class.

17 years agoAdded win_add2path.py to Tools/scripts/
Christian Heimes [Fri, 18 Jan 2008 11:58:50 +0000 (11:58 +0000)]
Added win_add2path.py to Tools/scripts/
Added builddoc.bat to Doc/

17 years agoBuild _ctypes after the other extensions. Its build process depends
Christian Heimes [Fri, 18 Jan 2008 09:51:43 +0000 (09:51 +0000)]
Build _ctypes after the other extensions. Its build process depends
on the _weakref extension (and maybe other modules, too)

17 years agoCoverity CID #168
Christian Heimes [Fri, 18 Jan 2008 08:53:45 +0000 (08:53 +0000)]
Coverity CID #168
leaked_storage: Returned without freeing storage "fp"

17 years agoCoverity issue CID #169
Christian Heimes [Fri, 18 Jan 2008 08:47:59 +0000 (08:47 +0000)]
Coverity issue CID #169
local_ptr_assign_local: Assigning address of stack variable "namebuf" to pointer "filename"
out_of_scope: Variable "namebuf" goes out of scope
use_invalid: Used "filename" pointing to out-of-scope variable "namebuf"

17 years agoCoverity issue CID #182
Christian Heimes [Fri, 18 Jan 2008 08:04:57 +0000 (08:04 +0000)]
Coverity issue CID #182
size_error: Allocating 1 bytes to pointer "children", which needs at least 4 bytes

17 years agoCoverity issue CID #167
Christian Heimes [Fri, 18 Jan 2008 07:45:30 +0000 (07:45 +0000)]
Coverity issue CID #167
Event alloc_fn: Called allocation function "metacompile" [model]
Event var_assign: Assigned variable "gr" to storage returned from "metacompile"
gr = metacompile(n);
Event pass_arg: Variable "gr" not freed or pointed-to in function "maketables" [model]
g = maketables(gr);
   translatelabels(g);
   addfirstsets(g);
Event leaked_storage: Returned without freeing storage "gr"
return g;

17 years agoCoverity issue CID #197
Christian Heimes [Fri, 18 Jan 2008 07:30:20 +0000 (07:30 +0000)]
Coverity issue CID #197
var_decl: Declared variable "stm" without initializer
ninit_use_in_call: Using uninitialized value "stm" (field "stm".tm_zone uninitialized) in call to function "mktime"

17 years agoTypo fix
Andrew M. Kuchling [Fri, 18 Jan 2008 02:42:52 +0000 (02:42 +0000)]
Typo fix

17 years agoBump verson
Andrew M. Kuchling [Fri, 18 Jan 2008 02:26:16 +0000 (02:26 +0000)]
Bump verson

17 years agoclearcache() needs to remove the dict as well as clear it.
Raymond Hettinger [Fri, 18 Jan 2008 00:10:42 +0000 (00:10 +0000)]
clearcache() needs to remove the dict as well as clear it.

17 years agoFix markup
Raymond Hettinger [Thu, 17 Jan 2008 23:56:56 +0000 (23:56 +0000)]
Fix markup

17 years agoFix-up Timer() example.
Raymond Hettinger [Thu, 17 Jan 2008 23:32:01 +0000 (23:32 +0000)]
Fix-up Timer() example.

17 years agoUpdated new property syntax. An elaborate example for subclassing and the getter...
Christian Heimes [Thu, 17 Jan 2008 23:01:44 +0000 (23:01 +0000)]
Updated new property syntax. An elaborate example for subclassing and the getter was missing.
Added comment about VS 2008 and PGO builds.

17 years agoAdd advice on choosing between scheduler and threading.Timer().
Raymond Hettinger [Thu, 17 Jan 2008 22:27:49 +0000 (22:27 +0000)]
Add advice on choosing between scheduler and threading.Timer().

17 years agoCorrection from Jordan Lewis: halfdelay() uses tenths of a second, not milliseconds
Andrew M. Kuchling [Thu, 17 Jan 2008 19:49:24 +0000 (19:49 +0000)]
Correction from Jordan Lewis: halfdelay() uses tenths of a second, not milliseconds

17 years agoIssue #1861: Add read-only attribute listing upcoming events in the order they will...
Raymond Hettinger [Thu, 17 Jan 2008 19:31:38 +0000 (19:31 +0000)]
Issue #1861:  Add read-only attribute listing upcoming events in the order they will be run.

17 years agoFix a function pointer declaration to silence the compiler.
Brett Cannon [Thu, 17 Jan 2008 18:45:10 +0000 (18:45 +0000)]
Fix a function pointer declaration to silence the compiler.

17 years agoRevise 3141 section a bit; add some Windows items
Andrew M. Kuchling [Thu, 17 Jan 2008 12:00:15 +0000 (12:00 +0000)]
Revise 3141 section a bit; add some Windows items

17 years agoFixes (accepts patch) issue1339 - http://bugs.python.org/issue1339
Gregory P. Smith [Thu, 17 Jan 2008 08:35:49 +0000 (08:35 +0000)]
Fixes (accepts patch) issue1339 - http://bugs.python.org/issue1339
- Factor out the duplication of EHLO/HELO in login() and sendmail() to
  a new function, ehlo_or_helo_if_needed().
- Use ehlo_or_helo_if_needed() in starttls()
- Check for the starttls exception in starttls() in the same way as
  login() checks for the auth extension.
Contributed by Bill Fenner.

17 years agoNote versionadded.
Raymond Hettinger [Thu, 17 Jan 2008 08:07:05 +0000 (08:07 +0000)]
Note versionadded.

17 years agoentry for r60015
Gregory P. Smith [Thu, 17 Jan 2008 08:03:17 +0000 (08:03 +0000)]
entry for r60015

17 years agoComply with RFC 3207.
Gregory P. Smith [Thu, 17 Jan 2008 07:43:20 +0000 (07:43 +0000)]
Comply with RFC 3207.
Fixes issue 829951 - http://bugs.python.org/issue829951

17 years agoMake starmap() match its pure python definition and accept any itertable input (not...
Raymond Hettinger [Thu, 17 Jan 2008 03:02:14 +0000 (03:02 +0000)]
Make starmap() match its pure python definition and accept any itertable input (not just tuples).

17 years agoAdd news entry.
Raymond Hettinger [Wed, 16 Jan 2008 23:49:35 +0000 (23:49 +0000)]
Add news entry.

17 years agoAdd queues will alternative fetch orders (priority based and stack based).
Raymond Hettinger [Wed, 16 Jan 2008 23:40:45 +0000 (23:40 +0000)]
Add queues will alternative fetch orders (priority based and stack based).

17 years agoMinor wordsmithing.
Raymond Hettinger [Wed, 16 Jan 2008 23:38:16 +0000 (23:38 +0000)]
Minor wordsmithing.

17 years agoUse 'g' instead of 'D' as the ctypes typecode for c_longdouble, for
Thomas Heller [Wed, 16 Jan 2008 20:34:37 +0000 (20:34 +0000)]
Use 'g' instead of 'D' as the ctypes typecode for c_longdouble, for
compliance with PEP 3118.

17 years agoDoc build should work with 2.4 now.
Georg Brandl [Wed, 16 Jan 2008 20:29:00 +0000 (20:29 +0000)]
Doc build should work with 2.4 now.

17 years agoAdd Python-specific content to Doc dir. Update configuration file
Georg Brandl [Wed, 16 Jan 2008 20:27:56 +0000 (20:27 +0000)]
Add Python-specific content to Doc dir. Update configuration file
to work with the newest Sphinx.

17 years agoRaise a TypeError instead of a ValueError when too many initializers
Thomas Heller [Wed, 16 Jan 2008 19:45:51 +0000 (19:45 +0000)]
Raise a TypeError instead of a ValueError when too many initializers
are used in a Structure or Union constructor.

17 years agoRaise a TypeError if conflicting positional and named arguments are
Thomas Heller [Wed, 16 Jan 2008 19:37:33 +0000 (19:37 +0000)]
Raise a TypeError if conflicting positional and named arguments are
passed to a Structure or Union constructor.

17 years agoConvert the internal ctypes array type cache to a WeakValueDict so
Thomas Heller [Wed, 16 Jan 2008 19:16:27 +0000 (19:16 +0000)]
Convert the internal ctypes array type cache to a WeakValueDict so
that array types do not live longer than needed.

17 years agoFix MSDN library URL. (#1854)
Georg Brandl [Wed, 16 Jan 2008 16:56:29 +0000 (16:56 +0000)]
Fix MSDN library URL. (#1854)

17 years agoMarkup fix
Andrew M. Kuchling [Wed, 16 Jan 2008 13:01:51 +0000 (13:01 +0000)]
Markup fix

17 years agoAdd PEP 3141 section
Andrew M. Kuchling [Wed, 16 Jan 2008 03:17:25 +0000 (03:17 +0000)]
Add PEP 3141 section

17 years agoDocstring typos
Andrew M. Kuchling [Wed, 16 Jan 2008 00:32:03 +0000 (00:32 +0000)]
Docstring typos

17 years agotest_doctest fails since r59984.
Amaury Forgeot d'Arc [Tue, 15 Jan 2008 21:25:11 +0000 (21:25 +0000)]
test_doctest fails since r59984.
Not sure if these are the correct values, but save_stdout has to be set before its usage...

17 years agoFix-up half-written paragraph in the docs
Raymond Hettinger [Tue, 15 Jan 2008 21:22:47 +0000 (21:22 +0000)]
Fix-up half-written paragraph in the docs

17 years agoRefactor if/elif chain for clarity and speed. Remove dependency on subclasses having...
Raymond Hettinger [Tue, 15 Jan 2008 20:52:42 +0000 (20:52 +0000)]
Refactor if/elif chain for clarity and speed.  Remove dependency on subclasses having to implement _empty and _full.

17 years agoIssue #1786 (by myself): pdb should use its own stdin/stdout around an
Guido van Rossum [Tue, 15 Jan 2008 17:59:29 +0000 (17:59 +0000)]
Issue #1786 (by myself): pdb should use its own stdin/stdout around an
exec call and when creating a recursive instance.

17 years agoRestore description of sys.dont_write_bytecode.
Andrew M. Kuchling [Tue, 15 Jan 2008 14:38:05 +0000 (14:38 +0000)]
Restore description of sys.dont_write_bytecode.

The duplication is intentional -- this paragraph is in a section
describing additions to the sys module, and there's a later section
that mentions the switch.  I think most people scan the what's-new and
don't read it in detail, so a bit of duplication is OK.

17 years agoAdd rational.Rational as an implementation of numbers.Rational with infinite
Jeffrey Yasskin [Tue, 15 Jan 2008 07:46:24 +0000 (07:46 +0000)]
Add rational.Rational as an implementation of numbers.Rational with infinite
precision. This has been discussed at http://bugs.python.org/issue1682. It's
useful primarily for teaching, but it also demonstrates how to implement a
member of the numeric tower, including fallbacks for mixed-mode arithmetic.

I expect to write a couple more patches in this area:
 * Rational.from_decimal()
 * Rational.trim/approximate() (maybe with different names)
 * Maybe remove the parentheses from Rational.__str__()
 * Maybe rename one of the Rational classes
 * Maybe make Rational('3/2') work.

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