Commit Graph

500 Commits

Author SHA1 Message Date
Marcin Pajkowski
364ddeb6b2 Fix compilation on Windows 2019-07-30 22:58:37 +02:00
Marcin Pajkowski
53c653fd2b Implement several methods - os module
os.getpid  [RUST STD]
os.getegid [UNIX]
os.getgid  [UNIX]
os.getsid  [UNIX]
os.getuid  [UNIX]
os.geteuid [UNIX]
os.getppid [UNIX]
os.getpgid [UNIX]
os.setgid  [UNIX]
os.setegid [UNIX]
os.setpgid [UNIX]
os.setuid  [UNIX]
os.seteuid [UNIX]
2019-07-30 18:15:33 +02:00
coolreader18
a72ef1e365 Add frozen package support 2019-07-27 14:27:29 -05:00
Windel Bouwman
1fddce461f Implement review comments and improve parsing a bit. 2019-07-25 23:54:31 +02:00
Dong-hee Na
29248fd1fa stdlib.io: Implement seekable() 2019-07-24 14:16:37 +09: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
f919ed0137 Extend symtable module. 2019-07-19 22:05:35 +02:00
Windel Bouwman
215308d474 Add initial draft of symtable module. 2019-07-16 22:04:38 +02:00
Windel Bouwman
ff762d7109 Address relative import with 3 dots. Closes #1052. 2019-07-15 21:41:43 +02:00
Windel Bouwman
0741c36bb8 Simplify import AST in line with CPython. 2019-07-15 21:00:28 +02: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
coolreader18
f7dd1a2952 Add windows errno 2019-07-15 00:03:38 -05:00
coolreader18
f59d84a750 Add codecs, locale, shutil, errno, and encodings modules 2019-07-14 23:09:59 -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
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
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
67813f186c Fix os module 2019-07-12 11:44:42 -05:00
coolreader18
869ea2e679 Remove pwd on redox 2019-07-11 19:26:59 -05:00
coolreader18
0b7ca175a8 Add fnmatch and shlex 2019-07-11 09:38:13 -05: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
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
Windel Bouwman
d16c288ef1 Improve re module. Favor string.py over string.rs 2019-07-10 11:19:01 +02: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
silmeth
5450f8e8a3 use vm.try_class, early return on unsupported op error 2019-07-08 20:44:36 +02:00
silmeth
03b7299150 make TextIOBase writable, handle malformed utf-8 in read() 2019-07-08 19:57:38 +02:00
coolreader18
1c1440eb78 Add __len__ to deque 2019-07-07 15:38:57 -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
coolreader18
9d3fa18ec8 Add __mul__ to deque 2019-07-07 15:38:47 -05:00
coolreader18
1c1ee5bb69 Add setter for maxlen 2019-07-07 15:38:46 -05:00
coolreader18
5153ad52ca Add cmp methods to deque 2019-07-07 15:38:44 -05:00
coolreader18
805d536fa8 Add repr to deque 2019-07-07 15:38:43 -05:00
coolreader18
5956bcbf2c Add maxlen argument and getter 2019-07-07 15:38:43 -05:00
coolreader18
2be70eb353 Add deque to collections 2019-07-07 15:38:41 -05:00
Maxim Kurnikov
347d48198e fix remaining clippy warnings 2019-07-07 06:27:07 +03:00
Windel Bouwman
ef649be941 Add git information in sys and platform modules. 2019-07-06 17:00:03 +02:00
Aviv Palivoda
f740845bab Use vm.class 2019-07-04 17:38:55 +03:00
Aviv Palivoda
42d17138eb Remove old import 2019-07-04 17:32:17 +03:00
Windel Bouwman
bedbad284e Change underscore into hyphen 2019-07-01 21:05:29 +02:00
Windel Bouwman
4a108c1ef5 Merge pull request #1059 from RustPython/unicodedata
Add initial unicodedata module.
2019-07-01 20:44:14 +02:00
Windel Bouwman
e05a75c363 Merge pull request #1092 from RustPython/bytecode-crate
Make parser and compiler optional features for vm crate.
2019-07-01 20:43:06 +02:00
Windel Bouwman
13be2cf3f4 Merge master branch 2019-06-30 21:22:33 +02:00
Windel Bouwman
f816a50110 Change get_row() into row() 2019-06-30 20:23:01 +02:00