]> granicus.if.org Git - python/log
python
18 years agominor tweaks
Skip Montanaro [Mon, 31 Jul 2006 03:09:45 +0000 (03:09 +0000)]
minor tweaks

18 years agoZipFile.close(): Kill the other struct.pack deprecation
Tim Peters [Mon, 31 Jul 2006 02:53:03 +0000 (02:53 +0000)]
ZipFile.close():  Kill the other struct.pack deprecation
warning on Windows.

Afraid I can't detect a pattern to when the pack formats decide
to use a signed or unsigned format code -- appears nearly
arbitrary to my eyes.  So I left all the pack formats alone and
changed the special-case data values instead.

18 years agoZipFile.close(): Killed one of the struct.pack deprecation
Tim Peters [Mon, 31 Jul 2006 02:40:23 +0000 (02:40 +0000)]
ZipFile.close():  Killed one of the struct.pack deprecation
warnings on Win32.

Also added an XXX about the line:

                pos3 = self.fp.tell()

`pos3` is never referenced, and I have no idea what the code
intended to do instead.

18 years agoRedo the comment about the 2.5 change in quoted-newline handling.
Andrew McNamara [Mon, 31 Jul 2006 02:27:48 +0000 (02:27 +0000)]
Redo the comment about the 2.5 change in quoted-newline handling.

18 years agoWhitespace normalization.
Tim Peters [Mon, 31 Jul 2006 01:46:03 +0000 (01:46 +0000)]
Whitespace normalization.

18 years agoBug #1531349: right <-> left glitch in __rop__ description.
Georg Brandl [Sun, 30 Jul 2006 20:18:51 +0000 (20:18 +0000)]
Bug #1531349: right <-> left glitch in __rop__ description.

18 years agoTry to prevent hangs on Tru64/Alpha buildbot. I'm not certain this will help
Neal Norwitz [Sun, 30 Jul 2006 19:20:42 +0000 (19:20 +0000)]
Try to prevent hangs on Tru64/Alpha buildbot.  I'm not certain this will help
and may need to be reverted if it causes problems.

18 years agoVerify that the signal handlers were really called
Neal Norwitz [Sun, 30 Jul 2006 19:18:38 +0000 (19:18 +0000)]
Verify that the signal handlers were really called

18 years agoAdd some asserts and update comments
Neal Norwitz [Sun, 30 Jul 2006 19:18:13 +0000 (19:18 +0000)]
Add some asserts and update comments

18 years agoTypo fix
George Yoshida [Sun, 30 Jul 2006 16:41:30 +0000 (16:41 +0000)]
Typo fix

18 years agoRename struct.pack_to to struct.pack_into as changed in revision 46642.
George Yoshida [Sun, 30 Jul 2006 16:37:37 +0000 (16:37 +0000)]
Rename struct.pack_to to struct.pack_into as changed in revision 46642.

18 years agoFix makefile changes for python-config.
Georg Brandl [Sun, 30 Jul 2006 16:20:10 +0000 (16:20 +0000)]
Fix makefile changes for python-config.

18 years agoDrop usage of test -e in configure as it is not portable.
Martin v. Löwis [Sun, 30 Jul 2006 14:09:47 +0000 (14:09 +0000)]
Drop usage of test -e in configure as it is not portable.
Fixes #1439538
Will backport to 2.4
Also regenerate pyconfig.h.in.

18 years agoMention Cygwin in distutils error message about a missing VS 2003.
Martin v. Löwis [Sun, 30 Jul 2006 13:27:31 +0000 (13:27 +0000)]
Mention Cygwin in distutils error message about a missing VS 2003.
Fixes #1257728.

18 years agoBase __version__ on sys.version_info, as distutils is
Martin v. Löwis [Sun, 30 Jul 2006 13:14:05 +0000 (13:14 +0000)]
Base __version__ on sys.version_info, as distutils is
no longer maintained separatedly.

18 years agoDon't copy directory stat times in shutil.copytree on Windows
Martin v. Löwis [Sun, 30 Jul 2006 13:00:31 +0000 (13:00 +0000)]
Don't copy directory stat times in shutil.copytree on Windows
Fixes #1525866.

