Commit Graph

2697 Commits

Author SHA1 Message Date
Aviv Palivoda
914f32afc3 Add symlink tests 2019-05-05 19:17:30 +03:00
Aviv Palivoda
5bd23b4fb6 is_dir and is_file follow_symlink by default 2019-05-05 19:14:34 +03:00
Aviv Palivoda
6225de3098 Change file attributes to consts 2019-05-04 23:15:22 +03:00
Aviv Palivoda
6c1dca7cc2 Add DirEntry.is_symlink 2019-05-04 18:14:21 +03:00
Aviv Palivoda
46ad1f5449 Add os.symlink 2019-05-04 18:01:23 +03:00
Windel Bouwman
231343d63b Merge pull request #917 from palaviv/os-stat-2
Extend os.stat
2019-05-04 12:28:16 +02:00
Windel Bouwman
4a43872052 Merge pull request #903 from RustPython/lexer-error-improvements
Improve handling of lexical errors.
2019-05-04 11:56:33 +02:00
Aviv Palivoda
159063bb47 Convert windows file attributes to unix mode 2019-05-04 12:50:28 +03:00
Aviv Palivoda
775be3a36a Add stat mode tests 2019-05-04 11:07:56 +03:00
Aviv Palivoda
b96f4a5758 Add CPython stat.py file 2019-05-04 11:00:36 +03:00
Aviv Palivoda
01b245f5df Add stat to DirEntry 2019-05-04 10:59:32 +03:00
Windel Bouwman
e578dcfc46 Merge pull request #899 from youknowone/float-complex
Add numbers.Complex impl to float + extend_class
2019-05-03 17:22:12 +02:00
Windel Bouwman
daf70424d2 Merge pull request #847 from jgirardet/kwargs
add other bytes method
2019-05-03 17:15:09 +02:00
Adam
1d6e8d5aa5 Merge pull request #905 from RustPython/mappingproxy
Mappingproxy
2019-05-03 09:58:37 +01:00
Windel Bouwman
199fce22be Merge pull request #900 from youknowone/int-pow
Fix int.__pow__
2019-05-03 07:30:16 +02:00
coolreader18
18264b2881 Merge pull request #907 from Jongy/str-title-preallocate
Preallocate output string of str.title() with required size
2019-05-02 18:38:15 -05:00
Yonatan Goldschmidt
620bea7830 Preallocate output string of str.title() with required size 2019-05-03 01:14:06 +03:00
Adam Kelly
65d602571d Create mappingproxy type with __getitem__ and __contains__. 2019-05-02 16:45:00 +01:00
Adam Kelly
dd0c70f289 Fix typo in objobject. 2019-05-02 16:36:35 +01:00
Jeong YunWon
0bf7ff96b8 Special handling for base -1, 0, 1 for big exp 2019-05-02 23:11:00 +09:00
Jeong YunWon
c18615b6e5 Fix __builtins__.pow to perform modpow for 3rd argument 2019-05-02 22:59:08 +09:00
Jeong YunWon
8d4562b0bb Fix __builtins__.pow to reflect __rpow__ 2019-05-02 22:59:06 +09:00
Jeong YunWon
eb9ca06ee7 Add int.__rpow__ 2019-05-02 22:59:05 +09:00
Jeong YunWon
614378d720 Add int.__pow__ negative exp impl 2019-05-02 22:44:28 +09:00
Jeong YunWon
c138dea992 Remove int.__pow__ float handling 2019-05-02 14:23:35 +09:00
coolreader18
8f3b62ba0e Merge pull request #895 from youknowone/pyrange-extend
extend_class for PyRange
2019-05-01 20:15:58 -05:00
coolreader18
3051702a2d Merge branch 'master' into pyrange-extend 2019-05-01 20:15:50 -05:00
coolreader18
fc729fd610 Merge pull request #892 from youknowone/float-round
Add basic float.__round__ without ndigits support
2019-05-01 20:07:02 -05:00
coolreader18
fa148a4aed Merge branch 'master' into float-round 2019-05-01 20:06:52 -05:00
coolreader18
3e7d43e27c Merge pull request #889 from adrian17/iter-class
Convert iterators to pyclass macros
2019-05-01 16:32:46 -05:00
Adrian Wielgosik
c7fd54e809 Convert iterators to pyclass macros 2019-05-01 21:26:37 +02:00
Windel Bouwman
1247a35be9 Improve handling of lexical errors. 2019-05-01 21:05:21 +02:00
Windel Bouwman
1f002e8df3 Merge pull request #887 from youknowone/to_int
objint::to_int to call __int__
2019-05-01 19:08:54 +02:00
Jeong YunWon
4a598d03e2 Add float.imag, float.conjugate 2019-05-01 21:31:02 +09:00
Jeong YunWon
bb878a3402 PyFloat to use extend_class for __new__ and __doc__ 2019-05-01 21:31:02 +09:00
Windel Bouwman
08b716f694 Merge pull request #898 from youknowone/builtins-divmod
Fix __builtins__.divmod to reflect __rdivmod__
2019-05-01 14:23:38 +02:00
Windel Bouwman
eb5cef20ba Merge pull request #897 from youknowone/test-utils
Temporary fix to assertRaises and assert_raises prints errors
2019-05-01 14:11:23 +02:00
Windel Bouwman
7358017671 Merge pull request #902 from lili668668/bytearray_append
Add bytearray.append
2019-05-01 14:10:17 +02:00
Tzu-Yin Hong
4ef65d8ac3 Add bytearray.append 2019-05-01 15:53:28 +08:00
Jeong YunWon
0d891cba2c Temporary fix to assertRaises and assert_raises prints errors 2019-05-01 12:07:01 +09:00
coolreader18
b542b39f5e Merge pull request #893 from youknowone/float-overflow
PyFloat overflow handling + missing methods
2019-04-30 21:36:27 -05:00
Jeong YunWon
14dd85a596 Fix __builtins__.divmod to reflect __rdivmod__ 2019-05-01 05:14:52 +09:00
Jeong YunWon
22a35c9b90 extend_class for PyRangeIterator 2019-05-01 05:13:05 +09:00
Jeong YunWon
1c814ff2b5 Add float.__rpow__ 2019-05-01 04:02:34 +09:00
Jeong YunWon
09710b5222 Add float.__rdivmod__ and div/mod tests 2019-05-01 03:40:28 +09:00
Jeong YunWon
813307f8f9 Refactor PyFloat using try_float() 2019-05-01 01:22:56 +09:00
Jeong YunWon
a0ad4368c6 Add float.pow OverflowError handling 2019-05-01 01:22:52 +09:00
Jeong YunWon
a318e4e09e objfloat.rs try_float for common operand handling 2019-05-01 01:21:14 +09:00
Jimmy Girardet
5d13daef20 remove all try_as_bytes_like 2019-04-30 18:01:40 +02:00
Jeong YunWon
599f1f678f extend_class for PyRange 2019-05-01 00:51:47 +09:00