Message252641
You can verify a script is syntactically correct by compiling it to an AST or just calling compile() which is another way of doing essentially what `import` does but without having to worry about import-related side-effects in the code being checked.
But is this really worth adding to the stdlib? You can run your tests to verify the code is syntactically sound, run pylint, etc. I think this is probably straying a bit too much into the tooling arena to make the maintenance burden worth having in the stdlib. |
|
Date |
User |
Action |
Args |
2015-10-09 19:52:59 | brett.cannon | set | recipients:
+ brett.cannon, terry.reedy, eric.araujo, r.david.murray, proski |
2015-10-09 19:52:59 | brett.cannon | set | messageid: <1444420379.9.0.310594448719.issue25303@psf.upfronthosting.co.za> |
2015-10-09 19:52:59 | brett.cannon | link | issue25303 messages |
2015-10-09 19:52:59 | brett.cannon | create | |
|