This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2009年08月12日 22:47 by gpolo, last changed 2022年04月11日 14:56 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| pyclbr_nested_objects.diff | gpolo, 2009年08月12日 22:49 | review | ||
| pyclbr_nested_objects-py3k.patch | amaury.forgeotdarc, 2010年10月01日 23:01 | review | ||
| Pull Requests | |||
|---|---|---|---|
| URL | Status | Linked | Edit |
| PR 2503 | merged | cheryl.sabella, 2017年06月30日 10:46 | |
| Messages (12) | |||
|---|---|---|---|
| msg91508 - (view) | Author: Guilherme Polo (gpolo) * (Python committer) | Date: 2009年08月12日 22:47 | |
I have worked on a patch for adding support for nested classes and nested functions in pyclbr. I believe this might be useful for some applications, and also for issue1612262. The patch attached also contains a test and updated documentation. |
|||
| msg112311 - (view) | Author: Mark Lawrence (BreamoreBoy) * | Date: 2010年08月01日 11:00 | |
Patch tested ok against 2.7 on windows vista. Patch seems clean to me, can we get this committed please. |
|||
| msg117847 - (view) | Author: Amaury Forgeot d'Arc (amaury.forgeotdarc) * (Python committer) | Date: 2010年10月01日 23:01 | |
Too late for version 2. I updated patch for 3.2, and tried to improve the documentation a little bit. |
|||
| msg297252 - (view) | Author: Terry J. Reedy (terry.reedy) * (Python committer) | Date: 2017年06月29日 04:59 | |
Looking at the code, there are several references to nested classes, implying that they should already work. So I might want to claim this is a behavior issue, contrary to my adding 'enhancement' before. But moot point until patch is reviewed and otherwise ready to merge. And 3.7 would be better than never. The patch does have a new test. |
|||
| msg297292 - (view) | Author: Cheryl Sabella (cheryl.sabella) * (Python committer) | Date: 2017年06月29日 18:26 | |
I'm working on a PR for this. It passed the existing test cases, but then I tried something that didn't pass, so I'm working on fixing that. |
|||
| msg297301 - (view) | Author: Terry J. Reedy (terry.reedy) * (Python committer) | Date: 2017年06月29日 19:53 | |
I would like to get this in 3.7.0a1, scheduled for 2017 Sept 9, and subsequently in 3.6.3. Cheryl, this is why I distracted you from the configdialog patch. As a non-idlelib patch, more discussion by more people may be needed before a merge. If this is not backported to 3.6 Lib/pyclbr, I will backport it to 3.6, maybe as Lib/idlelib/_pyclbr, or maybe as a direct addition to browser.py, replacing the import statement. |
|||
| msg297331 - (view) | Author: Cheryl Sabella (cheryl.sabella) * (Python committer) | Date: 2017年06月30日 00:06 | |
I have the change ready to push. I didn't change the tests, except to fix what was failing earlier, so the tests would need to be reviewed (the test currently creates a real temporary file that it opened and read, but a Mock would be better?) Anyway, do you want me to make the PR with what I have or would you rather a new diff file? |
|||
| msg297341 - (view) | Author: Terry J. Reedy (terry.reedy) * (Python committer) | Date: 2017年06月30日 01:58 | |
PR. Also manually test classbrowser with the modified pyclbr and report what you see on your system. |
|||
| msg297377 - (view) | Author: Cheryl Sabella (cheryl.sabella) * (Python committer) | Date: 2017年06月30日 10:57 | |
I've created the PR. I had actually manually looked at classbrowser yesterday. It still works just as it did before this change. The patch in 1612262 is needed for it to loop through the new Object class. Also, for reference, the test that didn't work initially was the case where anything was defined past the second level of nesting of a class, for example class -> def -> def or class -> def -> class. The original patch wasn't adding those last items, but now should be. Ironically, running this over test_pyclbr (to parse it, not to run the test), was where I saw that it wasn't showing all the nesting. |
|||
| msg297622 - (view) | Author: Terry J. Reedy (terry.reedy) * (Python committer) | Date: 2017年07月04日 01:31 | |
New changeset 246ff3bd00f97658e567a7087645a6b76e056491 by terryjreedy (csabella) in branch 'master': bpo-6691: Pyclbr now reports nested classes and functions. (#2503) https://github.com/python/cpython/commit/246ff3bd00f97658e567a7087645a6b76e056491 |
|||
| msg297623 - (view) | Author: Terry J. Reedy (terry.reedy) * (Python committer) | Date: 2017年07月04日 01:40 | |
Test_pyclbr could improve. There are notes on the PR for a new issue for that. If I find that further change is needed after applying to IDLE's module browser, #1612262, that will be another new issue. |
|||
| msg297777 - (view) | Author: Terry J. Reedy (terry.reedy) * (Python committer) | Date: 2017年07月05日 20:18 | |
Unlinked bogus revert message. I checked the file and it has the new function. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:56:51 | admin | set | github: 50940 |
| 2017年07月05日 20:18:14 | terry.reedy | set | messages: + msg297777 |
| 2017年07月05日 20:17:24 | terry.reedy | set | messages: - msg297751 |
| 2017年07月05日 13:44:56 | vstinner | set | nosy:
+ vstinner messages: + msg297751 |
| 2017年07月04日 01:40:09 | terry.reedy | set | status: open -> closed resolution: fixed messages: + msg297623 stage: test needed -> resolved |
| 2017年07月04日 01:31:27 | terry.reedy | set | messages: + msg297622 |
| 2017年06月30日 10:57:11 | cheryl.sabella | set | messages: + msg297377 |
| 2017年06月30日 10:46:00 | cheryl.sabella | set | pull_requests: + pull_request2566 |
| 2017年06月30日 01:58:34 | terry.reedy | set | messages: + msg297341 |
| 2017年06月30日 00:06:23 | cheryl.sabella | set | messages: + msg297331 |
| 2017年06月29日 19:53:41 | terry.reedy | set | priority: normal -> high versions: + Python 3.7, - Python 3.6 messages: + msg297301 assignee: terry.reedy stage: patch review -> test needed |
| 2017年06月29日 18:26:22 | cheryl.sabella | set | nosy:
+ cheryl.sabella messages: + msg297292 |
| 2017年06月29日 04:59:16 | terry.reedy | set | nosy:
+ terry.reedy messages: + msg297252 |
| 2015年09月14日 02:22:47 | terry.reedy | set | type: enhancement versions: + Python 3.6, - Python 3.2 |
| 2014年02月03日 19:18:11 | BreamoreBoy | set | nosy:
- BreamoreBoy |
| 2011年01月04日 01:03:14 | pitrou | set | nosy:
+ rhettinger |
| 2010年10月01日 23:01:47 | amaury.forgeotdarc | set | files:
+ pyclbr_nested_objects-py3k.patch versions: - Python 3.1, Python 2.7 nosy: + amaury.forgeotdarc messages: + msg117847 |
| 2010年08月01日 11:01:00 | BreamoreBoy | set | versions:
+ Python 3.1 nosy: + BreamoreBoy messages: + msg112311 stage: patch review |
| 2009年08月12日 22:51:14 | gpolo | link | issue1612262 dependencies |
| 2009年08月12日 22:49:57 | gpolo | set | files:
+ pyclbr_nested_objects.diff dependencies: - Support for nested classes and function for pyclbr |
| 2009年08月12日 22:49:57 | gpolo | unlink | issue6691 dependencies |
| 2009年08月12日 22:49:38 | gpolo | set | files: - classbrowser_nesting_support.diff |
| 2009年08月12日 22:49:18 | gpolo | set | files:
+ classbrowser_nesting_support.diff dependencies: + Support for nested classes and function for pyclbr |
| 2009年08月12日 22:49:18 | gpolo | link | issue6691 dependencies |
| 2009年08月12日 22:48:57 | gpolo | set | files: - pyclbr_nested_objects.diff |
| 2009年08月12日 22:47:40 | gpolo | create | |