Path: csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail From: Zachary Ware Newsgroups: comp.lang.python Subject: Re: Question about code writing '% i, callback' Date: Mon, 30 Nov 2015 10:54:53 -0600 Lines: 19 Sender: zachary.ware@gmail.com Message-ID: References: <25af8ac3-5fc7-44bd-a73f-7a870b69515a@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de m/cHipwBzipmb4OgTZDSiQTdRsVpyIZUv8gtApCUJD6A== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.012 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'subject:Question': 0.05; 'subject:code': 0.07; 'callback': 0.09; 'received:209.85.218': 0.10; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:writing': 0.16; 'wrote:': 0.16; 'sender:addr:gmail.com': 0.18; '2015': 0.20; 'to:name:python-list@python.org': 0.20; '%s"': 0.22; 'sorry,': 0.22; 'am,': 0.23; 'header:In-Reply-To:1': 0.24; 'mon,': 0.24; 'message-id:@mail.gmail.com': 0.27; 'url:python': 0.33; 'received:google.com': 0.35; 'nov': 0.35; 'should': 0.36; 'url:org': 0.36; 'received:209.85': 0.36; 'url:library': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:209': 0.38; 'to:addr:python.org': 0.40; 'url:3': 0.60; '30,': 0.63; 'strange': 0.63; 'ware': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=uz5/1B2xEh7NVY/fgcm3eqD6pkaTXNFAB6Zwi6q2W0w=; b=X2J86pSirq0iMZqp23uNBJcX11Y0/7B6M/LFyNO94TuVcGcPO8y1ydy+AvbdRGHZBN sBsYJjujL/oQZ3YZDeIdvEB8sO0JfAMB21u0LhQEyFO2ibwwEXTf2MWco6GAdf1CmFLY N6NxbhTkDKzgag9e56jiHc0y36mDpwgS1zz2mHdTIjiS5ii4Lgz4kLXGrJbrkel3MjkL peHSwfphOBKx0uWRRLkI4p+JICP0UiCHRbWfYdJ6KreN4Oy1FPFbYCIsIvdey1obqlYV 4lLPP21NZzFwPNxaWWdQUouMHpuBXCTPfJIAsqC95MU0Rha1zMq8IDtnAlPINCGlNu81 HlDg== X-Received: by 10.202.77.14 with SMTP id a14mr29603213oib.114.1448902512423; Mon, 30 Nov 2015 08:55:12 -0800 (PST) In-Reply-To: X-Google-Sender-Auth: omfe4rw7vYZHkc-uNmy9Vb5y0Ns X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:99744 On Mon, Nov 30, 2015 at 10:53 AM, Zachary Ware wrote: > On Mon, Nov 30, 2015 at 10:44 AM, fl wrote: >> The content inside parenthesis in last line is strange to me. >> >> "button %s" % i, callback > > https://docs.python.org/library/stdtypes.html#printf-style-string-formatting Sorry, should have tested that link before sending. That should be either https://docs.python.org/3/library/stdtypes.html#printf-style-string-formatting or https://docs.python.org/2/library/stdtypes.html#string-formatting-operations -- Zach