Comments (5)
I also just ran into this when trying to run byterun with itself. byterun.main is only imported once, then cached, so run_fn is only called the first time.
it doesn't sound too hard to have a Module class, and replace import with a call to execfile or something similar.. is there a reason this hasn't been implemented yet?
from byterun.
I would guess that if you want it implemented you should send a patch yourself.
from byterun.
sure, but before I spend lots of time on such a thing, it would be nice to know if there is a particular reason for it not being implemented yet..
from byterun.
Hi @srepmub and @andychu - thanks for the bug report! No, there’s not a good reason why this isn’t implemented yet, and a patch is welcome.
from byterun.
OK as far as I know the code I linked/quoted above fixes it. (I stopped working with this code some months ago and didn't get a response, so I didn't submit a patch.)
from byterun.
Related Issues (16)
- __build_class__ is different in 3.4 HOT 3
- closure Frame initialization uses wrong outer frame HOT 2
- pyvm2.VirtualMachineError: unknown bytecode type: STORE_GLOBAL HOT 8
- Introduction and README.rst HOT 6
- Blocks HOT 2
- Different workaround for http://bugs.python.org/issue19611
- Idea: Using inside a debugger HOT 1
- Does not support Python 3.6 HOT 4
- Does not support list comprehension HOT 2
- CALL_FUNCTION_VAR and CALL_FUNCTION_VAR_KW in 3.5
- Python3 HOT 2
- How to use these code? ModuleNotFoundError: No module named 'byterun'
- Broken test of newest commit. Function object has no __code__ so not compatible with PY3.6
- has some problems when run code HOT 3
- Questions about these lines of code
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from byterun.