Search found 120 matches

by stijn
Mon Mar 27, 2017 7:47 pm
Forum: ESP8266 boards
Topic: [SOLVED] exec() function doesnt return result?
Replies: 4
Views: 54

Re: exec() function doesnt work?

IIRC with uPy's exec you have to pass the other 2 arguments as well, e.g.

Code: Select all

loc = {}
exec('a=1', globals(), loc)
print(loc.a)
by stijn
Thu Mar 23, 2017 7:12 pm
Forum: General Discussion and Questions
Topic: C enviroment that can read python occasionally, is micropython what I want?
Replies: 12
Views: 218

Re: C enviroment that can read python occasionally, is micropython what I want?

What I really need is scripting with fast and clear access to C. I'm not sure such a thing really exists (unless you consider C compiled on the fly a scripting language). There will always be a layer in between, mostly converting types back and forth between the script and C. Lua is more mature so ...
by stijn
Wed Mar 22, 2017 7:47 pm
Forum: General Discussion and Questions
Topic: C enviroment that can read python occasionally, is micropython what I want?
Replies: 12
Views: 218

Re: C enviroment that can read python occasionally, is micropython what I want?

that's the easiest I can think of without delving too deep into MicroPyhton Or if you are ready for some playing around (hard to tell which way is more work - also don't forget the build process etc) have a look at https://github.com/micropython/micropython/blob/master/examples/embedding/hello-embe...
by stijn
Mon Mar 06, 2017 4:30 pm
Forum: General Discussion and Questions
Topic: Is MicroPython considered stable to real world deployment (STM32)
Replies: 5
Views: 349

Re: Is MicroPython considered stable to real world deployment (STM32)

I also consider uPy 'real world ready'. We use it in a couple of applications, one pretty large (say 5k loc of custom uPy modules most written in C++), not on an STM but on pc. I'd say problems with the uPy side of things are extremely rare and the API is also very stable, and even if there is a bug...
by stijn
Tue Feb 21, 2017 8:57 pm
Forum: Development of MicroPython
Topic: Travis coveralls build in forked repo always fails
Replies: 3
Views: 141

Re: Travis coveralls build in forked repo always fails

In the end this was a basic RTFM problem. I had no idea how Coveralls works, but it's hosted so you need an account and access it with a token. In practice: - go to coveralls.io, login with github - add micropython repo, note the token - go to travis-ci.org, login with github - go to micropython rep...
by stijn
Sat Feb 11, 2017 9:47 am
Forum: Development of MicroPython
Topic: Travis coveralls build in forked repo always fails
Replies: 3
Views: 141

Travis coveralls build in forked repo always fails

I don't recall exactly when this started happening but it's becoming a bit annoying now: the Travis builds of my repo all fail with {u'message': u"Couldn't find a repository matching this job.", u'error': True} The command "(cd unix && coveralls --root .. --build-root . --gcov...
by stijn
Fri Feb 03, 2017 1:05 pm
Forum: Programs, Libraries and Tools
Topic: Help understanding ternary statement in py/objcomplex.c
Replies: 7
Views: 286

Re: Help understanding ternary statement in py/objcomplex.c

*edit* not sure if what I wrote was even correct and I can't be bother to lookup the standard rules atm
by stijn
Thu Jan 26, 2017 12:04 pm
Forum: Programs, Libraries and Tools
Topic: ftplib.py ported to MicroPython
Replies: 9
Views: 408

Re: ftplib.py ported to MicroPython

I put the code in its own repository, rather than making a pull request to micropython-lib , because at the moment the module isn't really "micro". Maybe I'll streamline and clean this up more later and then propose inclusion into micropython-lib Just some thoughts, but wouldn't that be a...
by stijn
Mon Jan 16, 2017 12:35 pm
Forum: Development of MicroPython
Topic: Memory Leak on Micropython Port
Replies: 14
Views: 596

Re: Memory Leak on Micropython Port

1) As pythoncoder suggests: yes if no memory is never freed then you'll run out of memory after enough allocations. Is gc_alloc triggered? 2) Likely 3) MICROPY_PY_GC enables the gc module so gc functions can be called from python code. It is not required for actual gc functionality in the C code (th...

Go to advanced search