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
0be4346d
Commit
0be4346d
authored
Aug 15, 2000
by
Barry Warsaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Describe the b2a_hex() and a2b_hex() functions (a.k.a. hexlify() and
unhexlify() respectively).
parent
e977c210
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
Doc/lib/libbinascii.tex
Doc/lib/libbinascii.tex
+15
-0
No files found.
Doc/lib/libbinascii.tex
View file @
0be4346d
...
@@ -84,6 +84,21 @@ crc. This is consistent with the ZIP file checksum. Use as follows:
...
@@ -84,6 +84,21 @@ crc. This is consistent with the ZIP file checksum. Use as follows:
\end{verbatim}
\end{verbatim}
\end{funcdesc}
\end{funcdesc}
\begin{funcdesc}
{
b2a
_
hex
}{
data
}
Return the hexadecimal representation of the binary
\var
{
data
}
. Every
byte of
\var
{
data
}
is converted into the corresponding 2-digit hex
representation. The resulting string is therefore, twice as long as
the length of
\var
{
data
}
. This function is also available as
\function
{
hexlify()
}
.
\end{funcdesc}
\begin{funcdesc}
{
a2b
_
hex
}{
hexstr
}
Return the binary data represented by the hexadecimal string
\var
{
hexstr
}
. This function is the inverse of
\function
{
b2a
_
hex()
}
.
\var
{
hexstr
}
must contain an even number of hexadecimal digits (which
can be upper or lower case), otherwise a
\exception
{
TypeError
}
is
raised. This function is also available as
\function
{
unhexlify()
}
.
\begin{excdesc}
{
Error
}
\begin{excdesc}
{
Error
}
Exception raised on errors. These are usually programming errors.
Exception raised on errors. These are usually programming errors.
\end{excdesc}
\end{excdesc}
...
...
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