Commit Graph

3469 Commits

Author SHA1 Message Date
Aviv Palivoda
ea71428e07 Merge pull request #1166 from palaviv/write-bytecode
Write bytecode
2019-07-24 20:55:27 +03:00
Aviv Palivoda
6ca979e7be Merge pull request #1159 from palaviv/freeze-stdlib
Allow stdlib freeze
2019-07-24 20:41:35 +03: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
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
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
Noah
6768e3a343 Merge pull request #1157 from adolfogonzalez3/impl-list.__reversed__
Implemented list.__reversed__
2019-07-20 22:32:16 -04:00
Adolfo Gonzalez III
18b0f631ac Ran cargo fmt --all 2019-07-20 20:24:43 -05:00
Windel Bouwman
d74c0d5c1f Merge pull request #1160 from RustPython/ast-module
Add location to expressions.
2019-07-20 21:57:20 +02:00
Aviv Palivoda
7226c925d2 Add hashmap macro to __exports 2019-07-20 22:25:46 +03:00
Windel Bouwman
ccd7d8960d Suppress clippy warning. 2019-07-20 21:25:11 +02:00
Aviv Palivoda
c480449420 Fix clippy comments 2019-07-20 22:09:24 +03:00
Windel Bouwman
d6c19c1c6a Add location to expressions. Change symboltable to use flags for symbols. 2019-07-20 20:44:38 +02:00
Aviv Palivoda
5c240d71a8 Support freezing of stdlib 2019-07-20 18:06:46 +03:00
Aviv Palivoda
f271a0e5cf Change py_compile_bytecode to return map 2019-07-20 12:23:56 +03:00
Aviv Palivoda
befe1803db Add freeze-stdlib compile flag 2019-07-20 12:23:16 +03:00
Windel Bouwman
1b48ade07b Merge pull request #1158 from RustPython/coolreader18/cpython-libs4
Add argparse and gettext modules
2019-07-20 09:19:06 +02:00
Windel Bouwman
8101f423df Merge pull request #1153 from RustPython/ast-module
Add initial draft of symtable module.
2019-07-20 09:07:05 +02:00
coolreader18
9ec6660c09 Add argparse and gettext modules 2019-07-19 22:38:09 -05:00
Adolfo Gonzalez III
b7c035fdde Implemented list.__reversed__ 2019-07-19 16:08:16 -05:00
Windel Bouwman
f919ed0137 Extend symtable module. 2019-07-19 22:05:35 +02:00