Miss Islington (bot)
986eaa86da
bpo-33185: Improve wording and markup (GH-6477)
...
Adds some working and markup fixes that I missed
in the initial commit for this issue.
(Follow-up to GH-6419)
(cherry picked from commit 1a5c4bdb6e
)
Co-authored-by: Nick Coghlan <ncoghlan@gmail.com>
2018-04-15 06:55:10 -07:00
Miss Islington (bot)
d7ffa58207
bpo-33185: Fix regression in pydoc CLI sys.path handling (GH-6419)
...
The pydoc CLI assumed -m pydoc would add the empty string
to sys.path, and hence got confused when it switched to
adding the full initial working directory instead.
This refactors the pydoc CLI path manipulation to be
more testable, and ensures it won't accidentally
remove the standard library directory containing
pydoc itself from sys.path.
(cherry picked from commit 82a9481059
)
Co-authored-by: Nick Coghlan <ncoghlan@gmail.com>
2018-04-15 05:17:13 -07:00
Ivan Levkivskyi
d911e40e78
bpo-32226: PEP 560: improve typing module ( #4906 )
...
This PR re-designs the internal typing API using the new PEP 560 features.
However, there are only few minor changes in the public API.
2018-01-20 11:23:59 +00:00
xdegaye
ebfaa71c2e
bpo-32031: Fix pydoc `test_mixed_case_module_names_are_lower_cased` (GH-4441)
...
When there is a symlink in the directory path of the standard library.
2017-11-18 18:20:21 +01:00
Dong-hee Na
762b9571c9
bpo-32018: Fix inspect.signature repr to follow PEP 8 ( #4408 )
2017-11-15 13:30:59 -05:00
Feanil Patel
6a396c9807
bpo-31128: Allow pydoc to bind to arbitrary hostnames ( #3011 )
...
New -n flag allow overriding localhost with custom value,
for example to run from containers.
2017-09-14 17:54:09 -04:00
Antoine Pitrou
a6a4dc816d
bpo-31370: Remove support for threads-less builds ( #3385 )
...
* Remove Setup.config
* Always define WITH_THREAD for compatibility.
2017-09-07 18:56:24 +02:00
Victor Stinner
fd46561167
bpo-31028: Fix test_pydoc when run directly ( #2864 )
...
* bpo-31028: Fix test_pydoc when run directly
Fix get_pydoc_link() of test_pydoc to fix "./python
Lib/test/test_pydoc.py": get the absolute path to __file__ to prevent
relative directories.
* Use realpath() instead of abspath()
2017-07-27 11:21:26 +02:00
Victor Stinner
d6debb24e0
bpo-29919: Remove unused imports found by pyflakes ( #137 )
...
Make also minor PEP8 coding style fixes on modified imports.
2017-03-27 16:05:26 +02:00
Guido van Rossum
265dce6cbb
Issue #27989 : Tweak inspect.formatannotation() to improve pydoc rendering of function annotations. Ivan L. (3.5->3.6)
2016-10-22 07:56:58 -07:00
Guido van Rossum
52e5004b59
Issue #27989 : Tweak inspect.formatannotation() to improve pydoc rendering of function annotations. Ivan L.
2016-10-22 07:55:18 -07:00
Yury Selivanov
f8cb8a16a3
Issue #27985 : Implement PEP 526 -- Syntax for Variable Annotations.
...
Patch by Ivan Levkivskyi.
2016-09-08 20:50:03 -07:00
Eric Snow
4f29e75289
Issue #24254 : Drop cls.__definition_order__.
2016-09-08 15:11:11 -07:00
Eric Snow
46f97b85a8
Issue #15767 : Use ModuleNotFoundError.
2016-09-07 16:56:15 -07:00
Eric Snow
92a6c170e6
Issue #24254 : Preserve class attribute definition order.
2016-09-05 14:50:11 -07:00
Nick Coghlan
d78448e912
Issue #27366 : Implement PEP 487
...
- __init_subclass__ called when new subclasses defined
- __set_name__ called when descriptors are part of a
class definition
2016-07-30 16:26:03 +10:00
Martin Panter
5285545271
Issue #16484 : Merge pydoc Windows fixes from 3.5
2016-06-12 04:31:25 +00:00
Martin Panter
4f8aaf6440
Issue #16484 : Fix pydoc link and test on Windows, by Kaushik Nadikuditi
2016-06-12 04:24:06 +00:00
R David Murray
13ee7d15e3
Merge: #16484 : Fix pydoc doc links to modules whose names are mixed case.
2016-06-03 19:29:18 -04:00
R David Murray
ead9bfc5c3
#16484 : Fix pydoc doc links to modules whose names are mixed case.
...
Patch by Sean Rodman, test by Kaushik N.
2016-06-03 19:28:35 -04:00
Martin Panter
3e04d5b306
Issue #27076 : Merge spelling from 3.5
2016-05-26 06:03:19 +00:00
Martin Panter
46f50726a0
Issue #27076 : Doc, comment and tests spelling fixes
...
Most fixes to Doc/ and Lib/ directories by Ville Skyttä.
2016-05-26 05:35:26 +00:00
Martin Panter
e2e0deec45
Issue #18010 : Merge pydoc web search fix from 3.5
2015-11-06 01:08:34 +00:00
Martin Panter
98da9d0e0d
Issue #18010 : Merge pydoc web search fix from 3.4 into 3.5
2015-11-06 00:51:38 +00:00
Martin Panter
9ad0aae656
Issue #18010 : Fix pydoc web server search to handle package exceptions
...
Implementation by Antoine Pitrou.
2015-11-06 00:27:14 +00:00
Raymond Hettinger
95801bbe4e
Issue #24879 : Teach pydoc to display named tuple fields in the order they were defined.
2015-08-18 22:25:16 -07:00
Berker Peksag
ce643913a9
Issue #9517 : Move script_helper to the support package.
...
Patch by Christie Wilson.
2015-05-06 06:33:17 +03:00
Serhiy Storchaka
f5e8540e1b
Issue #23008 : Fixed resolving attributes with boolean value is False in pydoc.
2015-04-21 21:11:13 +03:00
Serhiy Storchaka
b6076fb13c
Issue #23008 : Fixed resolving attributes with boolean value is False in pydoc.
2015-04-21 21:09:48 +03:00
Serhiy Storchaka
3de4aae1d0
Fixed pydoc tests when run with -OO.
2015-03-01 15:32:17 +02:00
Serhiy Storchaka
4c094e5fd5
Fixed pydoc tests when run with -OO.
2015-03-01 15:31:36 +02:00
Serhiy Storchaka
1c205518a3
Issue #19980 : Improved help() for non-recognized strings. help('') now
...
shows the help on str. help('help') now shows the help on help().
Original patch by Mark Lawrence.
2015-03-01 00:42:54 +02:00
Serhiy Storchaka
7065f376e0
Issue #23374 : Fixed pydoc failure with non-ASCII files when stdout encoding
...
differs from file system encoding (e.g. on Mac OS).
2015-02-20 23:47:09 +02:00
Serhiy Storchaka
5e3d7a401d
Issue #23374 : Fixed pydoc failure with non-ASCII files when stdout encoding
...
differs from file system encoding (e.g. on Mac OS).
2015-02-20 23:46:06 +02:00
Benjamin Peterson
77c041ba64
merge 3.4 ( #21548 )
2015-02-16 19:45:42 -05:00
Benjamin Peterson
54237f9fea
fix pydoc.apropos and pydoc.synopsis on modules with empty docstrings ( #21548 )
...
Patch by Yuyang Guo and Berker Peksag.
2015-02-16 19:45:01 -05:00
Senthil Kumaran
810dc9bc81
Merge from 3.4
...
Issue #22421 - Secure pydoc server run. Bind it to localhost instead of all interfaces.
2014-09-17 13:19:34 +08:00
Senthil Kumaran
aa72b1b448
Merge from 3.3
...
Issue #22421 - Secure pydoc server run. Bind it to localhost instead of all interfaces.
2014-09-17 13:19:01 +08:00
Senthil Kumaran
2a42a0bff3
Issue #22421 - Secure pydoc server run. Bind it to localhost instead of all interfaces.
2014-09-17 13:17:58 +08:00
Zachary Ware
fff80d984c
Issue #21942 : Fixed source file viewing in pydoc's server mode on Windows.
2014-07-10 11:21:01 -05:00
Zachary Ware
eb43214427
Issue #21942 : Fixed source file viewing in pydoc's server mode on Windows.
2014-07-10 11:18:00 -05:00
Raymond Hettinger
bb91c1d019
Issue 21786: Clean-up test_pydoc taking taking advantage of diffing in unittest.
2014-06-21 12:08:22 -07:00
Charles-François Natali
57398c31c4
Fix test_pydoc failure introduced by 7aa72075d440. Patch by Berker Peksag.
2014-06-20 22:59:12 +01:00
Terry Jan Reedy
fe928de955
Issue #21768 : fix type in test_pydoc, patch by Claudiu Popa.
2014-06-20 14:59:11 -04:00
Benjamin Peterson
159824ea2a
make sure the builtin help function doesn't fail when sys.stdin is not a valid file ( closes #11709 )
...
Original patch by Amaury Forgeot d'Arc with a test by bdettmer.
2014-06-07 20:14:26 -07:00
Benjamin Peterson
ed1160b39c
don't remove self from example code in the HTML output ( closes #13223 )
...
Patch by Víctor Terrón.
2014-06-07 16:44:00 -07:00
Eric Snow
a46ef70bdf
Issue #20484 : Disable the 2 remaining "modules" tests in test_pydoc.
...
I'll look into re-enabling them in issue #20128 .
2014-02-22 13:57:08 -07:00
Larry Hastings
24a882bb7b
Issue #20710 : The pydoc summary line no longer displays the "self" parameter
...
for bound methods. Previous to this change, it displayed "self" for methods
implemented in Python but not methods implemented in C; it is now both
internally consistent and consistent with inspect.Signature.
2014-02-20 23:34:46 -08:00
Serhiy Storchaka
056eb02719
Issue #20654 : Fixed pydoc for enums with zero value. Patch by Vajrasky Kok.
2014-02-19 23:05:12 +02:00
Stefan Krah
5de3278b23
Fix test failures (--without-doc-strings).
2014-01-18 23:18:39 +01:00