Commit Graph

1690 Commits

Author SHA1 Message Date
janczer
454837f64b Fix fmt in objfloat 2019-02-09 19:16:04 +01:00
Tommaso Thea Cioni
8ffd4c5e56 Fixed #402. (#414)
Raise syntax error rather than panicking on expected closing bracket. 

* Fixed #402.
2019-02-09 18:10:40 +00:00
Windel Bouwman
7807dc3d2c Merge pull request #388 from veera83372/sys-doc
Added __doc__ for sys module
2019-02-09 18:59:45 +01:00
Windel Bouwman
b14dc20adc Merge branch 'master' into map_doc 2019-02-09 18:58:37 +01:00
veera venky
b5911ed796 Fixing assert second argument formatting 2019-02-09 22:17:01 +05:30
Joey Hain
22a430cdc5 Don't use magic methods directly 2019-02-09 08:20:04 -08:00
Joey Hain
969ddf2ea0 Merge remote-tracking branch 'upstream/master' into reversed 2019-02-09 08:13:03 -08:00
Joey Hain
09dc751869 Avoid using magic methods in tests where possible 2019-02-09 08:09:48 -08:00
janczer
8d1d6ce1ee float.{__lt__, __le__, __ge__, __gt__} fix comparing with non float type 2019-02-09 17:05:32 +01:00
janczer
607e1262d4 Fix the typo 2019-02-09 16:42:32 +01:00
Windel Bouwman
3c25c14311 Merge pull request #400 from palaviv/Add-set-funcs
Add set.{__eq__,__gt__,__ge__,__le__,__lt__,issubset,issuperset}
2019-02-09 16:31:05 +01:00
Windel Bouwman
601e4c9dc9 Merge pull request #416 from silmeth/zero-division
fix floordiv and divmod by zero for ints and floats
2019-02-09 16:29:52 +01:00
Windel Bouwman
95cb0178cd Merge pull request #405 from RustPython/code_object
Code object
2019-02-09 16:20:07 +01:00
silmeth
6c56c22f0f fix floordiv and divmod by zero for ints and floats 2019-02-09 15:15:54 +01:00
silmeth
d960ca3d5b fix int – float equality for big ints, inf and nan 2019-02-09 14:02:43 +01:00
Adam Kelly
5c5d27203a Support for all co_* that can implemented currently. 2019-02-09 12:22:51 +00:00
Adam Kelly
6539f07818 @generated comment added to Cargo.lock 2019-02-09 12:22:51 +00:00
Adam Kelly
769b889097 Source path should always be set, make it non-optional for code object. 2019-02-09 12:22:51 +00:00
Adam
a6d6f0fcaa Merge pull request #413 from ka7/spelling
Spelling fixes
2019-02-09 12:18:09 +00:00
Adam Kelly
1869a9f1ed Passing version of code.py tests. 2019-02-09 12:15:16 +00:00
Adam Kelly
8116dae65f Add some co_* methods to code objects. 2019-02-09 12:15:16 +00:00
Adam Kelly
7d08867419 Record first line number in code object. 2019-02-09 12:15:16 +00:00
Adam Kelly
7b2508a730 Start adding methods to code object. 2019-02-09 12:15:16 +00:00
Adam
8ad95c4a57 Merge pull request #326 from lausek/master
int type: rounding, index, trunc, int (#304)
2019-02-09 11:23:14 +00:00
Adam
b87fcdce34 Merge pull request #285 from orf/handle-missing-file
Improve test coverage of os.open/open
2019-02-09 11:20:11 +00:00
Adam
2ae9d88de4 Merge pull request #398 from ZapAnton/range_doc
range type: Added __doc__
2019-02-09 11:11:13 +00:00
klemens
b109ea954a Merge branch 'master' into spelling 2019-02-09 12:03:08 +01:00
Adam
c5b94a4d82 Merge pull request #408 from janczer/add_floats_div_mul
Add floats.{__truediv__, __mul__}
2019-02-09 11:03:01 +00:00
klemens
79a7e5e42b spelling fixes 2019-02-09 12:00:46 +01:00
veera venky
fa927c5028 added cargo clippy 2019-02-09 16:25:29 +05:30
Aviv Palivoda
2df9d799f5 Fix formatting errors 2019-02-09 10:18:05 +02:00
Windel Bouwman
3376808428 Merge pull request #409 from skinny121/slice
Add slice type
2019-02-09 08:31:55 +01:00
Windel Bouwman
587617d5e3 Add dict data type. (#380)
* Add dict data type.

* Fix formatting.

* Implement review comments.
2019-02-09 08:14:37 +01:00
Joey Hain
520f71f354 Add NotImplemented built-in constant 2019-02-08 19:24:08 -08:00
ben
7abf02180a implement slice negative step handling 2019-02-09 15:48:07 +13:00
Joey Hain
d66ca54a2d Add complex.{__eq__, __neg__} 2019-02-08 18:20:58 -08:00
Joey Hain
fc863aaba5 Add complex.__abs__ 2019-02-08 18:20:55 -08:00
ben
907dfb6770 Add slice type and use BigInts in slice payload. 2019-02-09 12:07:04 +13:00
janczer
ba19732fbb Fix the fmt error 2019-02-08 22:09:42 +01:00
janczer
47fc303e55 Rasi error when try compare bytes with another types 2019-02-08 22:06:57 +01:00
janczer
59706538f4 Fix typo and fix fmt errors 2019-02-08 21:56:07 +01:00
Windel Bouwman
f454bf36d1 Merge pull request #396 from ZapAnton/property_doc
property type: Added __doc__
2019-02-08 21:16:17 +01:00
Windel Bouwman
85475e4e30 Merge pull request #347 from silmeth/master
Fix Range’s len() + division and mod by 0
2019-02-08 21:04:31 +01:00
janczer
d4b82007df Add floats.{__truediv__, __mul__} 2019-02-08 20:34:33 +01:00
Windel Bouwman
869b91a27d Merge pull request #399 from ZapAnton/super_doc
super type: Added __doc__
2019-02-08 20:08:22 +01:00
Windel Bouwman
32bfcf36fd Merge pull request #384 from skinny121/iter_lazy_2
Add enumerate and zip types
2019-02-08 20:05:20 +01:00
Adam
c55593406c Merge pull request #392 from ZapAnton/complex_doc
complex type: Added __doc__
2019-02-08 18:31:26 +00:00
Adam
f5792f84d6 Merge pull request #391 from ZapAnton/byteaaray_doc
bytearray type: Added __doc__
2019-02-08 18:31:03 +00:00
Adam
9245a62296 Merge pull request #401 from ZapAnton/type_doc
type type: Added __doc__
2019-02-08 18:30:17 +00:00
Adam
891b79bbb6 Merge pull request #403 from ZapAnton/remove_doc_tests
tests: Removed tests for the __doc__
2019-02-08 18:29:29 +00:00