Commit Graph

2385 Commits

Author SHA1 Message Date
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
Windel Bouwman
05ea701055 Cleanup frame file. 2019-07-24 09:59:31 +02:00
Dong-hee Na
29248fd1fa stdlib.io: Implement seekable() 2019-07-24 14:16:37 +09:00
Windel Bouwman
f994b0580f Move get_item_option back into ItemProtocol 2019-07-23 23:31:09 +02: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
Windel Bouwman
e922a6a952 Fix trailing newline issue #17 2019-07-21 14:00:55 +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
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
ce1523c142 Fix panic on import statement with levels but no module name. 2019-07-19 17:31:57 +02: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
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
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
ee8bcf4921 Move processing of PYTHONPATH out of vm. 2019-07-14 09:59:27 +02:00
coolreader18
fb3ccadc17 Merge pull request #1140 from RustPython/redox
Add Redox OS support, via platform checks!
2019-07-13 16:59:56 -05:00
Windel Bouwman
d3e1bfe548 Merge pull request #1141 from RustPython/time-module-fixes
Add mktime function.
2019-07-13 22:45:26 +02:00
coolreader18
402eb8a48b Merge branch 'master' into redox 2019-07-13 11:46:43 -05:00
Windel Bouwman
ac765a957b Add a settings struct for storage of different settings which influence the VM. 2019-07-13 12:23:53 +02:00
Windel Bouwman
e705ec292b Add mktime function. 2019-07-13 11:26:44 +02:00
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
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