renciso218 / blockly

Automatically exported from code.google.com/p/blockly
0 stars 0 forks source link

[count with] block produces wrong result in python language #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. open blockly code demo app at 
http://blockly-demo.appspot.com/blockly/demos/code/index.html
2. create block 'count with' block with x from 1 to 10
3. choose javascript tab and check "for" sentence is "for (x = 1; x <= 10; x++)"
4. choose python tab and check "for" sntence, and you will find "for x in 
range(1, 10):"

What is the expected output? What do you see instead?
expected "for x in range(1, 10):"

What version of the product are you using? On what operating system?
latest on chrome browser

Please provide any additional information below.
it's critical bug :)

Original issue reported on code.google.com by comfut...@gmail.com on 1 Jun 2012 at 3:05

GoogleCodeExporter commented 8 years ago
oh. mistake.

expected "for x in range(1, 11):"

sorry

Original comment by comfut...@gmail.com on 1 Jun 2012 at 3:06

GoogleCodeExporter commented 8 years ago
Confirmed.  Thank you.

Quynh, your first bug.  :)

Original comment by neil.fra...@gmail.com on 1 Jun 2012 at 4:02

GoogleCodeExporter commented 8 years ago
Fixed (r194). Thanks!
Also, range(0, 11) is now just range(11).

Original comment by Q.Neut...@gmail.com on 1 Jun 2012 at 6:50