annotate Include/bytesobject.h @ 65221:faa4e22aaba7 2.7

Blocked revisions 85322,85326 via svnmerge ........ r85322 | r.david.murray | 2010-10-08 11:55:28 -0400 (Fri, 08 Oct 2010) | 8 lines #4661: add bytes parsing and generation to email (email version bump to 5.1.0) The work on this is not 100% complete, but everything is present to allow real-world testing of the code. The only remaining major todo item is to (hopefully!) enhance the handling of non-ASCII bytes in headers converted to unicode by RFC2047 encoding them rather than replacing them with '?'s. ........ r85326 | r.david.murray | 2010-10-08 17:37:39 -0400 (Fri, 08 Oct 2010) | 2 lines What's new entry for email 5.1. ........
author R. David Murray <rdmurray@bitdance.com>
date Tue, 12 Oct 2010 14:16:46 +0000
parents 154948e2fd1c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
47578
acddb00b1de5 swap stringobject.h and bytesobject.h contents to make sense. PyString in
Gregory P. Smith <greg@mad-scientist.com>
parents: 47527
diff changeset
1 #define PyBytesObject PyStringObject
acddb00b1de5 swap stringobject.h and bytesobject.h contents to make sense. PyString in
Gregory P. Smith <greg@mad-scientist.com>
parents: 47527
diff changeset
2 #define PyBytes_Type PyString_Type
33856
60c60dc75c77 Wrote down the invariants of some common objects whose structure is
Armin Rigo <arigo@tunes.org>
parents: 29726
diff changeset
3
47578
acddb00b1de5 swap stringobject.h and bytesobject.h contents to make sense. PyString in
Gregory P. Smith <greg@mad-scientist.com>
parents: 47527
diff changeset
4 #define PyBytes_Check PyString_Check
acddb00b1de5 swap stringobject.h and bytesobject.h contents to make sense. PyString in
Gregory P. Smith <greg@mad-scientist.com>
parents: 47527
diff changeset
5 #define PyBytes_CheckExact PyString_CheckExact
acddb00b1de5 swap stringobject.h and bytesobject.h contents to make sense. PyString in
Gregory P. Smith <greg@mad-scientist.com>
parents: 47527
diff changeset
6 #define PyBytes_CHECK_INTERNED PyString_CHECK_INTERNED
acddb00b1de5 swap stringobject.h and bytesobject.h contents to make sense. PyString in
Gregory P. Smith <greg@mad-scientist.com>
parents: 47527
diff changeset
7 #define PyBytes_AS_STRING PyString_AS_STRING
acddb00b1de5 swap stringobject.h and bytesobject.h contents to make sense. PyString in
Gregory P. Smith <greg@mad-scientist.com>
parents: 47527
diff changeset
8 #define PyBytes_GET_SIZE PyString_GET_SIZE
acddb00b1de5 swap stringobject.h and bytesobject.h contents to make sense. PyString in
Gregory P. Smith <greg@mad-scientist.com>
parents: 47527
diff changeset
9 #define Py_TPFLAGS_BYTES_SUBCLASS Py_TPFLAGS_STRING_SUBCLASS
13376
bfe22cf6e770 Added prototypes for the new codec APIs for strings. These APIs
Marc-André Lemburg <mal@egenix.com>
parents: 13256
diff changeset
10
47578
acddb00b1de5 swap stringobject.h and bytesobject.h contents to make sense. PyString in
Gregory P. Smith <greg@mad-scientist.com>
parents: 47527
diff changeset
11 #define PyBytes_FromStringAndSize PyString_FromStringAndSize
acddb00b1de5 swap stringobject.h and bytesobject.h contents to make sense. PyString in
Gregory P. Smith <greg@mad-scientist.com>
parents: 47527
diff changeset
12 #define PyBytes_FromString PyString_FromString
acddb00b1de5 swap stringobject.h and bytesobject.h contents to make sense. PyString in
Gregory P. Smith <greg@mad-scientist.com>
parents: 47527
diff changeset
13 #define PyBytes_FromFormatV PyString_FromFormatV
acddb00b1de5 swap stringobject.h and bytesobject.h contents to make sense. PyString in
Gregory P. Smith <greg@mad-scientist.com>
parents: 47527
diff changeset
14 #define PyBytes_FromFormat PyString_FromFormat
acddb00b1de5 swap stringobject.h and bytesobject.h contents to make sense. PyString in
Gregory P. Smith <greg@mad-scientist.com>
parents: 47527
diff changeset
15 #define PyBytes_Size PyString_Size
acddb00b1de5 swap stringobject.h and bytesobject.h contents to make sense. PyString in
Gregory P. Smith <greg@mad-scientist.com>
parents: 47527
diff changeset
16 #define PyBytes_AsString PyString_AsString
acddb00b1de5 swap stringobject.h and bytesobject.h contents to make sense. PyString in
Gregory P. Smith <greg@mad-scientist.com>
parents: 47527
diff changeset
17 #define PyBytes_Repr PyString_Repr
acddb00b1de5 swap stringobject.h and bytesobject.h contents to make sense. PyString in
Gregory P. Smith <greg@mad-scientist.com>
parents: 47527
diff changeset
18 #define PyBytes_Concat PyString_Concat
acddb00b1de5 swap stringobject.h and bytesobject.h contents to make sense. PyString in
Gregory P. Smith <greg@mad-scientist.com>
parents: 47527
diff changeset
19 #define PyBytes_ConcatAndDel PyString_ConcatAndDel
acddb00b1de5 swap stringobject.h and bytesobject.h contents to make sense. PyString in
Gregory P. Smith <greg@mad-scientist.com>
parents: 47527
diff changeset
20 #define _PyBytes_Resize _PyString_Resize
acddb00b1de5 swap stringobject.h and bytesobject.h contents to make sense. PyString in
Gregory P. Smith <greg@mad-scientist.com>
parents: 47527
diff changeset
21 #define _PyBytes_Eq _PyString_Eq
acddb00b1de5 swap stringobject.h and bytesobject.h contents to make sense. PyString in
Gregory P. Smith <greg@mad-scientist.com>
parents: 47527
diff changeset
22 #define PyBytes_Format PyString_Format
acddb00b1de5 swap stringobject.h and bytesobject.h contents to make sense. PyString in
Gregory P. Smith <greg@mad-scientist.com>
parents: 47527
diff changeset
23 #define _PyBytes_FormatLong _PyString_FormatLong
acddb00b1de5 swap stringobject.h and bytesobject.h contents to make sense. PyString in
Gregory P. Smith <greg@mad-scientist.com>
parents: 47527
diff changeset
24 #define PyBytes_DecodeEscape PyString_DecodeEscape
acddb00b1de5 swap stringobject.h and bytesobject.h contents to make sense. PyString in
Gregory P. Smith <greg@mad-scientist.com>
parents: 47527
diff changeset
25 #define _PyBytes_Join _PyString_Join
acddb00b1de5 swap stringobject.h and bytesobject.h contents to make sense. PyString in
Gregory P. Smith <greg@mad-scientist.com>
parents: 47527
diff changeset
26 #define PyBytes_AsStringAndSize PyString_AsStringAndSize
acddb00b1de5 swap stringobject.h and bytesobject.h contents to make sense. PyString in
Gregory P. Smith <greg@mad-scientist.com>
parents: 47527
diff changeset
27 #define _PyBytes_InsertThousandsGrouping _PyString_InsertThousandsGrouping