Commit Graph

57 Commits

Author SHA1 Message Date
Eric V. Smith 78c0674c85 Added a note about concatenating adjacent f-strings. 2015-09-12 06:55:44 -04:00
Eric V. Smith c8910c0c71 Fix 2 typos. Thanks Johan Musaeus Bruun. 2015-09-12 06:48:29 -04:00
Eric V. Smith 7bcfd64f81 After discussing with Guido, allow both 'f' and 'F'. 2015-09-10 04:03:33 -04:00
Eric V. Smith 5572aeccab PEP 498 accepted. Yay! Thanks, all. 2015-09-08 20:38:45 -04:00
Eric V. Smith ebbbc136c1 Added some text about escaping quote chars, and about raw f-strings. 2015-09-08 20:10:44 -04:00
Eric V. Smith 50b63b0e5f Grammar fix. 2015-09-06 18:15:38 -04:00
Eric V. Smith 0c4d7c180b Note that comments are not allowed inside expressions. 2015-09-05 17:07:48 -04:00
Barry Warsaw 3732c04a7a Spell checked. 2015-09-05 13:50:27 -04:00
Eric V. Smith 581f95229f Removed unneeded footnotes referencing other PEPs. Cleaned up some language. Fixed up some formatting errors. 2015-09-04 21:25:59 -04:00
Eric V. Smith c865de6aa8 Remove unused footnotes. 2015-09-04 21:04:21 -04:00
Eric V. Smith cab992dc7e Update Post-History. 2015-09-04 20:29:54 -04:00
Eric V. Smith b9502b9255 Note how f-strings are tokenized and decoded before scanning for expressions. 2015-09-04 20:28:35 -04:00
Eric V. Smith 2f170cfcaf Add notion of adding implicit parens before parsing the expression. This allows for newlines in the expressions. 2015-09-04 17:09:56 -04:00
Eric V. Smith c377e4765f Removed Implementation Limitations section. While the version of the code on http://bugs.python.org/issue24965 has the 255 expression limitation, I'm going to remove this limit. The i18n section was purely speculative. We can worry about it if/when we add i18n and i-strings. 2015-09-04 15:01:35 -04:00
Eric V. Smith 2025cc03c5 Make examples easier to read by using '+' instead of ''.join(). 2015-09-04 14:37:43 -04:00
Eric V. Smith a2f904c448 Fix typo introduced when switching to backquotes. 2015-09-04 05:34:35 -04:00
Eric V. Smith e87b03e606 Changed title. 2015-08-30 09:16:20 -04:00
Eric V. Smith e2c32c47d2 Yet another attempt to clear up wording in this section. 2015-08-29 17:45:36 -04:00
Eric V. Smith dda8eb22a9 Fixed wording. 2015-08-29 16:21:04 -04:00
Eric V. Smith 8546af530e Added inline literal markup. 2015-08-29 16:20:18 -04:00
Eric V. Smith 9143b2852d Improve some wording. 2015-08-29 16:02:17 -04:00
Eric V. Smith 617e3748a8 Added a section on the same expression being used multiple times in the same f-string. 2015-08-28 21:43:48 -04:00
Eric V. Smith 5d0b58c678 Fixed escape sequence. 2015-08-28 14:59:05 -04:00
Eric V. Smith 35c0d9cc75 Fixed awkward wording. 2015-08-28 14:27:58 -04:00
Eric V. Smith c0c7101fa5 Added specification for order of escape sequence processing. 2015-08-28 14:26:58 -04:00
Eric V. Smith 088fee8cb8 Moved order of evaluation into the Specification section, since it's guaranteed. 2015-08-28 12:21:04 -04:00
Eric V. Smith 3e2bcc6966 Moved a sentence to where it makes more sense. 2015-08-28 11:41:58 -04:00
Eric V. Smith 75f463a375 Added section on order of evaluation. 2015-08-28 11:16:23 -04:00
Eric V. Smith 174ea8308e Escape some backslashes. 2015-08-28 11:03:07 -04:00
Eric V. Smith 8af0c666ad Added a note that the str.format() parser is not suitable for use when implementing f-strings. 2015-08-27 10:20:59 -04:00
Eric V. Smith 6cedddc12d Fixed a typo found by Jochen Kupperschmidt. Thanks! 2015-08-26 06:08:21 -04:00
Eric V. Smith 68a8d4e43c Note a few implementation details or restrictions. 2015-08-25 16:38:29 -04:00
Eric V. Smith 08777faecd Added some examples from Python's source. Both 'before' (str.format) and 'after' (f-strings). 2015-08-24 15:49:18 -04:00
Eric V. Smith 03ef9d23e5 Remove str.interpolate. It's just an implementation detail. It can be exposed at a later date, if need be. 2015-08-24 14:35:44 -04:00
Eric V. Smith eb9b98c932 More typos. 2015-08-24 09:20:50 -04:00
Eric V. Smith 9d28e9ee71 Typos. 2015-08-24 08:00:49 -04:00
Eric V. Smith 104dc4b901 Restored accidentally deleted newline. 2015-08-21 18:38:38 -04:00
Eric V. Smith 29a1f236da Flushed out more text. Other than removing !s, !r, and !a, I think I am mostly done. 2015-08-21 18:35:55 -04:00
Eric V. Smith 1d6b74f376 Improve comparison to string.Template and %-formatting. 2015-08-21 05:13:39 -04:00
Eric V. Smith 7261e0d009 Better link for PEP 461. 2015-08-21 04:57:04 -04:00
Eric V. Smith 86db15618e Added more words about rejecting binary f-strings. 2015-08-21 04:54:23 -04:00
Eric V. Smith 71c8591e16 Fix some markup. 2015-08-20 21:18:50 -04:00
Eric V. Smith 14c0910963 Incorporate feedback from Guido. Still several more items to tackle. 2015-08-20 21:14:43 -04:00
Eric V. Smith cb5ee58dbd Clean up usage of format_spec and field_name. Add additional verbiage about i18n and concatenating adjacent f-strings. 2015-08-20 20:55:54 -04:00
Eric V. Smith e5ad88af3d Straightened out footnotes. 2015-08-20 20:27:23 -04:00
Eric V. Smith 10e7fb2a55 Also support !a, since it is in Python 3. 2015-08-20 20:13:37 -04:00
Eric V. Smith 2b710a1d86 PEP-498 updates: specify str.interpolate() and beef up some of the discussion text. Still needs work on the XXX marked sections. 2015-08-20 20:02:45 -04:00
Eric V. Smith 64873d50e1 Moved the deprecation statement to a place that makes more sense. Thanks Mike Miller. 2015-08-11 09:32:15 -04:00
Eric V. Smith acf7aa34da Small typos. Added section about nested expressions inside format specifiers. 2015-08-10 09:17:36 -04:00
Eric V. Smith 8886508947 Fixed code typos. Minor rewording. 2015-08-09 17:08:17 -04:00