Commit Graph

3443 Commits

Author SHA1 Message Date
Windel Bouwman
f994b0580f Move get_item_option back into ItemProtocol 2019-07-23 23:31:09 +02: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
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
Windel Bouwman
ccd7d8960d Suppress clippy warning. 2019-07-20 21:25:11 +02:00
Windel Bouwman
d6c19c1c6a Add location to expressions. Change symboltable to use flags for symbols. 2019-07-20 20:44:38 +02: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
Windel Bouwman
ff0a6171b5 Merge pull request #1155 from RustPython/coolreader18/better-dockerfile
Update Dockerfiles
2019-07-19 21:27:22 +02:00
Windel Bouwman
b7e085ec7d Merge pull request #1156 from RustPython/import-bug
Fix panic on import statement with levels but no module name.
2019-07-19 21:12:35 +02:00
Windel Bouwman
ce1523c142 Fix panic on import statement with levels but no module name. 2019-07-19 17:31:57 +02:00
coolreader18
97c9b2316e Update Dockerfile.wasm 2019-07-18 10:49:05 -05:00
Windel Bouwman
ae018d579b Implement suggestion from clippy. 2019-07-17 09:36:11 +02:00
Windel Bouwman
19e783d285 Merge pull request #1154 from RustPython/coolreader18/update-readmes
Update READMEs
2019-07-17 09:30:33 +02:00
coolreader18
5821bac2dc Update READMEs 2019-07-16 19:13:07 -05:00
Windel Bouwman
215308d474 Add initial draft of symtable module. 2019-07-16 22:04:38 +02:00
Aviv Palivoda
42b1b75562 Merge pull request #1152 from RustPython/import-syntax
Address relative import with 3 dots. Closes #1052.
2019-07-16 19:03:50 +03:00
Windel Bouwman
ff762d7109 Address relative import with 3 dots. Closes #1052. 2019-07-15 21:41:43 +02:00
Windel Bouwman
2e66a6a3b7 Merge pull request #1151 from RustPython/import-syntax
Simplify import AST in line with CPython.
2019-07-15 21:41:15 +02:00
Windel Bouwman
0741c36bb8 Simplify import AST in line with CPython. 2019-07-15 21:00:28 +02:00
Windel Bouwman
b23b8e2904 Merge pull request #1150 from palaviv/exc-info
Add sys.exc_info
2019-07-15 19:05:04 +02:00
Aviv Palivoda
802acf7dd5 Add sys.exc_info 2019-07-15 19:26:53 +03:00
Windel Bouwman
a0abe08c9a Merge pull request #1149 from RustPython/coolreader18/cpython-libs3
Add codecs, locale, shutil, errno, and encodings modules
2019-07-15 17:12:08 +02:00
Windel Bouwman
26e3d7fa6f Merge pull request #1146 from RustPython/ast-module
Implement more nodes in the ast.
2019-07-15 17:11:45 +02:00
coolreader18
f7dd1a2952 Add windows errno 2019-07-15 00:03:38 -05:00
Windel Bouwman
8516ad29c9 Merge pull request #1148 from dmitrijoseph/comp
Implemented range methods lt, gt, le, ge
2019-07-15 07:02:15 +02:00
coolreader18
f59d84a750 Add codecs, locale, shutil, errno, and encodings modules 2019-07-14 23:09:59 -05:00
dmitrijoseph
d8c06d7898 cargo fmt 2019-07-14 20:38:58 -04:00
dmitrijoseph
eba282dcbe Implemented lt, gt, le, ge 2019-07-14 18:47:45 -04:00
Noah
93dfbdcaa9 Merge pull request #1144 from RustPython/env-var-processing
Move processing of PYTHONPATH out of vm.
2019-07-14 16:46:10 -05:00
Windel Bouwman
cdfcf5278c Use env::var where applicable. Fix flame-it feature build. 2019-07-14 21:39:26 +02:00
Windel Bouwman
e06de30eb6 Implement more nodes in the ast. Add script to walk over AST of sourcecode. 2019-07-14 21:18:49 +02:00
Windel Bouwman
f752c93c0a Add sys.settrace and sys.setprofile functions to register profiling functions. 2019-07-14 12:33:22 +02:00
Windel Bouwman
49afefd4f2 Implement ideas from clippy. 2019-07-14 10:44:33 +02:00