Commit Graph

585 Commits

Author SHA1 Message Date
Windel Bouwman
44e9658f52 Merge pull request #297 from HomerMcMillan/issue_295
Fix panic on out of bounds negative index (addresses #295)
2019-02-04 07:48:17 +01:00
Windel Bouwman
235aa864f4 Merge pull request #296 from agude/int_conj
Add .conjugate() method to int type
2019-02-04 07:43:13 +01:00
idbentley
f2db23bb35 correct order of errors. 2019-02-03 16:51:17 -05:00
Homer McMillan
055e577424 Fix panic on out of bounds negative index (addresses #295)
Also an out of bounds index now raises an IndexError rather than a ValueError
2019-02-03 16:38:04 -05:00
idbentley
19557e8344 Alphebetize exception related code 2019-02-03 16:36:25 -05:00
Alexander Gude
33523d492c Change int.conjugate() to return a new int
This results in the correct behavior (that is, matching CPython) for
both int and bool types.

Also adding a bool conjugate test.
2019-02-03 13:31:09 -08:00
Windel Bouwman
0f87d151a0 Merge pull request #289 from chaconnewu/198fix
Fix reverse method for calling div.
2019-02-03 21:27:59 +01:00
Alexander Gude
a95747f161 Add .conjugate() method to int type
Also add tests for for the int type, and a commented out one for the
bool type.
2019-02-03 11:18:23 -08:00
Homer McMillan
353d881bac Fix missing seq_mul import 2019-02-03 11:33:11 -05:00
HomerMcMillan
168e0e5471 Merge branch 'master' into list-orderable-ops 2019-02-03 11:17:09 -05:00
Windel Bouwman
34c99b0c99 Merge pull request #278 from holygits/improve-fio-errs
Better error handling for file io
2019-02-03 16:03:41 +01:00
Yu Wu
38ee8aeed6 Fix reverse method for calling div. 2019-02-03 07:02:36 -08:00
Windel Bouwman
a7d011f9c7 Merge pull request #270 from ZapAnton/str_isdecimal
Added the isdecimal method to the 'str' class
2019-02-03 15:37:20 +01:00
Windel Bouwman
ac0ea87ead Merge pull request #271 from holygits/bitshift
Implement `__rshift__` and `__lshift__` for integer type
2019-02-03 15:35:50 +01:00
Windel Bouwman
cdcddcc6c6 Merge pull request #281 from chaconnewu/198
Use call_or_unsupported for operators.
2019-02-03 11:50:09 +01:00
Windel Bouwman
1d7149e131 Merge pull request #280 from HomerMcMillan/list-pop
Add list.pop
2019-02-03 11:49:01 +01:00
Homer McMillan
7b27fbf369 Add list.pop
Also include IndexError in the __builtin__ module.
2019-02-03 00:49:52 -05:00
Yu Wu
561eb8ed4f Use call_or_unsupported for operators. 2019-02-02 21:47:28 -08:00
Homer McMillan
8852435a3d Run cargo fmt 2019-02-02 23:05:32 -05:00
Homer McMillan
ea1a7bb395 Add list.{__lt__, __gt__, __le__, __ge__} 2019-02-02 22:04:26 -05: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
ben
8f9b733a77 Add tuple.__mul__ 2019-02-03 13:59:43 +13:00
holygits
e8d1e10226 Implement __rshift__ and __lshift__ for integer 2019-02-03 12:38:38 +13:00
ZapAnton
46b939721f str: Added the isdecimal method 2019-02-03 01:51:47 +03: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
Windel Bouwman
d627230434 Merge pull request #263 from coolreader18/string-str
Remove unnecessary to_string conversions
2019-01-28 20:38:54 +01:00
rmliddle
507f7bdca9 Fix for os open (optional params not allowed) 2019-01-28 19:38:06 +11:00
rmliddle
c011db2819 fmt w/nightly 2019-01-28 19:21:27 +11:00
rmliddle
7b23d0e917 rust fmt 2019-01-28 18:54:50 +11:00
rmliddle
9a86bbd718 ByteArray Usage 2019-01-28 18:30:19 +11:00
coolreader18
989357fe81 Fix warnings from using trim_left and trim_right 2019-01-27 23:02:27 -06:00
coolreader18
5ecff1b37e Remove unnecessary to_string conversions 2019-01-27 21:45:21 -06:00
rmliddle
9efc68efcb Generalized Mode Handling 2019-01-22 21:59:10 +11:00
rmliddle
dda3d7ffb7 Bug fix for sequential Writes, New File Writes 2019-01-21 20:03:36 +11:00
rmliddle
3845e23881 -Logging length in FileIO write, +Bytes to String in TextIOBase 2019-01-19 14:13:12 +11:00
rmliddle
b54738978a Remaining IO open classes: TextBaseIO, TextWrapperIO 2019-01-17 21:20:31 +11:00
rmliddle
30165f6c8a open builtin 2019-01-16 20:16:56 +11:00
rmliddle
edc720e79f Buffered Objects for Open 2019-01-14 20:32:27 +11:00
rmliddle
2bbd4fd18f BufferedIOBase Read 2019-01-13 10:54:47 +11:00
Shing Lyu
5e8eb8a001 Added list.index() 2019-01-10 22:01:42 +01:00
rmliddle
5e1324fd23 os modes 2019-01-09 20:56:08 +11:00
rmliddle
9041129bb8 read_into on FileIO 2019-01-08 18:10:35 +11:00
rmliddle
6deb71d84f os.open impl 2019-01-08 12:14:43 +11:00
rmliddle
dc6238bb0c __offset__ workaround 2019-01-05 21:38:33 +11:00