Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | py: Add builtin functions bin and oct, and some tests for them. | Damien George | 2014-04-15 |
| | |||
* | py: Fix builtin hex to print prefix. | Damien George | 2014-04-15 |
| | | | | I was too hasty. Still a one-liner though. | ||
* | py: Add hex builtin function. | Damien George | 2014-04-15 |
| | | | | A one-liner, added especially for @pfalcon :) | ||
* | py: Clean up and add comments to makeqstrdata. | Damien George | 2014-04-14 |
| | |||
* | py: Modify makeqstrdata to recognise better the output of CPP. | Damien George | 2014-04-13 |
| | |||
* | objstr: Add str.encode() and bytes.decode() methods. | Paul Sokolovsky | 2014-04-13 |
| | | | | | These largely duplicate str() & bytes() constructors' functionality, but can be used to achieve Python2 compatibility. | ||
* | py: Preprocess qstrdefs.h before feeding to makeqstrdata.py. | Paul Sokolovsky | 2014-04-12 |
| | | | | | This is alternative implementation of supporting conditionals in qstrdefs.h, hard to say if it's much cleaner than munging #ifdef's in Python code... | ||
* | Revert "makeqstrdata.py: Add support for conditionally defined qstrs." | Paul Sokolovsky | 2014-04-12 |
| | | | | | | This reverts commit acb133d1b1a68847bd85c545312c3e221a6f7c0b. Conditionals will be suported using C preprocessor. | ||
* | makeqstrdata.py: Add support for conditionally defined qstrs. | Paul Sokolovsky | 2014-04-10 |
| | | | | Syntax is usual C #if*/#endif, but each qstr must be wrapped individually. | ||
* | py: Replace naive and teribble hash function with djb2. | Damien George | 2014-03-25 |
| | |||
* | Fix makeqstrdata.py to work in Python 2.7 | Dave Hylands | 2014-03-10 |
| | |||
* | makeqstrdata: print error to stderr. | Damien George | 2014-03-08 |
| | |||
* | stm: Initialize sys.path with ["0:/", "0:/src", "0:/lib"]. | Paul Sokolovsky | 2014-02-18 |
| | | | | | This is compatible with what search path was before sys.path refactor, with addition of module library path ("0:/lib"). | ||
* | Change mp_obj_type_t.name from const char * to qstr. | Damien George | 2014-02-15 |
| | | | | | | Ultimately all static strings should be qstr. This entry in the type structure is only used for printing error messages (to tell the type of the bad argument), and printing objects that don't supply a .print method. | ||
* | Retain file order of qstr definitions. | Damien George | 2014-01-24 |
| | | | | | Want common qstrs to be first in the list so they have the lowest ids, so that in the byte code they take up the least room. | ||
* | Allow qstr's with non-ident chars, construct good identifier for them. | Paul Sokolovsky | 2014-01-24 |
| | | | | | Also, add qstr's for string appearing in unix REPL loop, gross effect being less allocations for each command run. | ||
* | Fix malformed generated file when using python 2.7 | Dave Hylands | 2014-01-21 |
| | |||
* | Revamp qstrs: they now include length and hash. | Damien George | 2014-01-21 |
Can now have null bytes in strings. Can define ROM qstrs per port using qstrdefsport.h |