public inbox for gentoo-portage-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Arfrever Frehtes Taifersar Arahesis <arfrever.fta@gmail.com>
To: Gentoo Portage Development <gentoo-portage-dev@lists.gentoo.org>
Subject: Re: [gentoo-portage-dev] [PATCH] emerge --info: Modernize output of configuration of repositories
Date: Tue, 9 Dec 2014 11:17:15 +0100	[thread overview]
Message-ID: <201412091117.17439.Arfrever.FTA@gmail.com> (raw)
In-Reply-To: <5486B7DD.8040700@gentoo.org>

[-- Attachment #1: Type: Text/Plain, Size: 586 bytes --]

2014-12-09 09:50 Alexander Berntsen napisał(a):
> On 08/12/14 20:04, Arfrever Frehtes Taifersar Arahesis wrote:
> > +	for skipped_var in skipped_vars: +		try: +
> > myvars.remove(skipped_var) +		except ValueError: +			pass +
> wat

It is deleting elements from a list.

>>> mylist = ["ab", "cd", "ef"]
>>> mylist
['ab', 'cd', 'ef']
>>> mylist.remove("cd")
>>> mylist
['ab', 'ef']
>>> mylist.remove("cd")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: list.remove(x): x not in list
>>>

--
Arfrever Frehtes Taifersar Arahesis

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

  reply	other threads:[~2014-12-09 10:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-08 19:04 [gentoo-portage-dev] [PATCH] emerge --info: Modernize output of configuration of repositories Arfrever Frehtes Taifersar Arahesis
2014-12-09  0:08 ` Brian Dolbec
2014-12-09  8:50 ` Alexander Berntsen
2014-12-09 10:17   ` Arfrever Frehtes Taifersar Arahesis [this message]
2014-12-11  6:51 ` Zac Medico
2014-12-11  7:23   ` Alexander Berntsen
2014-12-13  6:44 ` Arfrever Frehtes Taifersar Arahesis
2014-12-13 11:50   ` Alexander Berntsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201412091117.17439.Arfrever.FTA@gmail.com \
    --to=arfrever.fta@gmail.com \
    --cc=gentoo-portage-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox