Comments (2)
test_list_comprehension
should cover the basic case - I wonder if this is an issue with 3.5 specifically, or if it's because you're creating the list that you're iterating over in the middle of the list comprehension. That is, do you get the same result for this?
li = [1, 2, 3]
[x for x in li]
I suspect it's the nesting - ".0" as a parameter name popped up when we were debugging the nested-generator bug fixed in #10.
from byterun.
@akaptur I'm guessing it was fixed previously. I am not seeing this problem in x-python fork:
$ xpython -vc "[x for x in [1,2,3]]"
INFO:xpython.pyvm2:Line 1, 0: LOAD_CONST <code object <listcomp> at 0x7f1a0988c660, file "<string [x for x in [1,2,3]]>", line 1>
INFO:xpython.pyvm2: 3: LOAD_CONST '<listcomp>'
INFO:xpython.pyvm2: 6: MAKE_FUNCTION 0
INFO:xpython.pyvm2: 9: LOAD_CONST 1
INFO:xpython.pyvm2: 12: LOAD_CONST 2
INFO:xpython.pyvm2: 15: LOAD_CONST 3
INFO:xpython.pyvm2: 18: BUILD_LIST 3
INFO:xpython.pyvm2: 21: GET_ITER
INFO:xpython.pyvm2: 22: CALL_FUNCTION 1
INFO:xpython.pyvm2: 25: POP_TOP
INFO:xpython.pyvm2: 26: LOAD_CONST None
INFO:xpython.pyvm2: 29: RETURN_VALUE
10:13:03 [master]
$ pyenv local
3.5.9
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
- CPython used for imported modules rather than byterun HOT 5
- Different workaround for http://bugs.python.org/issue19611
- Idea: Using inside a debugger HOT 1
- Does not support Python 3.6 HOT 4
- 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.