summaryrefslogtreecommitdiffstatshomepage
Commit message (Collapse)AuthorAge
* Merge branch 'master' of github.com:micropython/micropythonDamien George2014-03-26
|\
| * py: Implement getattr() builtin.Paul Sokolovsky2014-03-27
| |
* | stmhal: Remove ExtiMeta object and clean up class constants.Damien George2014-03-26
| |
* | py: Fix logic bugs in object attribute/method extraction.Damien George2014-03-26
| |
* | py: Improved builtin dir.Damien George2014-03-26
|/
* Remove mp_obj_type_t.methods entry and use .locals_dict instead.Damien George2014-03-26
| | | | | | | | | | | | | | | | | | | | | | Originally, .methods was used for methods in a ROM class, and locals_dict for methods in a user-created class. That distinction is unnecessary, and we can use locals_dict for ROM classes now that we have ROMable maps. This removes an entry in the bloated mp_obj_type_t struct, saving a word for each ROM object and each RAM object. ROM objects that have a methods table (now a locals_dict) need an extra word in total (removed the methods pointer (1 word), no longer need the sentinel (2 words), but now need an mp_obj_dict_t wrapper (4 words)). But RAM objects save a word because they never used the methods entry. Overall the ROM usage is down by a few hundred bytes, and RAM usage is down 1 word per user-defined type/class. There is less code (no need to check 2 tables), and now consistent with the way ROM modules have their tables initialised. Efficiency is very close to equivaluent.
* Change mp_method_t.name from const char * to qstr.Damien George2014-03-26
| | | | Addresses issue #377.
* py: Swap around the double return value of mp_obj_gen_resume.Damien George2014-03-26
| | | | Just to keep things consistent :)
* py: Replace mp_const_stop_iteration object with MP_OBJ_NULL.Damien George2014-03-26
|
* Merge pull request #379 from pfalcon/reraiseDamien George2014-03-26
|\ | | | | vm: Implement raise statement w/o args (reraising last exception).
| * vm: Implement raise statement w/o args (reraising last exception).Paul Sokolovsky2014-03-26
| |
* | Merge branch 'master' of github.com:micropython/micropythonDamien George2014-03-26
|\ \
| * | objexcept: Add mp_obj_exception_get_value() convenience function.Paul Sokolovsky2014-03-26
| |/ | | | | | | | | | | | | This gets "value" of exceptions in the sense as it's defined for StopIteration.value (i.e. args[0] or None). TODO: This really should be inline function.
* | py: Use _is_subclass_fast instead of _exception_match.Damien George2014-03-26
| |
* | Merge branch 'gen-close-ret-val' of github.com:pfalcon/micropython into ↵Damien George2014-03-26
|\ \ | | | | | | | | | pfalcon-gen-close-ret-val
| * | objgenerator: Implement return with value and .close() method.Paul Sokolovsky2014-03-26
| | | | | | | | | | | | | | | | | | Return with value gets converted to StopIteration(value). Implementation keeps optimizing against creating of possibly unneeded exception objects, so there're considerable refactoring to implement these features.
* | | py: Add support for user-defined iterators via __iter__, __next__.Damien George2014-03-26
| |/ |/|
* | stmhal: Change Usart creation function to class make_new.Damien George2014-03-25
| |
* | stmhal: Shuffle around some init functions in main().Damien George2014-03-25
| |
* | stmhal: Add I2C support; change accel driver to use new I2C.Damien George2014-03-25
| |
* | Merge pull request #370 from xbe/str-rfindDamien George2014-03-25
|\ \ | | | | | | py/objstr.c: Implement str.rfind() and add tests for it, refactor find_subbytes().
| * | Implement str.rfind() and add tests for it.xbe2014-03-24
| | |
| * | py/objstr.c: Remove done TODOs.xbe2014-03-23
| | |
* | | py: Replace naive and teribble hash function with djb2.Damien George2014-03-25
| | |
* | | py: Removed some unnecessary exception objects.Damien George2014-03-25
| | | | | | | | | | | | | | | They still exist in commented-out form in objexcept.c if they are ever needed.
* | | Proper support for registering builtin modules in ROM.Damien George2014-03-25
| | | | | | | | | | | | | | | Comes with some refactoring of code and renaming of files. All modules are now named mod*.[ch].
* | | Merge pull request #373 from iabdalkader/module_registerDamien George2014-03-25
|\ \ \ | | | | | | | | Add mp_obj_module_register
| * | | Add mp_obj_module_registermux2014-03-25
| | |/ | |/| | | | | | | | | | * Add function to load static modules. * Use module_register to pyb module.
* | | Merge pull request #375 from dhylands/stmhal-adcDamien George2014-03-25
|\ \ \ | | | | | | | | Some changes that I forgot to push with my last pull request
| * | | Fix netduino to buildDave Hylands2014-03-24
|/ / / | | | | | | | | | Fix adc to work with resolution changes.
* | | objexcept: Add "args" exception attribute, as well as StopIteration.value.Paul Sokolovsky2014-03-25
| | |
* | | rt_load_method(): Add missing qstr_str() when getting type name.Paul Sokolovsky2014-03-25
| | |
* | | stmhal: Make pyb.ADC the ADC class (not a function).Damien George2014-03-24
| | |
* | | stmhal - fixed up adc stuffDave Hylands2014-03-24
| | | | | | | | | | | | | | | | | | | | | | | | Added support for the ADC channels and mappings to make_pins.py I'm not sure if the hal properly deals with the channel 16/18 differences between the 40x and 42x. It seems to deal with it partially. This particular aspect will need testing on a 42x or 43x.
* | | stmhal: Add comment to DAC driver for function to implement.Damien George2014-03-24
| | |
* | | stmhal: Add DAC driver.Damien George2014-03-24
| | |
* | | Update README.Damien George2014-03-24
| | |
* | | Add tools/pyboard.py, a simple module to communicate with the pyboard.Damien George2014-03-24
| | | | | | | | | | | | | | | Using pyboard.py you can use Python running on your PC to execute commands on the connected pyboard. See examples in that file.
* | | stmhal: Improve REPL CTRL commands.Damien George2014-03-24
| | |
* | | stmhal: Fix bug with USB CDC transmit buffer wrap around.Damien George2014-03-24
| | |
* | | Merge branch 'master' of github.com:micropython/micropythonDamien George2014-03-24
|\ \ \ | | |/ | |/|
| * | Merge pull request #367 from pfalcon/del-nameDamien George2014-03-24
| |\ \ | | |/ | |/| py: Implement support for "except Exception as var" clause.
| | * py: Implement support for "except Exception as var" clause.Paul Sokolovsky2014-03-23
| |/ | | | | | | | | | | | | | | For this, needed to implement DELETE_NAME bytecode (because var bound in except clause is automatically deleted at its end). http://docs.python.org/3/reference/compound_stmts.html#except : "When an exception has been assigned using as target, it is cleared at the end of the except clause."
* | stmhal: Make Led, Servo and Accel their class, not a function.Damien George2014-03-24
| |
* | stmhal: Update help function.Damien George2014-03-24
| |
* | py: Remove obsolete declarations; make mp_obj_get_array consistent.Damien George2014-03-24
|/
* runtime: RT_BINARY_OP_EXCEPTION_MATCH: don't fall thru in case of wrong types.Paul Sokolovsky2014-03-23
|
* vm: Abstract working with tagged pointers in VM using macro accessors.Paul Sokolovsky2014-03-23
| | | | | Based on issues raised during recent review and inconsistency of different implementations.
* stmhal: Fix issues with USB CDC init and receive.Damien George2014-03-23
| | | | | | | | | Late USB enumeration could clear settings after they had been set. Now fixed by not clearing some settings on init. RX was blocking if received characters were not being processed, so CTRL-C would not be picked up. Now "fixed" by not blocking, but instead discarding incoming characters if they overflow the buffer.
* stmhal: Improved interface to accelerometer.Damien George2014-03-23
|