KnightSch / python-on-a-chip

Automatically exported from code.google.com/p/python-on-a-chip
Other
0 stars 1 forks source link

Compilation error in c-code embedded in lib/__bi.py #204

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Enable Bytearray
2. Build mbed platform
3. compile on mbed.org

What is the expected output? What do you see instead?
src/lib/__bi.py line 581:        
   retval = int_new(n, &pn)

Missing the trailing semi-colon.  

It literally took me 15 minutes to finally see the problem, even though I was 
sure it had to be a parsing error.  It has been way too long since I abandoned 
using C++ on a daily basis for Python's greener pastures.  Semi-colons or lack 
thereof are invisible to me now.  

I guess that testing missed this because Bytearrays are turned off on the 
desktop build?  It might be worth creating a test-only platform with everything 
enabled.  Especially if over time we get more built-in features implemented 
(that would want to be switched off for smaller platforms).  

Original issue reported on code.google.com by j...@missioncognition.net on 16 Jun 2011 at 2:20

GoogleCodeExporter commented 8 years ago
Added the semi colon and amended the thanks in README.

Original comment by dwhall...@gmail.com on 26 Jun 2011 at 3:58

GoogleCodeExporter commented 8 years ago
This issue was closed by revision ee494065f989.

Original comment by dwhall...@gmail.com on 26 Jun 2011 at 4:01