Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: "thomas povtal.org" Newsgroups: comp.lang.python Subject: Re: Spurious issue in CPython 2.7.5 Date: Tue, 24 May 2016 17:20:53 +0200 (CEST) Lines: 24 Message-ID: References: <779717266.18172.1464085350716.JavaMail.open-xchange@ox.netsite.dk> <22d5183b-e1af-4b31-8eea-ea5634c50c60@googlegroups.com> <982441179.18828.1464103253998.JavaMail.open-xchange@ox.netsite.dk> Reply-To: "thomas povtal.org" Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: news.uni-berlin.de TYcwHYOb5Zmo2k2tEuFgnQ188FztoodxNHOU2YhEFM1Q== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.028 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; '"if': 0.09; 'corrections': 0.09; '"="': 0.16; '"=="': 0.16; '2016': 0.16; '24,': 0.16; 'assignment.': 0.16; 'equivalence': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:issue': 0.16; 'typo.': 0.16; 'wrote:': 0.16; 'variable': 0.18; 'header:In-Reply-To:1': 0.24; 'rest': 0.26; 'received:dk': 0.29; 'url:mailman': 0.30; 'to:name :python-list': 0.30; 'url:python': 0.33; 'foo': 0.33; 'url:listinfo': 0.34; 'thanks!': 0.34; 'so,': 0.35; 'should': 0.36; 'url:org': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'really': 0.37; '(with': 0.38; "didn't": 0.39; 'rather': 0.39; 'url:mail': 0.40; 'to:addr:python.org': 0.40; 'where': 0.40; 'skip:n 10': 0.62; 'thomas': 0.63; 'url:xhtml1': 0.67; 'header :Reply-To:1': 0.67; 'url:dtd': 0.76; '(global': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=povtal.org; s=netsite1; t=1464103255; bh=jJhJARYSfi/zBzSNiINVNz/VyOYrvGVyTDspZnlNocQ=; h=Date:From:Reply-To:To:In-Reply-To:References:Subject; b=pym8ISLYk3hQttDssifV5aJ3UQLd9BLic0fDwEbcLJOiJeyh6faGdTnN9a9eJyF60 crXidLcbJXP/la6nyjWsHeu57mK2xbm4wDeYDIV2beBnxDl4C+CL34Vey4dEfLrbgJ ZqzBsa3c977CpJYuyoHlWvagFzMEmZWKyy3DRxx2UZ9kJsc1y3A26/zl8fCg0NK8I1 9koQV6Z5VuReMKn8zbZE0/Btzy5jaeF2LJF6oJvtkrwbf//63jObBBleRH/EOf3NHV fllgjgTFdA+uDfq/Cav+aaVTD7uKXW1z9/Ob+8bMvgeifMml2lb3dB+Dbf7wqboTqV fLDGt2sd1CFEg== In-Reply-To: <22d5183b-e1af-4b31-8eea-ea5634c50c60@googlegroups.com> X-Priority: 3 Importance: Medium X-Mailer: Open-Xchange Mailer v7.6.3-Rev11 X-Originating-Client: open-xchange-appsuite X-Content-Filtered-By: Mailman/MimeDel 2.1.22 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: <982441179.18828.1464103253998.JavaMail.open-xchange@ox.netsite.dk> X-Mailman-Original-References: <779717266.18172.1464085350716.JavaMail.open-xchange@ox.netsite.dk> <22d5183b-e1af-4b31-8eea-ea5634c50c60@googlegroups.com> Xref: csiph.com comp.lang.python:109063 Hi! Thanks! That was a typo. I do '=='. The rest of the mail is ok (with the corrections from Chris) :) T Den 24. maj 2016 klokken 17:05 skrev Novocastrian_Nomad : On Tuesday, May 24, 2016 at 5:47:55 AM UTC-6, thomas povtal.org wrote: ... > 1: I get "RuntimeWarning: tp_compare didn't return -1 or -2 for > exception". It's a line like: > > "if Foo = False:" where Foo is a global variable (global Foo). ... Are you really using "if Foo = False:"? If so, it should be "if Foo == False:" "==" for equivalence rather than "=" for assignment. -- https://mail.python.org/mailman/listinfo/python-list