INADA Naoki
a49ac99029
bpo-32677: Add .isascii() to str, bytes and bytearray (GH-5342)
2018-01-27 14:06:21 +09:00
Victor Stinner
cb064fc232
bpo-31900: Fix localeconv() encoding for LC_NUMERIC ( #4174 )
...
* Add _Py_GetLocaleconvNumeric() function: decode decimal_point and
thousands_sep fields of localeconv() from the LC_NUMERIC encoding,
rather than decoding from the LC_CTYPE encoding.
* Modify locale.localeconv() and "n" formatter of str.format() (for
int, float and complex to use _Py_GetLocaleconvNumeric()
internally.
2018-01-15 15:58:02 +01:00
Nitish Chandra
5ce0a2a100
bpo-31942: Document optional support of start and stop attributes in Sequence.index method ( #4277 )
2017-12-12 11:22:30 +01:00
Serhiy Storchaka
a2314283ff
bpo-20047: Make bytearray methods partition() and rpartition() rejecting ( #4158 )
...
separators that are not bytes-like objects.
2017-10-29 02:11:54 +03:00
Peter Thomassen
caa1280d1e
bpo-30803: clarify truth value testing documentation ( #2508 )
...
Initial patch by Peter Thomassen.
2017-07-29 15:18:13 -04:00
Łukasz Rogalski
be37beb05f
Doc that 'sorted' args are keyword-only, fix 'reverse' default ( #2706 )
2017-07-14 15:23:39 -04:00
Benjamin Peterson
279a96206f
bpo-30736: upgrade to Unicode 10.0 ( #2344 )
...
Straightforward. While we're at it, though, strip trailing whitespace from generated tables.
2017-06-22 22:31:08 -07:00
Marco Buttu
5eb7075915
bpo-30217: Add the operators ~ and | to the index ( #1502 )
2017-06-09 17:28:27 +03:00
Julien
0737ee2067
bpo-30499: Remove a deprecated note about sets. (GH-1848)
2017-06-01 07:02:21 -07:00
Sanyam Khurana
08e2f355d0
bpo-22702: Clarify documentation of str.join & bytes.join (GH-156)
...
The "iterable iterable" phrasing created confusion between the term
reference and the parameter name.
This simplifies the phrasing to just use the parameter name
without linking directly to the term definition.
2017-05-27 15:44:41 +10:00
Serhiy Storchaka
d97b7dc94b
bpo-30380: Fix Sphinx 1.6.1 warnings. ( #1613 )
...
* Use explicit numbering for footnotes referred by explicit number.
* Restore missed footnote reference in stdtypes.rst.
* Fix literal strings formatting in howto/urllib2.rst.
* Update susp-ignored.csv for zipapp.rst.
* Fix suspicious mark up in Misc/NEWS.
2017-05-16 23:18:09 +03:00
csabella
c6db4811f9
bpo-30052: Link `bytes` & `bytearray` to stdtypes not functions (GH-1271)
...
Builtin container types have two potential link targets in the docs:
- their entry in the list of builtin callables
- their type documentation
This change brings `bytes` and `bytearray` into line with other
container types by having cross-references default to linking to
their type documentation, rather than their builtin callable entry.
2017-04-26 15:47:01 +10:00
Barry Warsaw
9f74deba78
Improve the documentation for template strings ( #856 )
...
bpo-19824
bpo-20314
bpo-12518
2017-03-28 10:02:07 -04:00
Xiang Zhang
b2d77175d1
bpo-29756: Improve documentation for list methods that compare items by equality (GH-572)
2017-03-13 10:09:16 +08:00
Mariatta
8eb531d9db
bpo-29709: Improve Boolean Operations documentation ( #433 )
...
Change False into false, and True into true.
2017-03-03 13:16:29 -08:00
Xiang Zhang
dfe14c462d
Issue #29112 : Merge 3.6.
2016-12-30 11:58:14 +08:00
Xiang Zhang
9ea82ddad5
Issue #29112 : Merge 3.5.
2016-12-30 11:57:40 +08:00
Xiang Zhang
cea904f286
Issue #29112 : Fix a questionable wording in sequence doc.
2016-12-30 11:57:09 +08:00
Martin Panter
9fa6374925
Issue #1446619 : Merge slicing description from 3.6
2016-12-24 08:31:37 +00:00
Martin Panter
0efb5b3538
Issue #1446619 : Merge slicing description from 3.5
2016-12-24 08:31:11 +00:00
Martin Panter
3dbd87f2b9
Issue #1446619 : Account for negative slice direction in description
...
Based on suggestion from Fumihiro Bessho.
2016-12-24 08:25:15 +00:00
Serhiy Storchaka
dd1da7f74a
Issue #28927 : bytes.fromhex() and bytearray.fromhex() now ignore all ASCII
...
whitespace, not only spaces. Patch by Robert Xiao.
2016-12-19 18:51:37 +02:00
Berker Peksag
0bf590627b
Issue #28944 : Merge from 3.5
2016-12-15 05:38:25 +03:00
Berker Peksag
7b440dfec4
Issue #28944 : Fix footnote numbering
2016-12-15 05:37:56 +03:00
Martin Panter
0a7b8596c0
Issues #28916 , #26483 : Merge stdtypes.rst from 3.5
2016-12-11 02:31:32 +00:00
Martin Panter
49c14d8e8f
Issue #26483 : Clarify str.isdecimal() and isdigit()
...
Patch by Julien Palard.
2016-12-11 01:08:25 +00:00
Martin Panter
41176ae1d2
Issue #28916 : Correct description of %o and %x alternative forms
...
* In Python 3, the specifier is 0o
* There is no special case for leading zeros
* Remove duplicate tests
* Clarify other existing tests and comments
2016-12-11 01:07:29 +00:00
INADA Naoki
f9cb5593e3
Issue #28553 : Fix logic error in example code of int.to_bytes doc.
2016-10-31 17:42:10 +09:00
INADA Naoki
3e3e9f3667
Issue #28553 : Fix logic error in example code of int.to_bytes doc.
2016-10-31 17:41:47 +09:00
Serhiy Storchaka
989db5c880
Issue #19795 : Mark up None as literal text.
2016-10-19 16:37:13 +03:00
Serhiy Storchaka
ecf41da83e
Issue #19795 : Mark up None as literal text.
2016-10-19 16:29:26 +03:00
Martin Panter
b2317a4d9d
Issue #15819 : Merge include search from 3.5 into 3.6
2016-09-13 12:40:51 +00:00
Raymond Hettinger
a33e9f7047
Issue #28104 : More accurately document set method signatures
2016-09-12 23:38:50 -07:00
Raymond Hettinger
e256accd46
Issue #23226 : Add linspace() recipe to the docs
2016-09-06 16:35:34 -07:00
Martin Panter
1b6c6da85d
Issue #27506 : Support bytes/bytearray.translate() delete as keyword argument
...
Patch by Xiang Zhang.
2016-08-27 08:35:02 +00:00
Berker Peksag
3b055b5960
Issue #27601 : Merge from 3.5
2016-07-25 04:56:19 +03:00
Berker Peksag
aa46bd461c
Issue #27601 : Improve example in the "Hashing of numeric types" section
...
* Fix return value of hash_compute() implementation
* Rename variable names to hash_value to improve readability
Patch by Emanuel Barry.
2016-07-25 04:55:51 +03:00
Martin Panter
2fec611a70
Issue #24314 : Merge doc links from 3.5
2016-06-18 08:20:22 +00:00
Martin Panter
bae5d81f5d
Issue #24314 : Fix doc links for general attributes like __name__, __dict__
2016-06-18 03:57:31 +00:00
Martin Panter
5848ac2df0
Issue #15476 : Merge index entries from 3.5
2016-06-09 23:36:40 +00:00
Tommy Beadle
e9b8403a1f
[Issue 15476] Make "code object" its own entry in the index
2016-06-02 19:26:51 -04:00
Martin Panter
129fe04d4d
Issue #26512 : Clarify Integral; tidy up table of rounding functions
...
Based on patch by Julien.
2016-05-08 12:22:37 +00:00
Martin Panter
18933ed6ab
Issue #26512 : Merge rounding doc from 3.5
2016-05-08 12:34:58 +00:00
Raymond Hettinger
7dc830e988
merge
2016-03-12 22:58:44 -08:00
Raymond Hettinger
4d02896609
Issue #26548 : Minor fix to awkward wording in docs
2016-03-12 22:58:24 -08:00
Georg Brandl
6d6dd73aec
merge with 3.5
2016-02-25 20:18:00 +01:00
Georg Brandl
8c16cb9f65
Closes #26435 : fix syntax in directives. Thanks to Jakub Stasiak.
2016-02-25 20:17:45 +01: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
Gregory P. Smith
e27403b75f
Clarify "cardinality of" as "number of elements in" as many readers do
...
not have a math vocabulary.
2016-02-08 09:58:40 -08:00
Martin Panter
d5db14794b
Issue #25179 : Preparatory cleanup of existing docs on string formatting
...
* Various sections were pointing to the section on the string.Formatter
class, when the section on the common format string syntax is probably more
appropriate
* Fix references to various format() functions and methods
* Nested replacement fields may contain conversions and format specifiers,
and this is tested; see Issue #19729 for instance
2016-02-08 01:34:09 +00:00