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
6f77667a
Commit
6f77667a
authored
Jan 19, 2001
by
Marc-André Lemburg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backed out the unistr() builtin.
parent
a8e14d4d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
25 deletions
+0
-25
Doc/lib/libfuncs.tex
Doc/lib/libfuncs.tex
+0
-7
Python/bltinmodule.c
Python/bltinmodule.c
+0
-18
No files found.
Doc/lib/libfuncs.tex
View file @
6f77667a
...
...
@@ -693,13 +693,6 @@ to decode UTF-8 in strict mode, meaning that encoding errors raise
\versionadded
{
2.0
}
\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.
\end{funcdesc}
\begin{funcdesc}
{
vars
}{
\optional
{
object
}}
Without arguments, return a dictionary corresponding to the current
local symbol table. With a module, class or class instance object as
...
...
Python/bltinmodule.c
View file @
6f77667a
...
...
@@ -1935,23 +1935,6 @@ Return a nice string representation of the object.\n\
If the argument is a string, the return value is the same object."
;
static
PyObject
*
builtin_unistr
(
PyObject
*
self
,
PyObject
*
args
)
{
PyObject
*
v
;
if
(
!
PyArg_ParseTuple
(
args
,
"O:unistr"
,
&
v
))
return
NULL
;
return
PyObject_Unicode
(
v
);
}
static
char
unistr_doc
[]
=
"unistr(object) -> unicode
\n
\
\n
\
Return a nice unicode representation of the object.
\n
\
If the argument is a unicode, the return value is the same object."
;
static
PyObject
*
builtin_tuple
(
PyObject
*
self
,
PyObject
*
args
)
{
...
...
@@ -2267,7 +2250,6 @@ static PyMethodDef builtin_methods[] = {
{
"type"
,
builtin_type
,
1
,
type_doc
},
{
"unicode"
,
builtin_unicode
,
1
,
unicode_doc
},
{
"unichr"
,
builtin_unichr
,
1
,
unichr_doc
},
{
"unistr"
,
builtin_unistr
,
1
,
unistr_doc
},
{
"vars"
,
builtin_vars
,
1
,
vars_doc
},
{
"xrange"
,
builtin_xrange
,
1
,
xrange_doc
},
{
"zip"
,
builtin_zip
,
1
,
zip_doc
},
...
...
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