Dan Rose
2a37f8f55b
bpo-36045: builtins.help() now prefixes `async` for async functions (GH-12010)
...
Previously, it was hard to tell whether a function should be awaited. It was also incorrect (per PEP 484) to put this in the type hint for coroutine functions. Added this info to the output of builtins.help and pydoc.
https://bugs.python.org/issue36045
2019-05-24 04:38:01 -07:00
Emmanuel Arias
86f0c8215c
bpo-36729: Delete unused text variable on tests. (GH-12959)
2019-04-29 05:24:24 +03:00
Serhiy Storchaka
efcf82f945
bpo-35619: Improve support of custom data descriptors in help() and pydoc. (GH-11366)
2019-01-15 10:53:18 +02:00
Serhiy Storchaka
052b2dfdc9
bpo-32492: Tweak _collections._tuplegetter. (GH-11367)
...
* Replace the docstrings cache with sys.intern().
* Improve tests.
* Unify names of tp_descr_get and tp_descr_set functions.
2018-12-31 14:15:16 +02:00
Sanyam Khurana
b539cef31c
bpo-35614: Fix pydoc help() on metaclasses ( #11357 )
2018-12-31 15:14:47 +10:00
Victor Stinner
2cf4c202ff
bpo-35513: Replace time.time() with time.monotonic() in tests (GH-11182)
...
Replace time.time() with time.monotonic() in tests to measure time
delta.
test_zipfile64: display progress every minute (60 secs) rather than
every 5 minutes (5*60 seconds).
2018-12-17 09:36:36 +01:00
Serhiy Storchaka
a44d34e179
bpo-34966: Improve support of method aliases in pydoc. (GH-9823)
...
Pydoc now does not duplicate docstrings for aliases of inherited methods.
2018-11-08 08:48:11 +02:00
Sanyam Khurana
a323cdcb33
bpo-8525: help() on a type now shows builtin subclasses (GH-5066)
...
For builtin types with builtin subclasses, help() on the type now shows up
to 4 of the subclasses. This partially replaces the exception hierarchy
information previously displayed in Python 2.7.
2018-10-21 17:22:02 +10:00
Bo Bayles
4e11c461ed
bpo-34182: Fix test_pydoc running as a script. (GH-8389)
2018-07-29 22:15:14 +03:00
Nick Coghlan
1a5c4bdb6e
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)
2018-04-15 23:32:05 +10:00
Nick Coghlan
82a9481059
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.
2018-04-15 21:52:57 +10: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