Tagged articles
6 articles
Page 1 of 1
Test Development Learning Exchange
Test Development Learning Exchange
Jul 24, 2024 · Fundamentals

Understanding the Walrus Operator (:=) in Python 3.8

Python 3.8 introduced the walrus operator (:=), a concise assignment expression that allows in-line variable assignment within expressions, and this article explains its purpose, benefits, and provides ten practical code examples illustrating its use in loops, comprehensions, conditionals, and function calls.

PythonPython 3.8assignment expression
0 likes · 5 min read
Understanding the Walrus Operator (:=) in Python 3.8
Sohu Tech Products
Sohu Tech Products
Mar 23, 2022 · Frontend Development

Understanding Double Assignment and Operator Precedence in jQuery Code

This article explains why jQuery’s source uses a double assignment pattern, how assignment operators are right‑associative expressions, the impact of operator precedence on property access versus assignment, and demonstrates practical uses such as building linked structures in JavaScript.

JavaScriptOperator Precedenceassignment expression
0 likes · 6 min read
Understanding Double Assignment and Operator Precedence in jQuery Code
ITPUB
ITPUB
Oct 20, 2019 · Fundamentals

Explore Python 3.8: Assignment Expressions, Positional‑Only Params & New Features

Python 3.8 introduces several practical enhancements—including the walrus operator (:=) for assignment expressions, positional‑only parameters marked by '/', runtime audit hooks, f‑string debugging with '=', improved asyncio REPL handling, shared memory support, a built‑in @cached_property decorator, and numerous performance and library updates.

3.8assignment expressioncached_property
0 likes · 8 min read
Explore Python 3.8: Assignment Expressions, Positional‑Only Params & New Features
MaGe Linux Operations
MaGe Linux Operations
Oct 15, 2019 · Fundamentals

Discover Python 3.8’s Game‑Changing Features: Walrus Operator, Audit Hooks & Beyond

Python 3.8 introduces a suite of powerful language enhancements—including the assignment expression (Walrus Operator), mandatory positional‑only parameters, runtime audit hooks, cross‑process shared memory, importlib.metadata utilities, cached_property, decorator simplifications for lru_cache, an interactive asyncio REPL, f‑string debugging, AsyncMock for asynchronous testing, and iterable unpacking fixes—each illustrated with concise code examples.

AsyncMockPython 3.8assignment expression
0 likes · 7 min read
Discover Python 3.8’s Game‑Changing Features: Walrus Operator, Audit Hooks & Beyond
21CTO
21CTO
Jul 31, 2019 · Fundamentals

What’s New in Python 3.8? Key Features and Improvements Explained

Python 3.8, now in beta 2, introduces several notable enhancements—including the assignment expression (walrus operator), improved f‑string debugging, keyword‑only arguments enforcement, relocatable __pycache__, faster C‑extension calls, and various module updates—while targeting an official release by October 2019.

New FeaturesPositional‑only ParametersPython
0 likes · 9 min read
What’s New in Python 3.8? Key Features and Improvements Explained