<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/py/objstrunicode.c, branch v1.4.1</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.4.1</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.4.1'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2015-04-03T21:09:48+00:00</updated>
<entry>
<title>objstr: Add .splitlines() method.</title>
<updated>2015-04-03T21:09:48+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2015-04-03T21:09:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=ac2f7a7f6aab135e90dd12d30b51d857628b0a59'/>
<id>urn:sha1:ac2f7a7f6aab135e90dd12d30b51d857628b0a59</id>
<content type='text'>
splitlines() occurs ~179 times in CPython3 standard library, so was
deemed worthy to implement. The method has subtle semantic differences
from just .split("\n"). It is also defined as working for any end-of-line
combination, but this is currently not implemented - it works only with
LF line-endings (which should be OK for text strings on any platforms,
but not OK for bytes).
</content>
</entry>
<entry>
<title>py: Allow to compile with extra warnings (sign-compare, unused-param).</title>
<updated>2015-03-19T00:25:33+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-03-19T00:21:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=2e2e404ff77e95dbe4fee0f19c91913a5888fb6f'/>
<id>urn:sha1:2e2e404ff77e95dbe4fee0f19c91913a5888fb6f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py: Remove duplicated mp_obj_str_make_new function from objstrunicode.c.</title>
<updated>2015-01-28T14:14:57+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-01-28T14:14:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=98e3a64694b63b90a590b6effc6e8ef53f66159a'/>
<id>urn:sha1:98e3a64694b63b90a590b6effc6e8ef53f66159a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>objstr: Remove code duplication and unbreak Windows build.</title>
<updated>2015-01-23T00:15:56+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2015-01-23T00:15:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=344e15b1ae641528b0f37447604ba66be9184a10'/>
<id>urn:sha1:344e15b1ae641528b0f37447604ba66be9184a10</id>
<content type='text'>
There was really weird warning (promoted to error) when building Windows
port. Exact cause is still unknown, but it uncovered another issue:
8-bit and unicode str_make_new implementations should be mutually exclusive,
and not built at the same time. What we had is that bytes_decode() pulled
8-bit str_make_new() even for unicode build.
</content>
</entry>
<entry>
<title>objstr*: Use separate names for locals_dict of 8-bit and unicode str's.</title>
<updated>2015-01-23T00:05:58+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2015-01-23T00:05:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=6113eb2f3342223d3e5ca36d6ff12199e0d05164'/>
<id>urn:sha1:6113eb2f3342223d3e5ca36d6ff12199e0d05164</id>
<content type='text'>
To somewhat unbreak -DSTATIC="" compile.
</content>
</entry>
<entry>
<title>py: Add mp_obj_new_str_from_vstr, and use it where relevant.</title>
<updated>2015-01-21T23:17:27+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-01-21T19:14:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=0b9ee86133a2a0524691c6cdac209dbfcb3bf116'/>
<id>urn:sha1:0b9ee86133a2a0524691c6cdac209dbfcb3bf116</id>
<content type='text'>
This patch allows to reuse vstr memory when creating str/bytes object.
This improves memory usage.

Also saves code ROM: 128 bytes on stmhal, 92 bytes on bare-arm, and 88
bytes on unix x64.
</content>
</entry>
<entry>
<title>py, unix: Allow to compile with -Wunused-parameter.</title>
<updated>2015-01-20T12:47:20+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-01-20T12:47:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=ff8dd3f486afb0d6ff1427d8a6a8a8ed73baa660'/>
<id>urn:sha1:ff8dd3f486afb0d6ff1427d8a6a8a8ed73baa660</id>
<content type='text'>
See issue #699.
</content>
</entry>
<entry>
<title>py: Move to guarded includes, everywhere in py/ core.</title>
<updated>2015-01-01T20:32:09+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-01-01T20:27:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=51dfcb4bb7613ed164952712d9a5235a7b833cde'/>
<id>urn:sha1:51dfcb4bb7613ed164952712d9a5235a7b833cde</id>
<content type='text'>
Addresses issue #1022.
</content>
</entry>
<entry>
<title>objstr: Allow to convert any buffer proto object to str.</title>
<updated>2014-10-30T22:03:53+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2014-10-30T21:58:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=e62a0fe36776f039149e7fab77323aa380b97c2e'/>
<id>urn:sha1:e62a0fe36776f039149e7fab77323aa380b97c2e</id>
<content type='text'>
Original motivation is to support converting bytearrays, but easier to just
support buffer protocol at all.
</content>
</entry>
<entry>
<title>py: Simplify JSON str printing (while still conforming to JSON spec).</title>
<updated>2014-09-25T16:35:56+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-09-25T16:35:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=cde0ca21bf79420386c7cb31de29b0f799f16655'/>
<id>urn:sha1:cde0ca21bf79420386c7cb31de29b0f799f16655</id>
<content type='text'>
The JSON specs are relatively flexible and allow us to use one function
to print strings, be they ascii, bytes or utf-8 encoded.
</content>
</entry>
</feed>
