Hallo Liste wieder mal ein kleines Problem ich habe zwei Listen: a= ('chriss','thomas') b= ('chriss','thomas','gustav') jetzt möchte ich nur die werte haben die nicht doppelt in Liste b und b vorkommen!! also c= ('gustav') gibt es hierfür vielleicht eine funktion ??? mfg christian
Klinger Christian wrote:
Hallo Liste
wieder mal ein kleines Problem
hi, have a look at http://www.dzug.org/ [German Zope User Group] for the one and only mailinglist for german-speaking Zopers...;-) cheers, maik
Nicht direkt. Python 2.3 bekommt wohl ein Modul fuer Sets, dass vielleicht so was kann. Alternativ koenntest Du das BTrees Package von Zope verwenden. Dort gibt es entsprechende Operation auf Sets. -aj --On Montag, 28. Oktober 2002 11:54 +0200 Klinger Christian <cklinger@econtec.de> wrote:
Hallo Liste
wieder mal ein kleines Problem
ich habe zwei Listen:
a= ('chriss','thomas') b= ('chriss','thomas','gustav')
jetzt möchte ich nur die werte haben die nicht doppelt in Liste b und b vorkommen!!
also
c= ('gustav')
gibt es hierfür vielleicht eine funktion ???
mfg christian
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
--------------------------------------------------------------------- - Andreas Jung http://www.andreas-jung.com - - EMail: andreas at andreas-jung.com - - "Life is too short to (re)write parsers" - ---------------------------------------------------------------------
Ups, my reply and of couse the question should be in English ;-) -aj --On Montag, 28. Oktober 2002 11:05 +0100 Andreas Jung <lists@andreas-jung.com> wrote:
Nicht direkt. Python 2.3 bekommt wohl ein Modul fuer Sets, dass vielleicht so was kann. Alternativ koenntest Du das BTrees Package von Zope verwenden. Dort gibt es entsprechende Operation auf Sets.
-aj
--On Montag, 28. Oktober 2002 11:54 +0200 Klinger Christian <cklinger@econtec.de> wrote:
Hallo Liste
wieder mal ein kleines Problem
ich habe zwei Listen:
a= ('chriss','thomas') b= ('chriss','thomas','gustav')
jetzt möchte ich nur die werte haben die nicht doppelt in Liste b und b vorkommen!!
also
c= ('gustav')
gibt es hierfür vielleicht eine funktion ???
mfg christian
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
--------------------------------------------------------------------- - Andreas Jung http://www.andreas-jung.com - - EMail: andreas at andreas-jung.com - - "Life is too short to (re)write parsers" - ---------------------------------------------------------------------
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
--------------------------------------------------------------------- - Andreas Jung http://www.andreas-jung.com - - EMail: andreas at andreas-jung.com - - "Life is too short to (re)write parsers" - ---------------------------------------------------------------------
participants (3)
-
Andreas Jung -
Klinger Christian -
Maik Jablonski