[Python-Dev] cpython (3.2): Issue #14123: Explicitly mention that old style % string formatting has caveats (original) (raw)
Chris Angelico rosuav at gmail.com
Sun Feb 26 21:48:55 CET 2012
- Previous message: [Python-Dev] cpython (3.2): Issue #14123: Explicitly mention that old style % string formatting has caveats
- Next message: [Python-Dev] State of PEP-3118 (memoryview part)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Mon, Feb 27, 2012 at 5:54 AM, Antoine Pitrou <solipsis at pitrou.net> wrote:
It would be nice to call it something else than "printf-style formatting". While it is certainly modelled on printf(), knowledge of C or printf is not required to understand %-style formatting, nor even to appreciate it.
-1. Calling it "printf-style" ties it in with its origins just as the term "regex" does for the 're' module. There are printf-derived features in quite a few high level languages; they may differ somewhat (Pike's sprintf() can do columnar displays; PHP's vsprintf takes an array, not some weird and mythical varargs token), but in their basics they will be similar. The name is worth keeping.
Chris Angelico
- Previous message: [Python-Dev] cpython (3.2): Issue #14123: Explicitly mention that old style % string formatting has caveats
- Next message: [Python-Dev] State of PEP-3118 (memoryview part)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]