Christian Heimes
3d2b407da0
bpo-31574: importlib dtrace ( #3749 )
...
Importlib was instrumented with two dtrace probes to profile import timing.
Signed-off-by: Christian Heimes <christian@python.org>
2017-09-29 15:53:19 -07:00
Raymond Hettinger
0d4497b9ca
bpo-23702: Update Descriptor-HOWTO to reflect the removal of unbound methods ( #3739 )
2017-09-25 01:05:49 -07:00
Pablo Galindo
586c0502b5
bpo-31294: Fix ZeroMQSocketListener and ZeroMQSocketHandler examples ( #3229 )
...
* Fix ZeroMQSocketListener and ZeroMQSocketHandler examples
* Use send_json and recv_json to simplify pyzmq interfacing
* Add News entry
2017-09-07 13:53:13 -07:00
Lisa Hewus Fresh
384899dfae
bpo-30737: Update DevGuide links to new URL (GH-3228)
...
Update old devguide links from https://docs.python.org/devguide to https://devguide.python.org
2017-08-30 09:37:43 -07:00
Brett Cannon
a3110a0133
Fix a minor grammar issue in the logging cookbook (GH-3136)
2017-08-18 10:00:31 -07:00
waxmoon
d439d3e291
Minor typo in curses.rst ( #2763 )
...
I found a tiny typo in the curses how-to: changed 'Thy' to 'The' on line 68.
2017-07-24 18:03:07 -04:00
_ = NaN
b066edfb1b
bpo-30709: Improve code example in Descriptor HowTo doc (GH-2339)
2017-06-22 20:54:35 -07:00
gfyoung
ec19ba210b
bpo-29596: Improve clinic howto documentation (GH-1710)
...
Clarify that `two-pass` buffer can only be dumped once, and it prints out all text sent to it during all processing, even from Clinic blocks *after* the dumping point.
2017-06-06 12:23:52 -07:00
Mariano Anaya
1bced56567
bpo-30530: Update Descriptor How To Documentation (GH-1845)
...
Update the code example in Functions and Methods section
Remove objtype argument in MethodType
2017-06-04 19:46:50 -07:00
csabella
9be4ff359d
bpo-30538: Update count() in Functional Programming HOWTO ( #1919 )
...
* bpo-30538: Update count() in Functional HOWTO
* bpo-30538: Update enumerate() arguments in Functional HOWTO
2017-06-04 10:39:21 -07:00
delirious-lettuce
3378b2062c
Fix typos in multiple `.rst` files ( #1668 )
2017-05-19 23:37:57 +03: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
UltimateCoder
8856940cf2
bpo-28315: Improve code examples in docs (GH-1372)
...
Replace
File "<stdin>", line 1, in ?
with
File "<stdin>", line 1, in <module>
2017-05-03 09:46:45 -07:00
Jesse Gonzalez
6fde770e4e
Use the correct name for ISO in Unicode HOWTO. ( #1312 )
2017-04-26 22:12:17 -07:00
Berker Peksag
8526fb74ed
Remove redundant comma in argparse HOWTO ( #1141 )
...
Reported by Sean Canavan on docs@p.o.
2017-04-20 07:29:35 +03:00
Serhiy Storchaka
84b8e92e46
bpo-29918: Add missed "const" modifiers in C API documentation. ( #846 )
2017-03-30 10:01:03 +03:00
Martin Panter
4659ddc433
Merge doc fixes from 3.5
2017-01-14 09:54:57 +00:00
Martin Panter
8f1378366e
Avoid line breaks after hyphens, otherwise they are turned into spaces
2017-01-14 08:24:20 +00:00
Brett Cannon
73224c4248
Merge
2016-12-22 10:02:16 -08:00
Brett Cannon
7e93c84438
Grammatical fixes following #d95f19892fd0
2016-12-22 10:02:01 -08:00
Brett Cannon
ce042af3fe
Merge for porting HOWTO update
2016-12-17 12:37:41 -08:00
Brett Cannon
5866719510
Update porting HOWTO to drop unicode_literals and mention static type checking
2016-12-17 12:37:20 -08:00
Martin Panter
b7880b067b
Issue #28820 : Merge spelling fixes from 3.5
2016-12-10 05:38:25 +00:00
Martin Panter
898573a734
Issue #28820 : Fix spelling of “practice” as a noun
2016-12-10 05:12:56 +00:00
Martin Panter
2fed8cd6f0
Issues #28755 , #28753 : Merge Arg Clinic howto from 3.5
2016-12-10 04:14:02 +00:00
Martin Panter
cfa9bad4b2
Issue #28755 : Improve syntax highlighting in Arg Clinic howto
2016-12-10 04:10:45 +00:00
Martin Panter
a277c130f7
Issue 28753: Argument Clinic howto docfix, courtesy Julien Palard.
2016-12-10 03:49:12 +00:00
Serhiy Storchaka
29b0a26822
Fixed double hyphens that are rendered to literal en-dashes in the documenation.
2016-12-04 10:20:55 +02:00
Serhiy Storchaka
c7b1a0bbe2
Issue #28763 : Use double hyphens (rendered as en-dashes) in numerical ranges
...
in the documentation.
2016-11-26 13:43:28 +02:00
Serhiy Storchaka
e418432dfb
Fixed double hyphens that are rendered to literal en-dashes in the documenation.
2016-12-04 10:22:09 +02:00
Serhiy Storchaka
0264e46caa
Issue #28763 : Use double hyphens (rendered as en-dashes) in numerical ranges
...
in the documentation.
2016-11-26 13:49:59 +02:00
Martin Panter
99b6f28351
Merge doc fixups from 3.5
2016-11-21 04:22:22 +00:00
Martin Panter
357ed2e577
Change double hyphens (en dashes) to em (longer) dashes
2016-11-21 00:15:20 +00:00
Berker Peksag
6b571e021a
Issue #21590 : Silence Sphinx warnings in instrumentation.rst
...
WARNING: Could not lex literal_block as "c". Highlighting skipped.
Patch by SilentGhost.
2016-11-06 21:45:16 +03:00
Serhiy Storchaka
0bbf8c08ab
Issue #19795 : Mark up True and False as literal text instead of bold.
2016-10-19 16:44:47 +03:00
Serhiy Storchaka
a97cd2eb17
Issue #19795 : Mark up True and False as literal text instead of bold.
2016-10-19 16:43:42 +03: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
Benjamin Peterson
8166a5db5b
always use double quotes for SystemTap string literals ( closes #28472 )
...
Patch by Roman Podoliaka.
2016-10-18 23:33:03 -07:00
Berker Peksag
1cb7aaa9b1
Issue #27991 : Merge from 3.5
2016-09-11 13:02:56 +03:00
Berker Peksag
53ba2d10e0
Issue #27991 : Remove incorrect sentence about store_true
...
Patch by py.user.
2016-09-11 13:02:27 +03:00
Benjamin Peterson
699e2c91f6
reST is not markdown
2016-09-10 17:24:25 -07:00
Łukasz Langa
a785c87d6e
DTrace support: function calls, GC activity, line execution
...
Tested on macOS 10.11 dtrace, Ubuntu 16.04 SystemTap, and libbcc.
Largely based by an initial patch by Jesús Cea Avión, with some
influence from Dave Malcolm's SystemTap patch and Nikhil Benesch's
unification patch.
Things deliberately left out for simplicity:
- ustack helpers, I have no way of testing them at this point since
they are Solaris-specific
- PyFrameObject * in function__entry/function__return, this is
SystemTap-specific
- SPARC support
- dynamic tracing
- sys module dtrace facility introspection
All of those might be added later.
2016-09-09 17:37:37 -07:00
Benjamin Peterson
cc854499e4
clinic: PY_LONG_LONG -> long long
2016-09-08 09:29:11 -07:00
R David Murray
d44500cc29
Merge: #25916 : fix a few 'string of bytes' references.
2016-08-23 20:44:31 -04:00
R David Murray
48de28290c
#25916 : fix a few 'string of bytes' references.
...
Patch by SilengGhost.
2016-08-23 20:43:56 -04:00
Zachary Ware
48e4bd6a02
Merge with 3.5
2016-08-17 09:52:32 -05:00
Zachary Ware
54005afeee
Use sys.version_info, not sys.version.
...
sys.version[0] gives a string, which fails > comparison with 2.
Reported by Arne Maximilian Richter on docs@
2016-08-17 09:51:20 -05:00
Martin Panter
98cf1e79a1
Issue #27745 : Merge typo fixes from 3.5
2016-08-12 12:05:48 +00:00
Martin Panter
b4a2b36c99
Issue #27745 : Fix some typos in Argument Clinic howto, by Lele Gaifax
2016-08-12 12:02:03 +00:00
Zachary Ware
f03f7c75d8
Closes #27204 : Merge with 3.5
2016-08-09 17:05:23 -05:00
Zachary Ware
378a1d77d9
Issue #27204 : Fix doctests in Doc/howto
...
Patch by Jelle Zijlstra.
2016-08-09 16:47:04 -05:00
Senthil Kumaran
cde03fa038
[merge from 3.5] - Prevent HTTPoxy attack (CVE-2016-1000110)
...
Ignore the HTTP_PROXY variable when REQUEST_METHOD environment is set, which
indicates that the script is in CGI mode.
Issue #27568 Reported and patch contributed by Rémi Rampin.
2016-07-30 23:51:13 -07:00
Senthil Kumaran
17742f2d45
[merge from 3.4] - Prevent HTTPoxy attack (CVE-2016-1000110)
...
Ignore the HTTP_PROXY variable when REQUEST_METHOD environment is set, which
indicates that the script is in CGI mode.
Issue #27568 Reported and patch contributed by Rémi Rampin.
2016-07-30 23:39:06 -07:00
Senthil Kumaran
436fe5a447
[merge from 3.3] Prevent HTTPoxy attack (CVE-2016-1000110)
...
Ignore the HTTP_PROXY variable when REQUEST_METHOD environment is set, which
indicates that the script is in CGI mode.
Issue #27568 Reported and patch contributed by Rémi Rampin.
2016-07-30 23:34:34 -07:00
Senthil Kumaran
4cbb23f8f2
Prevent HTTPoxy attack (CVE-2016-1000110)
...
Ignore the HTTP_PROXY variable when REQUEST_METHOD environment is set, which
indicates that the script is in CGI mode.
Issue #27568 Reported and patch contributed by Rémi Rampin.
2016-07-30 23:24:16 -07:00
Martin Panter
6a09315ff0
Issue #26462 : Merge code block fixes from 3.5
2016-07-29 01:49:37 +00:00
Martin Panter
8bde911115
Issue #27626 : Merge spelling fixes from 3.5
2016-07-28 01:30:58 +00:00
Martin Panter
eb9957065a
Issue #27626 : Spelling fixes in docs, comments and internal names
...
Based on patch by Ville Skyttä.
2016-07-28 01:11:04 +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
525a949251
Issue #27130 : Merge zlib 64-bit fixes from 3.5
2016-07-23 03:39:49 +00:00
Martin Panter
84544c1020
Issue #27130 : Fix handling of buffers exceeding UINT_MAX in “zlib” module
...
Patch by Xiang Zhang.
2016-07-23 03:02:07 +00:00
Berker Peksag
7577ad32d1
Issue #27378 : Merge from 3.5
2016-06-24 08:55:06 +03:00
Berker Peksag
79af27ef2e
Issue #27378 : Remove an outdated reference from regex HOWTO
...
Patch by Matt Morrison.
2016-06-24 08:54:43 +03:00
Martin Panter
e514093a2f
Issue #27125 : Merge typo fixes from 3.5
2016-05-30 05:24:49 +00:00
Martin Panter
a90a4a9651
Issue #27125 : Remove duplicated words from documentation and comments
2016-05-30 04:04:50 +00:00
Serhiy Storchaka
c499f30286
Issue #23921 : Standardized documentation whitespace formatting.
...
Original patch by James Edwards.
2016-05-10 12:01:56 +03:00
Serhiy Storchaka
dba903993a
Issue #23921 : Standardized documentation whitespace formatting.
...
Original patch by James Edwards.
2016-05-10 12:01:23 +03:00
Martin Panter
1ce738e08f
Merge typo fixes from 3.5
2016-05-08 14:02:35 +00:00
Martin Panter
f0564164ba
Fix typos in comments, documentation and test method names
2016-05-08 13:48:10 +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
Raymond Hettinger
c5c43b8374
merge
2016-04-26 01:11:28 -07:00
Raymond Hettinger
b9531bcdcc
Issue #24715 : Improve sort stability example
2016-04-26 01:11:10 -07:00
Benjamin Peterson
9046df0659
merge 3.5 ( #26827 )
2016-04-22 23:43:24 -07:00
Benjamin Peterson
95b5f0ad7e
fix python 3 mod init function declaration ( closes #26827 )
2016-04-22 23:43:10 -07:00
Martin Panter
cda80940ed
Issue #15984 : Merge PyUnicode doc from 3.5
2016-04-15 02:27:11 +00:00
Martin Panter
6245cb3c01
Correct “an” → “a” with “Unicode”, “user”, “UTF”, etc
...
This affects documentation, code comments, and a debugging messages.
2016-04-15 02:14:19 +00:00
Serhiy Storchaka
336fc5bbb0
Issue #25910 : Fixed dead links in the docs.
2016-04-11 12:34:07 +03:00
Serhiy Storchaka
90be7333ea
Issue #25910 : Fixed dead links in the docs.
2016-04-11 12:18:56 +03:00
Vinay Sajip
c334202f41
Merged documentation update from 3.5.
2016-04-01 23:13:48 +01:00
Vinay Sajip
d93a60149c
Added a cookbook recipe for a logging context manager.
2016-04-01 23:13:01 +01:00
Berker Peksag
5d7286c05d
Issue #26593 : Fix typo in logging HOWTO
...
Patch by Andrew Szeto.
2016-03-20 12:51:16 +02:00
Berker Peksag
563c949b11
Issue #26593 : Fix typo in logging HOWTO
...
Patch by Andrew Szeto.
2016-03-20 12:50:56 +02:00
Brett Cannon
81ae89b611
Merge for issue #26095
2016-03-18 13:24:15 -07:00
Brett Cannon
adcb654519
Suggest people use feature detection in porting guide
2016-03-18 13:23:58 -07:00
Berker Peksag
f1fc8f953e
Issue #24852 : Remove outdated "HOWTO Use Python in the web" document
2016-03-07 19:01:05 +02:00
Berker Peksag
b4f2f453e7
Issue #24852 : Remove outdated "HOWTO Use Python in the web" document
2016-03-07 19:00:47 +02:00
Georg Brandl
a7f7232838
merge with 3.5
2016-02-28 21:09:45 +01:00
Georg Brandl
76b2ee03c3
Fix typo.
2016-02-28 21:09:36 +01:00
Georg Brandl
3902d62c4e
merge with 3.5
2016-02-26 19:37:52 +01:00
Georg Brandl
5d94134040
Closes #25910 : fix dead and permanently redirected links in the docs. Thanks to SilentGhost for the patch.
2016-02-26 19:37:12 +01:00
Vinay Sajip
d9dc53021e
Merged cookbook update from 3.5.
2016-02-20 19:03:29 +00:00
Vinay Sajip
e10d370a92
Added simple threading example to logging cookbook.
2016-02-20 19:02:46 +00:00
Benjamin Peterson
bd8112901a
merge 3.5 ( #26378 )
2016-02-17 23:43:08 -08:00
Benjamin Peterson
8f0432ffbb
fix typo ( closes #26378 )
2016-02-17 23:42:46 -08:00
Martin Panter
3008b1c4bb
Issue #26304 : Merge doc wording from 3.5
2016-02-10 05:44:56 +00:00
Martin Panter
c04fb56e36
Issue #26304 : Change "allows to <verb>" to "allows <verb>ing" or similar
...
The original form is incorrect grammar and feels awkward, even though the
meaning is clear.
2016-02-10 05:44:01 +00:00
Senthil Kumaran
029f7f7af2
merge from 3.5
2016-02-05 19:37:47 -08:00
Senthil Kumaran
b6213c5664
Fix userinfo example presented in urllib2 howto.
2016-02-05 19:37:23 -08:00