Commit Graph

3377 Commits

Author SHA1 Message Date
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
1b0d288242 Insert path into sys.path for redox 2019-07-12 17:50:55 -05:00
coolreader18
6dc742baa8 Remove wasm/lib/target symlink 2019-07-12 16:36:51 -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
coolreader18
37d2f99671 Add rustpython bin 2019-07-11 21:34:29 -05: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
53cc56820b Revert unnecesarily change Cargo.lock entries 2019-07-11 19:15:27 -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
80aedd65c9 Remove more proc-macro-hack 2019-07-11 18:43:37 -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
Windel Bouwman
2893780036 Check output of logger calls. 2019-07-11 17:48:10 +02:00
Windel Bouwman
c5ad5838d1 Merge pull request #1136 from RustPython/coolreader18/cpython-libs2
CPython lib files 2
2019-07-11 17:43:57 +02:00
coolreader18
56fb6afb3f Remove async sections of contextlib.py 2019-07-11 09:39:40 -05:00
coolreader18
0b7ca175a8 Add fnmatch and shlex 2019-07-11 09:38:13 -05:00
coolreader18
91d5fc389c Add contextlib.py 2019-07-11 09:34:09 -05:00
Windel Bouwman
3c9045d3da Merge pull request #1134 from RustPython/coolreader18/collections-defaultdict
Add defaultdict to collections; add pprint.py
2019-07-11 07:11:31 +02:00
coolreader18
bf3f09c476 Add pprint.py 2019-07-10 22:16:42 -05:00
coolreader18
5e5d726a5d Add defaultdict to collections 2019-07-10 22:16:37 -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
55fbe7f269 Merge pull request #1130 from RustPython/re-kung-fu
Add default argument to dict.pop.
2019-07-10 13:57:14 -05:00
coolreader18
3beaf5f89d Address feedback
Move profile writing to own function; move profiling doc to
DEVELOPMENT.md, remove 'present because' from arg help.
2019-07-10 13:29:05 -05:00
coolreader18
8e06a30051 Update to flamescope 0.1.1 2019-07-10 13:14:02 -05:00
coolreader18
84a48aed47 Remove flame_note! macro 2019-07-10 13:14:02 -05:00
coolreader18
33b3cee472 Add profiling documentation to README.md 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
b2c515cbe5 Merge pull request #1129 from RustPython/coolreader18/no-bare-trait-objects
Cover up bare trait objects with a dyn
2019-07-10 18:51:50 +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
Windel Bouwman
bdd7fa88ec Merge pull request #1122 from palaviv/fix-exception-stack
Fix exception stack
2019-07-09 20:24:04 +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