]> granicus.if.org Git - python/log
python
24 years agoAdded DlgObj_WhichDialog, analoguous to WhichWindow, and use this to get at dialogs.
Jack Jansen [Tue, 6 Feb 2001 16:14:54 +0000 (16:14 +0000)]
Added DlgObj_WhichDialog, analoguous to WhichWindow, and use this to get at dialogs.

24 years agoQDFlushPortBuffer() has an optional region argument.
Jack Jansen [Tue, 6 Feb 2001 16:13:50 +0000 (16:13 +0000)]
QDFlushPortBuffer() has an optional region argument.

24 years agoInstall shared modules enabled by Setup* in $(DESTSHARED) not
Neil Schemenauer [Tue, 6 Feb 2001 14:50:27 +0000 (14:50 +0000)]
Install shared modules enabled by Setup* in $(DESTSHARED) not
$(DESTSHARED)/Modules.

24 years agoSupport older PYTHON_API_VERSIONs for backwards compatibility.
Martin v. Löwis [Tue, 6 Feb 2001 09:34:40 +0000 (09:34 +0000)]
Support older PYTHON_API_VERSIONs for backwards compatibility.

24 years agoAdd xml declaration into toxml testcase.
Martin v. Löwis [Tue, 6 Feb 2001 01:16:48 +0000 (01:16 +0000)]
Add xml declaration into toxml testcase.

24 years agoDo not allow empty qualifiedName in createDocument.
Martin v. Löwis [Tue, 6 Feb 2001 01:16:06 +0000 (01:16 +0000)]
Do not allow empty qualifiedName in createDocument.
Rearrange pulldom to create documents with root element.
Provide clear methods so that the ContentHandler releases its hold on the
document.

24 years agoadded several more __all__ lists
Skip Montanaro [Tue, 6 Feb 2001 01:07:02 +0000 (01:07 +0000)]
added several more __all__ lists

24 years agoAdd toprettyxml method into minidom, closes patch #103471.
Martin v. Löwis [Tue, 6 Feb 2001 00:14:08 +0000 (00:14 +0000)]
Add toprettyxml method into minidom, closes patch #103471.

24 years agoA couple of changes to make this more conformant. MvL and Uche agree.
Guido van Rossum [Mon, 5 Feb 2001 19:17:50 +0000 (19:17 +0000)]
A couple of changes to make this more conformant.  MvL and Uche agree.
This will make it incompatible with the version found in Python 2.0.
Does this need to be done to PyXML too?

Changes that might break existing code are marked with (!) below.

- Formatting nit: no spaces inside parentheses: foo( a ) -> foo(a).

- Break long lines.

- (!) Fix getAttribute() and getAttributeNS() to return "" instead of
  raising KeyError when the attribute is not found.

- (!) Fix getAttributeNodeNS() to return None instead of raising
  KeyError.  (Curiously, getAttributeNode() already did this.)

- Added hasAttributes(), which returns true iff the node has any
  attributes.  )This is DOM level 3.)

- (!) In createDocument(), if the qualified name is not empty,
  actually create and insert the first element with that name (this
  will become doc.documentElement).  MvL believes that it should be an
  error to specify an empty qualified name; I'm not going there today,
  since it would require making a matching change to pulldom.  Maybe
  MvL will do this.

- In Document.writexml(), insert an xml declaration at the top.  (This
  doesn't include the encoding since there's no way to specify the
  encoding.  If that's preferred, all writexml() methods should be
  fixed to support an optional encoding argument that they pass to
  each other -- and they should use it to encode all text they write,
  too.  Later.)

24 years agoDon't get fooled by an empty prefix with a valid namespaceURI -- in
Guido van Rossum [Mon, 5 Feb 2001 18:50:15 +0000 (18:50 +0000)]
Don't get fooled by an empty prefix with a valid namespaceURI -- in
this case, the code used to generate invalid tags and attribute names
with a leading colon, e.g. <:tag> or <tag :attr="foo">.

24 years agoPatch #103587: Fix typo that broke the install_data command; caught by
Andrew M. Kuchling [Mon, 5 Feb 2001 17:43:11 +0000 (17:43 +0000)]
Patch #103587: Fix typo that broke the install_data command; caught by
   Uche Ogbuji

