Commit Graph

2421 Commits

Author SHA1 Message Date
lynskylate
fccb0d2ade Disable socket import on wasm 2019-08-08 00:16:27 +08:00
lynskylate
c9c580d2fe Add inet_ntoa and windows gethostname 2019-08-07 01:28:17 +08:00
lynskylate
4e969e9db7 Remove unsafe code 2019-08-05 07:10:28 +08:00
lynskylate
14c6b4028e Specific platform 2019-08-05 00:57:04 +08:00
lynskylate
5f4c8c65fa Impl gethostname sethostname inet_aton 2019-08-05 00:16:05 +08:00
Aviv Palivoda
d7e19da0c0 Merge pull request #1202 from RustPython/coolreader18/fix-redox
Fix redox with new os functions
2019-08-04 18:51:25 +03:00
yf
2e51657eaa fmt code 2019-08-04 19:11:33 +08:00
yf
18bbe94753 Add os.openpty 2019-08-04 18:26:15 +08:00
coolreader18
d44a208da9 Fix redox with new os functions 2019-08-03 17:13:32 -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
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
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
57ef8b306e Merge pull request #1181 from corona10/builtin_ascii
builtins: Implement ascii builtin API
2019-07-28 10:00:50 +02:00
coolreader18
a72ef1e365 Add frozen package support 2019-07-27 14:27:29 -05: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
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
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
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
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
Marcin Pajkowski
db8eb7b8c3 Implement str.__iter__ and str.__next__ 2019-07-24 03:17:05 +02: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
Aviv Palivoda
7226c925d2 Add hashmap macro to __exports 2019-07-20 22:25:46 +03:00
Windel Bouwman
d6c19c1c6a Add location to expressions. Change symboltable to use flags for symbols. 2019-07-20 20:44:38 +02:00