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 2014年07月09日 14:28 by hakril, last changed 2022年04月11日 14:58 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| dis_generator.patch | hakril, 2014年07月09日 14:28 | patch for Lib/dis.py for generator disassembling | review | |
| dis_generator2.patch | hakril, 2014年07月09日 21:31 | patch with unit test and doc update | review | |
| dis_generator3.patch | hakril, 2014年07月14日 14:04 | Updated the docstrings of modified functions | review | |
| Messages (7) | |||
|---|---|---|---|
| msg222619 - (view) | Author: Clement Rouault (hakril) * | Date: 2014年07月09日 14:28 | |
The `dis` module doesn't know how to disassemble generator object because it has no idea about the `gi_code` attribute. I made a (very) little patch to change this behavior. If there is a valid reason to not let the `dis` module disassemble generator, I would be glad to know it. |
|||
| msg222637 - (view) | Author: Antoine Pitrou (pitrou) * (Python committer) | Date: 2014年07月09日 20:33 | |
That sounds like a good idea. The patch lacks a unit test, though. |
|||
| msg222642 - (view) | Author: Clement Rouault (hakril) * | Date: 2014年07月09日 21:31 | |
Here is a try for a better patch. Added a unit test and updated the doc. |
|||
| msg222650 - (view) | Author: Raymond Hettinger (rhettinger) * (Python committer) | Date: 2014年07月10日 05:22 | |
+1 |
|||
| msg223030 - (view) | Author: Clement Rouault (hakril) * | Date: 2014年07月14日 14:04 | |
Updated some docstrings in the new patch after the review comments. Thanks kushou for the code review. |
|||
| msg223943 - (view) | Author: Roundup Robot (python-dev) (Python triager) | Date: 2014年07月25日 13:04 | |
New changeset 2ae5709692ef by Nick Coghlan in branch 'default': Issue #21947: handle generator-iterator objects in dis http://hg.python.org/cpython/rev/2ae5709692ef |
|||
| msg223944 - (view) | Author: Alyssa Coghlan (ncoghlan) * (Python committer) | Date: 2014年07月25日 13:08 | |
Thanks for the patch Clement! Could I also please request that you sign the Contributor License Agreement at https://www.python.org/psf/contrib/contrib-form/ While we have some discretion to accept "small" patches without one, a signed CLA helps assure that we have the necessary rights to incorporate and redistribute contributions worldwide. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:58:05 | admin | set | github: 66146 |
| 2014年07月25日 13:09:09 | ncoghlan | set | status: open -> closed resolution: fixed stage: resolved |
| 2014年07月25日 13:08:53 | ncoghlan | set | messages: + msg223944 |
| 2014年07月25日 13:04:50 | python-dev | set | nosy:
+ python-dev messages: + msg223943 |
| 2014年07月14日 14:04:32 | hakril | set | files:
+ dis_generator3.patch messages: + msg223030 |
| 2014年07月10日 05:22:16 | rhettinger | set | nosy:
+ rhettinger messages: + msg222650 |
| 2014年07月09日 21:32:44 | vstinner | set | nosy:
+ vstinner |
| 2014年07月09日 21:31:47 | hakril | set | files:
+ dis_generator2.patch messages: + msg222642 |
| 2014年07月09日 20:33:48 | pitrou | set | nosy:
+ pitrou messages: + msg222637 |
| 2014年07月09日 14:30:53 | zach.ware | set | nosy:
+ ncoghlan |
| 2014年07月09日 14:28:29 | hakril | create | |