Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #45719 > unrolled thread
| Started by | Skip Montanaro <skip@pobox.com> |
|---|---|
| First post | 2013-05-22 05:35 -0500 |
| Last post | 2013-05-22 12:49 -0700 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Myth Busters: % "this old style of formatting will eventually be removed from the language" Skip Montanaro <skip@pobox.com> - 2013-05-22 05:35 -0500
Re: Myth Busters: % "this old style of formatting will eventually be removed from the language" nn <pruebauno@latinmail.com> - 2013-05-22 12:49 -0700
| From | Skip Montanaro <skip@pobox.com> |
|---|---|
| Date | 2013-05-22 05:35 -0500 |
| Subject | Re: Myth Busters: % "this old style of formatting will eventually be removed from the language" |
| Message-ID | <mailman.1957.1369218950.3114.python-list@python.org> |
>> Is this tutorial outdated or this still an issue? >> >> [1] >> http://docs.python.org/2/tutorial/inputoutput.html#old-string-formatting > > > That tutorial is out of date. %-formatting isn't being removed. OTOH, PEP 3101 also mentions deprecation, at the very end: "... both systems can co-exist until it comes time to deprecate the older system." I have been operating under the assumption since the days of that PEP that %-style formatting would eventually disappear, dreading the day when I'd have to learn the str.format language. I apologize for (inadvertently) spreading FUD. It does seem like the documentation should be updated in a few places. If the decision has been made to not remove the older system, it might be worthwhile to mention that somewhere. Clearly the tutorial and PEP 3101 should be updated. Skip
[toc] | [next] | [standalone]
| From | nn <pruebauno@latinmail.com> |
|---|---|
| Date | 2013-05-22 12:49 -0700 |
| Message-ID | <252d4afd-9d8c-4ae3-83cc-6e9c830b1706@r3g2000yqe.googlegroups.com> |
| In reply to | #45719 |
On May 22, 6:35 am, Skip Montanaro <s...@pobox.com> wrote: > >> Is this tutorial outdated or this still an issue? > > >> [1] > >>http://docs.python.org/2/tutorial/inputoutput.html#old-string-formatting > > > That tutorial is out of date. %-formatting isn't being removed. > > OTOH, PEP 3101 also mentions deprecation, at the very end: "... both > systems can co-exist until it comes time to deprecate the older > system." > > I have been operating under the assumption since the days of that PEP > that %-style formatting would eventually disappear, dreading the day > when I'd have to learn the str.format language. I apologize for > (inadvertently) spreading FUD. > > It does seem like the documentation should be updated in a few places. > If the decision has been made to not remove the older system, it > might be worthwhile to mention that somewhere. Clearly the tutorial > and PEP 3101 should be updated. > > Skip I was of the impression that deprecating % was still planned for Py4k, whenever that is. I personally believe that eliminating % formatting would reduce bugs and generally make code clearer, but I realize that breaking backward compatibility has a high price.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web