93 Commits (094ebef259e86dfc0f1f3c1b493d81e5e8b1b6c4)

Author SHA1 Message Date
Andrew Scheller 12968fb6b2 Display \r and \t escape codes in string repr 11 years ago
Damien George a12a0f78b0 py: Rename pfenv_print_int to pfenv_print_mp_int, and add back former. 11 years ago
Dave Hylands c4029e5079 Add string formatting support for longlong and mpz. 11 years ago
Damien George ff715429ea py: Fix str.replace for case when arg 0 or 1 is empty string. 11 years ago
Damien George deed087e2c py: str.split: handle non-default separator. 11 years ago
Damien George ea13f407a3 py: Change nlr_jump to nlr_raise, to aid in debugging. 11 years ago
Dave Hylands f81a49e464 Allow floating point arguments with %d,i,u,o,x,X formats 11 years ago
Dave Hylands 6756a37a77 Implements most of str.modulo 11 years ago
Dave Hylands 22fe4d7344 Fix str.format to work with {:f/g/e} and ints 11 years ago
Damien George c322c5f07f py: Fix regress for printing of floats and #if. 11 years ago
Damien George 70f33cde48 py: Fix up so that it can compile without float. 11 years ago
Dave Hylands baf6f14deb Enhance str.format support 11 years ago
Paul Sokolovsky 4db727afea objstr: Very basic implementation of % string formatting operator. 11 years ago
Damien George 15d18069c5 py: Remove old "run time" functions that were 1 liners. 11 years ago
Paul Sokolovsky f7eaf605c0 py: Fix "TypeError: 'iterator' object is not iterable", doh. 11 years ago
Damien George df6567e634 Merge map.h into obj.h. 11 years ago
Damien George d17926db71 Rename rt_* to mp_*. 11 years ago
Damien George 3e1a5c10c5 py: Rename old const type objects to mp_type_* for consistency. 11 years ago
Damien George 07ddab529c py: Change mp_const_* objects to macros. 11 years ago
Damien George 9b196cddab Remove mp_obj_type_t.methods entry and use .locals_dict instead. 11 years ago
Damien George c12b2213c1 Change mp_method_t.name from const char * to qstr. 11 years ago
Damien George 66eaf84b8c py: Replace mp_const_stop_iteration object with MP_OBJ_NULL. 11 years ago
xbe 17a5a83fb4 Implement str.rfind() and add tests for it. 11 years ago
xbe 8562de6c48 py/objstr.c: Remove done TODOs. 11 years ago
Paul Sokolovsky 1ecea7c753 py: Make 'bytes' be a proper type, support standard constructor args. 11 years ago
Paul Sokolovsky be020c27a8 py: Make 'str' be a proper type, support standard constructor args. 11 years ago
Paul Sokolovsky 5972b4c05f objstr: Switch from in-object string data to ptr to separate memory area. 11 years ago
Damien George b035db355a py: Make str.[r]partition more efficient. 11 years ago
xbe 0a6894c24b str.(r)partition: factor out duplicate code. 11 years ago
xbe 4504ea8007 Implement str.rpartition and add tests for it. 11 years ago
xbe 613a8e3edf Implement str.partition and add tests for it. 11 years ago
xbe c55388823f objstr.c: Replace size_t with machine_uint_t. 11 years ago
xbe efe3422394 py: Clean up includes. 11 years ago
Damien George 536dde254b py: In string.count, handle case of zero-length needle. 11 years ago
xbe c5d70ba48b Fix issues in str.count implementation. 11 years ago
xbe 9e1e8cd642 Implement str.count and add tests for it. 11 years ago
Damien George 2da9830b92 py: Make objstr support buffer protocol (read only). 11 years ago
Damien George c5966128c7 Implement proper exception type hierarchy. 11 years ago
Damien George a71c83a1d1 Change mp_obj_type_t.name from const char * to qstr. 11 years ago
Paul Sokolovsky d5df6cd44a Replace global "static" -> "STATIC", to allow "analysis builds". Part 1. 11 years ago
Paul Sokolovsky 4e2460852a objstr: Mark few local symbols as static, cleanup codestyle. 11 years ago
Damien George 698ec21e46 Make mp_obj_str_get_data return char* instead of byte*. 11 years ago
Paul Sokolovsky ea2509d92c Fix assert() usage. 11 years ago
Paul Sokolovsky 87e85b7dc7 Implement str/bytes rich comparisons. 11 years ago
Paul Sokolovsky 7364af2d8c Factor out m_seq_get_fast_slice_indexes() fucntions as sequence helper. 11 years ago
Damien George 9aa2a527b5 py: Tidy up BINARY_OPs; negation done by special NOT bytecode. 11 years ago
Damien George 94f68300f9 py: Make str.replace do 2 passes over the string. 11 years ago
xbe 480c15afb5 Implement str.replace and add tests for it. 11 years ago
Paul Sokolovsky 0b7e29c025 Factor out quoted string print function for reuse (mp_str_print_quoted()). 11 years ago
Damien George b829b5caec Implement mp_parse_node_free; print properly repr(string). 11 years ago