Commit Graph

4060 Commits

Author SHA1 Message Date
Aviv Palivoda
1675f05313 Merge pull request #1305 from RustPython/fix-try-else
Repair try-except-else syntax. Fixes #1300.
2019-08-19 18:50:04 +03:00
Aviv Palivoda
2ea516c43e Merge pull request #1307 from RustPython/cleanup-legacy
Remove unused CPython to bytecode compiler.
2019-08-19 18:48:16 +03:00
Aviv Palivoda
401de9ad97 Merge pull request #1308 from RustPython/fix-todos
Add support for ascii formatting of f-strings.
2019-08-19 18:47:44 +03:00
Daehee Kim
a010bc9b95 Add tests for json_load and json_loads of bytes and bytearray 2019-08-20 00:42:49 +09:00
suewoon
44806620fc Put os_chmod under #[cfg(unix)] attribute 2019-08-20 00:32:21 +09:00
suewoon
648d7e3250 Add os.chomd 2019-08-20 00:31:15 +09:00
Daehee Kim
04ac07126d Modify json.loads for byte-like object. 2019-08-20 00:10:05 +09:00
Windel Bouwman
291ffd2671 Add support for ascii formatting of f-strings. 2019-08-19 11:27:13 +02:00
Windel Bouwman
c8f24128a7 Remove unused CPython to bytecode compiler. 2019-08-19 09:41:04 +02:00
Jeong YunWon
35ce9c041e datetime test for rustpython 2019-08-19 16:26:00 +09:00
CPython 3.4.9
1c140fb6a1 test_datetime.py from CPython 3.4.9 2019-08-19 16:26:00 +09:00
Jeong YunWon
785d19a46e unittest compatible assertRaises 2019-08-19 16:26:00 +09:00
CPython 3.7.4
531a964f33 datetime.py from CPython 3.7.4 2019-08-19 16:26:00 +09:00
Windel Bouwman
19112cef49 Require at least finally or except on a try statement. 2019-08-19 09:00:08 +02:00
Windel Bouwman
2dab55864c Merge pull request #1301 from youknowone/isdst
Add isdst and slice support to time.struct_time
2019-08-19 08:48:59 +02:00
Windel Bouwman
3ed71308bf Repair try-except-else syntax. Fixes #1300. 2019-08-19 08:37:07 +02:00
Jeong YunWon
32861cee46 Add slice support for PyTimeStructure 2019-08-19 14:43:00 +09:00
Jeong YunWon
82d6fc81ff PySliceableSequence return type can be non-Self sequence 2019-08-19 14:43:00 +09:00
Jeong YunWon
27ab455e46 Add time.struct_time.isdst 2019-08-19 06:00:49 +09:00
Noah
14bc2a260b Merge pull request #1299 from youknowone/fix-negative-mod
Fix int.__mod__ or negative
2019-08-18 15:34:12 -05:00
Jeong YunWon
4a30090311 Fix int.__mod__ or negative 2019-08-19 02:57:38 +09:00
Windel Bouwman
6ac6e56b1e Merge branch 'master' of github.com:RustPython/RustPython into clippy-warnings 2019-08-18 16:36:15 +02:00
Windel Bouwman
eb3771ebff Add Free enum variant to the symbol scope to be able to distuingish between true local and free variables. 2019-08-18 12:12:27 +02:00
Windel Bouwman
03606d5f33 Merge pull request #1296 from corona10/gh-1295
use getgroups(2) for apple macos.
2019-08-18 11:12:12 +02:00
Dong-hee Na
efac6de173 .travis.yml: Updage job cache 2019-08-18 17:10:30 +09:00
Dong-hee Na
ea5efdbcde use getgroups(2) for apple macos
Although nix-rust/nix mentioned that this feature should be implemented
based on opendirectoryd, CPython implemented it based on getgroups(2)
for apple macOS.
So I ported the code from nix-rust/nix and it works well.

ref0: 500036a206/src/unistd.rs (L1320)
ref1: c4cacc8c5e/Modules/posixmodule.c (L6852)
2019-08-18 17:10:30 +09:00
Windel Bouwman
edf647160f Fix clippy warnings. Add proper names to symboltables. 2019-08-18 10:03:00 +02:00
Windel Bouwman
5e31459514 Merge pull request #1297 from mpajkowski/math_modf
Add math.modf
2019-08-18 09:14:52 +02:00
Windel Bouwman
f229831629 Merge pull request #1251 from RustPython/scope-detection
Extend AST python module. Add idea for scope detection.
2019-08-18 09:14:20 +02:00
Windel Bouwman
4ab043ddf5 Merge pull request #1291 from RustPython/get-item-performance
Increase performance for get_item_option.
2019-08-18 09:12:46 +02:00
Marcin Pajkowski
650a9b2255 Add tests for math.modf 2019-08-17 23:15:12 +02:00
Marcin Pajkowski
c4db8d6538 Add math.modf function 2019-08-17 23:14:53 +02:00
Windel Bouwman
f9511a6636 Merge pull request #1294 from corona10/itertools_filterfalse
itertools: Implement itertools.filterfalse
2019-08-17 17:18:21 +02:00
Windel Bouwman
b6f522d917 Allow &str to be used a dictionary key. 2019-08-17 17:11:23 +02:00
Dong-hee Na
6dbc6b437b itertools: Implement itertools.filterfalse 2019-08-17 19:32:49 +09:00
yjhmelody
05adf7fa30 update
Signed-off-by: yjhmelody <465402634@qq.com>
2019-08-17 17:50:34 +08:00
yjhmelody
f288e7c0b2 update
Signed-off-by: yjhmelody <465402634@qq.com>
2019-08-17 17:14:10 +08:00
yjhmelody
11ba8468ff resolve conflicts 2019-08-17 16:57:10 +08:00
yjhmelody
bb9945af61 remove FileCreationFlags
Signed-off-by: yjhmelody <465402634@qq.com>
2019-08-17 16:47:35 +08:00
Windel Bouwman
e3344df00e Merge pull request #1289 from Lynskylate/add-super-str
Add __str__ __repr__ for super
2019-08-17 09:47:14 +02:00
Aviv Palivoda
d3e9f936d9 Merge pull request #1293 from RustPython/coolreader18/os-access-simplification
Simplify os.access a bit
2019-08-17 10:34:37 +03:00
coolreader18
ebeda0de64 Simplify os.access a bit 2019-08-16 23:18:40 -05:00
Noah
f37c34416f Merge pull request #1292 from mpajkowski/bench-outcome
Add nicer test names for benchmarks
2019-08-16 18:39:09 -05:00
Marcin Pajkowski
de5b085b73 Add nicer test names for benchmarks 2019-08-17 00:27:58 +02:00
Noah
21754a0000 Merge pull request #1277 from Nimpruda/implement-os-access
[WIP]Implement os access
2019-08-16 16:59:08 -05:00
Khalil HADJI
c9112d851b Removed forgottent derive Debug 2019-08-16 23:18:12 +02:00
Khalil HADJI
598d844d34 cargo clippy 2019-08-16 23:16:07 +02:00
Khalil HADJI
69aa5d00d0 Working version without F_OK 2019-08-16 23:14:08 +02:00
Windel Bouwman
d1f4412c09 Increase performance for get_item_option. 2019-08-16 22:07:54 +02:00
Windel Bouwman
1f1a29cff2 Merge pull request #1288 from Writtic/module_ldexp
Update ldexp module of math
2019-08-16 20:50:05 +02:00