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
b1e9d334
Commit
b1e9d334
authored
Jan 18, 2001
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor markup cleaning, and one required fix in the unistr() description.
parent
7f90db6f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
Doc/lib/libfuncs.tex
Doc/lib/libfuncs.tex
+7
-7
No files found.
Doc/lib/libfuncs.tex
View file @
b1e9d334
...
...
@@ -19,12 +19,11 @@ this, see the standard library modules
operations out of which you can build your own
\function
{__
import
__
()
}
function.
For example, the statement
`
\code
{
import
}
\code
{
spam
}
'
results in the
For example, the statement
\samp
{
import spam
}
results in the
following call:
\code
{__
import
__
('spam',
}
\code
{
globals(),
}
\code
{
locals(), [])
}
;
the statement
\code
{
from
}
\code
{
spam.ham import
}
\code
{
eggs
}
results
in
\code
{__
import
__
('spam.ham',
}
\code
{
globals(),
}
\code
{
locals(),
}
\code
{
['eggs'])
}
.
the statement
\samp
{
from spam.ham import eggs
}
results
in
\samp
{__
import
__
('spam.ham', globals(), locals(), ['eggs'])
}
.
Note that even though
\code
{
locals()
}
and
\code
{
['eggs']
}
are passed
in as arguments, the
\function
{__
import
__
()
}
function does not set the
local variable named
\code
{
eggs
}
; this is done by subsequent code that
...
...
@@ -695,9 +694,10 @@ to decode UTF-8 in strict mode, meaning that encoding errors raise
\end{funcdesc}
\begin{funcdesc}
{
unistr
}{
object
}
Return a Unicode string containing a nicely printable representation of an
object. For Unicode, this returns the Unicode string itself. For
all other objects, it tries to convert
\code
{
str(
\var
{
object
}
)] to Unicode.
Return a Unicode string containing a nicely printable representation
of an object. For Unicode, this returns the Unicode string itself.
For all other objects, it tries to convert
\code
{
str(
\var
{
object
}
)
}
to
Unicode.
\end{funcdesc}
\begin{funcdesc}
{
vars
}{
\optional
{
object
}}
...
...
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