24 years agoFixed UnboundLocalError for nested scopes
Jeremy Hylton [Mon, 5 Feb 2001 17:36:46 +0000 (17:36 +0000)]
Fixed UnboundLocalError for nested scopes

24 years agoFix test 9 (caught by ?!ng)
Jeremy Hylton [Mon, 5 Feb 2001 17:35:20 +0000 (17:35 +0000)]
Fix test 9 (caught by ?!ng)
Add tests for unbound locals (Nick Mathewson)

24 years agoSF patch 103596 by Nick Mathewson: rause UnboundLocalError for
Jeremy Hylton [Mon, 5 Feb 2001 17:23:16 +0000 (17:23 +0000)]
SF patch 103596 by Nick Mathewson: rause UnboundLocalError for
uninitialized free variables

24 years agoAlso recognize DragRef as a method-argument.
Jack Jansen [Mon, 5 Feb 2001 13:47:13 +0000 (13:47 +0000)]
Also recognize DragRef as a method-argument.

24 years agoWrote section on nested scopes, and moved it to the front
Andrew M. Kuchling [Mon, 5 Feb 2001 02:47:52 +0000 (02:47 +0000)]
Wrote section on nested scopes, and moved it to the front
Began a section on weak references
Various rewrites and paragraph refills
Added: non-recursive makefiles, repr() of strings now uses \n, raw socket I/O
Bumped version number

24 years agoFix binfmt_register documentation to always register the right magic.
Martin v. Löwis [Sun, 4 Feb 2001 22:37:56 +0000 (22:37 +0000)]
Fix binfmt_register documentation to always register the right magic.

24 years agoImprove diagnostic output when an external command returns a non-zero exit
Fred Drake [Sun, 4 Feb 2001 15:20:26 +0000 (15:20 +0000)]
Improve diagnostic output when an external command returns a non-zero exit
code, showing the transcript for that command.

This closes SF bug #129740.

24 years agoAnother _testXXX -> _testcapiXXX renaming.
Tim Peters [Sun, 4 Feb 2001 09:18:21 +0000 (09:18 +0000)]
Another _testXXX -> _testcapiXXX renaming.

24 years agoRenamed _testXXX to _testcapiXXX. Jack is my hero -- good call!
Tim Peters [Sun, 4 Feb 2001 03:09:53 +0000 (03:09 +0000)]
Renamed _testXXX to _testcapiXXX.  Jack is my hero -- good call!

24 years agoSuperseded by $(srcdir)/Makefile.pre.in.
Neil Schemenauer [Sat, 3 Feb 2001 17:18:21 +0000 (17:18 +0000)]
Superseded by $(srcdir)/Makefile.pre.in.

24 years agoTweak clean targets yet again.
Neil Schemenauer [Sat, 3 Feb 2001 17:16:29 +0000 (17:16 +0000)]
Tweak clean targets yet again.

24 years agoClarify the news item about "from M import X" if "M is not a real
Guido van Rossum [Sat, 3 Feb 2001 15:06:40 +0000 (15:06 +0000)]
Clarify the news item about "from M import X" if "M is not a real
module" after a complaint from Tim.

24 years agoFix markup typo in a {verbatim} environment (there should not be any!);
Fred Drake [Sat, 3 Feb 2001 14:35:38 +0000 (14:35 +0000)]
Fix markup typo in a {verbatim} environment (there should not be any!);
caught by Eric Raymond.

24 years agoDocument Node.isSameNode().
Fred Drake [Sat, 3 Feb 2001 01:20:01 +0000 (01:20 +0000)]
Document Node.isSameNode().

24 years agoMove the whrandom section back to the documented modules section; this
Fred Drake [Sat, 3 Feb 2001 01:17:41 +0000 (01:17 +0000)]
Move the whrandom section back to the documented modules section; this
gives people a chance to see the depracation notice.

24 years agoRevise the deprecation note for the whrandom module to be correct and a
Fred Drake [Sat, 3 Feb 2001 01:12:44 +0000 (01:12 +0000)]
Revise the deprecation note for the whrandom module to be correct and a
little more formal.

24 years agoRemove an now-false statement about there being only one type flag
Fred Drake [Sat, 3 Feb 2001 01:11:26 +0000 (01:11 +0000)]
Remove an now-false statement about there being only one type flag
defined.

