Code reloading support library for Python
Project description
This library implements something which is often called live coding or code
reloading. It allows an application to have Python code which might be part
of it updated as the files the code is in are changed - while the application is
running.
* No need to restart the application in order to incorporate changes made to
Python scripts.
* No need to execute Python scripts manually each time you want to use the code
within them.
Changes from version 2.0:
* Scripts are now read in universal line ending mode before being executed.
This prevents SyntaxErrors from happening on platforms other than Windows when
scripts being read contain \r\n line endings.
* Adjusted the unit tests to handle the fact that file modification timestamps
are limited to a per-second resolution on Linux-like platforms. The tests were
passing on Windows because it has a higher resolution for these timestamps.
reloading. It allows an application to have Python code which might be part
of it updated as the files the code is in are changed - while the application is
running.
* No need to restart the application in order to incorporate changes made to
Python scripts.
* No need to execute Python scripts manually each time you want to use the code
within them.
Changes from version 2.0:
* Scripts are now read in universal line ending mode before being executed.
This prevents SyntaxErrors from happening on platforms other than Windows when
scripts being read contain \r\n line endings.
* Adjusted the unit tests to handle the fact that file modification timestamps
are limited to a per-second resolution on Linux-like platforms. The tests were
passing on Windows because it has a higher resolution for these timestamps.