Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)
Steven D'Aprano
steve at pearwood.info
Tue Mar 25 01:28:29 EDT 2014
On Tue, 25 Mar 2014 06:57:19 +1100, Chris Angelico wrote:
> Can you imagine a high level language without a simple notation for
> variable assignment? Certainly not.
I don't know... what a stack based or concatenative language like Forth,
Postscript, Joy or Factor count as high-level?
I'm pretty sure Joy and Factor should. Perhaps not Forth or Postscript.
Some of these language may offer variable assignment, but using it is
entirely optional. It's a convenience, nothing more.
--
Steven
More information about the Python-list
mailing list