18 years agoBug #1002398: The documentation for os.path.sameopenfile now correctly
Georg Brandl [Sun, 30 Jul 2006 11:07:23 +0000 (11:07 +0000)]
Bug #1002398: The documentation for os.path.sameopenfile now correctly
refers to file descriptors, not file objects.

18 years agoClarify that __op__ methods must return NotImplemented if they don't support the...
Georg Brandl [Sun, 30 Jul 2006 10:53:32 +0000 (10:53 +0000)]
Clarify that __op__ methods must return NotImplemented if they don't support the operation.

18 years agoWhitespace normalization
Neal Norwitz [Sun, 30 Jul 2006 06:59:13 +0000 (06:59 +0000)]
Whitespace normalization

18 years agoBug #1515471: string.replace() accepts character buffers again.
Neal Norwitz [Sun, 30 Jul 2006 06:57:04 +0000 (06:57 +0000)]
Bug #1515471: string.replace() accepts character buffers again.
Pass the char* and size around rather than PyObject's.

18 years agoAdd PyErr_WarnEx() so C code can pass the stacklevel to warnings.warn().
Neal Norwitz [Sun, 30 Jul 2006 06:55:48 +0000 (06:55 +0000)]
Add PyErr_WarnEx() so C code can pass the stacklevel to warnings.warn().
This provides the proper warning for struct.pack().
PyErr_Warn() is now deprecated in favor of PyErr_WarnEx().
As mentioned by Tim Peters on python-dev.

18 years agoPatch #1531113: Fix augmented assignment with yield expressions.
Neal Norwitz [Sun, 30 Jul 2006 06:53:31 +0000 (06:53 +0000)]
Patch #1531113: Fix augmented assignment with yield expressions.
Also fix a SystemError when trying to assign to yield expressions.

18 years ago- remove yet another reference to how commonly Tkinter is (thought to be) used
Fred Drake [Sun, 30 Jul 2006 05:55:39 +0000 (05:55 +0000)]
- remove yet another reference to how commonly Tkinter is (thought to be) used
- fix an internal section reference

18 years agoremove possibly-outdated comment on what GUI toolkit is most commonly used;
Fred Drake [Sun, 30 Jul 2006 05:49:49 +0000 (05:49 +0000)]
remove possibly-outdated comment on what GUI toolkit is most commonly used;
it is hard to know whether this is right, and it does not add valuable reference information
at any rate

18 years agoupdate information on wxPython, from Robin Dunn
Fred Drake [Sun, 30 Jul 2006 05:41:28 +0000 (05:41 +0000)]
update information on wxPython, from Robin Dunn

18 years agolots of markup nits, most commonly Unix/unix --> \UNIX
Fred Drake [Sun, 30 Jul 2006 03:03:43 +0000 (03:03 +0000)]
lots of markup nits, most commonly Unix/unix --> \UNIX

18 years agoWhitespace normalization.
Tim Peters [Sun, 30 Jul 2006 00:58:15 +0000 (00:58 +0000)]
Whitespace normalization.

