Skip to content

Commit 32daf63

Browse files
Merge pull request RustPython#507 from rmliddle/develop
Readme Update + Inheritance Fix on IO
2 parents f588f58 + 6be7623 commit 32daf63

File tree

2 files changed

+17
-6
lines changed

2 files changed

+17
-6
lines changed

README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
A Python-3 (CPython >= 3.5.0) Interpreter written in Rust :snake: :scream: :metal:.
44

55
[![Build Status](https://travis-ci.org/RustPython/RustPython.svg?branch=master)](https://travis-ci.org/RustPython/RustPython)
6+
[![Build Status](https://dev.azure.com/ryan0463/ryan/_apis/build/status/RustPython.RustPython?branchName=master)](https://dev.azure.com/ryan0463/ryan/_build/latest?definitionId=1&branchName=master)
67
[![codecov](https://codecov.io/gh/RustPython/RustPython/branch/master/graph/badge.svg)](https://codecov.io/gh/RustPython/RustPython)
78
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)
89
[![Contributors](https://img.shields.io/github/contributors/RustPython/RustPython.svg)](https://github.com/RustPython/RustPython/graphs/contributors)
@@ -26,14 +27,22 @@ Or use the interactive shell:
2627
>>>>> 2+2
2728
4
2829

30+
# Disclaimer
31+
32+
RustPython is in a development phase and should not used in production or a fault intolerant setting.
33+
34+
Our current build supports only a subset of Python syntax.
35+
36+
Contribution is also more than welcome! See our contribution section for more information on this.
37+
2938
# Goals
3039

3140
- Full Python-3 environment entirely in Rust (not CPython bindings)
3241
- A clean implementation without compatibility hacks
3342

3443
# Documentation
3544

36-
Currently the project is in an early phase, and so is the documentation.
45+
Currently along with other areas of the project, documentation is still in an early phase.
3746

3847
You can read the [online documentation](https://rustpython.github.io/website/rustpython/index.html) for the latest code on master.
3948

@@ -63,7 +72,9 @@ If you wish to update the online documentation. Push directly to the `release` b
6372

6473
# Contributing
6574

66-
To start contributing, there are a lot of things that need to be done.
75+
Contributions are more than welcome, and in many cases we are happy to guide contributors through PRs or on gitter.
76+
77+
With that in mind, please note this project is maintained by volunteers, some of the best ways to get started are below:
6778

6879
Most tasks are listed in the [issue tracker](https://github.com/RustPython/RustPython/issues).
6980
Check issues labeled with `good first issue` if you wish to start coding.

vm/src/stdlib/io.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -421,18 +421,18 @@ pub fn mk_module(ctx: &PyContext) -> PyObjectRef {
421421
};
422422
ctx.set_attr(&py_mod, "TextIOWrapper", text_io_wrapper.clone());
423423

424-
// BytesIO: in-memory bytes
424+
//StringIO: in-memory text
425425
let string_io = {
426-
let string_io = ctx.new_class("StringIO", io_base.clone());
426+
let string_io = ctx.new_class("StringIO", text_io_base.clone());
427427
ctx.set_attr(&string_io, "__init__", ctx.new_rustfunc(string_io_init));
428428
ctx.set_attr(&string_io, "getvalue", ctx.new_rustfunc(string_io_getvalue));
429429
string_io
430430
};
431431
ctx.set_attr(&py_mod, "StringIO", string_io);
432432

433-
// StringIO: in-memory text
433+
//BytesIO: in-memory bytes
434434
let bytes_io = {
435-
let bytes_io = ctx.new_class("BytesIO", io_base.clone());
435+
let bytes_io = ctx.new_class("BytesIO", buffered_io_base.clone());
436436
ctx.set_attr(&bytes_io, "__init__", ctx.new_rustfunc(bytes_io_init));
437437
ctx.set_attr(&bytes_io, "getvalue", ctx.new_rustfunc(bytes_io_getvalue));
438438
bytes_io

0 commit comments

Comments
 (0)