Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico Newsgroups: comp.lang.python Subject: Re: Howw to prevent the duplication of any value in a column within a CSV file (python) Date: Wed, 27 Apr 2016 16:37:27 +1000 Lines: 8 Message-ID: References: <75e5d8dc-e15b-4350-95e8-490abd4aa14f@googlegroups.com> <531e2dda-c522-4b11-a030-f3f37078f344@googlegroups.com> <49f4ffd8-d140-4f1b-95a9-75cb122e8b2f@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de z5fUY0jsMc5+llWdSEGJTwxKk/Lphb6M7dvR8KxamN/A== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.007 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'received:209.85.223': 0.03; 'constructor': 0.07; 'subject:file': 0.07; 'cc:addr:python- list': 0.09; 'subject:CSV': 0.09; 'subject:python': 0.14; 'wed,': 0.15; 'subject: \n ': 0.15; '2016': 0.16; 'adam': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'parentheses': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'header:In-Reply-To:1': 0.24; 'message-id:@mail.gmail.com': 0.27; 'that,': 0.34; 'received:google.com': 0.35; 'nothing.': 0.35; 'set.': 0.35; 'but': 0.36; 'received:209.85': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'received:209': 0.38; 'mean': 0.38; 'subject:the': 0.39; 'where': 0.40; 'back': 0.62; 'within': 0.64; '4:26': 0.84; 'chrisa': 0.84; 'subject:any': 0.84; 'subject:value': 0.84; 'to:none': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc; bh=tptmEGbTBDf9Z0JgLWCfdC4orZxtIR1fRDtEgD1y+Gs=; b=j3lAfuKpSjuYOcXqkXsybBwL7YR0bBnTp3CfsNx2mVQa1LwVlRJ77Tm6ldR3j6azIZ zVSJ1K9vqelB1K53Xh0kJBHF7vWxoyfLJ5NYwjKL2P44ZpdLAp80gEyW4ZZ4RZ1FYTIk lyQ1a1C1JSWw8nhPcNaxPV0WsLAosd1g+ZTV2PDZICTTBIETAL+0RhCtw+JBwpjVoe/f DwKQXKtWaWreo0n4u9jDavfhFuNXV62Bp2NNYaYt7afB9HW76S09oVRWSyVOyK3VUKb1 3IaQf5LO6Mhfa/xAkIi+I8bxRu4Wegqy/pzlqd4TgISipYcrrT3MYDuQ3shzSOMlOYkR /GGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:cc; bh=tptmEGbTBDf9Z0JgLWCfdC4orZxtIR1fRDtEgD1y+Gs=; b=H8YE6mWztq9VOxSI4WfYxlnUT8uIqg+x61QfcZ01eGqMb/6TVdGONNtdhJJkNd+X4y PB7X1nku+rRMO0tAKr4+OfeeMmo8vLirSLF2yt/C1kCgXjFviia2YTqIKMybLcTuUev+ h6B2eHfGBVIqAbvv6srm+W+tUqwBzzDGiXLwe5YZGUUhKlDGYdoOiq09CqxQByCEGXVi WVzhLOeaKhk021fKRpjrLhtkTc+bWC5KgoIBR3x1UePMHA5Po1OkoKZf2KVVIXIv8hoc Azr6gNfsrn1nIGZOzPR6RZVkMGPPFH6iYXs8dMqH+q0ZxyfiSY2q7YROwmYd4pr+yYdF I+Tw== X-Gm-Message-State: AOPr4FVp1JBrhTIjGL1hpemEgB1vY2NUQlCLMNgqVtk8JPInl77IO3WLPkNRrzl0irJ2FJH5nGeI3NmMll3r8A== X-Received: by 10.107.137.166 with SMTP id t38mr8320572ioi.31.1461739047409; Tue, 26 Apr 2016 23:37:27 -0700 (PDT) In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: X-Mailman-Original-References: <75e5d8dc-e15b-4350-95e8-490abd4aa14f@googlegroups.com> <531e2dda-c522-4b11-a030-f3f37078f344@googlegroups.com> <49f4ffd8-d140-4f1b-95a9-75cb122e8b2f@googlegroups.com> Xref: csiph.com comp.lang.python:107711 On Wed, Apr 27, 2016 at 4:26 PM, Adam Davis wrote: > I understand what you're saying! But where you say: " the_set = set()", what would go within the set brackets? Nothing. The empty parentheses mean "call this with no arguments", and when you call the set constructor like that, you get back an empty set. ChrisA