24 years agoAccept Dialogs and Windows where Grafports are expected (such as in SetPort) and...
Jack Jansen [Fri, 2 Feb 2001 22:41:48 +0000 (22:41 +0000)]
Accept Dialogs and Windows where Grafports are expected (such as in SetPort) and do a MacOSX compatible cast. Bit of a hack, but good enough for now.

24 years agoOn MacOSX StackSpace() may lie because it doesn't know about the stack rlimit. For...
Jack Jansen [Fri, 2 Feb 2001 22:40:28 +0000 (22:40 +0000)]
On MacOSX StackSpace() may lie because it doesn't know about the stack rlimit. For now we set a hard limit of 256K (default rlimit is 512K).

24 years agoThis commit was manufactured by cvs2svn to create tag 'r21a2'. v2.1a2
cvs2svn [Fri, 2 Feb 2001 21:24:51 +0000 (21:24 +0000)]
This commit was manufactured by cvs2svn to create tag 'r21a2'.

24 years agoTeach Windows build and installer about new _symtable module/DLL.
Tim Peters [Fri, 2 Feb 2001 21:24:51 +0000 (21:24 +0000)]
Teach Windows build and installer about new _symtable module/DLL.

24 years agoRepair legit compiler warning.
Tim Peters [Fri, 2 Feb 2001 21:10:53 +0000 (21:10 +0000)]
Repair legit compiler warning.

24 years agobump the magic number; the compiler has changed since 2.1a1
Jeremy Hylton [Fri, 2 Feb 2001 20:13:24 +0000 (20:13 +0000)]
bump the magic number; the compiler has changed since 2.1a1

24 years agobump to 2.1a2
Jeremy Hylton [Fri, 2 Feb 2001 20:13:01 +0000 (20:13 +0000)]
bump to 2.1a2

24 years agothe usual
Jeremy Hylton [Fri, 2 Feb 2001 20:11:13 +0000 (20:11 +0000)]
the usual

24 years agomove "from Tkinter import *" to module level
Jeremy Hylton [Fri, 2 Feb 2001 20:07:46 +0000 (20:07 +0000)]
move "from Tkinter import *" to module level

24 years agoFix spelling errors.
Jeremy Hylton [Fri, 2 Feb 2001 20:06:28 +0000 (20:06 +0000)]
Fix spelling errors.
Add note about _symtable.
Add note that 'from ... import *' restriction may go away -- and move
the whole entry closer to the top, because it might bite people.

24 years agoFix symbol table pass to generation SyntaxError exceptions that
Jeremy Hylton [Fri, 2 Feb 2001 20:01:10 +0000 (20:01 +0000)]
Fix symbol table pass to generation SyntaxError exceptions that
include the filename and line number.

24 years agofix a couple last-minute bugs in the raw socket support
Jeremy Hylton [Fri, 2 Feb 2001 19:55:17 +0000 (19:55 +0000)]
fix a couple last-minute bugs in the raw socket support

24 years agoadd compile.h and symtable.h to list of header files
Jeremy Hylton [Fri, 2 Feb 2001 19:54:23 +0000 (19:54 +0000)]
add compile.h and symtable.h to list of header files

24 years agoAdded Node.isSameNode() support.
Fred Drake [Fri, 2 Feb 2001 19:40:19 +0000 (19:40 +0000)]
Added Node.isSameNode() support.

