Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #99043

Re: Is there an meaning of '[[]]' in a list?

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Nagy László Zsolt <gandalf@shopzeus.com>
Newsgroups comp.lang.python
Subject Re: Is there an meaning of '[[]]' in a list?
Date Thu, 19 Nov 2015 12:36:46 +0100
Lines 10
Message-ID <mailman.453.1447933015.16136.python-list@python.org> (permalink)
References <750e1071-395b-4e9b-ad64-05faa174a5bf@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=windows-1252
Content-Transfer-Encoding 7bit
X-Trace news.uni-berlin.de vYD64+U3Bhxtz+RMIpHdgAB/pLC7flItkM/6i0N2JJ0A==
Return-Path <gandalf@shopzeus.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.020
X-Spam-Evidence '*H*': 0.96; '*S*': 0.00; 'elements.': 0.05; 'memory.': 0.05; 'assignment': 0.07; '[[]]': 0.16; 'element.': 0.16; 'list.)': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'element': 0.18; 'header:In-Reply-To:1': 0.24; 'subject:list': 0.26; 'question:': 0.29; 'list': 0.34; 'there': 0.36; 'to:addr:python-list': 0.36; 'subject:?': 0.36; 'subject:: ': 0.37; 'list.': 0.37; 'difference': 0.38; 'enough': 0.39; 'to:addr:python.org': 0.40; 'charset:windows-1252': 0.62; '(that': 0.63; 'between': 0.65; 'subject:there': 0.66
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=shopzeus.com; s=shopzeus_com; t=1447933007; bh=0DNWLFTkTyS62F4sKTWzpqTON8EYMXH5lvMGnyFYhpM=; h=Subject:To:References:From:Date:In-Reply-To:From; b=Tdiz8jEBE9BPOgYfkIGJCzz1+fgxTaP8IrtTQOrT72QjUgSTj6gK3T66duJuGYRVh CAl4dDA3y1Ul5FHmUccn3FQDdArbvC0hmba47yBN6Ihb03RzJZfiWYkIEDCjtmzb0e i2lECeKmY5/K/RLCWP0p8Ie2XfbsCGE9j5xJQUqE+NVmw2D3szdKzts7Gso4pq80Rw 2btnV+XYpYVTwge1T3ABlUPd3gjq7p4XB4jqVlHvBgEHjG23HBv4Fvnxwqq5wPdFmL P7bF7T+UQEOcezT/4Ng2QdAajtSLkfDKZAlQZzuLooTwSXkm0tD6GqT4nusylAGhKk xORQykfVYLB3A==
In-Reply-To <750e1071-395b-4e9b-ad64-05faa174a5bf@googlegroups.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Xref csiph.com comp.lang.python:99043

Show key headers only | View raw


> I have question: Is there any difference between [[]] and []?
Yes.

[] - a list with zero elements. That is an empty list.
[[]] - A list with one element. (That element is an empty list.)

> [[]] can have deeper assignment and use than 
You can have it as deep as you want, if you have enough memory.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Is there an meaning of '[[]]' in a list? fl <rxjwg98@gmail.com> - 2015-11-19 03:28 -0800
  Re: Is there an meaning of '[[]]' in a list? Nagy László Zsolt <gandalf@shopzeus.com> - 2015-11-19 12:36 +0100
  Re: Is there an meaning of '[[]]' in a list? Peter Otten <__peter__@web.de> - 2015-11-19 12:40 +0100
    Re: Is there an meaning of '[[]]' in a list? Quivis <quivis@domain.invalid> - 2015-11-22 23:25 +0000
      Re: Is there an meaning of '[[]]' in a list? Joel Goldstick <joel.goldstick@gmail.com> - 2015-11-22 19:08 -0500
      Re: Is there an meaning of '[[]]' in a list? Peter Otten <__peter__@web.de> - 2015-11-23 09:57 +0100
      Re: Is there an meaning of '[[]]' in a list? Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2015-11-25 12:04 +0100
  Re: Is there an meaning of '[[]]' in a list? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-11-19 16:26 +0000

csiph-web