[issue19821] pydoc.ispackage() could be more accurate

2020-06-15 Thread Zackery Spytz


Change by Zackery Spytz :


--
keywords: +patch
nosy: +ZackerySpytz
nosy_count: 3.0 -> 4.0
pull_requests: +20090
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/20908

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19821] pydoc.ispackage() could be more accurate

2017-03-09 Thread Wolfgang Maier

Changes by Wolfgang Maier :


--
nosy: +wolma

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19821] pydoc.ispackage() could be more accurate

2014-06-25 Thread Claudiu Popa

Claudiu Popa added the comment:

I would go on the deprecation route with this and removing it in 3.6, just like 
the formatter module.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19821
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19821] pydoc.ispackage() could be more accurate

2013-11-28 Thread Claudiu.Popa

Claudiu.Popa added the comment:

It was used by pydoc.py until 2006, when it was removed with this commit: 

Changeset:
37821 (3135648026c4) Second phase of refactoring for runpy, pkgutil, pydoc, and 
setuptools.

Is it worth to fix this?

--
nosy: +Claudiu.Popa

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19821
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19821] pydoc.ispackage() could be more accurate

2013-11-27 Thread Eric Snow

New submission from Eric Snow:

pydoc.ispackage() is a best-effort guess at whether or not a path is the 
location of a package.  However, it uses hard-coded suffixes when matching file 
names, which can miss files (e.g. extension modules and sourceless packages on 
Windows).  It should probably use suffixes defined in importlib.util, as 
they're used elsewhere in pydoc.  The function also does not comprehend 
namespace packages, but I'm not sure that's worth worrying about.

FWIW, it isn't clear to me what is using pydoc.ispackage().  It may not be used 
in the stdlib at all.

--
components: Library (Lib)
messages: 204646
nosy: eric.snow
priority: low
severity: normal
stage: needs patch
status: open
title: pydoc.ispackage() could be more accurate
type: enhancement
versions: Python 3.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19821
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com