Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
d14423ab
Commit
d14423ab
authored
Jul 06, 2000
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct typo in description of the machine name parameter to the
ConnectRegistry() function; there is no trailing period!
parent
63099f91
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
17 deletions
+16
-17
Doc/lib/libwinreg.tex
Doc/lib/libwinreg.tex
+16
-17
No files found.
Doc/lib/libwinreg.tex
View file @
d14423ab
...
...
@@ -8,17 +8,17 @@
\versionadded
{
2.0
}
These functions expose
s
the Windows registry API to Python. Instead of
using an integer as the registry handle, a handle object is used to
ensure
that the handles are closed correctly, even if the programmer
These functions expose the Windows registry API to Python. Instead of
using an integer as the registry handle, a handle object is used to
ensure
that the handles are closed correctly, even if the programmer
neglects to explicitly close them.
This module exposes a very low-level interface to the Windows
registry; for a more object-oriented interface, use the
\module
{
winreg
}
module.
This module offers the following functions:
\subsection
{
Registry Operations
\label
{
registry-operations
}}
\begin{funcdesc}
{
CloseKey
}{
hkey
}
Closes a previously opened registry key.
...
...
@@ -35,8 +35,8 @@ registry; for a more object-oriented interface, use the
another computer, and returns a
\dfn
{
handle object
}
\var
{
computer
_
name
}
is the name of the remote computer, of the
form
\
code
{
'
\\\\
computername.'
}
. If
\code
{
None
}
, the local computer is
used.
form
\
samp
{
\e\e
computername
}
. If
\code
{
None
}
, the local computer
is
used.
\var
{
key
}
is the predefined handle to connect to.
...
...
@@ -66,7 +66,6 @@ registry; for a more object-oriented interface, use the
raised.
\end{funcdesc}
\begin{funcdesc}
{
DeleteKey
}{
key, sub
_
key
}
Deletes the specified key.
...
...
@@ -372,21 +371,21 @@ registry; for a more object-oriented interface, use the
the object is destroyed. To guarantee cleanup, you can call either
the
\method
{
Close()
}
method on the object, or the
\function
{
CloseKey()
}
function.
All registry functions in this module return one of these objects.
All registry functions in this module which accept a handle object
also accept an integer, however, use of the handle object is
encouraged.
Handle objects provide semantics for
__
nonzero
__
- thus
\begin{verbatim}
if handle:
print "Yes"
\end{verbatim}
will print
\code
{
Yes
}
if the handle is currently valid (i
e
,
Handle objects provide semantics for
\method
{__
nonzero
__
()
}
- thus
\begin{verbatim}
if handle:
print "Yes"
\end{verbatim}
will print
\code
{
Yes
}
if the handle is currently valid (i
.e.
,
has not been closed or detached).
The object also support comparison semantics, so handle
objects will compare true if they both reference the same
underlying Windows handle value.
...
...
@@ -397,14 +396,14 @@ registry; for a more object-oriented interface, use the
\method
{
Detach()
}
method to return the integer handle, and
also disconnect the Windows handle from the handle object.
\begin{methoddesc}
{
Close
}
\begin{methoddesc}
{
Close
}
{}
Closes the underlying Windows handle.
If the handle is already closed, no error is raised.
\end{methoddesc}
\begin{methoddesc}
{
Detach
}
\begin{methoddesc}
{
Detach
}
{}
Detaches the Windows handle from the handle object.
The result is an integer (or long on 64 bit Windows) that holds
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment