Staging
v0.8.1
v0.8.1
https://github.com/python/cpython
Revision b7deff1ddc2702c7adb18bc22c484103d9460601 authored by R. David Murray on 30 January 2011, 06:21:28 UTC, committed by R. David Murray on 30 January 2011, 06:21:28 UTC
Although this patch contains API changes and is rather weighty for an RC phase, the mailbox module was essentially unusable without the patch since it would produce UnicodeErrors when handling non-ascii input at arbitrary and somewhat mysterious places, and any non-trivial amount of email processing will encounter messages with non-ascii bytes. The release manager approved the patch application. The changes allow binary input, and reject non-ASCII string input early with a useful message instead of failing mysteriously later. Binary is used internally for reading and writing the mailbox files. StringIO and Text file input are deprecated. Initial patch by Victor Stinner, validated and expanded by R. David Murray.
1 parent b02f7c0
Tip revision: b7deff1ddc2702c7adb18bc22c484103d9460601 authored by R. David Murray on 30 January 2011, 06:21:28 UTC
#9124: mailbox now accepts binary input and uses binary internally
#9124: mailbox now accepts binary input and uses binary internally
Tip revision: b7deff1
File | Mode | Size |
---|---|---|
Python-ast.h | -rw-r--r-- | 21.3 KB |
Python.h | -rw-r--r-- | 3.6 KB |
abstract.h | -rw-r--r-- | 41.4 KB |
asdl.h | -rw-r--r-- | 1.0 KB |
ast.h | -rw-r--r-- | 304 bytes |
bitset.h | -rw-r--r-- | 792 bytes |
bltinmodule.h | -rw-r--r-- | 264 bytes |
boolobject.h | -rw-r--r-- | 886 bytes |
bytearrayobject.h | -rw-r--r-- | 2.0 KB |
bytes_methods.h | -rw-r--r-- | 2.0 KB |
bytesobject.h | -rw-r--r-- | 4.9 KB |
cellobject.h | -rw-r--r-- | 701 bytes |
ceval.h | -rw-r--r-- | 7.0 KB |
classobject.h | -rw-r--r-- | 1.6 KB |
code.h | -rw-r--r-- | 3.8 KB |
codecs.h | -rw-r--r-- | 5.1 KB |
compile.h | -rw-r--r-- | 1.3 KB |
complexobject.h | -rw-r--r-- | 2.0 KB |
datetime.h | -rw-r--r-- | 8.1 KB |
descrobject.h | -rw-r--r-- | 2.8 KB |
dictobject.h | -rw-r--r-- | 6.6 KB |
dtoa.h | -rw-r--r-- | 368 bytes |
dynamic_annotations.h | -rw-r--r-- | 22.1 KB |
enumobject.h | -rw-r--r-- | 253 bytes |
errcode.h | -rw-r--r-- | 1.4 KB |
eval.h | -rw-r--r-- | 597 bytes |
fileobject.h | -rw-r--r-- | 1.5 KB |
fileutils.h | -rw-r--r-- | 1.0 KB |
floatobject.h | -rw-r--r-- | 4.4 KB |
frameobject.h | -rw-r--r-- | 3.1 KB |
funcobject.h | -rw-r--r-- | 3.5 KB |
genobject.h | -rw-r--r-- | 942 bytes |
graminit.h | -rw-r--r-- | 1.8 KB |
grammar.h | -rw-r--r-- | 2.0 KB |
import.h | -rw-r--r-- | 2.4 KB |
intrcheck.h | -rw-r--r-- | 274 bytes |
iterobject.h | -rw-r--r-- | 567 bytes |
listobject.h | -rw-r--r-- | 2.7 KB |
longintrepr.h | -rw-r--r-- | 3.9 KB |
longobject.h | -rw-r--r-- | 6.9 KB |
marshal.h | -rw-r--r-- | 743 bytes |
memoryobject.h | -rw-r--r-- | 2.8 KB |
metagrammar.h | -rw-r--r-- | 253 bytes |
methodobject.h | -rw-r--r-- | 2.9 KB |
modsupport.h | -rw-r--r-- | 4.6 KB |
moduleobject.h | -rw-r--r-- | 1.4 KB |
node.h | -rw-r--r-- | 890 bytes |
object.h | -rw-r--r-- | 33.9 KB |
objimpl.h | -rw-r--r-- | 13.1 KB |
opcode.h | -rw-r--r-- | 4.6 KB |
osdefs.h | -rw-r--r-- | 869 bytes |
parsetok.h | -rw-r--r-- | 2.1 KB |
patchlevel.h | -rw-r--r-- | 1.2 KB |
pgen.h | -rw-r--r-- | 253 bytes |
pgenheaders.h | -rw-r--r-- | 1.1 KB |
py_curses.h | -rw-r--r-- | 4.1 KB |
pyarena.h | -rw-r--r-- | 2.7 KB |
pyatomic.h | -rw-r--r-- | 5.6 KB |
pycapsule.h | -rw-r--r-- | 1.6 KB |
pyctype.h | -rw-r--r-- | 1.3 KB |
pydebug.h | -rw-r--r-- | 1.0 KB |
pyerrors.h | -rw-r--r-- | 12.6 KB |
pyexpat.h | -rw-r--r-- | 2.0 KB |
pyfpe.h | -rw-r--r-- | 8.3 KB |
pygetopt.h | -rw-r--r-- | 345 bytes |
pymacconfig.h | -rw-r--r-- | 2.9 KB |
pymath.h | -rw-r--r-- | 6.4 KB |
pymem.h | -rw-r--r-- | 4.6 KB |
pyport.h | -rw-r--r-- | 28.8 KB |
pystate.h | -rw-r--r-- | 7.1 KB |
pystrcmp.h | -rw-r--r-- | 436 bytes |
pystrtod.h | -rw-r--r-- | 1.2 KB |
pythonrun.h | -rw-r--r-- | 8.3 KB |
pythread.h | -rw-r--r-- | 2.9 KB |
pytime.h | -rw-r--r-- | 1.3 KB |
rangeobject.h | -rw-r--r-- | 629 bytes |
setobject.h | -rw-r--r-- | 3.1 KB |
sliceobject.h | -rw-r--r-- | 1.3 KB |
structmember.h | -rw-r--r-- | 2.3 KB |
structseq.h | -rw-r--r-- | 1.2 KB |
symtable.h | -rw-r--r-- | 4.2 KB |
sysmodule.h | -rw-r--r-- | 1.2 KB |
timefuncs.h | -rw-r--r-- | 472 bytes |
token.h | -rw-r--r-- | 1.9 KB |
traceback.h | -rw-r--r-- | 769 bytes |
tupleobject.h | -rw-r--r-- | 2.3 KB |
typeslots.h | -rw-r--r-- | 1.9 KB |
ucnhash.h | -rw-r--r-- | 975 bytes |
unicodeobject.h | -rw-r--r-- | 58.5 KB |
warnings.h | -rw-r--r-- | 953 bytes |
weakrefobject.h | -rw-r--r-- | 2.4 KB |
Computing file changes ...