Commit Graph

3484 Commits

Author SHA1 Message Date
Noah
fc97bd936f Merge pull request #1185 from RustPython/coolreader18/frozen-packages
Add frozen package support
2019-07-27 14:58:57 -05:00
coolreader18
ec6c016fa5 Fix wasm errors 2019-07-27 14:27:37 -05:00
coolreader18
a72ef1e365 Add frozen package support 2019-07-27 14:27:29 -05:00
Windel Bouwman
a02e131bd5 Merge pull request #1177 from RustPython/example1
Add an example usecase of the parser.
2019-07-26 21:22:20 +02:00
Windel Bouwman
95561f4fc1 Merge pull request #1180 from palaviv/wasm-freeze-stdlib
freeze stdlib in WASM
2019-07-26 21:11:48 +02:00
Windel Bouwman
1fddce461f Implement review comments and improve parsing a bit. 2019-07-25 23:54:31 +02:00
Noah
c9985499ea Add empty tuple optimization (#1178)
* Add empty tuple optimization

* Add test snippet for empty tuple
2019-07-25 17:10:16 +02:00
Noah
a91470d67e Merge pull request #1171 from mpajkowski/iter_str
Implement str iterator support
2019-07-24 15:50:32 -04:00
Windel Bouwman
a06bd3ecea Add an example usecase of the parser. 2019-07-24 20:13:30 +02:00
Aviv Palivoda
ea71428e07 Merge pull request #1166 from palaviv/write-bytecode
Write bytecode
2019-07-24 20:55:27 +03:00
Aviv Palivoda
8f1df4697d Freeze stdlib by default in WASM 2019-07-24 20:54:44 +03:00
Aviv Palivoda
321e43d51b Add freeze-stdlib to wasm build 2019-07-24 20:51:22 +03:00
Aviv Palivoda
6ca979e7be Merge pull request #1159 from palaviv/freeze-stdlib
Allow stdlib freeze
2019-07-24 20:41:35 +03:00
Marcin Pajkowski
1f59532f82 Silent clippy with allowing range_plus_one
PySliceableSequence trait methods require Range<usize>
as arguments
2019-07-24 19:32:05 +02:00
Aviv Palivoda
dde40a4b1c Use vm.import 2019-07-24 20:30:07 +03:00
Aviv Palivoda
fc0aa0c2ab Use random magic when git hash don't exist 2019-07-24 20:30:07 +03:00
Aviv Palivoda
054bc72062 Use git hash as pyc magic number 2019-07-24 20:30:07 +03:00
Aviv Palivoda
db8de563ba Add dont_write_bytecode flag 2019-07-24 20:28:24 +03:00
Marcin Pajkowski
0e033ad93f Add str.__reversed__ method 2019-07-24 19:03:02 +02:00
Noah
7d2a7a54b2 Merge pull request #1169 from RustPython/optimizations1
Add some extra profiling trace points.
2019-07-24 12:30:31 -04:00
Windel Bouwman
881baf6397 Update flame trace names. 2019-07-24 16:36:45 +02:00
Noah
0e95f512d7 Merge pull request #1173 from corona10/seekable
stdlib.io: Implement seekable()
2019-07-24 10:15:42 -04:00
Windel Bouwman
05ea701055 Cleanup frame file. 2019-07-24 09:59:31 +02:00
Windel Bouwman
fe44179320 Merge pull request #1174 from Askaholic/patch-2
Improve tests for int ratio properties
2019-07-24 09:57:08 +02:00
Windel Bouwman
1ca863dbd5 Merge pull request #1167 from cclauss/patch-1
Travis CI: Lint Python code with flake8
2019-07-24 09:04:48 +02:00
Askaholic
a7065935f8 Fix test and add test for negative numberers 2019-07-23 22:24:35 -08:00
Dong-hee Na
29248fd1fa stdlib.io: Implement seekable() 2019-07-24 14:16:37 +09:00
Marcin Pajkowski
6aeec34df0 Add tests for str.__iter__ and str.__next__ 2019-07-24 03:17:05 +02:00
Marcin Pajkowski
db8eb7b8c3 Implement str.__iter__ and str.__next__ 2019-07-24 03:17:05 +02:00
cclauss
cbd88e660c env: JOBCACHE=9 2019-07-23 23:41:04 +02:00
Windel Bouwman
f994b0580f Move get_item_option back into ItemProtocol 2019-07-23 23:31:09 +02:00
Windel Bouwman
2c512d8ad4 Merge pull request #1170 from Askaholic/impl-int-ratio-properties
Add int ratio properties
2019-07-23 23:19:00 +02:00
Askaholic
86a1ef2ab8 Add numerator/denominator tests to snippets 2019-07-23 12:42:45 -08:00
Askaholic
73e418cd11 Add numerator and denominator properties for int 2019-07-23 12:38:53 -08:00
Windel Bouwman
e138a7303d Move get_item_option to PyDictRef struct. 2019-07-23 21:27:37 +02:00
Windel Bouwman
f7320cf545 Move Scope struct to its own file, making the frame module private in the process. 2019-07-23 20:39:47 +02:00
Windel Bouwman
25816a2775 Add some extra profiling trace points. 2019-07-23 19:55:04 +02:00
Christian Clauss
b174453677 Travis CI: Lint Python code with flake8
These tests focus on Python syntax errors and undefined names.
2019-07-23 12:36:22 +02:00
Aviv Palivoda
0a6253593f Change compile_dir path to &Path 2019-07-22 18:02:57 +03:00
Aviv Palivoda
64f102450b Fix clippy warning 2019-07-22 17:58:33 +03:00
Windel Bouwman
4e1ebb0645 Merge pull request #1165 from RustPython/fix-repl
Minor tweak on lexer to fix the REPL.
2019-07-22 07:01:13 +02:00
coolreader18
aa079ea228 Remove sitecustomize.py; fix #1164 2019-07-22 00:35:38 -04:00
Windel Bouwman
255b744217 Minor tweak on lexer to fix the REPL. 2019-07-21 22:11:37 +02:00
Windel Bouwman
c7ffa2e8b0 Merge pull request #1163 from RustPython/ast-module
Refactor the lexer code to bring some more sanity and reduce function…
2019-07-21 16:06:02 +02:00
Windel Bouwman
f31b9dc0f3 Merge pull request #1161 from RustPython/coolreader18/cpython-libs5
Add a bunch of stdlib modules from CPython
2019-07-21 15:40:50 +02:00
coolreader18
140d582599 Add a bunch of stdlib modules from CPython 2019-07-21 07:26:38 -05:00
Windel Bouwman
e922a6a952 Fix trailing newline issue #17 2019-07-21 14:00:55 +02:00
Windel Bouwman
8c199ee2f2 Refactor the lexer code to bring some more sanity and reduce function size. 2019-07-21 13:05:10 +02:00
Windel Bouwman
4af85e970c Merge pull request #1162 from adolfogonzalez3/impl-list.__rmul__
Implemented list.__rmul__
2019-07-21 09:55:42 +02:00
Adolfo Gonzalez III
208b37a691 Merged 2019-07-21 01:08:31 -05:00