Windel Bouwman
159daf061a
Change scope from using set_item to set_attr.
2019-02-16 11:18:55 +01:00
Joey Hain
134c3b94a5
support format specs in f-strings
2019-02-15 18:18:44 -08:00
janczer
89e947a04f
Fix typos
2019-02-14 20:38:18 +01:00
Joey Hain
4ca3d3b507
Merge remote-tracking branch 'upstream/master' into fstrings
2019-02-13 23:16:40 -08:00
Joey Hain
400ad80b64
fstrings
2019-02-13 21:59:21 -08:00
holygits
570b28439a
Fix tests
2019-02-14 12:31:20 +13:00
holygits
4453c3e561
Create error types for parser and compiler
...
Pass through locations and tokens in ParseError
2019-02-14 10:21:21 +13:00
Ryan Liddle
3d4fd5fc86
Merge pull request #456 from yuvipanda/os-name
...
Implement os.name
2019-02-13 19:35:32 +11:00
yuvipanda
9dc45fd728
Implement os.name
2019-02-12 23:51:36 -08:00
ZapAnton
d86ffc40f6
Fixed the redundant_field_names clippy warnings
2019-02-12 16:07:24 +03:00
Adam
1033f20e36
Merge pull request #430 from RustPython/dict5
...
Change to more usage of VirtualMachine in anticipation of proper dicts
2019-02-11 13:04:28 +00:00
Adam
ca51f2d10e
Merge pull request #438 from ZapAnton/fix_clippy
...
Fixed several small clippy warnings
2019-02-11 13:03:07 +00:00
ZapAnton
1043543f16
Fixed cast_lossless clippy warnings
2019-02-11 15:02:00 +03:00
rmliddle
dd7437242c
os rename
2019-02-11 21:41:47 +11:00
rmliddle
55a22c5a71
Fix module name in os
2019-02-11 21:40:00 +11:00
Windel Bouwman
b1e07f64be
Change to more usage of VirtualMachine in anticipation of proper dictionaries.
2019-02-10 15:39:33 +01:00
klemens
b109ea954a
Merge branch 'master' into spelling
2019-02-09 12:03:08 +01:00
klemens
79a7e5e42b
spelling fixes
2019-02-09 12:00:46 +01:00
ZapAnton
0e6fca0106
Fix the 'if_same_then_else' clippy warnings
...
Relevant clippy warning: https://rust-lang.github.io/rust-clippy/master/index.html#if_same_then_else
2019-02-08 20:04:30 +03:00
Windel Bouwman
07fd61f55f
Change instance and class to simplified dict type. ( #379 )
...
* Change instance and class to simplified dict type.
* Fix formatting.
2019-02-08 14:18:14 +00:00
Windel Bouwman
3d2d04596c
Merge pull request #343 from ZapAnton/fix_various_clippy
...
Fixed various small clippy warnings
2019-02-07 17:35:29 +01:00
Adam Kelly
fd344ec1e0
Remove unnecessary to_bigint().unwrap() everywhere.
2019-02-06 17:38:01 +00:00
ZapAnton
3464828499
Fixed various small clippy warnings
2019-02-06 13:24:24 +03:00
Windel Bouwman
baa59ec2fc
Merge branch 'master' into fix_useless_format
2019-02-06 10:50:07 +01:00
Windel Bouwman
040a377d06
Merge branch 'master' into fix_redundant_field_names
2019-02-06 08:14:14 +01:00
Windel Bouwman
aaf0eab530
Merge pull request #342 from ZapAnton/fix_collapsible_if
...
Fixed the 'collapsible_if' clippy warnings
2019-02-05 23:34:29 +01:00
Windel Bouwman
87ceed77ad
Merge pull request #287 from makarchuk/float-conversion
...
Float Conversion for #211
2019-02-05 23:19:20 +01:00
Windel Bouwman
3fb0f32a87
Merge pull request #335 from ZapAnton/fix_ptr_arg
...
Fixed the 'ptr_arg' clippy warnings
2019-02-05 22:36:29 +01:00
Windel Bouwman
9d5a953c8a
Merge pull request #337 from ZapAnton/fix_unneeded_field_pattern
...
Fixed the 'unneeded_field_pattern' clippy warnings
2019-02-05 22:34:31 +01:00
ZapAnton
fb9fa27555
Fixed the 'redundant_field_names' clippy warnings
...
This replaces all the occurrences of the Struct {field : field}
with the Struct {field}.
Relevant clippy warning: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
2019-02-05 21:56:16 +03:00
ZapAnton
b0cbb23b43
Fixed the 'collapsible_if' clippy warnings
...
Relevant clippy warning: https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
2019-02-05 21:49:07 +03:00
ZapAnton
d445e3082a
Fixed the 'unneeded_field_pattern' clippy warnings
...
This replaces all the occurrences of the Struct {field: _} with
the Struct { .. }.
Relevant clippy warning: https://rust-lang.github.io/rust-clippy/master/index.html#unneeded_field_pattern
2019-02-05 21:37:41 +03:00
ZapAnton
1a6840280b
Fixed the 'ptr_arg' clippy warnings
...
This replaces all the occurrences of &<dynamic collection><T>
with the &[T].
Relevant clippy warning: https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg
2019-02-05 21:22:16 +03:00
ZapAnton
6fb91ddfed
Fixed the 'len_zero' clippy warnings
...
This replaces all the occurrences of the <collection>.len() == 0
with the <collection>.is_empty() and the occurrences of the
<collection>.len() > 0 with the !<collection>.is_empty()
Relevant clippy warning: https://rust-lang.github.io/rust-clippy/master/index.html#len_zero
2019-02-05 20:54:49 +03:00
ZapAnton
57e2beef3a
Fixed the 'useless_format' clippy warning
...
This replaces all the occurrences of the format!(<&str>) with the <&str>.to_string()
Relevant clippy warning: https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
2019-02-05 20:48:50 +03:00
rmliddle
aa2dff4bd9
Format os.rs
2019-02-05 23:08:45 +11:00
rmliddle
86e94f587b
Comment fix and use of i64 instead of i32
2019-02-05 22:47:33 +11:00
rmliddle
eca75b3611
Comment and formatted on windows rust_file call
2019-02-05 22:18:24 +11:00
Ryan Liddle
0daa03875c
windows fixes for os module
2019-02-05 22:14:14 +11:00
rmliddle
ca815baeaf
Factored out unix dependency
2019-02-05 20:57:06 +11:00
holygits
5cad1b0215
Revert 'file_no' -> 'fileno' attr naming
2019-02-05 16:39:22 +13:00
Timur
b25aab006e
Add type conversion to functions calls in math
2019-02-04 22:22:18 +03:00
holygits
8854430651
Better error handling for file io
...
Add FileNotFoundError
Add PermissionError
Minor idomatic clean ups
2019-02-03 14:53:21 +13:00
Windel Bouwman
328f81a28e
Merge pull request #266 from coolreader18/format-mk-module
...
Format module building in a more readable way
2019-01-30 18:09:17 +01:00
Windel Bouwman
892493e464
Rename PyObjectKind into PyObjectPayload
2019-01-30 18:06:27 +01:00
coolreader18
37b5669bed
Fix syntax error
2019-01-30 10:13:55 -06:00
coolreader18
f193291471
Merge branch 'master' into format-mk-module
2019-01-30 10:09:47 -06:00
Windel Bouwman
31523fe4d7
Merge pull request #265 from rmliddle/implement-io
...
File-IO: IO Module and Open Builtin
2019-01-29 20:43:28 +01:00
rmliddle
deb0688a99
Changed buffer imp. to use type + removed ByteArray Kind
2019-01-29 18:40:40 +11:00
coolreader18
e9bfea834a
Format module building in a more readable way
2019-01-28 23:02:43 -06:00