Message169274
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. |
|
Date |
User |
Action |
Args |
2012-08-28 12:03:54 | ncoghlan | set | recipients:
+ ncoghlan, ping, kjohnson, brianvanden, ajaksu2, eric.araujo, mikehoy |
2012-08-28 12:03:54 | ncoghlan | set | messageid: <1346155434.09.0.417694066641.issue1185124@psf.upfronthosting.co.za> |
2012-08-28 12:03:53 | ncoghlan | link | issue1185124 messages |
2012-08-28 12:03:53 | ncoghlan | create | |
|