En Thu, 20 Aug 2009 06:54:05 -0300, <""Michel Claveau -
MVP"> escribió:
Yes, the module sets is written, in doc, like "deprecated".
But:
- sets exist in Python 2.6 (& 2.5 or 2.4)
- documentation of sets (module) is better tha, documentation of set
(builtin)
The best: read the documenta
(envoyé via news:\\news.wanadoo.fr\comp.lang.python)
Hi!
Yes, the module sets is written, in doc, like "deprecated".
But:
- sets exist in Python 2.6 (& 2.5 or 2.4)
- documentation of sets (module) is better tha, documentation of set
(builtin)
The best: read the documentaion of the module
19-08-2009 o 10:56:20 <""Michel Claveau -
MVP"> wrote:
(envoyé via news:\\news.wanadoo.fr\comp.lang.python)
Hi!
See the module "sets"
No, see the builtin set type. Module sets is deprecated (removed in Py 3.x)
--
Jan Kaliszewski (zuo)
--
http://mail.python.org/mailman/listinfo/python-list
On 19 Aug, 01:48, Pierre wrote:
> Well, the equivalence of setdiff in matlab...
That would be numpy.setdiff1d.
--
http://mail.python.org/mailman/listinfo/python-list
On 2009-08-19 01:48 AM, Pierre wrote:
Hello,
I would like to know how to find the difference (set operation)
between 2 arrays :
a = array([1,2, 3,2,5,2])
b = array([1,2])
I want a - b = [3,5]
Well, the equivalence of setdiff in matlab...
You will want to ask numpy questions on the numpy mail
baalu aanand wrote:
> On Aug 19, 1:48 pm, Pierre wrote:
>> Hello,
>>
>> I would like to know how to find the difference (set operation)
>> between 2 arrays :
>>
>> a = array([1,2, 3,2,5,2])
>> b = array([1,2])
>> I want a - b = [3,5]
>>
>> Well, the equivalence of setdiff in matlab...
>>
>> I tho
On Wed, Aug 19, 2009 at 4:48 AM, Pierre wrote:
> Hello,
>
> I would like to know how to find the difference (set operation)
> between 2 arrays :
>
> a = array([1,2, 3,2,5,2])
> b = array([1,2])
> I want a - b = [3,5]
>
> Well, the equivalence of setdiff in matlab...
>
> I thought a.difference(b) co
Pierre (19.08.2009 10:48):
Hello,
I would like to know how to find the difference (set operation)
between 2 arrays :
a = array([1,2, 3,2,5,2])
b = array([1,2])
I want a - b = [3,5]
What about set()?
>>> a = set([1,2, 3,2,5,2])
>>> b = set([1,2])
>>> a.difference(b)
set([3, 5])
Matthias
--
On Aug 19, 1:48 pm, Pierre wrote:
> Hello,
>
> I would like to know how to find the difference (set operation)
> between 2 arrays :
>
> a = array([1,2, 3,2,5,2])
> b = array([1,2])
> I want a - b = [3,5]
>
> Well, the equivalence of setdiff in matlab...
>
> I thought a.difference(b) could work, bu
On Aug 19, 1:48 pm, Pierre wrote:
> Hello,
>
> I would like to know how to find the difference (set operation)
> between 2 arrays :
>
> a = array([1,2, 3,2,5,2])
> b = array([1,2])
> I want a - b = [3,5]
>
> Well, the equivalence of setdiff in matlab...
>
> I thought a.difference(b) could work, bu
On Aug 19, 6:56 pm, "Michel Claveau -
MVP" wrote:
> See the module "sets"
See especially the notice at the front of the current sets doc which
says "deprecated since 2.6" and the comparison down the end which
explains why the built-in set() and frozenset() are better than the
sets module. Startin
Re !
Juste pour signaler qu'il existe un newsgroup en français sur Python, qui
permet de recevoir des réponses en français (donc plus complètes/détaillées).
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
(envoyé via news:\\news.wanadoo.fr\comp.lang.python)
Hi!
See the module "sets"
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
Pierre wrote:
> Hello,
>
> I would like to know how to find the difference (set operation)
> between 2 arrays :
>
> a = array([1,2, 3,2,5,2])
> b = array([1,2])
> I want a - b = [3,5]
>
> Well, the equivalence of setdiff in matlab...
>
> I thought a.difference(b) could work, but no : Attribute
Hello,
I would like to know how to find the difference (set operation)
between 2 arrays :
a = array([1,2, 3,2,5,2])
b = array([1,2])
I want a - b = [3,5]
Well, the equivalence of setdiff in matlab...
I thought a.difference(b) could work, but no : AttributeError:
'numpy.ndarray' object has no at
15 matches
Mail list logo