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


Groups > comp.lang.python > #101290

How to union nested Sets / A single set from nested sets?

From mviljamaa <mviljamaa@kapsi.fi>
Newsgroups comp.lang.python
Subject How to union nested Sets / A single set from nested sets?
Date 2016-01-04 04:40 +0200
Message-ID <mailman.19.1452086285.2305.python-list@python.org> (permalink)

Show all headers | View raw


I'm forming sets by set.adding to sets and this leads to sets such as:

Set([ImmutableSet(['a', ImmutableSet(['a'])]), ImmutableSet(['b', 
'c'])])

Is there way union these to a single set, i.e. get

Set(['a', 'b', 'c'])

?

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


Thread

How to union nested Sets / A single set from nested sets? mviljamaa <mviljamaa@kapsi.fi> - 2016-01-04 04:40 +0200
  Re: How to union nested Sets / A single set from nested sets? Rustom Mody <rustompmody@gmail.com> - 2016-01-06 08:19 -0800
  Re: How to union nested Sets / A single set from nested sets? Grobu <snailcoder@retrosite.invalid> - 2016-01-07 05:59 +0100
    Re: How to union nested Sets / A single set from nested sets? Joel Goldstick <joel.goldstick@gmail.com> - 2016-01-07 00:33 -0500

csiph-web