Commit Graph

4892 Commits

Author SHA1 Message Date
Aviv Palivoda
5b4dd0701b Add snippets tests to github actions 2020-01-25 12:17:05 +02:00
Aviv Palivoda
f5531555f7 Add github actions CI 2020-01-25 12:05:11 +02:00
Noah
69830bb44d Merge pull request #1675 from RustPython/coolreader18/demo-improvements
Demo improvements
2020-01-22 22:46:02 -06:00
Jeong YunWon
9e936eb7c5 Merge pull request #1688 from RustPython/coolreader18/pyimpl-trait
Allow #[pyimpl] on traits
2020-01-23 01:01:40 +09:00
Noah
5b02a96192 Merge pull request #1696 from alvinlindstam/string-performance
String performance
2020-01-20 13:06:39 -06:00
coolreader18
049df44fe3 Fix default import from raw-loader 2020-01-19 23:08:00 -06:00
Alvin Lindstam
98d942ac7f Add string iteration benchmark 2020-01-19 16:28:41 +01:00
Alvin Lindstam
9203eda6c6 Skip string char traversal on each next in python str iterator
Previosly, each call to `__next__` on a str iterator did a `chars().count()`
to find the length of the full string and traversed the chars of the string
until the expected char position from the start.

This approach ignores the char position and only cares about the byte position,
allowing it to only act on the specific part of the string binary it's interested
in.
2020-01-19 15:49:14 +01:00
Alvin Lindstam
59666f7e0f Make string iterator test include non-ascii 2020-01-19 15:48:43 +01:00
Jeong YunWon
655834d578 Merge pull request #1678 from youknowone/object-cmp
__eq__ and __ne__ compatibility
2020-01-18 19:26:45 +09:00
Aviv Palivoda
296f298e73 Merge pull request #1695 from palaviv/test-dict
Add Cpython test_dict
2020-01-18 11:08:03 +02:00
Aviv Palivoda
8fa009ed3d Merge pull request #1694 from palaviv/int-pos-fix
objint __pos__ returns Int object
2020-01-18 11:07:38 +02:00
Aviv Palivoda
f6e6ef0fe1 objint __pos__ returns Int object
This fixes test_bool.test_math
2020-01-17 19:17:14 +02:00
Aviv Palivoda
dd8a0412b0 Mark failed and error tests for dict 2020-01-17 18:02:14 +02:00
Aviv Palivoda
bdc627ef44 Add CPython test_dict.py 2020-01-17 17:58:51 +02:00
Aviv Palivoda
8885e5fed9 Merge pull request #1693 from syrusakbary/patch-1
Added WAPM badge
2020-01-17 16:17:13 +02:00
Syrus Akbary
5063dd30fa Added WAPM badge 2020-01-17 12:12:29 +01:00
Jeong YunWon
7f191aadcc Merge pull request #1692 from alvinlindstam/os-x-tests
Improve test check for windows platform
2020-01-16 20:11:51 +09:00
coolreader18
1c3b4d2fc4 Remove 'regex' from parser/Cargo.toml, as we don't use it 2020-01-15 20:19:11 -06:00
Alvin Lindstam
7c57085281 Improve test check for windows platform
`'win' in sys.platform` returns true on MacOS, since it's platform string
is `"darwin"`. This was likely not intended, since the check seems to be testing for
a windows platform, and was the only test error on a clean master build for me.
2020-01-15 21:59:27 +01:00
Jeong YunWon
7f9a8c1921 Fix clippy error 2020-01-16 00:29:32 +09:00
coolreader18
538e492dda Add #[pyimpl(with(...))] 2020-01-14 23:56:21 -06:00
coolreader18
8a71c7e45d Allow applying pyimpl to a trait 2020-01-14 23:22:50 -06:00
coolreader18
44ed27e8e7 Update to newest syn 2020-01-14 23:22:49 -06:00
Jeong YunWon
c07e9323bc Merge pull request #1684 from youknowone/refactor-things
Refactor small things
2020-01-15 14:13:02 +09:00
Jeong YunWon
bf0b4dcfdd Hide PyFunction members by moving methods to objfunction 2020-01-15 11:51:59 +09:00
Jeong YunWon
30fc460136 PyClassImpl for PyFunction 2020-01-15 11:51:59 +09:00
Jeong YunWon
44a17012d6 PyStaticMethodRef -> PyStaticMethod 2020-01-15 11:51:58 +09:00
Jeong YunWon
0b1050e8c1 cleanup PyFunction a little bit 2020-01-15 11:51:29 +09:00
Jeong YunWon
e5b91c25a8 Reduce &String usage 2020-01-15 11:51:29 +09:00
Jeong YunWon
582e5dfca9 cleanup tuple 2020-01-15 11:51:29 +09:00
Jeong YunWon
1fe526bb66 hide member of classmethod 2020-01-15 11:51:29 +09:00
Jeong YunWon
d31d0c6510 Merge pull request #1685 from youknowone/slot-name
pyslot guess slot name from function name
2020-01-15 11:51:16 +09:00
Jeong YunWon
3ade61a641 Merge pull request #1686 from RustPython/coolreader18/redox-fix
Fix compilation on Redox
2020-01-15 11:08:02 +09:00
Jeong YunWon
8c7e01b4f6 pyslot guess slot name from function name 2020-01-15 10:28:39 +09:00
Jeong YunWon
5c6331174a Merge pull request #1680 from youknowone/use-slot
Use slot for descriptor get
2020-01-15 10:25:23 +09:00
coolreader18
ddf5c9aade Compile for redox 2020-01-14 19:07:05 -06:00
Jeong YunWon
4c2e34a523 Use slot descriptor get if it exists 2020-01-14 15:37:26 +09:00
Jeong YunWon
cdc39701d8 Add PyBuiltinDescriptor for descriptors 2020-01-14 15:37:15 +09:00
Jeong YunWon
d812d4aab1 Merge pull request #1683 from RustPython/coolreader18/improve-derive-diagnostics
Improve rustpython-derive diagnostics
2020-01-14 14:34:42 +09:00
Jeong YunWon
9bad20716f Merge pull request #1670 from youknowone/bytes
Refactor bytes/bytearray/byteinner
2020-01-14 14:09:08 +09:00
coolreader18
b29707cda4 Say what file failed to compile in py_compile_bytecode 2020-01-13 19:56:18 -06:00
Noah
80f4f911db Point to the specific function that's not IntoPyFunc for pyimpl 2020-01-13 11:42:31 -06:00
Noah
c9a78bc025 Put diagnostics inside generated macro for result_to_tokens_expr 2020-01-13 11:41:59 -06:00
Noah
468f7ba42a Clarify that the compile error is for python code in py_compile_bytecode 2020-01-13 11:41:20 -06:00
Noah
e10a8b282d Use new_function for nextafter to fix CI 2020-01-13 11:01:44 -06:00
Jeong YunWon
c4d1ad346b Merge pull request #1679 from corona10/math_nextafter
math: Implement math.nextafter
2020-01-13 20:18:16 +09:00
coolreader18
6feb0d7401 Fix contest 2020-01-12 21:57:58 -06:00
coolreader18
22653ac373 Add clean-webpack-plugin 2020-01-12 21:55:43 -06:00
coolreader18
53be1a07b5 Improve WASM testing and CI 2020-01-12 21:55:43 -06:00