24 years agoOuch! I need a better test suite for this. ;-(
Fred Drake [Fri, 2 Feb 2001 19:28:35 +0000 (19:28 +0000)]
Ouch!  I need a better test suite for this.  ;-(

24 years agoSteve Majewski's patch #103495, MatchFilename() and find_module()
Barry Warsaw [Fri, 2 Feb 2001 19:12:16 +0000 (19:12 +0000)]
Steve Majewski's patch #103495, MatchFilename() and find_module()
patch for case-preserving HFS+ suport.  Untested except to verify that
it builds and doesn't break anything on Linux RH6.1.

24 years agoAdd minimal interface to symtable: _symtable module.
Jeremy Hylton [Fri, 2 Feb 2001 18:24:26 +0000 (18:24 +0000)]
Add minimal interface to symtable: _symtable module.

24 years agoMove a bunch of definitions that were internal to compile.c to
Jeremy Hylton [Fri, 2 Feb 2001 18:19:15 +0000 (18:19 +0000)]
Move a bunch of definitions that were internal to compile.c to
symtable.h, so that they can be used by external module.

Improve error handling in symtable_enter_scope(), which return an
error code that went unchecked by most callers. XXX The error handling
in symtable code is sloppy in general.

Modify symtable to record the line number that begins each scope.
This can help to identify which code block is being referred to when
multiple blocks are bound to the same name.

Add st_scopes dict that is used to preserve scope info when
PyNode_CompileSymtable() is called.  Otherwise, this information is
tossed as soon as it is no longer needed.

Add Py_SymtableString() to pythonrun; analogous to Py_CompileString().

24 years agoUse a type flag to determine the applicability of the tp_weaklistoffset
Fred Drake [Fri, 2 Feb 2001 18:17:30 +0000 (18:17 +0000)]
Use a type flag to determine the applicability of the tp_weaklistoffset
field.  This should avoid binary incompatibility problems with older modules
that have not been recompiled.

24 years agoUndo recent exclusion of test_fork1 and test_zlib. These tests don't
Jeremy Hylton [Fri, 2 Feb 2001 18:12:16 +0000 (18:12 +0000)]
Undo recent exclusion of test_fork1 and test_zlib.  These tests don't
trigger my arbitrary exlusion rule, which is: takes more than 10
seconds of wall clock time on my machine.  If these tests are going to
be skipped, then a boatload of slower tests should be skipped, too.

24 years agoDo not pass names of individual files to shutil.rmtree(); use os.unlink()
Fred Drake [Fri, 2 Feb 2001 15:48:00 +0000 (15:48 +0000)]
Do not pass names of individual files to shutil.rmtree(); use os.unlink()
for that.

24 years agoWeakDictionary.items(): Do not allow (key,ref) pairs to leak out for
Fred Drake [Fri, 2 Feb 2001 15:13:24 +0000 (15:13 +0000)]
WeakDictionary.items():  Do not allow (key,ref) pairs to leak out for
    dead references.

24 years agoWhitespace correction...
Marc-André Lemburg [Fri, 2 Feb 2001 12:12:44 +0000 (12:12 +0000)]
Whitespace correction...

24 years agoAdded new Python C API _test module to the build mechanism on Unix.
Marc-André Lemburg [Fri, 2 Feb 2001 12:07:22 +0000 (12:07 +0000)]
Added new Python C API _test module to the build mechanism on Unix.

24 years agoTeach the Windows installer about the _test module.
Tim Peters [Fri, 2 Feb 2001 06:33:04 +0000 (06:33 +0000)]
Teach the Windows installer about the _test module.

24 years agoPatch derived from Trent's 101162: a Python/C API testing framework.
Tim Peters [Fri, 2 Feb 2001 05:57:15 +0000 (05:57 +0000)]
Patch derived from Trent's 101162: a Python/C API testing framework.
STILL NEEDS UNIX BUILD CHANGES.

24 years agoAdjustments to the text of the UnixMailbox description. Added
Fred Drake [Fri, 2 Feb 2001 03:51:05 +0000 (03:51 +0000)]
Adjustments to the text of the UnixMailbox description.  Added
PortableUnixMailbox as a separate class as well (this also generates
the right index entry).

24 years agoadd info about Grant Edwards' raw packet support
Jeremy Hylton [Fri, 2 Feb 2001 03:29:24 +0000 (03:29 +0000)]
add info about Grant Edwards' raw packet support

24 years agoSF patch 101137 from Grant Edwards
Jeremy Hylton [Fri, 2 Feb 2001 03:23:09 +0000 (03:23 +0000)]
SF patch 101137 from Grant Edwards
Adds support for raw packets (AF_PACKET) under Linux.  I haven't
tested this code thoroughly; it compiles and the basic calls all work
without crashing.  Not sure what to actually do with raw sockets though.

Not sure what other platforms this might be useful for.

24 years agoAdded fork1, linuxaudiodev, sunaudiodev, and zlib to the tests skipped
Fred Drake [Fri, 2 Feb 2001 03:03:33 +0000 (03:03 +0000)]
Added fork1, linuxaudiodev, sunaudiodev, and zlib to the tests skipped
by the quicktest target.

24 years agoadd missing DECREF (thanks, Barry)
Jeremy Hylton [Fri, 2 Feb 2001 02:58:48 +0000 (02:58 +0000)]
add missing DECREF (thanks, Barry)

24 years agoThe socket constants have been moved to the socket module for a long time;
Fred Drake [Fri, 2 Feb 2001 02:51:21 +0000 (02:51 +0000)]
The socket constants have been moved to the socket module for a long time;
the standard library does not use the SOCKET module any more, and it is
not defined for all platforms (Windows, in particular).

24 years agoMove the whrandom entry to the "Obsolete Modules" appendix.
Fred Drake [Fri, 2 Feb 2001 02:45:08 +0000 (02:45 +0000)]
Move the whrandom entry to the "Obsolete Modules" appendix.

24 years agoMinor markup adjustments.
Fred Drake [Fri, 2 Feb 2001 02:43:18 +0000 (02:43 +0000)]
Minor markup adjustments.
Move some index entries next to what they are referring to for better
"targetting".

24 years agoMinor markup adjustments.
Fred Drake [Fri, 2 Feb 2001 02:42:31 +0000 (02:42 +0000)]
Minor markup adjustments.

24 years agoAdded a warning at the top saying that user code should not use the
Fred Drake [Fri, 2 Feb 2001 02:41:17 +0000 (02:41 +0000)]
Added a warning at the top saying that user code should not use the
whrandom module directly.

24 years agoTeach Windows build about the _weakref module.
Tim Peters [Fri, 2 Feb 2001 00:07:07 +0000 (00:07 +0000)]
Teach Windows build about the _weakref module.

24 years agoSF patch 103543 from tg@freebsd.org:
Jeremy Hylton [Thu, 1 Feb 2001 23:53:05 +0000 (23:53 +0000)]
SF patch 103543 from tg@freebsd.org:
PyFPE_END_PROTECT() was called on undefined var

24 years agoAn ssl-wrapped socket now returns '' on EOF, just like a regular
Jeremy Hylton [Thu, 1 Feb 2001 23:35:20 +0000 (23:35 +0000)]
An ssl-wrapped socket now returns '' on EOF, just like a regular
socket -- as suggested by Clarence Gardner.

Fix httplib to comply with the new ssl-socket interface.

24 years agocontinue now allowed in try block
Jeremy Hylton [Thu, 1 Feb 2001 22:53:15 +0000 (22:53 +0000)]
continue now allowed in try block

24 years agoAllow 'continue' inside 'try' clause
Jeremy Hylton [Thu, 1 Feb 2001 22:48:12 +0000 (22:48 +0000)]
Allow 'continue' inside 'try' clause
SF patch 102989 by Thomas Wouters

24 years agoSpecial case around some of the nastier annoyances with the type-in
Barry Warsaw [Thu, 1 Feb 2001 21:31:58 +0000 (21:31 +0000)]
Special case around some of the nastier annoyances with the type-in
fields.  You can now backspace out the 0 in 0x0, and you can clear the
field when in decimal mode.  There are still some oddities about
typing into these fields, but it should be much less annoying.  The
real solution is to ditch the update-while-typing "feature".

24 years agoMove the "from Tkinter import *" out of the method and into the module
Barry Warsaw [Thu, 1 Feb 2001 20:52:08 +0000 (20:52 +0000)]
Move the "from Tkinter import *" out of the method and into the module
scope (still inside the __name__=='__main__' guard).  Necessitated by
recent addition of nested scopes.

24 years agoAdd item about nested scopes.
Jeremy Hylton [Thu, 1 Feb 2001 20:38:45 +0000 (20:38 +0000)]
Add item about nested scopes.

Revise item about restriction on 'from ... import *'.  It was in the
wrong section and the section restriction was removed.

24 years agoUndo recent change that banned using import to bind a global, as per
Jeremy Hylton [Thu, 1 Feb 2001 20:20:45 +0000 (20:20 +0000)]
Undo recent change that banned using import to bind a global, as per
discussion on python-dev.  'from mod import *' is still banned except
at the module level.

Fix value for special NOOPT entry in symtable.  Initialze to 0 instead
of None, so that later uses of PyInt_AS_LONG() are valid.  (Bug
reported by Donn Cave.)

replace local REPR macros with PyObject_REPR in object.h

24 years agoAdded comments about the weak reference support.
Fred Drake [Thu, 1 Feb 2001 20:00:40 +0000 (20:00 +0000)]
Added comments about the weak reference support.

24 years agoadd quicktest target -- runs test suite except for the eight slowest tests
Jeremy Hylton [Thu, 1 Feb 2001 19:51:28 +0000 (19:51 +0000)]
add quicktest target -- runs test suite except for the eight slowest tests

24 years agomove extra arguments to the back of the new.code() arglist
Jeremy Hylton [Thu, 1 Feb 2001 19:50:29 +0000 (19:50 +0000)]
move extra arguments to the back of the new.code() arglist

24 years agoAdded note about need for -traditional-cpp on the MacOS X Public Beta.
Fred Drake [Thu, 1 Feb 2001 19:41:13 +0000 (19:41 +0000)]
Added note about need for -traditional-cpp on the MacOS X Public Beta.
This closes SF bug #129827.

24 years agoRevise the driver code to be more informative in the final report.
Fred Drake [Thu, 1 Feb 2001 18:11:29 +0000 (18:11 +0000)]
Revise the driver code to be more informative in the final report.

24 years agoFix some markup breakage that prevented formatting; re-wrapped a couple of
Fred Drake [Thu, 1 Feb 2001 15:53:24 +0000 (15:53 +0000)]
Fix some markup breakage that prevented formatting; re-wrapped a couple of
wide paragraphs.

24 years agoRemove spurious "\end{description}" that caused formatting to fail.
Fred Drake [Thu, 1 Feb 2001 15:37:56 +0000 (15:37 +0000)]
Remove spurious "\end{description}" that caused formatting to fail.

24 years agoRepaired a docstring.
Tim Peters [Thu, 1 Feb 2001 10:06:53 +0000 (10:06 +0000)]
Repaired a docstring.

24 years agoPEP 205, Weak References -- initial checkin.
Fred Drake [Thu, 1 Feb 2001 05:27:45 +0000 (05:27 +0000)]
PEP 205, Weak References -- initial checkin.

24 years agoAdd entries for the weakref module to the build control.
Fred Drake [Thu, 1 Feb 2001 05:26:54 +0000 (05:26 +0000)]
Add entries for the weakref module to the build control.

24 years agoAdded entry for weakref documentation.
Fred Drake [Thu, 1 Feb 2001 05:21:46 +0000 (05:21 +0000)]
Added entry for weakref documentation.

Moved commented-out entries for obsolete module to an appendix, still
commented out.

24 years agoAdd entry for weakref documentation.
Fred Drake [Thu, 1 Feb 2001 05:20:52 +0000 (05:20 +0000)]
Add entry for weakref documentation.

24 years agoDocumentation for the weakref module.
Fred Drake [Thu, 1 Feb 2001 05:20:20 +0000 (05:20 +0000)]
Documentation for the weakref module.

24 years agoWindows build: update for 2.1a2, + get ucnhash out of the installer.
Tim Peters [Thu, 1 Feb 2001 05:10:02 +0000 (05:10 +0000)]
Windows build:  update for 2.1a2, + get ucnhash out of the installer.

24 years agoChange random.seed() so that it can get at the full range of possible
Tim Peters [Thu, 1 Feb 2001 04:59:18 +0000 (04:59 +0000)]
Change random.seed() so that it can get at the full range of possible
internal states.  Put the old .seed() (which could only get at about
the square root of the # of possibilities) under the new name .whseed(),
for bit-level compatibility with older versions.  This occurred to me
while reviewing effbot's book (he found himself stumbling over .seed()
more than once there ...).

24 years agoupdate section 4.1 to describe nested scopes
Jeremy Hylton [Thu, 1 Feb 2001 03:50:59 +0000 (03:50 +0000)]
update section 4.1 to describe nested scopes

24 years agoLong ago, Guido suggested that I add this to the standard library.
Barry Warsaw [Wed, 31 Jan 2001 22:51:35 +0000 (22:51 +0000)]
Long ago, Guido suggested that I add this to the standard library.
I'm now checking it in.  I need to write some documentation for it,
but I don't have time right now.  Still, I wanted to get this into
2.1a2.

# Overview:
#
# This file implements the minimal SMTP protocol as defined in RFC 821.  It
# has a hierarchy of classes which implement the backend functionality for the
# smtpd.  A number of classes are provided:
#
#   SMTPServer - the base class for the backend.  Raises an UnimplementedError
#   if you try to use it.
#
#   DebuggingServer - simply prints each message it receives on stdout.
#
#   PureProxy - Proxies all messages to a real smtpd which does final
#   delivery.  One known problem with this class is that it doesn't handle
#   SMTP errors from the backend server at all.  This should be fixed
#   (contributions are welcome!).
#
#   MailmanProxy - An experimental hack to work with GNU Mailman
#   <www.list.org>.  Using this server as your real incoming smtpd, your
#   mailhost will automatically recognize and accept mail destined to Mailman
#   lists when those lists are created.  Every message not destined for a list
#   gets forwarded to a real backend smtpd, as with PureProxy.  Again, errors
#   are not handled correctly yet.

24 years agoSimple embedded program that does a module import. Useful for
Barry Warsaw [Wed, 31 Jan 2001 22:27:51 +0000 (22:27 +0000)]
Simple embedded program that does a module import.  Useful for
debugging leaks and other memory problems.

24 years agoIgnore the programs created in this directory.
Barry Warsaw [Wed, 31 Jan 2001 22:27:00 +0000 (22:27 +0000)]
Ignore the programs created in this directory.

24 years agoAdd targets to make building `loop' and `import' easier. Useful for
Barry Warsaw [Wed, 31 Jan 2001 22:18:49 +0000 (22:18 +0000)]
Add targets to make building `loop' and `import' easier.  Useful for
debugging memory leaks and the like.

24 years agoDocument the two changes to the mailbox.py module:
Barry Warsaw [Wed, 31 Jan 2001 22:14:01 +0000 (22:14 +0000)]
Document the two changes to the mailbox.py module:

- All constructors grow an optional argument `factory' which is a
  callable used when new message instances are created by the next()
  methods.  Defaults to the rfc822.Message class.

- A new subclass of UnixMailbox is added, called PortableUnixMailbox.
  It's identical to UnixMailbox, but uses a more portable test for
  From_ delimiter lines.  With PortableUnixMailbox, any line that
  starts with "From " is considered a delimiter (this should really
  check for two newlines before the F, but it doesn't.

24 years agoTwo changes:
Barry Warsaw [Wed, 31 Jan 2001 22:13:15 +0000 (22:13 +0000)]
Two changes:

- All constructors grow an optional argument `factory' which is a
  callable used when new message instances are created by the next()
  methods.  Defaults to the rfc822.Message class.

- A new subclass of UnixMailbox is added, called PortableUnixMailbox.
  It's identical to UnixMailbox, but uses a more portable test for
  From_ delimiter lines.  With PortableUnixMailbox, any line that
  starts with "From " is considered a delimiter (this should really
  check for two newlines before the F, but it doesn't.

24 years agoSome rewriting of the "Internationalizing your programs and modules"
Barry Warsaw [Wed, 31 Jan 2001 21:21:45 +0000 (21:21 +0000)]
Some rewriting of the "Internationalizing your programs and modules"
subsection to include a discussion of the msgfmt.py program.

24 years agomove "from stat import *" to module level
Jeremy Hylton [Wed, 31 Jan 2001 20:07:17 +0000 (20:07 +0000)]
move "from stat import *" to module level

24 years agoDocs for new Windows zlib build procedure.
Tim Peters [Wed, 31 Jan 2001 19:39:44 +0000 (19:39 +0000)]
Docs for new Windows zlib build procedure.

24 years agoFix [ Bug #129293 ] zlib library used for binary win32 distribution can crash
Mark Hammond [Wed, 31 Jan 2001 10:28:03 +0000 (10:28 +0000)]
Fix [ Bug #129293 ] zlib library used for binary win32 distribution can crash

This involves changing the zlib build process to build zlib itself from sources, then use that library.  Also updated are the comments to reflect the new official home of zlib, and add Windows specific notes regarding the build process.

24 years agoPartial fix to [ Bug #128685 ] popen on Win9x isnt smart enough about finding w9xpope...
Mark Hammond [Wed, 31 Jan 2001 07:30:29 +0000 (07:30 +0000)]
Partial fix to [ Bug #128685 ] popen on Win9x isnt smart enough about finding w9xpopen.exe.

"Partial" as the code uses sys.prefix in an attempt to locate 'w9xpopen.exe', but sys.prefix is not set if Python can't find it itself.  So this _still_ fails in Pythonwin, but I am committing the patch for 2 reasons:
* Embedded apps that set sys.prefix or use PYTHONHOME will work
* The exception raised on failure to find the executable is far more obvious