Beomsoo Kim
05c1b387f1
Fixed a few obvious mistakes in c-api docs (GH-11184)
...
I thought these simple changes doesn't need bpo number(Am I right..?).
Please refer to the commit message for detail.
2018-12-17 04:57:03 -08:00
Victor Stinner
3ab064e80a
bpo-23451: Update time.monotonic() documentation (GH-11190)
...
bpo-23451, bpo-22117: Python 3.5 requires Windows Vista or newer,
time.monotonic() is now always system-wide.
2018-12-17 12:12:34 +01:00
Beomsoo Kim
b912f9342e
bpo-35511: Trivial docs updates for profile and resource library modules. (GH-11124)
...
polish documentation for profile and resource modules
2018-12-16 21:34:08 +02:00
mkkot
f5107dfd42
bpo-35450: reflect in docs that venv module is not always creating a … (GH-11144)
...
…copy of python binary
https://bugs.python.org/issue35450
2018-12-14 12:28:52 -08:00
Victor Stinner
d7538dd5e3
bpo-35471: Remove the macpath module (GH-11129)
...
Python 2.4 dropped MacOS 9 support. The macpath module was deprecated
in Python 3.7. This change removes it.
2018-12-14 13:37:26 +01:00
Victor Stinner
7acd50ad8b
bpo-35491: Enhance multiprocessing.BaseProcess.__repr__() (GH-11138)
...
* Add the pid and parent pid to multiprocessing.BaseProcess.__repr__().
* Add negative sign (ex: "-SIGTERM") to exitcode (process killed
by a signal)
* Only call _popen.poll() once.
Example:
<ForkProcess(ForkPoolWorker-1, started daemon)>
becomes:
<ForkProcess name='ForkPoolWorker-1' pid=12449 parent=12448 started daemon>
Example:
<ForkProcess(ForkPoolWorker-1, stopped[SIGTERM] daemon)>
becomes:
<ForkProcess name='ForkPoolWorker-1' pid=12960 parent=12959 stopped exitcode=-SIGTERM daemon>
2018-12-14 12:58:52 +01:00
Jules Lasne (jlasne)
cb0f5e29e3
Fixed missing colun in library/sys.po (GH-11153)
...
# Fixed missing colun in library/sys.po
[bpo-35492](https://bugs.python.org/issue35492 ): Fixed missing colun in library/sys.po
2018-12-14 03:28:44 -08:00
Xiang Zhang
4fb0b8bc25
bpo-33106: change dbm key deletion error for readonly file from KeyError to dbm.error ( #6295 )
2018-12-12 20:46:55 +08:00
Steve Dower
0cd6391fd8
bpo-34977: Add Windows App Store package (GH-11027)
...
Also adds the PC/layout script for generating layouts on Windows.
2018-12-10 18:52:57 -08:00
Steve Dower
1c3de541e6
bpo-34977: Use venv redirector instead of original python.exe on Windows (GH-11029)
2018-12-10 08:11:21 -08:00
Gregory P. Smith
e328753d91
bpo-22005: Document the reality of pickle compatibility. (GH-11054)
2018-12-09 11:42:58 -08:00
Andre Delfino
de9e9b476e
Fix numbered lists in stdtypes.rst. (GH-10989)
2018-12-09 09:00:20 +02:00
Victor Stinner
cb0b78a070
Revert "bpo-34977: Add Windows App Store package (GH-10245)" (GH-11019)
...
This reverts commit 468a15aaf9
.
2018-12-07 12:57:43 +01:00
Serhiy Storchaka
8452ca15f4
bpo-22005: Fixed unpickling instances of datetime classes pickled by Python 2. (GH-11017)
...
encoding='latin1' should be used for successful decoding.
2018-12-07 13:42:10 +02:00
Mariatta
16501b7082
bpo-35434 Fix wrong issue number in what's new in 3.8 (GH-11012)
...
https://bugs.python.org/issue35434
2018-12-06 21:59:42 -08:00
Steve Dower
468a15aaf9
bpo-34977: Add Windows App Store package (GH-10245)
2018-12-06 21:09:20 -08:00
Andre Delfino
c9566b8c45
Add missing period in distutils.dep_util.newer_group doc (GH-11003)
2018-12-06 13:06:55 -08:00
Gregory P. Smith
91f259b478
Clarify expectedFailure in the unittest docs. ( #10953 )
2018-12-06 12:56:24 -08:00
E Kawashima
2d8f976cde
Fix typo in xml.dom.minidom documentation (GH-10956)
...
Escape the \t and \n.
Follow up from https://github.com/python/cpython/pull/10814 .
2018-12-05 14:15:42 -08:00
Victor Stinner
ea0ca218b0
bpo-35344: platform.platform() uses mac_ver() on macOS (GH-10780)
...
On macOS, platform.platform() now uses mac_ver(), if it returns a
non-empty release string, to get the macOS version rather than darwin
version.
2018-12-05 22:41:52 +01:00
Matt Wheeler
40a61da40d
Fix typos in concurrent.Futures documentation (GH-10920)
...
Add a missing word `as` in `as well as an`.
Linkify `threading.Thread`.
2018-12-05 13:41:20 -08:00
Andre Delfino
55f41e45b4
Correct a couple of unbalanced parenthesis. (GH-10779)
2018-12-05 21:45:30 +02:00
Andre Delfino
1ce853f377
Move __missing__ after __delitem__ in Data model. (GH-10923)
2018-12-05 21:42:44 +02:00
Naglis
1747334794
bpo-35395: fix typos in asyncio eventloop documentation (GH-10880)
...
Fixes `loop.add_writer` and `loop.add_signal_handler` method documentation to correctly reference the callback parameter from method signature.
https://bugs.python.org/issue35395
2018-12-03 23:31:15 -08:00
Chris Withers
8ca0fa9d2f
bpo-35226: Fix equality for nested unittest.mock.call objects. ( #10555 )
...
Also refactor the call recording imolementation and add some notes
about its limitations.
2018-12-03 21:31:37 +00:00
Ismo Toijala
68b56d02ef
bpo-35341: Add generic version of OrderedDict to typing (GH-10850)
2018-12-02 15:53:14 +00:00
E Kawashima
b7c2182604
Fix signature of xml.dom.minidom.Document.toprettyxml(). (GH-10814)
2018-11-30 16:03:00 +02:00
Kevin Adler
a407004391
Fix typo in Memory Management doc. (GH-10798)
2018-11-30 09:42:47 +02:00
Eddie Elizondo
9fbcfc08e5
bpo-16086: Fix PyType_GetFlags() documentation (GH-10758)
...
PyType_GetFlags() return type is unsigned long, not long.
2018-11-29 10:11:36 +01:00
Victor Stinner
73104fa1e6
bpo-35345: Remove platform.popen() (GH-10781)
...
Remove platform.popen() function, it was deprecated since Python 3.3:
use os.popen() instead.
Rename also the "Removed" section to "API and Feature Removals"
of What's New in Python 3.8.
2018-11-29 09:58:20 +01:00
Serhiy Storchaka
62be74290a
bpo-33012: Fix invalid function cast warnings with gcc 8. (GH-6749)
...
Fix invalid function cast warnings with gcc 8
for method conventions different from METH_NOARGS, METH_O and
METH_VARARGS excluding Argument Clinic generated code.
2018-11-27 13:27:31 +02:00
Lisa Roach
433433fa6d
Adds IPv6 support when invoking http.server directly. (GH-10595)
2018-11-26 10:43:38 -08:00
Mathieu Dupuy
5719f275b7
Doc: Delete now useless Windows FAQ section (GH-10557)
2018-11-26 17:13:41 +01:00
Raymond Hettinger
f0e0f2008d
bpo-35300: Add usage note to the lru_cache() docs (GH-10707)
...
https://bugs.python.org/issue35300
2018-11-25 16:24:52 -08:00
Serhiy Storchaka
4bb186d7e2
bpo-32035: Fix words about strings and bytes in zipfile documentation. (GH-10592)
2018-11-25 09:51:14 +02:00
takey
ba57963a95
Linkify SMTP.quit() in smtplib documentation. (GH-9785)
2018-11-23 08:53:24 -08:00
Mathieu Dupuy
a1c4001408
Doc: Delete "how do I emulate os.kill" section in Windows FAQ (GH-10487)
...
That section is a tip on how to kill process on Windows for Python prior to 2.7 and 3.2.
3.1 end of support was April 2012 and 2.6 was October 2013, so that hasn't been need for supported versions of Python for more than 5 years. Beside not being needed anymore for a long time, when I read it with the eyes of a Python profane, it makes Python looks bad, like a language from the parts with warts you need to circumvent.
Let's delete that :)
2018-11-23 15:35:07 +01:00
Zhiming Wang
361e8683e7
bpo-35035: Rename email.utils documentation to email.utils.rst (GH-10023)
...
I'll watch for 404 on the old URL and will setup an HTTP redirection if needed.
2018-11-21 13:41:07 +01:00
Julien Palard
d936a8f8e0
bpo-35221: Additional hint that the placeholder is to be replaced. (GH-10604)
2018-11-21 00:40:05 -08:00
Serhiy Storchaka
6c48bf2d9e
bpo-9842: Add references for using "..." as a placeholder to the index. (GH-10330)
2018-11-20 19:26:09 +02:00
Julien Palard
6b73bb523a
bpo-31146: Don't fallback switcher to english on not-yet pusblished languages. (GH-10558)
2018-11-20 17:18:30 +01:00
Victor Stinner
02e6bf7f20
bpo-28604: Fix localeconv() for different LC_MONETARY (GH-10606)
...
locale.localeconv() now sets temporarily the LC_CTYPE locale to the
LC_MONETARY locale if the two locales are different and monetary
strings are non-ASCII. This temporary change affects other threads.
Changes:
* locale.localeconv() can now set LC_CTYPE to LC_MONETARY to decode
monetary fields.
* Add LocaleInfo.grouping_buffer: copy localeconv() grouping string
since it can be replaced anytime if a different thread calls
localeconv().
* _Py_GetLocaleconvNumeric() now requires a "struct lconv *"
structure, so locale.localeconv() now longer calls localeconv()
twice. Moreover, the function now requires all arguments to be
non-NULL.
* Rename STATIC_LOCALE_INFO_INIT to LocaleInfo_STATIC_INIT.
* Move _Py_GetLocaleconvNumeric() definition from fileutils.h
to pycore_fileutils.h. pycore_fileutils.h now includes locale.h.
* The _locale module is now built with Py_BUILD_CORE defined.
2018-11-20 16:20:16 +01:00
Windson yang
689d555ec1
bpo-25438: document what codec PyMemberDef T_STRING decodes the char * as (GH-10580)
...
Source of T_STRING: e42b705188/Python/structmember.c (L51)
Source of PyUnicode_FromString
https://github.com/python/cpython/blob/master/Include/unicodeobject.h#L702
https://bugs.python.org/issue25438
2018-11-17 11:16:51 -08:00
Srinivas Thatiparthy (శ్రీనివాస్ తాటిపర్తి)
4edeaeac4c
bpo-35250: Correct argument name "num" -> "btn" in turtle docs. (GH-10565)
2018-11-16 15:28:51 +02:00
wim glenn
a48e0eb967
Fix outdated info in datamodel about dicts (GH-9807)
2018-11-16 20:58:19 +09:00
Andrés Delfino
c2ccac7b9f
bpo-33816: Remove outdated metaclass example (GH-7566)
2018-11-16 20:41:55 +09:00
Terry Jan Reedy
b65413b497
bpo-35213: Where appropriate, use 'macOS' in idlelib. ( #10478 )
2018-11-15 13:15:13 -05:00
Sebastián Ramírez
25221b3283
Fix typo in asynchronous generator iterator documentation (GH-10542)
...
Remove an unnecessary "that":
... will execute that the body ... -> ... will execute the body ...
2018-11-14 21:51:56 -08:00
Julien Palard
64313478bc
bpo-32613: Update window FAQ (GH-5552)
2018-11-14 16:22:27 +01:00
Andrés Delfino
8e0b05e2f4
Grammar corrections in abc.rst (GH-10525)
2018-11-13 16:40:44 -08:00
Andrés Delfino
bf1355b424
Link to property built-in in abc.rst (GH-10526)
2018-11-13 16:29:57 -08:00
l-n-s
daeb3c4c58
Fix doc typo: Window -> Windows (GH-10508)
2018-11-13 16:13:12 -08:00
Victor Stinner
1a6be91e6f
bpo-35081: Make some _PyGC macros internal (GH-10507)
...
* Move "GC" macros together:
* PyObject_IS_GC()
* _Py_AS_GC()
* _PyObject_GC_IS_TRACKED()
* _PyObject_GC_MAY_BE_TRACKED()
* Mark other GC macros as internal (#ifdef Py_BUILD_CORE):
* _PyGCHead_NEXT(g), _PyGCHead_SET_NEXT(g, p)
* _PyGCHead_PREV(g), _PyGCHead_SET_PREV(g, p)
* _PyGCHead_FINALIZED(g), _PyGCHead_SET_FINALIZED(g)
* _PyGC_FINALIZED(o), _PyGC_SET_FINALIZED(o)
* _PyObject_GC_TRACK(o), _PyObject_GC_UNTRACK(o)
* _PyGC_PREV_MASK_FINALIZED
* _PyGC_PREV_MASK_COLLECTING
* _PyGC_PREV_SHIFT
* _PyGC_PREV_MASK
* Replace _PyGC_generation0 with _PyRuntime.gc.generation0
* _queuemodule.c: replace _PyObject_GC_UNTRACK()
with with PyObject_GC_UnTrack()
* Document that _PyObject_GC_TRACK() _PyObject_GC_UNTRACK() macros
have been removed from the public C API.
2018-11-13 12:52:18 +01:00
Windson yang
0dc1e45dfd
Fix a couple documentation typos. (GH-10498)
...
reproduciblity -> reproducibility
PyPA are the group -> PyPA is the group
2018-11-12 19:56:25 -08:00
Windson yang
a9655b7f71
Improve grammar in Glossary. (GH-10474)
...
a asynchronous generator -> an asynchronous generator
2018-11-12 09:42:38 -08:00
Andrés Delfino
7610f4fe93
Correct grammar mistake in stdtypes.rst (GH-10481)
2018-11-12 09:24:00 -08:00
Andrés Delfino
9404e7737b
Linkify PEP 8 in unix.rst (GH-10482)
2018-11-12 08:31:57 -08:00
Giampaolo Rodola
19c46a4c96
bpo-33695 shutil.copytree() + os.scandir() cache ( #7874 )
2018-11-12 06:18:15 -08:00
Srinivas Thatiparthy (శ్రీనివాస్ తాటిపర్తి)
cd449806fa
Minor grammar improvement to io documentation. (GH-10329)
...
Independently of -> Independent of
2018-11-11 20:06:18 -08:00
Jakub Stasiak
7432f0929f
Update subprocess.Popen documentation wrt universal_newlines arg (GH-10337)
...
* universal_newlines defaulting to False would suggest, that not
specifying universal_newlines explicitly and setting text to True
should cause an error, which is not the case.
* The run function didn't have the universal_newlines parameter
documented
* The check_output function didn't have its text parameter documented
2018-11-11 19:40:42 -08:00
Julien Palard
082875dcd6
bpo-33878: Doc: Fix missing case by simplifying. (GH-7762)
...
The documentation was not covering multiple targets enclosed by
parenthesis nor multiple targets enclosed by brackets, adding them all
would be heavy, an else cover them all and is lighter to read.
2018-11-12 00:59:39 +01:00
Andrés Delfino
b086c8afdb
bpo-33699: Describe try's else clause with the rest of the try clause (GH-7252)
...
https://bugs.python.org/issue33699
2018-11-11 11:33:51 -08:00
Andrés Delfino
76e8fd7b7e
dict insertion order is guaranteed since 3.7 (GH-10431)
2018-11-11 08:56:47 -08:00
Terry Jan Reedy
50ff02b431
bpo-34864: Document two IDLE on MacOS issues. (GH-10456)
...
The System Preferences Dock "prefer tabs always" setting disables some
IDLE features. Menus are a bit different than as described for Windows
and Linux.
2018-11-10 23:26:31 -05:00
Géry Ogam
009b2f0204
Correct a typo in the Unittest documentation (GH-10397)
...
Co-Authored-By: maggyero <gery.ogam@gmail.com>
2018-11-09 14:34:54 -05:00
Raymond Hettinger
b83942c755
Cleanup and improve the regex tokenizer example. (GH-10426)
...
1) Convert weird field name "typ" to the more standard "type".
2) For the NUMBER type, convert the value to an int() or float().
3) Simplify ``group(kind)`` to the shorter and faster ``group()`` call.
4) Simplify logic go a single if-elif chain to make this easier to extend.
5) Reorder the tests to match the order the tokens are specified.
This isn't necessary for correctness but does make the example
easier to follow.
6) Move the "column" calculation before the if-elif chain so that
users have the option of using this value in error messages.
2018-11-09 01:19:33 -08:00
Lisa Roach
0f221d09ca
bpo-24412: Adds cleanUps for setUpClass and setUpModule. (GH-9190)
2018-11-08 18:34:33 -08:00
Julien Palard
556d50d03d
Doc: Make all versions sidebars the same for consistency. (GH-10288)
2018-11-08 00:11:49 +01:00
Julien Palard
beed84ca5e
bpo-35015: Doc: Fix internationalisation of the availability directive. (GH-10360)
2018-11-07 22:42:40 +01:00
Andrés Delfino
bfe1839aa9
Add link to PEP 525 in Expressions. (GH-10333)
2018-11-07 20:12:12 +02:00
Andrés Delfino
ae31e3fbf4
glob uses fnmatch.filter instead of fnmatch since 2001. (GH-10102)
2018-11-07 20:09:11 +02:00
Andrés Delfino
c5eec4426d
Add a reference to the name mangling description in the tutorial to the index. (GH-10138)
2018-11-07 19:59:45 +02:00
Andrés Delfino
cdb96f45b6
Add future_stmt to simple_stmt production list. (GH-8239)
2018-11-07 19:32:18 +02:00
Andrés Delfino
ca68261c75
Fix markup for xml.sax in 3.8 notes. (GH-9603)
2018-11-07 19:29:14 +02:00
Andrés Delfino
d64991031e
Correct grammar mistakes in string.rst. (GH-9752)
2018-11-07 19:24:56 +02:00
Andrés Delfino
ca03f3b93e
Mark len call as a code snippet in stdtypes.rst. (GH-9804)
2018-11-07 19:22:47 +02:00
Andrés Delfino
ea6a28c9f7
Mark -c and -O as command line options in reStructuredText. (GH-10103)
2018-11-07 19:06:45 +02:00
Cheryl Sabella
637a33b996
bpo-2504: Add pgettext() and variants to gettext. (GH-7253)
2018-11-07 16:12:20 +02:00
Diego Rojas
5598cc90c7
bpo-34160: Preserve order of attributes in minidom. (GH-10219)
2018-11-07 16:09:04 +02:00
HongWeipeng
f194479949
bpo-31553: add --json-lines option to json.tool ( #10051 )
...
* add jsonlines option to json.tool
* code review
* fix:avoid read infile after it close
* improve doc in whatsnew 3.8
2018-11-07 12:09:32 +02:00
guoci
0e7497cb46
bpo-34898: Add mtime parameter to gzip.compress(). (GH-9704)
...
Without setting mtime, time.time() will be used as the timestamp which will
end up in the compressed data and each invocation of the compress() function
will vary over time.
2018-11-07 11:50:23 +02:00
Andrés Delfino
d2b11af915
Remove duplicate "Reference Guide" in optparse.rst. (GH-10372)
2018-11-07 07:47:11 +02:00
Terry Jan Reedy
76cd0c30d6
bpo-33000: Document that IDLE's shell has no line limit. ( #10373 )
...
A program that runs indefinitely can overfill memory.
2018-11-06 23:55:06 -05:00
Terry Jan Reedy
75d9d59ab3
bpo-23220: Explain how IDLE's Shell displays output (GH-10356)
...
Add a new subsection to the doc.
2018-11-06 12:37:36 -05:00
Terry Jan Reedy
5e79090324
bpo-35099: Improve the doc about IDLE running user code. ( #10350 )
...
The section is renamed from "IDLE -- console differences". It mostly
covers the implications of using custom sys.stdxxx objects.
2018-11-05 21:30:32 -05:00
Denis Osipov
0bee3c36d4
bpo-35119: Fix RecursionError in example of customizing module attribute access. (GH-10323)
...
https://bugs.python.org/issue35119
2018-11-06 01:53:21 +00:00
Rémi Lapeyre
6531bf6309
bpo-33462: Add __reversed__ to dict and dict views (GH-6827)
2018-11-06 09:38:54 +09:00
E Kawashima
16c8a53490
[Docs] Fix required version of an example of importlib (GH-10118)
...
§31.5.6.3. Importing a source file directly: `module_from_spec` is new in Python 3.5.
2018-11-05 23:41:17 +01:00
Serhiy Storchaka
083a7a172b
bpo-35167: Specify program for gzip and json.tool command line options. (GH-10332)
2018-11-05 17:47:27 +02:00
Mario Corchero
ad1a25f499
bpo-32512: Add -m option to profile for profiling modules ( #5132 )
...
The new option in the CLI of the profile module allow to profile
executable modules. This change follows the same implementation as the
one already present in `cProfile`.
As the argument is now present on both modules, move the tests to the
common test case to be run with profile as well.
2018-11-05 22:03:46 +10:00
Max Bélanger
2810dd7be9
closes bpo-32285: Add unicodedata.is_normalized. (GH-4806)
2018-11-04 15:58:24 -08:00
Pablo Galindo
b4db249c95
bpo-9842: Add cross-reference to the ellipsis object (GH-4063)
...
This PR adds a cross-reference to the ellipsis object and the representation of recursive item in containers as indicated in [issue 9842](https://bugs.python.org/issue9842 ) by @bitdancer.
https://bugs.python.org/issue9842
2018-11-04 14:36:25 -08:00
Windson yang
98b8535415
bpo-35118: Improve docs regarding indexing (GH-10265)
2018-11-04 14:34:22 -08:00
Stéphane Wirtel
55f3317e98
bpo-10536: Enhancements to gettext docs (GH-10324)
2018-11-04 23:24:41 +01:00
Saptak Sengupta
622935d9a6
bpo-31887: Adds documentations for special multipart/signed handling (GH-4268)
...
This pull request adds some information about the special multipart/signed handling to clear about disabling header folding.
https://bugs.python.org/issue31887
2018-11-04 14:12:34 -08:00
Adrian Liaw
c03bf0ae79
Doc: Disable smartquotes for zh-tw, zh-cn, fr and ja translations (GH-9423)
2018-11-04 22:04:51 +01:00
Stéphane Wirtel
0edc7b1b1a
bpo-35159: Add a link to the devguide in the sidebar of the index (Doc/) (GH-10316)
2018-11-04 21:41:34 +01:00
Elena Oat
52465e1b8b
Explain that the orderness of the result of glob is system-dependant (GH-6587)
...
Thanks!
2018-11-04 15:50:55 +01:00
Julien Palard
f98c1623ec
Doc: -W flag for sphinx-build can be disabled (GH-10303)
2018-11-03 19:06:33 +01:00
Stéphane Wirtel
3e28eed9ec
bpo-34969: Add --fast, --best on the gzip CLI (GH-9833)
2018-11-03 16:24:23 +01:00
İsmail Arılık
fe62d877e3
Fix a typo about a comma. (GH-10306)
2018-11-03 17:05:59 +02:00
Pablo Galindo
bf46a09dec
bpo-35075: Fix broken url in the pprint documentation (GH-10201)
...
https://bugs.python.org/issue35075
2018-11-01 05:29:38 -07:00
Serhiy Storchaka
511747bec3
bpo-35110: Fix yet few spaces before dashes. (GH-10255)
2018-10-31 11:14:38 +02:00
Serhiy Storchaka
3f819ca138
bpo-35110: Fix unintentional spaces around hyphens and dashes. (GH-10231)
2018-10-31 02:26:06 +02:00
matthewbelisle-wf
68f323715e
bpo-35116, urllib.parse: Document the new max_num_fields parameter (GH-10247)
2018-10-30 21:30:19 +01:00
Daniel Lovell
a80af77087
bpo-35086: Fix tkinter example "A Simple Hello World Program". (GH-10160)
...
The root widget was accessed as a global variable in the Application's method.
2018-10-30 16:56:07 +02:00
Serhiy Storchaka
b232df9197
bpo-31680: Add curses.ncurses_version. (GH-4217)
...
Use curses.ncurses_version for conditionally skipping a test.
2018-10-30 13:22:42 +02:00
Andriy Maletsky
b83d917faf
Doc: fix asyncio loop.close() description (GH-10229)
...
Needs backport to 3.7. In 3.6 the description is correct.
2018-10-29 14:39:21 -07:00
Stephan Hoyer
0200928e8d
Include memo in the documented signature of copy.deepcopy()
...
* Include memo in the documented signature of copy.deepcopy()
The memo argument is mentioned lower on the doc page under writing a
`__deepcopy__` method, but is not included in the documented function signature.
This makes it easy to miss, and can lead to incorrect/buggy implementations of
`__deepcopy__` -- which is exatly what just happpend to me!
2018-10-29 12:30:12 -06:00
Gus Goulart
c0799ec973
bpo-27741: Better wording for datetime.strptime() (GH-9994)
2018-10-29 12:49:52 +01:00
Terry Jan Reedy
ea9c8bd443
bpo-35097: Add IDLE doc subsection explaining editor windows. ( #10206 )
...
Topics include opening, title and status bar, .py* extension, and running.
2018-10-28 20:42:18 -04:00
Pablo Galindo
c61e229d2a
bpo-33234: Add exact allocation optimization to lists in What's New (GH-10200)
...
In commit 372d705
a new optimization to the list() type was introduced but it was not added
to the optimization section in What's new for Python 3.8.
2018-10-28 22:03:18 +00:00
Terry Jan Reedy
18032632ab
Issue 35093: Document the IDLE document viewer in the IDLE doc. ( #10195 )
...
Add a paragraph in "Help and preferences", "Help sources" subsection.
2018-10-28 16:21:18 -04:00
Raymond Hettinger
e3685fd5fd
bpo-34160: Preserve user specified order of Element attributes (GH-10163)
2018-10-28 11:18:22 -07:00
Terry Jan Reedy
68d6dc0770
bpo-1529353: Explain Shell text squeezing in the IDLE doc. ( #10169 )
2018-10-28 12:44:44 -04:00
Sebastian Rittau
c8a8d6b347
bpo-35089: Don't mention typing.io and typing.re (GH-10173)
...
https://bugs.python.org/issue35089
2018-10-28 16:03:29 +00:00
Serhiy Storchaka
913876d824
bpo-35054: Add yet more index entries for symbols. (GH-10121)
2018-10-28 13:41:26 +02:00
Andrés Delfino
95f68b10d5
Fix mistakes on function coroutines related definitions (GH-9871)
...
Fix a bug I introduced in #9864 by which coroutines are treated as synonymous of function coroutines.
Also, fix the same mistake (coroutines == function coroutines) already present in other parts of the reference.
I'm very sorry for the hassle.
2018-10-28 03:41:57 -07:00
Andreas Pelme
d855f2fdbd
unittest documentation: Spell pytest without the dot (GH-9820)
...
Referring to ``pytest`` as ``py.test`` is deprecated.
2018-10-27 11:09:12 -07:00
nsrip
40bf6cff22
Fix typo in zipfile documentation. (GH-10151)
2018-10-27 17:42:56 +03:00
Serhiy Storchaka
fec35c99aa
bpo-33710: Deprecate l*gettext() and related functions in the gettext module. (GH-10139)
...
They return encoded bytes and are Python 2 artifacts.
2018-10-27 08:00:41 +03:00
Terry Jan Reedy
d9bff4e81b
bpo-35079: Revise difflib.SequenceManager.get_matching_blocks doc (GH-10144)
...
Specify that blocks are non-overlapping. Change '!=' to '<'.
2018-10-26 23:03:08 -04:00
Stéphane Wirtel
12e696b4f0
bpo-35042: Use the :pep: role where a PEP is specified ( #10036 )
2018-10-26 15:58:26 -07:00
Benjamin Peterson
4e3a53bcee
Fix a typo in asyncio-dev.rst. (GH-10133)
...
"threadsafe"
2018-10-26 10:14:04 -07:00
Andrés Delfino
a6dc531063
bpo-34789: make xml.sax.make_parser accept iterables of all types (GH-9576)
2018-10-26 17:56:57 +03:00
Senthil Kumaran
25a525bf5a
Simplify the warning for http.server. ( #10116 )
2018-10-26 06:43:37 -07:00
Pablo Galindo
7cd2543416
bpo-34890: Make iscoroutinefunction, isgeneratorfunction and isasyncgenfunction work with functools.partial (GH-9903)
...
inspect.isfunction() processes both inspect.isfunction(func) and
inspect.isfunction(partial(func, arg)) correctly but some other functions in the
inspect module (iscoroutinefunction, isgeneratorfunction and isasyncgenfunction)
lack this functionality. This commits adds a new check in the mentioned functions
in the inspect module so they can work correctly with arbitrarily nested partial
functions.
2018-10-26 12:19:14 +01:00
Stéphane Wirtel
e483f02423
bpo-35044, doc: Use the :exc: role for the exceptions (GH-10037)
2018-10-26 12:52:11 +02:00
Serhiy Storchaka
ddb961d2ab
bpo-35054: Add more index entries for symbols. (GH-10064)
2018-10-26 09:00:49 +03:00
Max Bélanger
6c83d9f4a7
bpo-35022: unittest.mock.MagicMock now also supports __fspath__ (GH-9960)
...
The MagicMock class supports many magic methods, but not __fspath__. To ease
testing with modules such as os.path, this function is now supported by default.
2018-10-25 23:48:58 +02:00
Stéphane Wirtel
1770d1c512
bpo-35038: AttributeError: 'frame' object has no attribute 'f_restricted'. (GH-10098)
...
https://bugs.python.org/issue35038
2018-10-25 14:13:45 -07:00
Stéphane Wirtel
9e95eb0d60
Fix grammar in using/unix build instruction docs (GH-10009)
2018-10-25 10:32:30 -05:00
Ned Batchelder
890423f796
configparser doc: Properly label ConfigParser attributes (GH-9930)
2018-10-25 01:47:01 +02:00
orlnub123
78401f7156
importlib doc: Fix approximated import_module() code (GH-9945)
...
The spec gets stored on modules with the __spec__ attribute, not spec.
2018-10-25 01:32:26 +02:00
TilmanK
e80e77a484
bpo-35027, distutils doc: Correct note on setup.py change in Python 3.7 (GH-10032)
2018-10-25 00:50:25 +02:00
Mariatta
9f43fbbd9d
Use f-strings in asyncio-task code examples (GH-10035)
...
Replace str.format with f-strings in the code examples of asyncio-task documentation.
2018-10-25 00:37:12 +02:00
jdemeyer
057f4078b0
bpo-32797: improve documentation of linecache.getline (GH-9540)
2018-10-24 14:44:41 +02:00
Tal Einat
dfba1f67e7
bpo-33899: Mention tokenize behavior change in What's New (GH-10073)
2018-10-24 00:20:05 -07:00
Zsolt Cserna
4f399be0e7
bpo-34260, shutil: fix copy2 and copystat documentation (GH-8523)
...
Fix the documentation of copy2, as it does not copy file ownership (user and
group), only mode, mtime, atime and flags.
The original text was confusing to developers as it suggested that this
command is the same as 'cp -p', but according to cp(1), '-p' copies file
ownership as well.
Clarify which metadata is copied by shutil.copystat in its docstring.
2018-10-23 12:09:50 +02:00
Andrei Petre
83a07652e0
bpo-34748: link to :ref:`partial-objects` in functools.partial doc. (GH-9809)
2018-10-23 14:11:20 +08:00
Xtreak
121eb1694c
bpo-34081: Fix wrong example link that was linking to distutils (GH-8248)
2018-10-21 16:54:52 +02:00
Xtreak
c3f52a59ce
bpo-35036: Remove empty log line in the suspicious.py tool (GH-10024)
...
Previous to commit ee171a2
the logline was working because of self.info() (now
deprecated) defaults to an empty message.
2018-10-21 13:57:32 +01:00
Benjamin Peterson
12d0ff1230
Remove ">>>" from testsetup. (GH-10017)
...
Fixes doc build breakage from 890a4b9293
.
2018-10-20 16:51:05 -07:00
Xtreak
890a4b9293
bpo-35020: Link to sorting examples from list.sort() (GH-9931)
2018-10-20 14:39:03 -07:00
Senthil Kumaran
eeab510bb7
bpo-34576 - Fix the formatting for security considerations in http.server.rst ( #10005 )
...
* bpo-34576 - Fix the formatting for security considerations in http.server.rst
* Address review comment.
2018-10-20 11:32:07 -07:00
Stéphane Wirtel
d262250d07
bpo-35032: Remove inaccessible videos from faq/Windows (GH-10004)
...
https://bugs.python.org/issue35032
2018-10-20 08:27:03 -07:00
Stéphane Wirtel
0522fd81dc
bpo-34839: Add a 'before 3.6' in the section 'warnings' of doctest (GH-9736)
2018-10-20 10:43:32 +02:00
Pablo Galindo
d5b4f1b5a0
bpo-34983: Expose symtable.Symbol.is_nonlocal() in the symtable module (GH-9872)
...
The symbol table was not exposing functionality to query the nonlocal symbols
in a function or to check if a particular symbol is nonlocal.
2018-10-20 01:46:00 +01:00
Pablo Galindo
027664a3d5
bpo-32798: Add restriction on the offset parameter for mmap.flush in the docs ( #5621 )
...
Add restriction on the offset parameter for mmap.flush.
Explain that ALLOCATIONGRANULARITY is the same as PAGESIZE in Unix.
2018-10-20 02:37:55 +02:00
Berker Peksag
13ae4d4438
bpo-21196: Clarify name mangling rules in tutorial (GH-5667)
...
Initial patch by Chandan Kumar.
2018-10-20 02:33:48 +02:00