18 years ago[Bug #793553] Correct description of keyword arguments for SSL authentication
Andrew M. Kuchling [Sun, 30 Jul 2006 00:37:56 +0000 (00:37 +0000)]
[Bug #793553] Correct description of keyword arguments for SSL authentication

18 years agoMinor typo fixes
Andrew M. Kuchling [Sun, 30 Jul 2006 00:27:34 +0000 (00:27 +0000)]
Minor typo fixes

18 years agomarkup cleanups
Fred Drake [Sat, 29 Jul 2006 23:34:57 +0000 (23:34 +0000)]
markup cleanups

18 years agoFix case for 'Unix'
Andrew M. Kuchling [Sat, 29 Jul 2006 21:30:21 +0000 (21:30 +0000)]
Fix case for 'Unix'

18 years agoFollow TeX's conventions for hyphens
Andrew M. Kuchling [Sat, 29 Jul 2006 21:27:12 +0000 (21:27 +0000)]
Follow TeX's conventions for hyphens

18 years agoDisable test_getnode too, since this is also unreliable.
Neal Norwitz [Sat, 29 Jul 2006 20:37:08 +0000 (20:37 +0000)]
Disable test_getnode too, since this is also unreliable.

18 years agofix minor markup error that introduced extra punctuation
Fred Drake [Sat, 29 Jul 2006 20:21:25 +0000 (20:21 +0000)]
fix minor markup error that introduced extra punctuation

18 years agoIf the executable doesn't exist, there's no reason to try to start it.
Neal Norwitz [Sat, 29 Jul 2006 20:20:52 +0000 (20:20 +0000)]
If the executable doesn't exist, there's no reason to try to start it.
This prevents garbage about command not found being printed on Solaris.

18 years agoAdd a comment to the csv reader documentation that explains why the
Skip Montanaro [Sat, 29 Jul 2006 20:06:05 +0000 (20:06 +0000)]
Add a comment to the csv reader documentation that explains why the
treatment of newlines changed in 2.5.  Pulled almost verbatim from a comment
by Andrew McNamara in <http://python.org/sf/1465014>.

18 years agoSF bug #1193966: Weakref types documentation misplaced
Fred Drake [Sat, 29 Jul 2006 20:04:42 +0000 (20:04 +0000)]
SF bug #1193966: Weakref types documentation misplaced

The information about supporting weakrefs with types defined in C extensions
is moved to the Extending & Embedding manual.  Py_TPFLAGS_HAVE_WEAKREFS is
no longer mentioned since it is part of Py_TPFLAGS_DEFAULT.

18 years ago[Patch #1068277] Clarify that os.path.exists() can return False depending on permissi...
Andrew M. Kuchling [Sat, 29 Jul 2006 19:50:37 +0000 (19:50 +0000)]
[Patch #1068277] Clarify that os.path.exists() can return False depending on permissions.  Fred approved committing this patch in December 2004!

18 years agoDisable these tests until they are reliable across platforms.
Neal Norwitz [Sat, 29 Jul 2006 19:29:35 +0000 (19:29 +0000)]
Disable these tests until they are reliable across platforms.
These problems may mask more important, real problems.

One or both methods are known to fail on: Solaris, OpenBSD, Debian, Ubuntu.
They pass on Windows and some Linux boxes.

18 years ago[Patch #1490989 from Skip Montanaro] Mention debugging builds in the API documentati...
Andrew M. Kuchling [Sat, 29 Jul 2006 19:24:04 +0000 (19:24 +0000)]
[Patch #1490989 from Skip Montanaro]  Mention debugging builds in the API documentation.  I've changed Skip's patch to point to Misc/SpecialBuilds and fiddled with the markup a bit.

18 years agoemphasize and oddball nuance of LaTeX comment syntax
Fred Drake [Sat, 29 Jul 2006 19:14:10 +0000 (19:14 +0000)]
emphasize and oddball nuance of LaTeX comment syntax

18 years agodocument the footnote usage pattern
Fred Drake [Sat, 29 Jul 2006 19:09:01 +0000 (19:09 +0000)]
document the footnote usage pattern

18 years agomake the reference to older versions of the documentation a link
Fred Drake [Sat, 29 Jul 2006 18:33:29 +0000 (18:33 +0000)]
make the reference to older versions of the documentation a link
to the right page on python.org

18 years agorestore test un-intentionally removed in the xmlcore purge (revision 50941)
Fred Drake [Sat, 29 Jul 2006 18:19:19 +0000 (18:19 +0000)]
restore test un-intentionally removed in the xmlcore purge (revision 50941)

18 years agoReorganize the docs for 'file' and 'open()' after some discussion with Fred.
Andrew M. Kuchling [Sat, 29 Jul 2006 18:14:07 +0000 (18:14 +0000)]
Reorganize the docs for 'file' and 'open()' after some discussion with Fred.

We want to encourage users to write open() when opening a file, but
open() was described with a single paragraph and
'file' had lots of explanation of the mode and bufsize arguments.

I've shrunk the description of 'file' to cross-reference to the 'File
objects' section, and to open() for an explanation of the arguments.

open() now has all the paragraphs about the mode string.  The bufsize
argument was moved up so that it isn't buried at the end; now there's
1 paragraph on mode, 1 on bufsize, and then 3 more on mode.  Various
other edits and rearrangements were made in the process.

It's probably best to read the final text and not to try to make sense
of the diffs.

18 years agoexpunge the xmlcore changes:
Fred Drake [Sat, 29 Jul 2006 16:56:15 +0000 (16:56 +0000)]
expunge the xmlcore changes:
  41667, 41668 - initial switch to xmlcore
  47044        - mention of xmlcore in What's New
  50687        - mention of xmlcore in the library reference

re-apply xmlcore changes to xml:
  41674        - line ending changes (re-applied manually), directory props
  41677        - add cElementTree wrapper
  41678        - PSF licensing for etree
  41812        - whitespace normalization
  42724        - fix svn:eol-style settings
  43681, 43682 - remove Python version-compatibility cruft from minidom
  46773        - fix encoding of \r\n\t in attr values in saxutils
  47269        - added XMLParser alias for cElementTree compatibility

additional tests were added in Lib/test/test_sax.py that failed with
the xmlcore changes; these relate to SF bugs #1511497, #1513611

18 years agoSet bug/patch count. Take a bow, everyone!
Andrew M. Kuchling [Sat, 29 Jul 2006 16:08:40 +0000 (16:08 +0000)]
Set bug/patch count.  Take a bow, everyone!

18 years ago[Bug #1528258] Mention that the 'data' argument can be None.
Andrew M. Kuchling [Sat, 29 Jul 2006 15:57:08 +0000 (15:57 +0000)]
[Bug #1528258] Mention that the 'data' argument can be None.

The constructor docs referred the reader to the add_data() method's docs,
but they weren't very helpful.  I've simply copied an earlier explanation
of 'data' that's more useful.

18 years agoFix typo
Matt Fleming [Sat, 29 Jul 2006 15:55:30 +0000 (15:55 +0000)]
Fix typo

18 years agoTweak wording
Andrew M. Kuchling [Sat, 29 Jul 2006 15:43:13 +0000 (15:43 +0000)]
Tweak wording

18 years agoTypo fix
Andrew M. Kuchling [Sat, 29 Jul 2006 15:42:46 +0000 (15:42 +0000)]
Typo fix

18 years ago[Bug #1530382] Document SSL.server(), .issuer() methods
Andrew M. Kuchling [Sat, 29 Jul 2006 15:35:21 +0000 (15:35 +0000)]
[Bug #1530382] Document SSL.server(), .issuer() methods

18 years ago[Bug #1414697] Change docstring of set/frozenset types to specify that the contents...
Andrew M. Kuchling [Sat, 29 Jul 2006 15:10:32 +0000 (15:10 +0000)]
[Bug #1414697] Change docstring of set/frozenset types to specify that the contents are unique.  Raymond, please feel free to edit or revert.

18 years agoFix docstring punctuation
Andrew M. Kuchling [Sat, 29 Jul 2006 14:43:55 +0000 (14:43 +0000)]
Fix docstring punctuation

18 years ago[Bug #1519571] Document some missing functions: setup(), title(), done()
Andrew M. Kuchling [Sat, 29 Jul 2006 14:42:48 +0000 (14:42 +0000)]
[Bug #1519571] Document some missing functions: setup(), title(), done()

18 years ago[Bug #1529157] Mention raw_input() and input(); while I'm at it, reword the descripti...
Andrew M. Kuchling [Sat, 29 Jul 2006 14:21:15 +0000 (14:21 +0000)]
[Bug #1529157] Mention raw_input() and input(); while I'm at it, reword the description a bit

18 years agoReword paragraph to match the order of the subsequent sections
Andrew M. Kuchling [Sat, 29 Jul 2006 14:08:15 +0000 (14:08 +0000)]
Reword paragraph to match the order of the subsequent sections

18 years agoUpdate URL
Andrew M. Kuchling [Sat, 29 Jul 2006 14:04:47 +0000 (14:04 +0000)]
Update URL

18 years agoAdd example
Andrew M. Kuchling [Sat, 29 Jul 2006 13:56:48 +0000 (13:56 +0000)]
Add example

18 years agoupdate target version number
Fred Drake [Sat, 29 Jul 2006 13:22:49 +0000 (13:22 +0000)]
update target version number

18 years agoRevert rev 42617, it was introduced to work around bug #1441397.
Georg Brandl [Sat, 29 Jul 2006 10:25:46 +0000 (10:25 +0000)]
Revert rev 42617, it was introduced to work around bug #1441397.
test_compiler now passes again.

18 years agoBug #1441397: The compiler module now recognizes module and function
Georg Brandl [Sat, 29 Jul 2006 09:33:26 +0000 (09:33 +0000)]
Bug #1441397: The compiler module now recognizes module and function
docstrings correctly as it did in Python 2.4.

18 years agoBug #835255: The "closure" argument to new.function() is now documented.
Georg Brandl [Sat, 29 Jul 2006 08:51:21 +0000 (08:51 +0000)]
Bug #835255: The "closure" argument to new.function() is now documented.

18 years agoPatch #1529514: More openbsd platforms for ctypes.
Thomas Heller [Fri, 28 Jul 2006 21:43:20 +0000 (21:43 +0000)]
Patch #1529514: More openbsd platforms for ctypes.
Regenerated Modules/_ctypes/libffi/configure with autoconf 2.59.

Approved by Neal.

18 years agoFix svn merge spew.
Phillip J. Eby [Fri, 28 Jul 2006 21:31:54 +0000 (21:31 +0000)]
Fix svn merge spew.

18 years agoBug #1529871: The speed enhancement patch #921466 broke Python's compliance
Phillip J. Eby [Fri, 28 Jul 2006 21:12:07 +0000 (21:12 +0000)]
Bug #1529871: The speed enhancement patch #921466 broke Python's compliance
with PEP 302.  This was fixed by adding an ``imp.NullImporter`` type that is
used in ``sys.path_importer_cache`` to cache non-directory paths and avoid
excessive filesystem operations during imports.

18 years agoRemove a useless XXX comment.
Thomas Heller [Fri, 28 Jul 2006 19:42:40 +0000 (19:42 +0000)]
Remove a useless XXX comment.
Cosmetic changes to the code so that the #ifdef _UNICODE block
doesn't mess emacs code formatting.

18 years agoFix spelling.
Georg Brandl [Fri, 28 Jul 2006 18:36:01 +0000 (18:36 +0000)]
Fix spelling.

18 years agoPatch #1529686: also run test_email_codecs with regrtest.py.
Georg Brandl [Fri, 28 Jul 2006 18:31:39 +0000 (18:31 +0000)]
Patch #1529686: also run test_email_codecs with regrtest.py.

18 years agoAdd example. Should I propagate this example to all the other DBM-ish modules, too?
Andrew M. Kuchling [Fri, 28 Jul 2006 12:48:07 +0000 (12:48 +0000)]
Add example.  Should I propagate this example to all the other DBM-ish modules, too?

18 years agoDon't overwrite built-in name; add some blank lines for readability
Andrew M. Kuchling [Fri, 28 Jul 2006 12:45:55 +0000 (12:45 +0000)]
Don't overwrite built-in name; add some blank lines for readability

18 years agoAdd example
Andrew M. Kuchling [Fri, 28 Jul 2006 12:33:19 +0000 (12:33 +0000)]
Add example

18 years agoAdd example
Andrew M. Kuchling [Fri, 28 Jul 2006 12:32:43 +0000 (12:32 +0000)]
Add example

18 years agoTypo fix
Andrew M. Kuchling [Fri, 28 Jul 2006 12:18:22 +0000 (12:18 +0000)]
Typo fix

18 years ago[Patch #1529811] Correction to description of r|* mode
Andrew M. Kuchling [Fri, 28 Jul 2006 12:07:12 +0000 (12:07 +0000)]
[Patch #1529811] Correction to description of r|* mode

18 years agoAllow socketmodule to compile on NetBSD -current, whose bluetooth API
Matt Fleming [Fri, 28 Jul 2006 11:27:27 +0000 (11:27 +0000)]
Allow socketmodule to compile on NetBSD -current, whose bluetooth API
differs from both Linux and FreeBSD. Accepted by Neal Norwitz.

18 years agoAdd UUID for upcoming 2.5b3.
Martin v. Löwis [Fri, 28 Jul 2006 07:45:49 +0000 (07:45 +0000)]
Add UUID for upcoming 2.5b3.

18 years agoTry to find the MAC addr on various flavours of Unix. This seems hopeless.
Neal Norwitz [Fri, 28 Jul 2006 07:21:27 +0000 (07:21 +0000)]
Try to find the MAC addr on various flavours of Unix.  This seems hopeless.
The reduces the test_uuid failures, but there's still another method failing.

18 years agoLive with that "the hardware address" is an ill-defined
Tim Peters [Fri, 28 Jul 2006 04:51:59 +0000 (04:51 +0000)]
Live with that "the hardware address" is an ill-defined
concept, and that different ways of trying to find "the
hardware address" may return different results.  Certainly
true on both of my Windows boxes, and in different ways
(see whining on python-dev).

18 years agoEnsure the actual number matches the expected count
Neal Norwitz [Fri, 28 Jul 2006 04:22:34 +0000 (04:22 +0000)]
Ensure the actual number matches the expected count

18 years ago- pybsddb Bug #1527939: bsddb module DBEnv dbremove and dbrename
Gregory P. Smith [Fri, 28 Jul 2006 01:35:25 +0000 (01:35 +0000)]
- pybsddb Bug #1527939: bsddb module DBEnv dbremove and dbrename
  methods now allow their database parameter to be None as the
  sleepycat API allows.

Also adds an appropriate test case for DBEnv.dbrename and dbremove.

18 years agoNews about the repaired memory leak in defaultdict.
Tim Peters [Fri, 28 Jul 2006 00:30:00 +0000 (00:30 +0000)]
News about the repaired memory leak in defaultdict.

18 years agodefdict_reduce(): Plug leaks.
Tim Peters [Fri, 28 Jul 2006 00:23:15 +0000 (00:23 +0000)]
defdict_reduce():  Plug leaks.

We didn't notice these before because test_defaultdict didn't
actually do anything before Georg fixed that earlier today.
Neal's next refleak run then showed test_defaultdict leaking
9 references on each run.  That's repaired by this checkin.

18 years agoEnable the building of the _types module on Windows.
Barry Warsaw [Thu, 27 Jul 2006 23:50:40 +0000 (23:50 +0000)]
Enable the building of the _types module on Windows.

Note that this has only been tested for VS 2003 since that's all I have.

18 years agoAdd missing svn:eol-style property to text files.
Tim Peters [Thu, 27 Jul 2006 23:46:36 +0000 (23:46 +0000)]
Add missing svn:eol-style property to text files.

18 years agoWhitespace normalization.
Tim Peters [Thu, 27 Jul 2006 23:45:48 +0000 (23:45 +0000)]
Whitespace normalization.

18 years agoBug #1529297: The rewrite of doctest for Python 2.4 unintentionally
Tim Peters [Thu, 27 Jul 2006 23:44:37 +0000 (23:44 +0000)]
Bug #1529297:  The rewrite of doctest for Python 2.4 unintentionally
lost that tests are sorted by name before being run.  ``DocTestFinder``
has been changed to sort the list of tests it returns.

18 years agoPatch #1520294: Support for getset and member descriptors in types.py,
Barry Warsaw [Thu, 27 Jul 2006 23:43:15 +0000 (23:43 +0000)]
Patch #1520294: Support for getset and member descriptors in types.py,
inspect.py, and pydoc.py.  Specifically, this allows for querying the type of
an object against these built-in C types and more importantly, for getting
their docstrings printed in the interactive interpreter's help() function.

This patch includes a new built-in module called _types which provides
definitions of getset and member descriptors for use by the types.py module.
These types are exposed as types.GetSetDescriptorType and
types.MemberDescriptorType.  Query functions are provided as
inspect.isgetsetdescriptor() and inspect.ismemberdescriptor().  The
implementations of these are robust enough to work with Python implementations
other than CPython, which may not have these fundamental types.

The patch also includes documentation and test suite updates.

I commit these changes now under these guiding principles:

1. Silence is assent.  The release manager has not said "no", and of the few
   people that cared enough to respond to the thread, the worst vote was "0".

2. It's easier to ask for forgiveness than permission.

3. It's so dang easy to revert stuff in svn, that you could view this as a
   forcing function. :)

Windows build patches will follow.

18 years agoAdd example
Andrew M. Kuchling [Thu, 27 Jul 2006 22:49:54 +0000 (22:49 +0000)]
Add example

18 years agoAdd example
Andrew M. Kuchling [Thu, 27 Jul 2006 22:49:38 +0000 (22:49 +0000)]
Add example

18 years agoReword paragraph
Andrew M. Kuchling [Thu, 27 Jul 2006 22:40:05 +0000 (22:40 +0000)]
Reword paragraph

18 years agocheck_node(): stop spraying mystery output to stderr.
Tim Peters [Thu, 27 Jul 2006 20:47:24 +0000 (20:47 +0000)]
check_node():  stop spraying mystery output to stderr.

When a node number disagrees, keep track of all sources & the
node numbers they reported, and stick all that in the error message.

Changed all callers to supply a non-empty "source" argument; made
the "source" argument non-optional.

On my box, test_uuid still fails, but with the less confusing output:

AssertionError: different sources disagree on node:
    from source 'getnode1', node was 00038a000015
    from source 'getnode2', node was 00038a000015
    from source 'ipconfig', node was 001111b2b7bf

Only the last one appears to be correct; e.g.,

C:\Code\python\PCbuild>getmac

Physical Address    Transport Name
=================== ==========================================================
00-11-11-B2-B7-BF   \Device\Tcpip_{190FB163-5AFD-4483-86A1-2FE16AC61FF1}
62-A1-AC-6C-FD-BE   \Device\Tcpip_{8F77DF5A-EA3D-4F1D-975E-D472CEE6438A}
E2-1F-01-C6-5D-88   \Device\Tcpip_{CD18F76B-2EF3-409F-9B8A-6481EE70A1E4}

I can't find anything on my box with MAC 00-03-8a-00-00-15, and am
not clear on where that comes from.

18 years agoIf binhex is higher-level than binascii, it should come first in the chapter
Andrew M. Kuchling [Thu, 27 Jul 2006 19:12:49 +0000 (19:12 +0000)]
If binhex is higher-level than binascii, it should come first in the chapter

18 years agoMention base64 module; rewrite last sentence to be more positive
Andrew M. Kuchling [Thu, 27 Jul 2006 19:11:07 +0000 (19:11 +0000)]
Mention base64 module; rewrite last sentence to be more positive

18 years agoAdd punctuation mark; add some examples
Andrew M. Kuchling [Thu, 27 Jul 2006 19:07:29 +0000 (19:07 +0000)]
Add punctuation mark; add some examples

18 years agoUpdate URL; add example
Andrew M. Kuchling [Thu, 27 Jul 2006 18:53:33 +0000 (18:53 +0000)]
Update URL; add example

18 years agoRepair typos
Andrew M. Kuchling [Thu, 27 Jul 2006 18:44:10 +0000 (18:44 +0000)]
Repair typos

18 years agoAdd missing word
Andrew M. Kuchling [Thu, 27 Jul 2006 18:42:41 +0000 (18:42 +0000)]
Add missing word

18 years agoTypo fix ('publically' is rare, poss. non-standard)
Andrew M. Kuchling [Thu, 27 Jul 2006 18:41:21 +0000 (18:41 +0000)]
Typo fix ('publically' is rare, poss. non-standard)

18 years agoRemove code that is no longer used (ctypes.com).
Thomas Heller [Thu, 27 Jul 2006 18:39:55 +0000 (18:39 +0000)]
Remove code that is no longer used (ctypes.com).

Fix the DllGetClassObject and DllCanUnloadNow so that they forward the
call to the comtypes.server.inprocserver module.

The latter was never documented, never used by published code, and
didn't work anyway, so I think it does not deserve a NEWS entry (but I
might be wrong).