4
4
What's New in Python 2.6
5
5
****************************
6
6
7
- .. XXX add trademark info for Apple, Microsoft, SourceForge.
8
-
9
7
:Author: A.M. Kuchling (amk at amk.ca)
10
8
11
9
.. $Id$
@@ -128,7 +126,7 @@ and to C extension code as :c:data:`!Py_Py3kWarningFlag`.
128
126
The 3\ *xxx * series of PEPs, which contains proposals for Python 3.0.
129
127
:pep: `3000 ` describes the development process for Python 3.0.
130
128
Start with :pep: `3100 ` that describes the general goals for Python
131
- 3.0, and then explore the higher-numbered PEPS that propose
129
+ 3.0, and then explore the higher-numbered PEPs that propose
132
130
specific features.
133
131
134
132
@@ -1051,8 +1049,6 @@ the :mod:`io` module:
1051
1049
sockets, but Python 2.6 hasn't restructured its file and socket objects
1052
1050
in this way.
1053
1051
1054
- .. XXX should 2.6 register them in io.py?
1055
-
1056
1052
* :class: `BufferedIOBase ` is an abstract base class that
1057
1053
buffers data in memory to reduce the number of
1058
1054
system calls used, making I/O processing more efficient.
@@ -1133,8 +1129,6 @@ while an external caller could be modifying the contents,
1133
1129
so there's a corresponding ``PyBuffer_Release(Py_buffer *view) `` to
1134
1130
indicate that the external caller is done.
1135
1131
1136
- .. XXX PyObject_GetBuffer not documented in c-api
1137
-
1138
1132
The *flags * argument to :c:func: `PyObject_GetBuffer ` specifies
1139
1133
constraints upon the memory returned. Some examples are:
1140
1134
@@ -3110,8 +3104,8 @@ Port-Specific Changes: Windows
3110
3104
3111
3105
* The :mod: `msvcrt ` module now supports
3112
3106
both the normal and wide char variants of the console I/O
3113
- API. The :func: `getwch ` function reads a keypress and returns a Unicode
3114
- value, as does the :func: `getwche ` function. The :func: `putwch ` function
3107
+ API. The :func: `~msvcrt. getwch ` function reads a keypress and returns a Unicode
3108
+ value, as does the :func: `~msvcrt. getwche ` function. The :func: `~msvcrt. putwch ` function
3115
3109
takes a Unicode character and writes it to the console.
3116
3110
(Contributed by Christian Heimes.)
3117
3111
@@ -3120,24 +3114,24 @@ Port-Specific Changes: Windows
3120
3114
directory path. (Contributed by Josiah Carlson; :issue: `957650 `.)
3121
3115
3122
3116
* The :mod: `socket ` module's socket objects now have an
3123
- :meth: `ioctl ` method that provides a limited interface to the
3117
+ :meth: `~socket.socket. ioctl ` method that provides a limited interface to the
3124
3118
:c:func: `WSAIoctl ` system interface.
3125
3119
3126
- * The :mod: `_winreg ` module now has a function,
3127
- :func: `ExpandEnvironmentStrings `,
3120
+ * The :mod: `_winreg <winreg> ` module now has a function,
3121
+ :func: `~winreg. ExpandEnvironmentStrings `,
3128
3122
that expands environment variable references such as ``%NAME% ``
3129
3123
in an input string. The handle objects provided by this
3130
3124
module now support the context protocol, so they can be used
3131
3125
in :keyword: `with ` statements. (Contributed by Christian Heimes.)
3132
3126
3133
- :mod: `_winreg ` also has better support for x64 systems,
3134
- exposing the :func: `DisableReflectionKey `, :func: `EnableReflectionKey `,
3135
- and :func: `QueryReflectionKey ` functions, which enable and disable
3127
+ :mod: `_winreg <winreg> ` also has better support for x64 systems,
3128
+ exposing the :func: `~winreg. DisableReflectionKey `, :func: `~winreg. EnableReflectionKey `,
3129
+ and :func: `~winreg. QueryReflectionKey ` functions, which enable and disable
3136
3130
registry reflection for 32-bit processes running on 64-bit systems.
3137
3131
(:issue: `1753245 `)
3138
3132
3139
- * The :mod: `!msilib ` module's :class: `Record ` object
3140
- gained :meth: `GetInteger ` and :meth: `GetString ` methods that
3133
+ * The :mod: `!msilib ` module's :class: `! Record ` object
3134
+ gained :meth: `! GetInteger ` and :meth: `! GetString ` methods that
3141
3135
return field values as an integer or a string.
3142
3136
(Contributed by Floris Bruynooghe; :issue: `2125 `.)
3143
3137
@@ -3151,49 +3145,49 @@ Port-Specific Changes: Mac OS X
3151
3145
:option: `!--with-framework-name= ` option to the
3152
3146
:program: `configure ` script.
3153
3147
3154
- * The :mod: `macfs ` module has been removed. This in turn required the
3155
- :func: `macostools.touched ` function to be removed because it depended on the
3156
- :mod: `macfs ` module. (:issue: `1490190 `)
3148
+ * The :mod: `! macfs ` module has been removed. This in turn required the
3149
+ :func: `! macostools.touched ` function to be removed because it depended on the
3150
+ :mod: `! macfs ` module. (:issue: `1490190 `)
3157
3151
3158
3152
* Many other Mac OS modules have been deprecated and will be removed in
3159
3153
Python 3.0:
3160
- :mod: `_builtinSuites `,
3161
- :mod: `aepack `,
3162
- :mod: `aetools `,
3163
- :mod: `aetypes `,
3164
- :mod: `applesingle `,
3165
- :mod: `appletrawmain `,
3166
- :mod: `appletrunner `,
3167
- :mod: `argvemulator `,
3168
- :mod: `Audio_mac `,
3169
- :mod: `autoGIL `,
3170
- :mod: `Carbon `,
3171
- :mod: `cfmfile `,
3172
- :mod: `CodeWarrior `,
3173
- :mod: `ColorPicker `,
3174
- :mod: `EasyDialogs `,
3175
- :mod: `Explorer `,
3176
- :mod: `Finder `,
3177
- :mod: `FrameWork `,
3178
- :mod: `findertools `,
3179
- :mod: `ic `,
3180
- :mod: `icglue `,
3181
- :mod: `icopen `,
3182
- :mod: `macerrors `,
3183
- :mod: `MacOS `,
3184
- :mod: `macfs `,
3185
- :mod: `macostools `,
3186
- :mod: `macresource `,
3187
- :mod: `MiniAEFrame `,
3188
- :mod: `Nav `,
3189
- :mod: `Netscape `,
3190
- :mod: `OSATerminology `,
3191
- :mod: `pimp `,
3192
- :mod: `PixMapWrapper `,
3193
- :mod: `StdSuites `,
3194
- :mod: `SystemEvents `,
3195
- :mod: `Terminal `, and
3196
- :mod: `terminalcommand `.
3154
+ :mod: `! _builtinSuites `,
3155
+ :mod: `! aepack `,
3156
+ :mod: `! aetools `,
3157
+ :mod: `! aetypes `,
3158
+ :mod: `! applesingle `,
3159
+ :mod: `! appletrawmain `,
3160
+ :mod: `! appletrunner `,
3161
+ :mod: `! argvemulator `,
3162
+ :mod: `! Audio_mac `,
3163
+ :mod: `! autoGIL `,
3164
+ :mod: `! Carbon `,
3165
+ :mod: `! cfmfile `,
3166
+ :mod: `! CodeWarrior `,
3167
+ :mod: `! ColorPicker `,
3168
+ :mod: `! EasyDialogs `,
3169
+ :mod: `! Explorer `,
3170
+ :mod: `! Finder `,
3171
+ :mod: `! FrameWork `,
3172
+ :mod: `! findertools `,
3173
+ :mod: `! ic `,
3174
+ :mod: `! icglue `,
3175
+ :mod: `! icopen `,
3176
+ :mod: `! macerrors `,
3177
+ :mod: `! MacOS `,
3178
+ :mod: `! macfs `,
3179
+ :mod: `! macostools `,
3180
+ :mod: `! macresource `,
3181
+ :mod: `! MiniAEFrame `,
3182
+ :mod: `! Nav `,
3183
+ :mod: `! Netscape `,
3184
+ :mod: `! OSATerminology `,
3185
+ :mod: `! pimp `,
3186
+ :mod: `! PixMapWrapper `,
3187
+ :mod: `! StdSuites `,
3188
+ :mod: `! SystemEvents `,
3189
+ :mod: `! Terminal `, and
3190
+ :mod: `! terminalcommand `.
3197
3191
3198
3192
.. ======================================================================
3199
3193
@@ -3202,29 +3196,29 @@ Port-Specific Changes: IRIX
3202
3196
3203
3197
A number of old IRIX-specific modules were deprecated and will
3204
3198
be removed in Python 3.0:
3205
- :mod: `al ` and :mod: `AL `,
3206
- :mod: `cd `,
3207
- :mod: `cddb `,
3208
- :mod: `cdplayer `,
3209
- :mod: `CL ` and :mod: `cl `,
3210
- :mod: `DEVICE `,
3211
- :mod: `ERRNO `,
3212
- :mod: `FILE `,
3213
- :mod: `FL ` and :mod: `fl `,
3214
- :mod: `flp `,
3215
- :mod: `fm `,
3216
- :mod: `GET `,
3217
- :mod: `GLWS `,
3218
- :mod: `GL ` and :mod: `gl `,
3219
- :mod: `IN `,
3220
- :mod: `IOCTL `,
3221
- :mod: `jpeg `,
3222
- :mod: `panelparser `,
3223
- :mod: `readcd `,
3224
- :mod: `SV ` and :mod: `sv `,
3225
- :mod: `torgb `,
3226
- :mod: `videoreader `, and
3227
- :mod: `WAIT `.
3199
+ :mod: `! al ` and :mod: `! AL `,
3200
+ :mod: `! cd `,
3201
+ :mod: `! cddb `,
3202
+ :mod: `! cdplayer `,
3203
+ :mod: `! CL ` and :mod: `! cl `,
3204
+ :mod: `! DEVICE `,
3205
+ :mod: `! ERRNO `,
3206
+ :mod: `! FILE `,
3207
+ :mod: `! FL ` and :mod: `! fl `,
3208
+ :mod: `! flp `,
3209
+ :mod: `! fm `,
3210
+ :mod: `! GET `,
3211
+ :mod: `! GLWS `,
3212
+ :mod: `! GL ` and :mod: `! gl `,
3213
+ :mod: `! IN `,
3214
+ :mod: `! IOCTL `,
3215
+ :mod: `! jpeg `,
3216
+ :mod: `! panelparser `,
3217
+ :mod: `! readcd `,
3218
+ :mod: `! SV ` and :mod: `! sv `,
3219
+ :mod: `! torgb `,
3220
+ :mod: `! videoreader `, and
3221
+ :mod: `! WAIT `.
3228
3222
3229
3223
.. ======================================================================
3230
3224
0 commit comments