Is '[' a function or an operator or an language feature?
Robert Kern
robert.kern at gmail.com
Fri Jul 16 13:41:48 EDT 2010
On 7/16/10 12:01 PM, Peng Yu wrote:
> I then checked help('LISTLITERALS'), which gives some description that
> is available from the language reference. So '[' in "x=[1,2,3]" is
> considered as a language feature rather than a function or an
> operator?
Yes. It is part of the list literal syntax of the Python language.
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
More information about the Python-list
mailing list