Commit graph

64 commits

Author SHA1 Message Date
Miss Islington (bot)
581ce25e1f bpo-32735: Fix typo in f-strings datetime format specifier example (GH-5464) (GH-5465)
The f-string example for using datetime format specifier does not match the given output.
Changed the format from %b to %B so it matches the output of "January".
(cherry picked from commit b299393cc3)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
2018-01-31 17:17:02 -05:00
Miss Islington (bot)
22b1050672 Lexical Analysis ref doc: Fix a typo in the string concatenation internal link (GH-5157) (GH-5160)
In lexical analysis reference documentation, the internal link to
the string literal concatenation section was written as`.. _string-catenation:`.
Changed that to `.. _string-concatenation:`.
(cherry picked from commit 3764bb075a)
2018-01-11 22:50:45 -08:00
Miss Islington (bot)
75d1ca26b0 Improve the F-strings and format specifier documentation (GH-4931) (GH-4933)
Mention that the format-specifier mini language in f-strings
is the same one used by str.format.
(cherry picked from commit f4e21a2a72)
2017-12-19 13:09:19 -08:00
Miss Islington (bot)
5a9f379435 F-strings docs: link to Format Specifiers (GH-4888) (GH-4889)
Link to the Format Specification Mini Language section from f-strings' documentation.
(cherry picked from commit d924fa523d)
2017-12-15 10:11:17 -08:00
Miss Islington (bot)
26b940f762 bpo-31571: Remove duplicated info in Lexical Analysis documentation (GH-3691) (GH-3754)
- Remove the second mention about the `u` prefix
- Remove the second mention about numeric literals do not include a sign
(cherry picked from commit 4a2d00cb45)
2017-09-25 16:23:33 -07:00
Miss Islington (bot)
4f6bae9677 bpo-31487: Update F-strings doc example (GH-3627) (GH-3628)
Shorten the comment to: "using integer format specifier"
(cherry picked from commit 63c591c0b0)
2017-09-17 07:57:08 -07:00
Miss Islington (bot)
46c1052404 bpo-31487: Improve f-strings documentation (GH-3604) (GH-3619)
Provide additional examples of using format specifiers in f-strings
Added examples for using integer and date format specifiers.
(cherry picked from commit f361897069)
2017-09-16 12:01:32 -07:00
Benjamin Peterson
bae5ddab2c fix some reference to Unicode 8 that should be to Unicode 9 (#2346) 2017-06-22 23:11:52 -07:00
Mariatta
ff6f371627 bpo-28739: Document that f-strings cannot be used as docstring (GH-592) (GH-600)
(cherry picked from commit d4e89287b3)
2017-03-10 09:52:03 -08:00
Jason R. Coombs
f66f03bd35 Update docs to reflect new behavior around backslashes in expressions (not allowed), matching recent changes to PEP 498. 2016-11-06 11:27:17 -05:00
Brett Cannon
a721abac29 Issue #26331: Implement the parsing part of PEP 515.
Thanks to Georg Brandl for the patch.
2016-09-09 14:57:09 -07:00
R David Murray
110b6fecbb #27364: Deprecate invalid escape strings in str/byutes.
Patch by Emanuel Barry, reviewed by Serhiy Storchaka and Martin Panter.
2016-09-08 15:34:08 -04:00
Martin Panter
6a09315ff0 Issue #26462: Merge code block fixes from 3.5 2016-07-29 01:49:37 +00:00
Martin Panter
1050d2d0c7 Issue #26462: Doc: reduce literal_block warnings, fix syntax highlighting.
Patch by Julien Palard.
2016-07-26 11:18:21 +02:00
Martin Panter
ed74e243c6 Issue #24136: Adjust f-strings doc for interable unpacking 2016-06-12 01:56:24 +00:00
Serhiy Storchaka
1acbf853c8 Issue #26736: Used HTTPS for external links in the documentation if possible. 2016-05-07 10:49:58 +03:00
Serhiy Storchaka
6dff0205b7 Issue #26736: Used HTTPS for external links in the documentation if possible. 2016-05-07 10:49:07 +03:00
Berker Peksag
c61d80cc83 Issue #18572: Remove redundant note about surrogates in string escape doc 2016-04-24 03:14:01 +03:00
Berker Peksag
4f35d79d65 Issue #18572: Remove redundant note about surrogates in string escape doc 2016-04-24 03:13:40 +03:00
Martin Panter
bc1ee460dc Issue #25179: Documentation for formatted string literals aka f-strings
Some of the inspiration and wording is taken from the text of PEP 498 by Eric
V. Smith, and the existing str.format() documentation.
2016-02-13 00:41:37 +00:00
Robert Collins
888a6729da Issue #24531: Document that encoding lines cannot follow non-comment lines.
Patch from Terry Reedy
2015-08-06 21:14:34 +12:00
Robert Collins
0b2833eaf2 Issue #24531: Document that encoding lines cannot follow non-comment lines.
Patch from Terry Reedy
2015-08-06 21:08:44 +12:00
Benjamin Peterson
4801383c29 upgrade to Unicode 8.0.0 2015-06-27 15:45:56 -05:00
Raymond Hettinger
ab89f9c27f merge 2015-05-22 16:38:16 -07:00
Raymond Hettinger
9ecf9e2944 Issue #24219: Remove duplicate literal in docs. 2015-05-22 16:37:49 -07:00
Georg Brandl
e21a531ef1 merge with 3.4 2014-10-31 10:39:29 +01:00
Georg Brandl
a4c8c47961 #22613: remaining corrections in extending/reference docs (thanks Jacques Ducasse) 2014-10-31 10:38:49 +01:00
R David Murray
2623a5db6f Merge: #18176: Change generic UCD PropList link to version specific link. 2014-10-09 20:47:31 -04:00
R David Murray
5f16f90d1b #18176: Change generic UCD PropList link to version specific link. 2014-10-09 20:45:59 -04:00
R David Murray
532783bd5e Merge: #18176: fix another reference and add it to the makeunicodedata comment. 2014-10-09 17:41:55 -04:00
R David Murray
5bd62420f4 #18176: fix another reference and add it to the makeunicodedata comment. 2014-10-09 17:39:48 -04:00
Benjamin Peterson
bd592417f4 add matrix multiplication operator to correct lists (closes #22142) 2014-08-06 22:50:30 -07:00
R David Murray
f7f981829b #18628: clarify index entry for source file encoding declaration.
Patch by Sam Lucidi.
2014-04-16 21:48:04 -04:00
Georg Brandl
97f962339f Add "->" as a delimiter token. Found by James Harding on docs@. 2013-10-08 21:28:22 +02:00
Ezio Melotti
e7f90375b1 #16127: remove outdated references to narrow builds. Patch by Serhiy Storchaka. 2012-10-05 03:33:31 +03:00
Georg Brandl
0182f38dec Fix small overeager edit from 8e47e9af826e. 2012-06-20 11:26:03 +02:00
Christian Heimes
0b3847de6d Issue #15096: Drop support for the ur string prefix 2012-06-20 11:17:58 +02:00
Armin Ronacher
50364b4a5c Basic documentation for PEP 414 2012-03-04 12:33:51 +00:00
Benjamin Peterson
79d38788ee update unicode link 2012-02-20 22:35:25 -05:00
Antoine Pitrou
3a5d4cb940 Issue #13748: Raw bytes literals can now be written with the rb prefix as well as br. 2012-01-12 22:46:19 +01:00
Ezio Melotti
931b8aac80 #12753: Add support for Unicode name aliases and named sequences. 2011-10-21 21:57:36 +03:00
Martin v. Löwis
0dbebc02ed Issue #10542: Document that identifiers use XID_Start XID_Continue*. 2010-12-30 08:36:37 +00:00
Alexander Belopolsky
1a7a2e03b2 Both PEP 3131 and the current implementation use NFKC normalization
for identifiers.  Fixed the documentation to agree.
2010-12-22 01:37:36 +00:00
Georg Brandl
7d180a0da1 #9451: strengthen warning about __*__ special name usage. 2010-08-02 19:32:43 +00:00
Benjamin Peterson
162dd7484e note that byte strings can be raw, too #9114 2010-06-29 15:57:57 +00:00
Georg Brandl
e43baaba73 Fix nits in the lexical analysis section: \u requires four digits, backtick is not allowed in source in 3.x. 2010-05-10 21:17:00 +00:00
Florent Xicluna
4e0f8910bf Fix \xhh specs, #1889. (an oversight of r60193, r60210). 2010-03-15 13:14:39 +00:00
Georg Brandl
17761d15c6 Merged revisions 72288 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72288 | georg.brandl | 2009-05-04 22:42:08 +0200 (Mo, 04 Mai 2009) | 1 line

  #5925: fix highlighting of keyword table.
........
2009-05-04 20:43:44 +00:00
Georg Brandl
06788c9fe4 Fix a few remaining problems found by rstlint. 2009-01-03 21:31:47 +00:00
Georg Brandl
48310cd3f2 Remove trailing whitespace. 2009-01-03 21:18:54 +00:00