Releases: Drekin/win-unicode-console
Releases · Drekin/win-unicode-console
win-unicode-console 0.5
Changes
- Recovering of Unicode
sys.argv
on Python 2 is now supported: moduleunicode_argv
was added. Fixes #20. - The runner uses
compile(..., dont_inherit=True)
even on Python 2. Fixes #14. - Console detection was enhanced:
StandardStreamInfo
objects with methodsis_a_TTY
,is_a_console
,should_be_fixed
instreams
module.sys.std*
streams withoutfileno
(e.g. Python 2StringIO
) are supported. - Custom readline hook is disabled on error to avoid an infinite loop in interactive session.
win-unicode-console 0.4
Changes
- Python 2 is now supported. Fixes #7.
- The
runner
package andrun
script were enhanced. Since custom REPL is not needed, it is not used by default, and the runner serves as a way to execute initialization code before running a main script. There are more options for the an initialization code, see the readme file orrun
script help. - The package can be now imported on Unix and other platforms. The top-level
enable
function does nothing on platforms other than Windows. Fixes #8. - The signature of
streams.enable
was changed.streams.enable_only
function was added. The functionsenable_reader
,enable_writer
, andenable_error_writer
instreams
module were removed. - When
sys.stdin.encoding != sys.stdout.encodin
,RuntimeWarning
is raised byreadline_hook
module rather thanValueError
. - The readme file was mostly rewritten.
- A changelog file was added.
win-unicode-console 0.3.1
Changes
- Changed the loader of msvcrt library from windll to cdll. Solved #5.
win-unicode-console 0.3
Changes
- Added possibility to set custom readline hook. Also
pyreadline
hook can be reused. Custom REPL is no longer needed. - Added transcoding wrappers to streams, since there is a problem with UTF-16 encoding.
- New interface
win_unicode_console.enable
,.disable
. - Stream objects have standard filenos now, custom readline hook is needed for
input()
.
win-unicode-console 0.2
Changes
- Better treatment of reading zero or one bytes so infinite loops aren't started on higher levels.
- Added automatical flushing in REPL.
- Interaction with Python object to read and write bytes now uses buffer protocol.
- Changed type of read/written bytes variable from c_long to c_ulong to be compatible with pyreadlines and the specification, which says DWORD. Solves #2.
win-unicode-console 0.1.2
Changes
- Added
__init__.py
for better compatibility, see issue #1.
win-unicode-console 0.1.1
Bug fixes
- Better handling of OS level errors on read or write.
- Writing a single byte to the raw stream raises an exception so a buffer of odd length no more loops on flush().
- There is now maximum limit for bytes to be written by the raw stream so at least something is written (see http://bugs.python.org/issue11395).
win-unicode-console 0.1
Initial release.