Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #103124

Re: TypeError: not all arguments converted during string formatting

Path csiph.com!weretis.net!feeder4.news.weretis.net!storethat.news.telefonica.de!feedme.news.telefonica.de!telefonica.de!fu-berlin.de!uni-berlin.de!not-for-mail
From Ganesh Pal <ganesh1pal@gmail.com>
Newsgroups comp.lang.python
Subject Re: TypeError: not all arguments converted during string formatting
Date Thu, 18 Feb 2016 21:12:26 +0530
Lines 11
Message-ID <mailman.7.1455810148.2289.python-list@python.org> (permalink)
References <CACT3xuX36xwQUZ=KWoxVzyNzsmnt_UM3==j0zgDH5UNTGR7HxQ@mail.gmail.com> <CAPTjJmp3X+bPQ6zp3_eV9GnKmXJ1ATuiGAG2WU2cKJkdaU2uFQ@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
X-Trace news.uni-berlin.de m1GxwsRSNK8Gg4hipQaYWAIgHrsjyUCM/UMB+AZjNUHA==
Return-Path <ganesh1pal@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'predefined': 0.07; 'cc:addr:python-list': 0.09; 'optional': 0.09; 'rules.': 0.09; 'subject:string': 0.09; 'subject:not': 0.11; 'wed,': 0.15; '2016': 0.16; 'err,': 0.16; 'happily': 0.16; 'instead:': 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; 'feb': 0.23; 'header :In-Reply-To:1': 0.24; 'chris': 0.26; 'logging': 0.27; 'message- id:@mail.gmail.com': 0.27; 'accepts': 0.29; 'arguments,': 0.29; 'print': 0.30; 'subject:all': 0.32; 'received:google.com': 0.35; 'according': 0.36; 'received:209.85': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'thanks': 0.37; 'received:209': 0.38; 'some': 0.40
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:to :cc:content-type; bh=da5xKjbgwpe8bpieSbCfYJRHE37QeaY+tz36gfjWpCg=; b=p/GdHnhSXx9bG9vr4JGpHa7jJ4nONiumC/Nnkz6PVY+aNDsTxWHe3ZvRiX/8diLRLO qeSou+3iDlzfEDB3HOSjnAr3RSNLJMQC8BD+dWqhj5u0cvVBGwKINfoyfVVq5hzHhQhu QWer5q8e7jjQBjjRoR5DiFDxD5iztiUTRRHHYdj/qkhXFfdrljAvSoWEYESHXO71lfVg +PsL5EYlbMLk7UnXysw7rFCnRAbaHJFJHudatdfCfyX74I/GIpa/ObUtIV9TiZyE9bSk 2BlaNry1oyX+HmAh87eYjL0bXoPiYAm0aghYcFJpYsADkm3vngbrKzbmDXs75XSoFTkZ W+vg==
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:to:cc:content-type; bh=da5xKjbgwpe8bpieSbCfYJRHE37QeaY+tz36gfjWpCg=; b=I4GPfqzm2rFKjEZdHDia0ez0WDEne3lcP7zmYkW1Y0eZH3XA+fsYdosLOVbhCsSQ+n ZazGVqDuut73xh+uiCckyZgyOOXpvDXrNRsHMA969Sm3+Jz8mqChnfKKX7h7m2w+A5Fx HrBtBZWq8SQGbnNQfHolX9eoe3mdo/ZsZjgnY2Q9WvxocC0URf9w49U2HOezVOHJ2uaU n1e4RjxfAg052iCrLEPinvaypRwAI4Z9TdE/ybF1pI23rJgcDIR9IcyG4Hzfks+9FoV4 9kA6hOQMgQ7zxvz8AQPBYDrxLyS/5PMgDuJQMWGKU86On2gKlVAK7Og0en4sPtv5FGhE rhcQ==
X-Gm-Message-State AG10YOQUImMLl6hNdjL7snZ31xbBIzRwm2qYwIX5d9hgQQz2gmHJn4SLlLvpAdX6Hp+PKD0cuCWn9tNSxUBHkA==
X-Received by 10.112.147.198 with SMTP id tm6mr3510515lbb.105.1455810146793; Thu, 18 Feb 2016 07:42:26 -0800 (PST)
In-Reply-To <CAPTjJmp3X+bPQ6zp3_eV9GnKmXJ1ATuiGAG2WU2cKJkdaU2uFQ@mail.gmail.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.21rc2
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Xref csiph.com comp.lang.python:103124

Show key headers only | View raw


On Wed, Feb 17, 2016 at 7:32 PM, Chris Angelico <rosuav@gmail.com> wrote:

> The print statement/function happily accepts multiple arguments, and
> will join them according to a set of predefined rules. The logging
> functions don't have those rules, so they take one message and some
> optional parameters. Try this, instead:
>
> logging.info("%r %r %r", out, err, ret)
>

Thanks this solved my issue :)

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: TypeError: not all arguments converted during string formatting Ganesh Pal <ganesh1pal@gmail.com> - 2016-02-18 21:12 +0530

csiph-web