Commit Graph

1131 Commits

Author SHA1 Message Date
Windel Bouwman
a400f6631c Improve lexing of numbers with underscores. 2019-08-11 09:29:21 +02:00
lynskylate
3775e04dcd Fix pyobject truth value 2019-08-09 21:05:58 +08:00
Windel Bouwman
fc8aba1b68 Merge pull request #1215 from RustPython/syntax-fixes
Add variable annotation syntax.
2019-08-09 11:22:55 +02:00
coolreader18
ed3b1973be Fix weird yield from interpreter bug 2019-08-08 17:41:39 -05:00
Aviv Palivoda
03311b777a Change echo output for windows 2019-08-08 17:33:39 +03:00
Aviv Palivoda
bc8521dd54 Remove -n option in echo 2019-08-08 17:33:39 +03:00
Aviv Palivoda
b08c70b4e7 Support redirection 2019-08-08 17:32:24 +03:00
Aviv Palivoda
72143a6a5d Fix Popen.wait 2019-08-08 17:32:24 +03:00
Aviv Palivoda
6486780025 Add subprocess module 2019-08-08 17:32:24 +03:00
Aviv Palivoda
d63839a5ea Merge pull request #1205 from Lynskylate/impl-socket-module
Extend Socket module
2019-08-08 17:30:02 +03:00
Windel Bouwman
2fdfcb96a5 Add parser support for async for loop. Add yield expression inside parentheses. 2019-08-07 20:11:27 +02:00
yf
7b9d54f77a Add math.gcd 2019-08-08 01:51:46 +08:00
Windel Bouwman
1da260a299 Merge pull request #1210 from ypyf/ttyname
Add os.ttyname
2019-08-07 17:20:20 +02:00
Windel Bouwman
c5e7fbab11 Properly fill the __annotations__ dictionary. 2019-08-07 16:13:12 +02:00
Windel Bouwman
ded9d5ba5b Add variable annotation syntax. Simplify grammar for comprehensions. Add capital J suffix for complex numbers. 2019-08-07 15:31:24 +02:00
Windel Bouwman
de89349d8d Fix import syntax to require at least one imported symbol. Fixes #1211. 2019-08-07 13:00:34 +02:00
yf
b672647a4a Fix tests 2019-08-07 11:34:28 +08:00
yf
0f3fbb401e Add os.ttyname 2019-08-07 10:16:38 +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
Windel Bouwman
2613ee417d Merge pull request #1189 from palaviv/signal
signal support
2019-08-04 20:29:47 +02:00
Windel Bouwman
6fc7027230 Merge pull request #1199 from RustPython/set-star-expr
Add star expression in set literals.
2019-08-04 19:47:34 +02:00
Windel Bouwman
302073274a Merge pull request #1197 from RustPython/float-lexing
Fix lexing of 1else.
2019-08-04 19:43:00 +02:00
lynskylate
5f4c8c65fa Impl gethostname sethostname inet_aton 2019-08-05 00:16:05 +08:00
yf
18bbe94753 Add os.openpty 2019-08-04 18:26:15 +08:00
Aviv Palivoda
f24c6daeb0 Add some windows test to signal 2019-08-03 10:37:56 +03:00
Windel Bouwman
19dd58cbad Add star expression in set literals. 2019-08-02 20:55:37 +02:00
Windel Bouwman
b2d0729ca8 Fix lexing of 1else. 2019-08-02 19:08:59 +02:00
Aviv Palivoda
f3b4b28ec2 SIGINT not defined on windows 2019-08-02 09:46:19 +03:00
Aviv Palivoda
48da527295 Test signal only on unix 2019-08-02 09:46:19 +03:00
Aviv Palivoda
785b5d8af7 Improve signal test 2019-08-02 09:45:39 +03:00
Aviv Palivoda
c1e07999cf Add test for signal 2019-08-02 09:45:39 +03: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
Dong-hee Na
5bfa4cec7c ascii: Improve test 2019-07-31 16:34:00 +09: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
Dong-hee Na
4ee80a3d42 builtin: Fix hex format of ascii 2019-07-29 01:23:40 +09: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
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
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
Noah
0e95f512d7 Merge pull request #1173 from corona10/seekable
stdlib.io: Implement seekable()
2019-07-24 10:15:42 -04: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
Askaholic
86a1ef2ab8 Add numerator/denominator tests to snippets 2019-07-23 12:42:45 -08:00
Christian Clauss
b174453677 Travis CI: Lint Python code with flake8
These tests focus on Python syntax errors and undefined names.
2019-07-23 12:36:22 +02:00