Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.022 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'agree,': 0.07; 'am,': 0.12; 'library': 0.13; 'example?': 0.16; 'remembered': 0.16; 'url:voidspace': 0.16; 'cc:addr:python-list': 0.16; 'wrote:': 0.18; 'mechanism': 0.19; 'cc:no real name:2**0': 0.21; 'header:In- Reply-To:1': 0.22; 'diez': 0.23; 'writes:': 0.25; 'cc:2**0': 0.26; 'code': 0.26; "i'm": 0.28; 'cc:addr:python.org': 0.29; 'python3': 0.30; 'message-id:@gmail.com': 0.31; 'quite': 0.31; "i've": 0.32; 'supposed': 0.32; 'idea': 0.32; 'header:User-Agent:1': 0.33; 'done': 0.34; 'doc': 0.34; 'probably': 0.35; 'url:python': 0.35; 'received:209.85.214': 0.36; 'two': 0.36; 'received:10.0.0': 0.37; 'but': 0.37; 'received:google.com': 0.37; 'using': 0.37; "i'll": 0.38; 'received:209.85': 0.38; 'url:org': 0.39; 'received:209': 0.39; 'url:uk': 0.40; 'validation': 0.73; 'andrea': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=1BF2vrz+boj2rdeFn7YXOyc1Qm4h8B5qZsW2FKPG3jw=; b=fLssYzdv4F75+/jgdE798OzHoCcUqAApNWog+pw1CA7qh3vqGe+hKqWpEVLJTNRHKL jFESFa/KnipbZWyrz+pKA4WoluoM0dAsgo2HfZwtk7ZdDRnCUEEAOtWcXLqkPEhp28qk l6gUL+jAO94AzAbdzn9IASk+Z4a3mbhkLTWP80u355gWvUvh8bjuBYfjfjst5uEcQZga gPwEhAg5TFGwB+FxVRrZW8w7Gc+Og7YPC5U3hPGVe0PdP5nPHRFS+MIMWTHVom4Sh99x KFf9Fe5vVQHdF8vX6cKC6H7k+7391Dp5nqoXz3a7PmoHgxcbiWWe7Iq2AhhAxIQGx6au DEBg== Date: Wed, 21 Mar 2012 13:06:06 +0000 From: Andrea Crotti User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.2) Gecko/20120217 Thunderbird/10.0.2 MIME-Version: 1.0 To: "Diez B. Roggisch" Subject: Re: configobj validation References: <4F672DBF.5060506@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1332335169 news.xs4all.nl 6859 [2001:888:2000:d::a6]:59130 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:21983 On 03/21/2012 11:40 AM, Diez B. Roggisch wrote: > Andrea Crotti writes: > > It works - so why do you bother? And I'm not sure about the above code - > AFAIK, validation is a two-step thing: > > http://www.voidspace.org.uk/python/articles/configobj.shtml#validation > > Diez I don't agree, if you write code that is supposed to work with Python3, using a library which is not developed and will probably never support Python3 is quite a stupid idea ;) Any other validation mechanism that can be plugged in ConfigParser for example? From what I've understood from the doc and what I remembered I thought that validation is automatically done when passing the configspec, but I'll check if the two steps work..