Title: Provide Class' end line in pyclbr module
Type: enhancement Stage: patch review
Components: Library (Lib) Versions: Python 3.9
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: aviral, brandtbucher, steven.daprano
Priority: normal Keywords: patch

Created on 2019-09-28 17:26 by aviral, last changed 2019-10-18 13:10 by steven.daprano.

Pull Requests
URL Status Linked Edit
PR 16466 open aviral, 2019-10-08 19:24
Messages (2)
msg353467 - (view) Author: Aviral (aviral) * Date: 2019-09-28 17:26
Currently, the `readmodule` returns the starting line of the classes but not the end line. This should be provided as well in order to get the scope of the class, mainly to help check what all imports were used in a class.
msg353468 - (view) Author: Steven D'Aprano (steven.daprano) * (Python committer) Date: 2019-09-28 18:26
What `readmodule` are you referring to?

3.6 is in feature-freeze. The earliest that any enhancement could be added is version 3.9.

Can you explain how having an ending line number as well as the starting line number can be used to check which imports are used in a class?
Date User Action Args
2019-10-18 13:10:07steven.dapranosettitle: Provide Class' end line in readmodule module -> Provide Class' end line in pyclbr module
2019-10-08 19:51:36brandtbuchersetnosy: + brandtbucher
2019-10-08 19:24:03aviralsetkeywords: + patch
stage: patch review
pull_requests: + pull_request16249
2019-09-28 18:26:47steven.dapranosetnosy: + steven.daprano

messages: + msg353468
versions: + Python 3.9, - Python 3.6
2019-09-28 17:26:30aviralcreate