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
2080ea5f
Commit
2080ea5f
authored
Dec 07, 2008
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Forward-port r67624 and r67627.
parent
c7d2b21c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
8 deletions
+1
-8
Doc/library/functions.rst
Doc/library/functions.rst
+0
-7
Doc/tutorial/datastructures.rst
Doc/tutorial/datastructures.rst
+1
-1
No files found.
Doc/library/functions.rst
View file @
2080ea5f
...
...
@@ -137,13 +137,6 @@ are always available. They are listed here in alphabetical order.
type
hierarchy
in
:
ref
:`
types
`.
..
function
::
cmp
(
x
,
y
)
Compare
the
two
objects
*
x
*
and
*
y
*
and
return
an
integer
according
to
the
outcome
.
The
return
value
is
negative
if
``
x
<
y
``,
zero
if
``
x
==
y
``
and
strictly
positive
if
``
x
>
y
``.
..
function
::
compile
(
source
,
filename
,
mode
[,
flags
[,
dont_inherit
]])
Compile
the
*
source
*
into
a
code
or
AST
object
.
Code
objects
can
be
executed
...
...
Doc/tutorial/datastructures.rst
View file @
2080ea5f
...
...
@@ -376,7 +376,7 @@ Here is a brief demonstration::
>>> basket = {'apple', 'orange', 'apple', 'pear', 'orange', 'banana'}
>>> print(basket)
{'orange', 'banan
n
a', 'pear', 'apple'}
{'orange', 'banana', 'pear', 'apple'}
>>> fruit = ['apple', 'orange', 'apple', 'pear', 'orange', 'banana']
>>> fruit = set(basket) # create a set without duplicates
>>> fruit
...
...
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