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.

Author ncoghlan
Recipients ajaksu2, brianvanden, eric.araujo, kjohnson, mikehoy, ncoghlan, ping
Date 2012-08-28.12:03:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1346155434.09.0.417694066641.issue1185124@psf.upfronthosting.co.za>
In-reply-to
Content
The standard library has moved on quite a bit since this patch was written...

1. source_synopsis() should be using the tokeniser module when reading the docstring. The current implementation is broken in more ways than just those noted here (e.g. it completely ignores the declared encoding)

(The reason for not using full compilation is that you would then have to either *run* the compiled code or else compile to the AST and interrogate that, which is technically implementation dependent)

2. For 3.3+, synopsis should be using importlib to get the source code rather than assuming filesystem imports. That's probably better handled in a separate issue, though.
History
Date User Action Args
2012-08-28 12:03:54ncoghlansetrecipients: + ncoghlan, ping, kjohnson, brianvanden, ajaksu2, eric.araujo, mikehoy
2012-08-28 12:03:54ncoghlansetmessageid: <1346155434.09.0.417694066641.issue1185124@psf.upfronthosting.co.za>
2012-08-28 12:03:53ncoghlanlinkissue1185124 messages
2012-08-28 12:03:53ncoghlancreate