| Messages (13) |
|---|
| msg49457 -(view) | Author: Alyssa Coghlan (ncoghlan)* | Date: 2006-02-11 09:04 |
|---|
This PEP implementation contains three parts - aseparate Python module (runpy.py) that implements thePEP 338 functionality, a corresponding test module(test_runpy.py) and a patch against current subversionto integrate the module with the -m command line switch.The documentation for the new module will be submittedas a separate patch (since the review cycle is a bitdifferent). |
| msg49458 -(view) | Author: Alyssa Coghlan (ncoghlan)* | Date: 2006-02-11 14:28 |
|---|
Logged In: YES user_id=1038590Updated to avoid trying to hide exec's quirks. |
| msg49459 -(view) | Author: Alyssa Coghlan (ncoghlan)* | Date: 2006-02-11 15:29 |
|---|
Logged In: YES user_id=1038590Version 3 of implementation. Fixed emulator to generate anImportError for non-packages (instead of an AttributeErrorin some cases).Removed extraneous print statements from emulator. |
| msg49460 -(view) | Author: Alyssa Coghlan (ncoghlan)* | Date: 2006-02-11 15:35 |
|---|
Logged In: YES user_id=1038590Added basic test suite. Could use beefing up in the area ofactually checking that running modules inside packages workscorrectly (I'm currently checking that bit manually). |
| msg49461 -(view) | Author: Alyssa Coghlan (ncoghlan)* | Date: 2006-02-11 16:50 |
|---|
Logged In: YES user_id=1038590Version 4 of implementation. Fixes problem with not handlingnested packages and raises ImportError in run_module when noloader is found. |
| msg49462 -(view) | Author: Alyssa Coghlan (ncoghlan)* | Date: 2006-02-12 02:12 |
|---|
Logged In: YES user_id=1038590Version 5. Removed an import that is now redundant, added acomment header with author information. |
| msg49463 -(view) | Author: Alyssa Coghlan (ncoghlan)* | Date: 2006-02-12 03:12 |
|---|
Logged In: YES user_id=1038590Added patch to main.c for integration with command line switch. |
| msg49464 -(view) | Author: Alyssa Coghlan (ncoghlan)* | Date: 2006-02-12 03:29 |
|---|
Logged In: YES user_id=1038590I've attached a zip archive of the directory tree I've beenusing to check that the runpy module works correctly. Foreach of these command lines:python -m runpy_demo.testpython -m runpy_demo.pkg.testpython -m runpy_demo.pkg.pkg.testpython -m runpy_demo.pkg.zip_pkg.testThe message "Running runpy_demo.test" should then print tothe console (with the second part of the message changing asappropriate for the other 3 modules).The last one obviously won't work if zlib isn't installed,and all 4 require that both runpy and runpy_demo be onsys.path (e.g in site-packages, or in the Lib directory).On older Python versions (or without applying the patch),invoking runpy directly is enough to make it workpython -m runpy runpy_demo.testpython -m runpy runpy_demo.pkg.testpython -m runpy runpy_demo.pkg.pkg.testpython -m runpy runpy_demo.pkg.zip_pkg.test |
| msg49465 -(view) | Author: Alyssa Coghlan (ncoghlan)* | Date: 2006-02-12 03:33 |
|---|
Logged In: YES user_id=1038590Fixed error handling in main.c when the function callresults in an exception. (version 2 of integration diff). |
| msg49466 -(view) | Author: Alyssa Coghlan (ncoghlan)* | Date: 2006-02-17 15:19 |
|---|
Logged In: YES user_id=1038590PEP 338 has been updated as of 18-Feb-2006. Those changesare still to be incorporated into this implementation. |
| msg49467 -(view) | Author: Alyssa Coghlan (ncoghlan)* | Date: 2006-02-18 17:52 |
|---|
Logged In: YES user_id=1038590Updated module to match Feb 18 version of PEP (version 6 ofmodule) |
| msg49468 -(view) | Author: Alyssa Coghlan (ncoghlan)* | Date: 2006-02-18 17:56 |
|---|
Logged In: YES user_id=1038590Updated unit tests to match Feb 18 version of PEP and tocover executing both source and compiled files from the filesystem.(version 2 of test_runpy module) |
| msg49469 -(view) | Author: Alyssa Coghlan (ncoghlan)* | Date: 2006-03-17 10:06 |
|---|
Logged In: YES user_id=1038590Slightly updated version of patch committed in SVN |