• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pfalcon / pycopy
0%
pfalcon: 97%

Build:
Build:
LAST BUILD BRANCH: master
DEFAULT BRANCH: pfalcon
Repo Added 16 Jul 2019 05:25AM UTC
Files 160
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH stringio-iadd
branch: stringio-iadd
CHANGE BRANCH
x
Reset
  • stringio-iadd
  • github-actions
  • master
  • pend-throw-just-started
  • pfalcon
  • pycopy-exe
  • readme-tweak
  • refs/tags/v3.5.0
  • refs/tags/v3.5.1
  • refs/tags/v3.5.2
  • refs/tags/v3.5.3
  • refs/tags/v3.5.4
  • refs/tags/v3.5.5
  • refs/tags/v3.5.6
  • refs/tags/v3.5.7
  • refs/tags/v3.6.0
  • refs/tags/v3.6.1
  • tes8
  • test1
  • test10
  • test2
  • test20
  • test3
  • test5
  • test6
  • test7
  • upstream
  • v2.11.0.1
  • v2.11.0.10
  • v2.11.0.11
  • v2.11.0.12
  • v2.11.0.13
  • v2.11.0.14
  • v2.11.0.15
  • v2.11.0.16
  • v2.11.0.17
  • v2.11.0.18
  • v2.11.0.19
  • v2.11.0.2
  • v2.11.0.20
  • v2.11.0.3
  • v2.11.0.4
  • v2.11.0.5
  • v2.11.0.6
  • v2.11.0.7
  • v2.11.0.8
  • v2.11.0.9
  • v2.12.0.1
  • v2.12.0.2
  • v2.12.0.2a
  • v2.12.0.3
  • v2.12.0.4
  • v2.12.0.5
  • v2.12.0.6
  • v3.0.0
  • v3.0.1
  • v3.0.2
  • v3.0.3
  • v3.0.4
  • v3.0.5
  • v3.0.6
  • v3.0.7
  • v3.0.8
  • v3.1.0
  • v3.1.1
  • v3.1.2
  • v3.1.3
  • v3.1.4
  • v3.1.5
  • v3.2.0
  • v3.2.1
  • v3.2.2
  • v3.2.3
  • v3.2.4
  • v3.2.5
  • v3.2.6
  • v3.3.0
  • v3.3.1
  • v3.3.2
  • zephyr-new-Makefile.exports

pending completion
2089

push

travis-ci

pfalcon
<a href="https://github.com/pfalcon/pycopy/commit/<a class=hub.com/pfalcon/pycopy/commit/<a class="double-link" href="https://git"><a class=hub.com/pfalcon/pycopy/commit/<a class="double-link" href="https://git"><a class=hub.com/pfalcon/pycopy/commit/<a class="double-link" href="https://git"><a class=hub.com/pfalcon/pycopy/commit/<a class="double-link" href="https://git"><a class=hub.com/pfalcon/pycopy/commit/4b149fb8a4fb18e954ba7113d1495ccf822e394f">4b149fb8a">&lt;a href=&quot;https://github.com/pfalcon/pycopy/commit/</a><a class="double-link" href="https://github.com/pfalcon/pycopy/commit/&lt;a class=&quot;double-link&quot; href=&quot;https://git">&lt;a class=</a>hub.com/pfalcon/pycopy/commit/&lt;a class=&quot;double-link&quot; href=&quot;https://git">&lt;a class=</a>hub.com/pfalcon/pycopy/commit/&lt;a class=&quot;double-link&quot; href=&quot;https://git">&lt;a class=</a>hub.com/pfalcon/pycopy/commit/4b149fb8a4fb18e954ba7113d1495ccf822e394f">4b149fb8a</a><a href="https://github.com/pfalcon/pycopy/commit/4b149fb8a4fb18e954ba7113d1495ccf822e394f">&quot;&gt;&amp;lt;a href=&amp;quot;https://github.com/pfalcon/pycopy/commit/&lt;/a&gt;&lt;a class=&quot;double-link&quot; href=&quot;https://github.com/pfalcon/pycopy/commit/&amp;lt;a class=&amp;quot;double-link&amp;quot; href=&amp;quot;https://git&quot;&gt;&amp;lt;a class=&lt;/a&gt;hub.com/pfalcon/pycopy/commit/4b149fb8a4fb18e954ba7113d1495ccf822e394f&quot;&gt;4b149fb8a&lt;/a&gt;&lt;a href=&quot;https://github.com/pfalcon/pycopy/commit/4b149fb8a4fb18e954ba7113d1495ccf822e394f&quot;&gt;&amp;lt;a href=&amp;quot;https://github.com/pfalcon/pycopy/commit/4b149fb8a4fb18e954ba7113d1495ccf822e394f&amp;quot;&amp;gt;&amp;amp;quot;&amp;amp;gt;py/objstringio: Add += operator for BytesIO/StringIO.

There&amp;amp;amp;#39;s a common anti-pattern of using a string as an accumulating string
buffer, e.g.:

buf = &amp;amp;amp;quot;&amp;amp;amp;quot;
while ...:
    buf += &amp;amp;amp;quot;something&amp;amp;amp;quot;
use(buf)

This is highly inefficient. The right pattern is to use StringIO, but
this requires rewriting code to use .write() method:

buf = StringIO()
while ...:
    buf.write(&amp;amp;amp;quot;something&amp;amp;amp;quot;)
use(buf.getvalue())

Instead, by introducing implementation of __iadd__ (+=) method, effectively
making it an alias for .write(), it allows for very clear and co... (continued)

0 of 0 relevant lines covered (NaN%)

0.0 hits per line

Relevant lines Covered
Build:
Build:
0 RELEVANT LINES 0 COVERED LINES
0.0 HITS PER LINE
Source Files on stringio-iadd
Detailed source file information is not available for this build.

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
2089 stringio-iadd <a href="https://github.com/pfalcon/pycopy/commit/4b149fb8a">&lt;a href=&quot;https://github.com/pfalcon/pycopy/commit/</a><a class="double-link" href="https://github.com/pfalcon/pycopy/commit/&lt;a class=&quot;doubl... push 31 Mar 2020 09:16PM UTC pfalcon travis-ci pending completion  
See All Builds (875)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc