@@ -126,13 +126,13 @@ \section{\module{_winreg} --
126126 no more values.
127127
128128 The result is a tuple of 3 items:
129- \item [value_name]
130- A string that identifies the value name
131- \item [value_data]
132- An object that holds the value data, and whose type depends
133- on the underlying registry type.
134- \item [data_type] is an integer that identifies the type of the
135- value data.
129+
130+ \begin { tableii }{c|p{3in}}{code}{Index}{Meaning}
131+ \lineii {0}{A string that identifies the value name}
132+ \lineii {1}{ An object that holds the value data, and whose
133+ type depends on the underlying registry type}
134+ \lineii {2}{An integer that identifies the type of the value data}
135+ \end { tableii }
136136
137137\end {funcdesc }
138138
@@ -218,13 +218,13 @@ \section{\module{_winreg} --
218218 \constant {HKEY_*} constants.
219219
220220 The result is a tuple of 3 items:
221- \item [num_subkeys]
222- An integer that identifies the number of sub keys this key has.
223- \item [num_values]
224- An integer that identifies the number of values this key has.
225- \item [last_modified]
226- A long integer that identifies when the key was last modified (if available)
227- as 100's of nanoseconds since Jan 1, 1600.
221+
222+ \begin { tableii }{c|p{3in}}{code}{Index}{Meaning}
223+ \lineii {0}{An integer giving the number of sub keys this key has.}
224+ \lineii {1}{ An integer giving the number of values this key has.}
225+ \lineii {2}{A long integer giving when the key was last modified (if
226+ available) as 100's of nanoseconds since Jan 1, 1600.}
227+ \end { tableii }
228228\end {funcdesc }
229229
230230
@@ -256,10 +256,11 @@ \section{\module{_winreg} --
256256 \var {value_name} is a string indicating the value to query.
257257
258258 The result is a tuple of 2 items:
259- \item [value]
260- The value of the registry item.
261- \item [type_id]
262- An integer that identifies the registry type for this value.
259+
260+ \begin {tableii }{c|p{3in}}{code}{Index}{Meaning}
261+ \lineii {0}{The value of the registry item.}
262+ \lineii {1}{An integer giving the registry type for this value.}
263+ \end {tableii }
263264\end {funcdesc }
264265
265266
@@ -294,62 +295,57 @@ \section{\module{_winreg} --
294295 \var {sub_key} is a string that names the subkey with which the value
295296 is associated.
296297
297- \var {type} is an integer that specifies the type of the data. Currently this
298- must be \constant {REG_SZ}, meaning only strings are supported.
299- Use the \function {SetValueEx()} function for support for other data types.
298+ \var {type} is an integer that specifies the type of the data.
299+ Currently this must be \constant {REG_SZ}, meaning only strings are
300+ supported. Use the \function {SetValueEx()} function for support for
301+ other data types.
300302
301303 \var {value} is a string that specifies the new value.
302304
303- If the key specified by the \var {sub_key} parameter does not exist,
305+ If the key specified by the \var {sub_key} parameter does not exist,
304306 the SetValue function creates it.
305307
306308 Value lengths are limited by available memory. Long values (more than
307- 2048 bytes) should be stored as files with the filenames stored in
308- the configuration registry. This helps the registry perform efficiently.
309+ 2048 bytes) should be stored as files with the filenames stored in
310+ the configuration registry. This helps the registry perform
311+ efficiently.
309312
310313 The key identified by the \var {key} parameter must have been
311314 opened with \constant {KEY_SET_VALUE} access.
312315\end {funcdesc }
313316
314317
315318\begin {funcdesc }{SetValueEx}{key, value_name, reserved, type, value}
316- Stores data in the value field of an open registry key.
317-
319+ Stores data in the value field of an open registry key.
320+
318321 \var {key} is an already open key, or one of the predefined
319322 \constant {HKEY_*} constants.
320323
321324 \var {sub_key} is a string that names the subkey with which the
322325 value is associated.
323-
326+
324327 \var {type} is an integer that specifies the type of the data.
325- This should be one of:
326- \item [\constant {REG_BINARY}]
327- Binary data in any form.
328- \item [\constant {REG_DWORD}]
329- A 32-bit number.
330- \item [\constant {REG_DWORD_LITTLE_ENDIAN}]
331- A 32-bit number in little-endian format.
332- \item [\constant {REG_DWORD_BIG_ENDIAN}]
333- A 32-bit number in big-endian format.
334- \item [\constant {REG_EXPAND_SZ}]
335- A null-terminated string that contains unexpanded references
336- to environment variables (for example, \code {\% PATH\% })
337- \item [\constant {REG_LINK}]
338- A Unicode symbolic link.
339- \item [\constant {REG_MULTI_SZ}]
340- A sequence (eg, list, sequence) of null-terminated strings,
341- terminated by two null characters. (Note that Python handles
342- this termination automatically)
343- \item [\constant {REG_NONE}]
344- No defined value type.
345- \item [\constant {REG_RESOURCE_LIST}]
346- A device-driver resource list.
347- \item [\constant {REG_SZ}]
348- A null-terminated string.
328+ This should be one of the following constants defined in this module:
329+
330+ \begin {tableii }{l|p{3in}}{constant}{Constant}{Meaning}
331+ \lineii {REG_BINARY}{Binary data in any form.}
332+ \lineii {REG_DWORD}{A 32-bit number.}
333+ \lineii {REG_DWORD_LITTLE_ENDIAN}{A 32-bit number in little-endian format.}
334+ \lineii {REG_DWORD_BIG_ENDIAN}{A 32-bit number in big-endian format.}
335+ \lineii {REG_EXPAND_SZ}{Null-terminated string containing references
336+ to environment variables (\samp {\% PATH\% }).}
337+ \lineii {REG_LINK}{A Unicode symbolic link.}
338+ \lineii {REG_MULTI_SZ}{A sequence of null-terminated strings,
339+ terminated by two null characters. (Python handles
340+ this termination automatically.)}
341+ \lineii {REG_NONE}{No defined value type.}
342+ \lineii {REG_RESOURCE_LIST}{A device-driver resource list.}
343+ \lineii {REG_SZ}{A null-terminated string.}
344+ \end {tableii }
349345
350346 \var {reserved} can be anything - zero is always passed to the
351347 API.
352-
348+
353349 \var {value} is a string that specifies the new value.
354350
355351 This method can also set additional value and type information for the
@@ -366,7 +362,7 @@ \section{\module{_winreg} --
366362
367363
368364
369- \subsection {Registry handle objects \label {handle-object } }
365+ \subsection {Registry Handle Objects \label {handle-object } }
370366
371367 This object wraps a Windows HKEY object, automatically closing it when
372368 the object is destroyed. To guarantee cleanup, you can call either
0 commit comments