Josh Snider added the comment:
Here's a patch that raises an exception when _put[w]ch and _get[w]ch[e] are run
without a console. Like Eryk Sun says, the get's work fine if you do unget
before hand.
--
keywords: +patch
nosy: +Josh Snider
Added file: http://bugs.python.org
Josh Snider added the comment:
I suggested some changes to your patch. Your patch should also add your name to
the Misc/ACKS file as I don't currently see an Aatish listed there.
--
nosy: +Josh Snider
___
Python tracker
<http://bugs.py
New submission from Josh Snider:
replace_interleave in Objects/bytesobject.c and Objects/bytearrayobject.c can
be optimized for the special case where the interleaving byte string is a
single character.
Here's some quick results from timeit showing that it's about three times
fast
Josh Snider added the comment:
Addresses review comments.
--
Added file: http://bugs.python.org/file42180/bytes-2.patch
___
Python tracker
<http://bugs.python.org/issue26