Commit Graph

3505 Commits

Author SHA1 Message Date
Aviv Palivoda
5b670f8a26 Simplify signal code 2019-08-02 09:45:39 +03:00
Aviv Palivoda
1b17926e91 Initial signal support 2019-08-02 09:45:39 +03:00
Noah
6d285a7cfc Merge pull request #1193 from yanganto/feat/byte-decode
byte.decode
2019-08-01 12:31:38 -05:00
Antonio Yang
0f4c2c10b7 byte.decode
- support ascii, utf-8 encoding
- raise LookupError for unhandled encoding
2019-08-01 22:57:17 +08:00
coolreader18
8a85d7efbd Add Lib to COPY list (fixes #1195) 2019-08-01 08:16:42 -05:00
Noah
13d0c074e9 Merge pull request #1191 from mpajkowski/os_module
Implement several methods - os module
2019-07-31 09:11:53 -05:00
Windel Bouwman
c2ec66f07a Merge pull request #1188 from corona10/hex_format
builtin: Fix hex format of ascii
2019-07-31 13:20:09 +02:00
Dong-hee Na
fafeed1450 ascii: Apply codereview 2019-07-31 19:44:06 +09:00
Dong-hee Na
5bfa4cec7c ascii: Improve test 2019-07-31 16:34:00 +09:00
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
Noah
c8ce3bded2 Merge pull request #1187 from RustPython/dict-keying
Implement dictionary indexing by trait.
2019-07-29 08:05:48 -05:00
Windel Bouwman
42dca4433a Implement do_eq for String impl of DictKey. Also move get_item_option to dict type. 2019-07-28 21:39:21 +02:00
Dong-hee Na
4ee80a3d42 builtin: Fix hex format of ascii 2019-07-29 01:23:40 +09:00
Windel Bouwman
38d9f4087e Implement dictionary indexing by trait. 2019-07-28 13:43:14 +02:00
Windel Bouwman
50dd93db1e Merge pull request #1182 from RustPython/example1
Add support for star expression in tuple.
2019-07-28 10:01:51 +02:00
Windel Bouwman
57ef8b306e Merge pull request #1181 from corona10/builtin_ascii
builtins: Implement ascii builtin API
2019-07-28 10:00:50 +02:00
Windel Bouwman
c786109119 Merge pull request #1186 from RustPython/coolreader18/cargo-sweep
Use cargo-sweep to manage travis caches
2019-07-28 09:47:49 +02:00
coolreader18
3c98e6da25 Use cargo-sweep to manage cargo caches 2019-07-27 16:19:35 -05:00
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
1024281014 Add support for star expression in tuple. 2019-07-27 13:10:55 +02:00
Dong-hee Na
aecb1510de builtins: Implement ascii builtin API 2019-07-27 17:44:41 +09: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