Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about Collectives| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Aug 17, 2022 at 7:09 | history | edited | Karl Knechtel | CC BY-SA 4.0 | add see-also for dupe closers |
| Jul 27, 2022 at 3:55 | comment | added | Karl Knechtel | For duplicate closers: See alsostackoverflow.com/questions/2960772 as a target for questions that are simply asking for a way to do it. That one answers the question more directly. This question is explicilty about the pros and cons of the various approaches. | |
| Jul 11, 2022 at 0:25 | history | edited | Mateen Ulhaq | CC BY-SA 4.0 | Reword first question. Generalize second question.; edited tags |
| Jul 11, 2022 at 0:20 | history | edited | Mateen Ulhaq | CC BY-SA 4.0 | Homogenize examples for quicker reading. |
| Jul 11, 2022 at 0:14 | history | edited | Mateen Ulhaq | CC BY-SA 4.0 | Reword into quickly readable list to summarize example usages. |
| May 10, 2021 at 16:45 | history | edited | Charles Duffy | CC BY-SA 4.0 | edited title |
| Aug 13, 2020 at 18:46 | history | edited | NorthIsUp | CC BY-SA 4.0 | Add string literals to the question |
| Dec 6, 2019 at 15:46 | history | edited | dreftymac | edited tags | |
| May 29, 2019 at 21:39 | history | edited | codeforester | CC BY-SA 4.0 | detag title |
| Feb 5, 2019 at 9:56 | answer | added | Felix Martinez | timelinescore: 6 | |
| Aug 25, 2018 at 1:08 | answer | added | U13-Forward | timelinescore: 3 | |
| Jul 4, 2018 at 7:13 | answer | added | zhengcao | timelinescore: 30 | |
| Apr 16, 2018 at 14:42 | answer | added | Sylvan LE DEUNFF | timelinescore: 8 | |
| Feb 14, 2018 at 22:42 | answer | added | Roushan | timelinescore: 5 | |
| Oct 18, 2017 at 20:17 | comment | added | Charles | The websitepyformat.info has a side by side comparison of features, and serves as a convenient reference for those less frequently used features! | |
| Sep 20, 2017 at 21:36 | comment | added | yanjost | To answer your second question, since 3.2 you can use {} format if you use a custom formatter (seedocs.python.org/3/library/logging.html#logging.Formatter) | |
| Jan 31, 2017 at 21:55 | history | protected | Moinuddin Quadri | ||
| Jan 6, 2017 at 9:39 | comment | added | gerrit | See also:Pythons many ways of string formatting | |
| Apr 15, 2016 at 11:12 | answer | added | Colonel Panic | timelinescore: 135 | |
| Apr 12, 2016 at 9:26 | comment | added | Lutz Prechelt | For reference: Python 3 documentation for thenewerformat() formatting style and theolder%-based formatting style. | |
| Apr 12, 2016 at 9:24 | comment | added | Lutz Prechelt | For beginners: Here is avery nice tutorial that teaches both styles. I personally use the older% style more often, because if you do not need the improved capabilities of theformat() style, the% style is often a lot more convenient. | |
| Apr 9, 2015 at 20:41 | answer | added | Jorge Leitao | timelinescore: 12 | |
| Jan 14, 2015 at 19:11 | history | edited | the Tin Man | CC BY-SA 3.0 | added 7 characters in body |
| Dec 4, 2014 at 18:33 | answer | added | matiasg | timelinescore: 39 | |
| SNov 10, 2014 at 5:51 | history | suggested | Sriram | CC BY-SA 3.0 | string.format is different from str.format. string.format refers to the string module |
| Nov 10, 2014 at 5:14 | review | Suggested edits | |||
| SNov 10, 2014 at 5:51 | |||||
| SSep 9, 2014 at 19:02 | history | suggested | Bob Stein | CC BY-SA 3.0 | showing the output is better |
| Sep 9, 2014 at 18:10 | review | Suggested edits | |||
| SSep 9, 2014 at 19:02 | |||||
| Aug 21, 2014 at 18:00 | answer | added | David Sanders | timelinescore: 17 | |
| SAug 1, 2014 at 17:20 | history | suggested | Gabriel | CC BY-SA 3.0 | add link to method |
| Aug 1, 2014 at 17:17 | review | Suggested edits | |||
| SAug 1, 2014 at 17:20 | |||||
| May 13, 2014 at 17:10 | answer | added | balu | timelinescore: 33 | |
| Jul 5, 2013 at 19:47 | review | Suggested edits | |||
| Jul 5, 2013 at 19:56 | |||||
| SMar 12, 2013 at 12:53 | history | suggested | pradyunsg | CC BY-SA 3.0 | Formatting |
| Mar 12, 2013 at 12:52 | review | Suggested edits | |||
| SMar 12, 2013 at 12:53 | |||||
| SMar 12, 2013 at 10:20 | history | suggested | smci | CC BY-SA 3.0 | Clarified question has two separate parts; added tags |
| Mar 12, 2013 at 10:16 | review | Suggested edits | |||
| SMar 12, 2013 at 10:20 | |||||
| Sep 3, 2012 at 18:15 | answer | added | wobmene | timelinescore: 60 | |
| Aug 1, 2011 at 3:01 | answer | added | BrainStorm | timelinescore: 64 | |
| Jun 13, 2011 at 20:20 | answer | added | eyquem | timelinescore: 319 | |
| Jun 13, 2011 at 18:43 | answer | added | lcltj | timelinescore: 47 | |
| Feb 22, 2011 at 21:56 | vote | accept | NorthIsUp | ||
| Feb 22, 2011 at 19:21 | answer | added | Wooble | timelinescore: 158 | |
| Feb 22, 2011 at 18:50 | comment | added | carl | similar tostackoverflow.com/questions/3691975/… | |
| Feb 22, 2011 at 18:49 | answer | added | Claudiu | timelinescore: 993 | |
| Feb 22, 2011 at 18:46 | history | asked | NorthIsUp | CC BY-SA 2.5 |