Commit Graph

2346 Commits

Author SHA1 Message Date
dmitrijoseph
eba282dcbe Implemented lt, gt, le, ge 2019-07-14 18:47:45 -04:00
coolreader18
fb3ccadc17 Merge pull request #1140 from RustPython/redox
Add Redox OS support, via platform checks!
2019-07-13 16:59:56 -05:00
Windel Bouwman
d3e1bfe548 Merge pull request #1141 from RustPython/time-module-fixes
Add mktime function.
2019-07-13 22:45:26 +02:00
coolreader18
402eb8a48b Merge branch 'master' into redox 2019-07-13 11:46:43 -05:00
Windel Bouwman
ac765a957b Add a settings struct for storage of different settings which influence the VM. 2019-07-13 12:23:53 +02:00
Windel Bouwman
e705ec292b Add mktime function. 2019-07-13 11:26:44 +02:00
coolreader18
86a6b2a366 Use feature for proc_macro_hack 2019-07-13 00:59:18 -05:00
coolreader18
bd749eae2d Use more platform checks 2019-07-12 20:18:54 -05:00
coolreader18
afd7a33848 Implement os.stat for redox 2019-07-12 20:02:21 -05:00
coolreader18
fc6c683c03 Fix os module again 2019-07-12 16:18:50 -05:00
coolreader18
dd11780877 Fix num-* crates 2019-07-12 11:45:27 -05:00
coolreader18
67813f186c Fix os module 2019-07-12 11:44:42 -05:00
Windel Bouwman
704b15750e Add optimize flag to ignore assert statements. 2019-07-12 18:41:25 +02:00
coolreader18
838aaa557d Update num-bigint version 2019-07-11 21:22:52 -05:00
coolreader18
869ea2e679 Remove pwd on redox 2019-07-11 19:26:59 -05:00
coolreader18
c899287cf1 Add vecdeque_rotate to features 2019-07-11 19:16:28 -05:00
coolreader18
e373ad25ae Make repl rudimentary 2019-07-11 19:01:52 -05:00
coolreader18
2c65988ea7 Switch to hexf_parse 2019-07-11 18:53:47 -05:00
coolreader18
76dbd8ebb0 Remove proc-macro-hack 2019-07-11 18:40:07 -05:00
Windel Bouwman
8c1c0906dc Merge pull request #1131 from RustPython/re-kung-fu
Add testcase for logging module.
2019-07-11 20:39:48 +02:00
coolreader18
0b7ca175a8 Add fnmatch and shlex 2019-07-11 09:38:13 -05:00
Windel Bouwman
8869130509 Merge pull request #1126 from RustPython/coolreader18/flamescope-profiling
Add an speedscope output format for profiling
2019-07-10 21:31:07 +02:00
Windel Bouwman
140ad71f05 Add testcase for logging module. 2019-07-10 21:02:04 +02:00
coolreader18
84a48aed47 Remove flame_note! macro 2019-07-10 13:14:02 -05:00
coolreader18
ecdbe0408b Add profiling using flamescope/speedscope 2019-07-10 13:14:01 -05:00
Windel Bouwman
1612198dc1 Add default argument to dict.pop. Add logging and traceback python modules. 2019-07-10 20:10:52 +02:00
Windel Bouwman
98e6486c98 Merge pull request #1128 from RustPython/re-kung-fu
Add time.gmtime function.
2019-07-10 20:06:43 +02:00
Windel Bouwman
dd20263fba Merge pull request #1123 from corona10/fix_complex_hash
complex: Fix hash function to work correctly
2019-07-10 19:27:59 +02:00
Windel Bouwman
fb23cc6e03 Add time.ctime, time.strftime 2019-07-10 17:37:42 +02:00
coolreader18
9204035d97 Cover up bare trait objects with a dyn 2019-07-10 09:41:58 -05:00
Windel Bouwman
0ab39651b8 Add time.gmtime function. 2019-07-10 16:12:30 +02:00
coolreader18
5edcecbdd6 Merge pull request #1127 from RustPython/re-kung-fu
Improve re module. Favor string.py over string.rs
2019-07-10 08:34:59 -05:00
Windel Bouwman
8a46cdf95d Merge pull request #1121 from RustPython/coolreader18/docs-logo
Add #![doc(html_logo_url = ...)] to crates
2019-07-10 14:52:14 +02:00
Windel Bouwman
d16c288ef1 Improve re module. Favor string.py over string.rs 2019-07-10 11:19:01 +02:00
Dong-hee Na
d349d254f6 complex: Fix hash function to work correctly
Currently, hash(3.1-4.2j) or hash(3.1+4.2j) is crashed due to
overflow error on RustPython.

This patch will fix this issue.
2019-07-10 09:21:19 +09:00
Windel Bouwman
9261d944a7 Merge pull request #1124 from corona10/sys_maxunicode
sys: Fix sys.maxsize and add sys.maxunicode
2019-07-09 20:33:09 +02:00
Dong-hee Na
2e618af4f9 sys: Fix sys.maxsize and add sys.maxunicode
Current implementation of sys.maxsize is unsigned type
but AFAIK the type of sys.maxsize should be identical with
Py_ssize_t which is known as signed type.

sys.maxunicode is hardcoded from cpython repository
https://github.com/python/cpython/blob/master/Python/sysmodule.c#L2654
2019-07-10 02:48:45 +09:00
Aviv Palivoda
b815d47d2a Use cloned 2019-07-09 18:38:43 +03:00
Aviv Palivoda
86cbc2e66d Fix exception stack 2019-07-09 17:48:27 +03:00
Windel Bouwman
e5d0a02fad Merge pull request #1119 from silmeth/text_file_io
make TextIOBase writable, handle malformed utf-8 in read()
2019-07-09 11:57:26 +02:00
silmeth
afec714a44 use vm.call_method() instead of get_method&invoke, remove String alloc 2019-07-09 10:53:40 +02:00
Windel Bouwman
53ce3624f5 Merge pull request #1120 from RustPython/coolreader18/flame-profiling
Add flamegraph profiling using flame and flamer
2019-07-09 08:03:22 +02:00
coolreader18
0893076643 Add #![doc(html_logo_url = ...)] to crates 2019-07-08 23:57:18 -05:00
coolreader18
f585f7ed10 Add frame name to its flame span 2019-07-08 21:49:18 -05:00
coolreader18
29e046f457 Add flamegraph profiling 2019-07-08 18:52:57 -05:00
silmeth
5450f8e8a3 use vm.try_class, early return on unsupported op error 2019-07-08 20:44:36 +02:00
coolreader18
5b32dfbed9 Fix clippy and azure pipelines 2019-07-08 13:24:06 -05:00
silmeth
03b7299150 make TextIOBase writable, handle malformed utf-8 in read() 2019-07-08 19:57:38 +02:00
coolreader18
1c1440eb78 Add __len__ to deque 2019-07-07 15:38:57 -05:00
coolreader18
fbeedb72bd Fix seq_mul with negative numbers 2019-07-07 15:38:54 -05:00