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


Groups > comp.lang.python > #107760

Re: Python Madlibs.py code and error message

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Stephen Hansen <me+python@ixokai.io>
Newsgroups comp.lang.python
Subject Re: Python Madlibs.py code and error message
Date Wed, 27 Apr 2016 22:16:57 -0700
Lines 12
Message-ID <mailman.174.1461820620.32212.python-list@python.org> (permalink)
References <3cff626c-28a2-499c-9877-de2df4d459d0@googlegroups.com> <dodj48Fb8o8U1@mid.individual.net> <6c0d96c5-c7f5-4659-a2e9-20f8d202d701@googlegroups.com> <1461820617.3238425.591942249.1484DAC3@webmail.messagingengine.com>
Mime-Version 1.0
Content-Type text/plain
Content-Transfer-Encoding 7bit
X-Trace news.uni-berlin.de dQ0d5UtRhNvOH2HIX5GpRQ1aIjf6MBcoUjtW3yeWh06A==
Return-Path <me+python@ixokai.io>
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; 'subject:Python': 0.05; 'formatting': 0.07; 'subject:code': 0.07; 'received:internal': 0.09; 'subject:error': 0.11; 'wed,': 0.15; '(ie,': 0.16; 'formatting.': 0.16; 'message-id:@webmail.messagingengine.com': 0.16; 'mismatch': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:io': 0.16; 'received:messagingengine.com': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'arguments': 0.22; 'stephen': 0.22; 'leave': 0.23; 'header:In-Reply-To:1': 0.24; 'error': 0.27; "i'm": 0.30; 'changed': 0.33; 'to:addr:python-list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'received:10': 0.37; 'missing': 0.37; 'received:66': 0.38; 'means': 0.39; 'to:addr:python.org': 0.40; 'header:Message-Id:1': 0.61; 'different': 0.63; 'between': 0.65
DKIM-Signature v=1; a=rsa-sha1; c=relaxed/relaxed; d=ixokai.io; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=+QmtWKsMmCY3ryJyuXdRKxJn+54=; b=GA8jFk faNgOAzxcunwPDX1W61D0UA0suxJr7Hd4kOhabVnrTPpQW+PdtyzbQbJB2Nv7QAr m4vtj/++1UL6ncHB8rHiBYYSjxZapB4cntfPppLq8VhTxiWqTc8lAE+r/1QOwVy1 YdEG/u9g4B9xSJ0igStmoxTo6s2ui1oKHB9AE=
DKIM-Signature v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=+QmtWKsMmCY3ryJ yuXdRKxJn+54=; b=FFIIq4LWqz+LswBAmicKPhr8iKHD5CVZszXWwXwNMxBMKBK PRAnZnZ0PkvzTNHDjcvEMSWQEVto7UYQXFvkz03T8bgeB3hxyAg/lzSAAyDPaLIX X814cn/CdxG3+UtJC7s/BtCTeg7uyj5dtlKl8aqvOrhEzdPI1AGaViOdyvfo=
X-Sasl-Enc tF1n4/gaIzF76a9HC3/7n9ACQB/HZ6b5HaujKp8R3LaY 1461820617
X-Mailer MessagingEngine.com Webmail Interface - ajax-f1265324
In-Reply-To <6c0d96c5-c7f5-4659-a2e9-20f8d202d701@googlegroups.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.22
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>
X-Mailman-Original-Message-ID <1461820617.3238425.591942249.1484DAC3@webmail.messagingengine.com>
X-Mailman-Original-References <3cff626c-28a2-499c-9877-de2df4d459d0@googlegroups.com> <dodj48Fb8o8U1@mid.individual.net> <6c0d96c5-c7f5-4659-a2e9-20f8d202d701@googlegroups.com>
Xref csiph.com comp.lang.python:107760

Show key headers only | View raw


On Wed, Apr 27, 2016, at 10:01 PM, Cai Gengyang wrote:
> I changed it to all lowercase, this time I get a different error message
> though (a TypeError message) 

The error message means there's a mismatch between the number of
formatting instructions (ie, %s) and arguments passed to formatting. I
leave it to you to count and find what's missing or extra, because I'm
seriously not going to do that :)

-- 
Stephen Hansen
  m e @ i x o k a i . i o

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


Thread

Python Madlibs.py code and error message Cai Gengyang <gengyangcai@gmail.com> - 2016-04-27 21:37 -0700
  Re: Python Madlibs.py code and error message Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2016-04-28 16:50 +1200
    Re: Python Madlibs.py code and error message Cai Gengyang <gengyangcai@gmail.com> - 2016-04-27 22:01 -0700
      Re: Python Madlibs.py code and error message Stephen Hansen <me+python@ixokai.io> - 2016-04-27 22:16 -0700
      Re: Python Madlibs.py code and error message Ben Finney <ben+python@benfinney.id.au> - 2016-04-28 15:32 +1000
      Re: Python Madlibs.py code and error message Stephen Hansen <me@ixokai.io> - 2016-04-27 23:50 -0700
      Re: Python Madlibs.py code and error message Ben Finney <ben+python@benfinney.id.au> - 2016-04-28 16:55 +1000
      Re: Python Madlibs.py code and error message Stephen Hansen <me@ixokai.io> - 2016-04-28 00:08 -0700
        Re: Python Madlibs.py code and error message Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2016-04-28 17:25 +1000
          Re: Python Madlibs.py code and error message Cai Gengyang <gengyangcai@gmail.com> - 2016-05-03 04:12 -0700
      Re: Python Madlibs.py code and error message Ben Finney <ben+python@benfinney.id.au> - 2016-04-28 17:17 +1000
  Re: Python Madlibs.py code and error message Stephen Hansen <me+python@ixokai.io> - 2016-04-27 21:55 -0700

csiph-web