Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2)

Delta Between Two Patch Sets: Doc/whatsnew/3.3.rst

Issue 15573: Support unknown formats in memoryview comparisons
Left Patch Set: Created 7 years, 7 months ago
Right Patch Set: Created 7 years, 7 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « Doc/library/stdtypes.rst ('k') | Lib/test/test_buffer.py » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 **************************** 1 ****************************
2 What's New In Python 3.3 2 What's New In Python 3.3
3 **************************** 3 ****************************
4 4
5 :Author: Raymond Hettinger 5 :Author: Raymond Hettinger
6 :Release: |release| 6 :Release: |release|
7 :Date: |today| 7 :Date: |today|
8 8
9 .. Rules for maintenance: 9 .. Rules for maintenance:
10 10
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 shape of C-contiguous arrays. 120 shape of C-contiguous arrays.
121 121
122 * Multi-dimensional list representations are supported for any array type. 122 * Multi-dimensional list representations are supported for any array type.
123 123
124 * Multi-dimensional comparisons are supported for any array type. 124 * Multi-dimensional comparisons are supported for any array type.
125 125
126 * All array types are hashable if the exporting object is hashable 126 * All array types are hashable if the exporting object is hashable
127 and the view is read-only. (Contributed by Antoine Pitrou in 127 and the view is read-only. (Contributed by Antoine Pitrou in
128 :issue:`13411`) 128 :issue:`13411`)
129 129
130
131 * Arbitrary slicing of any 1-D arrays type is supported. For example, it 130 * Arbitrary slicing of any 1-D arrays type is supported. For example, it
132 is now possible to reverse a memoryview in O(1) by using a negative step. 131 is now possible to reverse a memoryview in O(1) by using a negative step.
133 132
134 API changes 133 API changes
135 ----------- 134 -----------
136 135
137 * The maximum number of dimensions is officially limited to 64. 136 * The maximum number of dimensions is officially limited to 64.
138 137
139 * The representation of empty shape, strides and suboffsets is now 138 * The representation of empty shape, strides and suboffsets is now
140 an empty tuple instead of None. 139 an empty tuple instead of None.
141 140
142 * Accessing a memoryview element with format 'B' (unsigned bytes) 141 * Accessing a memoryview element with format 'B' (unsigned bytes)
143 now returns an integer (in accordance with the struct module syntax). 142 now returns an integer (in accordance with the struct module syntax).
144 For returning a bytes object the view must be cast to 'c' first. 143 For returning a bytes object the view must be cast to 'c' first.
145 144
146 * For further changes see `Build and C API Changes`_ and `Porting C code`_ .
147
148 * memoryview comparisons now use the logical structure of the operands 145 * memoryview comparisons now use the logical structure of the operands
149 and compare all array elements by value. All format strings in struct 146 and compare all array elements by value. All format strings in struct
150 module syntax are supported. 147 module syntax are supported. Views with unrecognised format strings
Nick Coghlan 2012/08/15 06:13:09 I would add "Views with unrecognised format string
148 are still permitted, but will always compare as unequal, regardless
149 of view contents.
150
151 * For further changes see `Build and C API Changes`_ and `Porting C code`_ .
151 152
152 .. _pep-393: 153 .. _pep-393:
153 154
154 PEP 393: Flexible String Representation 155 PEP 393: Flexible String Representation
155 ======================================= 156 =======================================
156 157
157 The Unicode string type is changed to support multiple internal 158 The Unicode string type is changed to support multiple internal
158 representations, depending on the character with the largest Unicode ordinal 159 representations, depending on the character with the largest Unicode ordinal
159 (1, 2, or 4 bytes) in the represented string. This allows a space-efficient 160 (1, 2, or 4 bytes) in the represented string. This allows a space-efficient
160 representation in common cases, but gives access to full UCS-4 on all 161 representation in common cases, but gives access to full UCS-4 on all
(...skipping 1764 matching lines...) Expand 10 before | Expand all | Expand 10 after
1925 ------------ 1926 ------------
1926 1927
1927 .. Issue #11591: When :program:`python` was started with :option:`-S`, 1928 .. Issue #11591: When :program:`python` was started with :option:`-S`,
1928 ``import site`` will not add site-specific paths to the module search 1929 ``import site`` will not add site-specific paths to the module search
1929 paths. In previous versions, it did. See changeset for doc changes in 1930 paths. In previous versions, it did. See changeset for doc changes in
1930 various files. Contributed by Carl Meyer with editions by Éric Araujo. 1931 various files. Contributed by Carl Meyer with editions by Éric Araujo.
1931 1932
1932 .. Issue #10998: the -Q command-line flag and related artifacts have been 1933 .. Issue #10998: the -Q command-line flag and related artifacts have been
1933 removed. Code checking sys.flags.division_warning will need updating. 1934 removed. Code checking sys.flags.division_warning will need updating.
1934 Contributed by Éric Araujo. 1935 Contributed by Éric Araujo.
LEFTRIGHT

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+