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
cb2cf06b
Commit
cb2cf06b
authored
Oct 25, 2019
by
Ammar Askar
Committed by
Zachary Ware
Oct 25, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-38558: Mention `:=` in conditions tutorial (GH-16919)
parent
7320ec05
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Doc/tutorial/datastructures.rst
Doc/tutorial/datastructures.rst
+4
-4
No files found.
Doc/tutorial/datastructures.rst
View file @
cb2cf06b
...
...
@@ -675,10 +675,10 @@ to a variable. For example, ::
>>> non_null
'Trondheim'
Note that in Python, unlike C, assignment
cannot occur inside expressions. C
programmers may grumble about this, but it avoids a common class of problems
encountered in C programs: typing ``=`` in an expression when ``==`` was
intended.
Note that in Python, unlike C, assignment
inside expressions must be done
explicitly with the walrus operator ``:=``. This avoids a common class of
problems encountered in C programs: typing ``=`` in an expression when ``==``
was
intended.
.. _tut-comparing:
...
...
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