Commit Graph

1690 Commits

Author SHA1 Message Date
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
Tommaso Thea Cioni
8ac3c46de1 Fix RustPython#390. Now Rust functions have a builtin_function_or_method type, Python functions retain the function type. 2019-02-11 02:50:51 +01:00
Joey Hain
057a22529e Move delegation of __ne__ to __eq__ out of objobject 2019-02-10 15:46:12 -08:00
Joey Hain
a510aed86a Tests and fix objobject ne impl 2019-02-10 10:13:30 -08:00
Windel Bouwman
7102128654 Merge pull request #432 from HomerMcMillan/range-properties
Range properties
2019-02-10 18:21:44 +01:00
Joey Hain
dab4f7385f Use NotImplemented in binary operations 2019-02-10 09:19:06 -08:00
Homer McMillan
389fc3acd9 cargo fmt 2019-02-10 12:04:42 -05:00
Homer McMillan
9de733be19 Add range start/stop/step 2019-02-10 12:03:22 -05:00
Homer McMillan
10c2099374 Merge remote-tracking branch 'upstream/master' 2019-02-10 11:27:19 -05:00
Windel Bouwman
accfac8c41 Merge pull request #431 from janczer/add_str_le_ge
Fix the str.{__lt__, __gt__} and add the methods str.{__le__, __ge__}
2019-02-10 17:15:05 +01:00
janczer
aac1ce4e07 Fix the str.{__lt__, __gt__} and add the methods str.{__le__, __ge__} 2019-02-10 16:40:09 +01:00
Windel Bouwman
b1e07f64be Change to more usage of VirtualMachine in anticipation of proper dictionaries. 2019-02-10 15:39:33 +01:00
Windel Bouwman
05cd60bebc Merge pull request #415 from silmeth/fix-int-eq-float
fix int – float equality for big ints, inf and nan
2019-02-10 13:55:50 +01:00
silmeth
2182fa1bf5 rename old math tests (conflicting with math library imports) 2019-02-10 13:33:45 +01:00
Windel Bouwman
cf31805c2c Fix set test by add __hash__ method. 2019-02-10 13:30:22 +01:00
Windel Bouwman
68002f1a9e Fix build error of removed str method. 2019-02-10 13:00:54 +01:00
Windel Bouwman
9497ee89e8 Merge pull request #292 from mcon/sets-using-hashes
Items are now added to sets using proper __hash__ function calls.
2019-02-10 12:57:46 +01:00
Windel Bouwman
1cb59c5731 Merge pull request #394 from ZapAnton/iter_doc
iter type: Added __doc__
2019-02-10 12:28:09 +01:00
Windel Bouwman
2bab31b8e7 Merge pull request #387 from janczer/add_bytes_ge_gt_le_lt
Add bytes.{__ge__, __gt__, __le__, __lt__}
2019-02-10 12:27:01 +01:00
Windel Bouwman
03a2aad82d Merge pull request #410 from OddCoincidence/complex
Add complex.{__abs__, __eq__, __neg__}
2019-02-10 12:23:24 +01:00
veera venky
9bc9befee6 Added exception string when msg can't be converted to string 2019-02-10 16:43:21 +05:30
Windel Bouwman
c2db23db2b Merge pull request #417 from janczer/fix_lt_le_ge_gt_float
float.{__lt__, __le__, __ge__, __gt__} fix comparing with non float type
2019-02-10 12:10:58 +01:00
Windel Bouwman
fc38d55b59 Merge pull request #381 from nficca/implement-range-count
Implement range.count
2019-02-10 11:46:10 +01:00
Windel Bouwman
94db145ae8 Merge branch 'master' into complex 2019-02-10 11:41:39 +01:00
Windel Bouwman
e69605328b Merge pull request #426 from skinny121/recursive_repr
Fixed #191, fixes recursive repr() for the standard collections
2019-02-10 08:35:02 +01:00
Windel Bouwman
e98d5f11cc Merge pull request #393 from ZapAnton/filter_doc
filter type: Added __doc__
2019-02-10 08:24:50 +01:00
Ryan Liddle
7422d27201 Merge pull request #422 from HomerMcMillan/range-reversed
Fix range reversed #421
2019-02-10 15:08:34 +11:00
ben
5b637385ea Fixed #191, fixes recursive repr() for the standard collections 2019-02-10 13:22:03 +13:00
Homer McMillan
0611e765e2 Add extra test to builtin_range.py 2019-02-09 18:40:46 -05:00
Homer McMillan
58e05d28f6 Merge remote-tracking branch 'upstream/master' 2019-02-09 18:15:45 -05:00
Adam
d8afc6a722 Merge pull request #420 from Tom1380/master
Uncommented a line of code like a TODO said.
2019-02-09 22:36:50 +00:00
Matthew Constable
0322b937f3 Updated formatting 2019-02-09 21:58:01 +00:00
Matthew Constable
9271bfcb84 Moved from using BigInt in set hash to u64, which is guaranteed to be of constant size - u64 seems easier than usize as it's the same size across all platforms. 2019-02-09 21:57:26 +00:00
Nic Ficca
0cb661f3a2 Dry up objrange
- Use get_value in all appropriate spots
2019-02-09 16:54:14 -05:00
Nic Ficca
2e9892029a Add objrange::get_value
- Refactor range_count to use get_value and isinstance for pulling out the range and argument respectively
2019-02-09 16:49:44 -05:00
Matthew Constable
cca16ff597 Simplify calling __hash__ method 2019-02-09 21:38:11 +00:00
Nic Ficca
316e94bd42 Add tests 2019-02-09 16:28:04 -05:00
Nic Ficca
b7a4248837 Add range.count 2019-02-09 16:27:12 -05:00
Matthew Constable
9f3cc35e9c Allow sets to be initialized from literals. 2019-02-09 21:24:16 +00:00
Matthew Constable
c673384cc4 Merge branch 'master' into sets-using-hashes 2019-02-09 21:04:33 +00:00
Homer McMillan
ba9226219b cargo fmt 2019-02-09 15:54:17 -05:00
Homer McMillan
a4d13f9f50 Fix typo 2019-02-09 15:53:13 -05:00
Homer McMillan
4e02962289 Fix range reversed #421 2019-02-09 15:49:51 -05:00
ZapAnton
216e690ee0 filter type: Added __doc__ 2019-02-09 23:00:43 +03:00
Tommaso Thea Cioni
b9d773824c Uncommented a line of code like a TODO said. 2019-02-09 20:24:24 +01:00
Windel Bouwman
ecea7035b0 Merge branch 'master' into iter_doc 2019-02-09 19:37:17 +01:00
Windel Bouwman
ac37026010 Merge pull request #385 from OddCoincidence/reversed
Add reversed builtin and range.__reversed__
2019-02-09 19:32:44 +01:00
Windel Bouwman
56a36b7959 Merge pull request #395 from ZapAnton/map_doc
map type: Added __doc__
2019-02-09 19:31:32 +01:00
Joey Hain
d3d73bdc22 Disable broken test for now 2019-02-09 10:24:17 -08:00