Commit Graph

3362 Commits

Author SHA1 Message Date
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
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
Windel Bouwman
86decbb172 Merge pull request #1097 from RustPython/coolreader18/collections-deque
Add deque to collections
2019-07-09 07:16:56 +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
7b23a96d4b Fix warnings test 2019-07-07 17:27:04 -05: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
coolreader18
deca878c4b Use VecDeque::rotate_{left,right} 2019-07-07 15:38:52 -05:00
coolreader18
d891c87c4f Add maxlen as a named arg 2019-07-07 15:38:49 -05:00