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
69f6168b
Commit
69f6168b
authored
Jun 14, 2006
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug #805015: doc error in PyUnicode_FromEncodedObject.
parent
7259d7bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
15 deletions
+8
-15
Doc/api/concrete.tex
Doc/api/concrete.tex
+8
-15
No files found.
Doc/api/concrete.tex
View file @
69f6168b
...
...
@@ -1001,21 +1001,14 @@ use these APIs:
const char *errors
}
Coerce an encoded object
\var
{
obj
}
to an Unicode object and return a
reference with incremented refcount.
Coercion is done in the following way:
\begin{enumerate}
\item
Unicode objects are passed back as-is with incremented
refcount.
\note
{
These cannot be decoded; passing a non-
\NULL
{}
value for encoding will result in a
\exception
{
TypeError
}
.
}
\item
String and other char buffer compatible objects are decoded
according to the given encoding and using the error handling
defined by errors. Both can be
\NULL
{}
to have the interface
use the default values (see the next section for details).
\item
All other objects cause an exception.
\end{enumerate}
String and other char buffer compatible objects are decoded
according to the given encoding and using the error handling
defined by errors. Both can be
\NULL
{}
to have the interface
use the default values (see the next section for details).
All other objects, including Unicode objects, cause a
\exception
{
TypeError
}
to be set.
The API returns
\NULL
{}
if there was an error. The caller is
responsible for decref'ing the returned objects.
...
...
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