diff options
author | Barry Warsaw <barry@python.org> | 2001-01-31 22:14:01 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2001-01-31 22:14:01 (GMT) |
commit | 30dbd1429aa3c6e8854ea575ae7dd188ad000aa0 (patch) | |
tree | 28414f0be636c37dd622e4de0438c3d1b53846b7 /Misc | |
parent | 81ad67cdc6e89465d1503267c78ee570406bcc60 (diff) | |
download | cpython-30dbd1429aa3c6e8854ea575ae7dd188ad000aa0.zip cpython-30dbd1429aa3c6e8854ea575ae7dd188ad000aa0.tar.gz cpython-30dbd1429aa3c6e8854ea575ae7dd188ad000aa0.tar.bz2 |
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.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -15,6 +15,13 @@ Core language, builtins, and interpreter Standard library +- mailbox.py now has a new class, PortableUnixMailbox which is + identical to UnixMailbox but uses a more portable scheme for + determining From_ separators. Also, the constructors for all the + classes in this module have a new optional `factory' argument, which + is a callable used when new message classes must be instantiated by + the next() method. + - random.py is now self-contained, and offers all the functionality of the now-deprecated whrandom.py. See the docs for details. random.py also supports new functions getstate() and setstate(), for saving |