Timur
0df4eed07a
Remove hash_index field from DictEntry struct.
...
It was never usefull and was added in previous commit by mistake
2019-10-20 10:29:11 +03:00
Timur
84040be5b8
Implement dict resizing
...
Dict resizing is working by removing all None entries, and filling up
indices map from scratch
2019-10-19 10:19:10 +03:00
Windel Bouwman
d09c768609
Merge pull request #1544 from xarus01/master
...
Implemented range.__reduce__
2019-10-18 19:32:11 +02:00
Aviv Palivoda
89566ee07b
Merge pull request #1543 from palaviv/use-primitives-directly
...
Use primitives directly
2019-10-18 14:29:10 +03:00
Jack Park
aa27d22a54
Resolved rustfmt error
2019-10-18 07:45:01 +07:00
Jack Park
9a5deb1d5b
Removed unused binding
2019-10-18 07:20:01 +07:00
Jack Park
3fdc72de5d
Resolved conflict
2019-10-18 07:18:50 +07:00
Jack Park
fcc6635b1f
Implemented range.__reduce__
2019-10-18 07:01:37 +07:00
Aviv Palivoda
ea5381db10
Fix format
2019-10-17 23:38:52 +03:00
Aviv Palivoda
4376993f83
Fix clippy warning
2019-10-17 22:28:11 +03:00
Aviv Palivoda
a6514ac546
Raise IndexError when int overflow in str.__getitem__
2019-10-17 22:21:17 +03:00
Aviv Palivoda
11650e9fbf
Use u64 directly
2019-10-17 19:36:42 +03:00
Aviv Palivoda
da8c3f5ead
Use u32 directly
2019-10-17 19:34:29 +03:00
Aviv Palivoda
e89baf8d47
Use usize directly
2019-10-17 19:28:04 +03:00
Noah
2bfb08a83b
Merge pull request #1540 from palaviv/random-new-arg-style
...
Convert random to new arg style
2019-10-17 11:25:30 -05:00
Noah
7980b78e0a
Merge pull request #1541 from ashermancinelli/int-sizeof
...
`int.__sizeof__` from #1426
2019-10-17 11:24:44 -05:00
Aviv Palivoda
ca20acf7a0
Change time module to use primitives directly
2019-10-17 19:17:58 +03:00
Aviv Palivoda
5cde75bec8
Use i64 directly
2019-10-17 19:17:58 +03:00
Asher Mancinelli
ccd61b9d20
Update objint.rs
2019-10-17 08:04:42 -07:00
Aviv Palivoda
37f01fd9ae
Simeplify float.__round__
2019-10-17 17:47:38 +03:00
Aviv Palivoda
ab775485ff
Use i32 directly
2019-10-17 17:47:38 +03:00
Aviv Palivoda
3d24635b42
Simplify str.getitem
2019-10-17 17:15:24 +03:00
Aviv Palivoda
16f8dbf87a
Either accept any TryFromObject
2019-10-17 17:11:34 +03:00
Aviv Palivoda
70a22ab196
Use isize directly
2019-10-17 17:11:34 +03:00
Aviv Palivoda
cd96d2b292
Fix typo
2019-10-17 12:08:04 +03:00
Windel Bouwman
85ae39f2e4
Merge pull request #1534 from RustPython/coolreader18/yieldfrom-fix
...
Fix the `yield from` expression
2019-10-17 07:15:44 +02:00
Asher Mancinelli
9459cabcc9
Update vm/src/obj/objint.rs
...
Co-Authored-By: Noah <33094578+coolreader18@users.noreply.github.com >
2019-10-16 21:16:52 -07:00
Noah
8b31ee573e
Merge pull request #1539 from palaviv/io-new-arg-style
...
Convert io to new arg style
2019-10-16 22:50:46 -05:00
Asher Mancinelli
89c76b1235
parenthesis in calculation
2019-10-16 16:02:34 -07:00
Asher Mancinelli
8fff494926
bits -> bytes
2019-10-16 14:10:20 -07:00
Johan
6270344740
Update isclose module of math ( #1532 )
...
- Implement `math.isclose()` function with test case
- Add `IsCloseArgs` struct for `keyword_only` argument: `rel_tol`, `abs_tol`
- Change order of test case on `math_module.py` for readability
- Clippy recommends using `std::f64::EPSILON` instead of `==` but purpose is different
- Fix multiline declaration on the function parameters
2019-10-16 23:25:53 +09:00
Robert Berglund
81302ce6c2
impl __sizeof__ for bytearray, int, list, str, dict and set ( #1426 )
2019-10-16 23:24:36 +09:00
Jeong YunWon
9f6ccf1ec4
Merge pull request #1537 from palaviv/os-new-arg-style
...
Change os functions to new arg style
2019-10-16 16:39:33 +09:00
Jeong YunWon
4477e6725e
Merge pull request #1528 from youknowone/module-error
...
Fix module attr error to use python `__name__` instead of rust struct `name`
2019-10-16 12:00:14 +09:00
Aviv Palivoda
1e7fb388d2
Revert os.close drop call
2019-10-15 22:31:29 +03:00
Aviv Palivoda
2930c10979
Convert random to new arg style
2019-10-15 22:22:05 +03:00
coolreader18
672f146de4
Properly implement gen.throw()
2019-10-15 14:00:08 -05:00
Windel Bouwman
a1e3fe4e63
Merge pull request #1538 from palaviv/platform-new-arg-style
...
Convert platform to new arg style
2019-10-15 20:58:35 +02:00
Noah
c31b3b2af9
Use the first arg of StopIteration as yield from return value
2019-10-15 13:58:08 -05:00
Windel Bouwman
6f59609160
Merge pull request #1533 from RustPython/coolreader18/cleanupstuff
...
Clean up the REPL and CodeFlags
2019-10-15 20:56:57 +02:00
Aviv Palivoda
dda4ab00e3
Convert io.{TextIOWrapper, BufferedReader} to new arg style
2019-10-15 21:52:08 +03:00
Aviv Palivoda
1ad9ee8792
Simplify os.close
2019-10-15 21:38:28 +03:00
Aviv Palivoda
e8b0185251
Convert io.FileIO to new arg style
2019-10-15 21:27:42 +03:00
ChJR
b2126829e9
Add repeat count support to struct.pack() ( #1518 )
...
* Add struct.pack() repeat count test
* Add repeat count support to struct.pack()
* Refactor parse_format_codes()
* Refactor parse_format_codes() again
2019-10-15 19:25:51 +02:00
Aviv Palivoda
6d08b4f553
Convert io.{IOBase, BufferedReader} to new arg style
2019-10-15 19:03:15 +03:00
Aviv Palivoda
f0e30f2ff3
Convert platform to new arg style
2019-10-15 18:39:09 +03:00
Aviv Palivoda
a435bb1f81
Change os.error to new arg style
2019-10-15 18:21:46 +03:00
Aviv Palivoda
9d5cdf23b3
Change os.close to new arg style
2019-10-15 18:16:38 +03:00
Seo Sanghyeon
6887365092
Update lexical to 4
2019-10-15 21:40:59 +09:00
coolreader18
c08f11ad1b
Change FunctionOpArg to CodeFlags, stored in CodeObject
2019-10-14 20:20:52 +00:00