Commit Graph

4859 Commits

Author SHA1 Message Date
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
Jeong YunWon
943a1488b0 fix bytes for wasm 2020-01-13 12:30:11 +09:00
Jeong YunWon
0b9bee9973 use Vec::with_capaciity for bytes methods 2020-01-13 11:20:42 +09:00
Jeong YunWon
eb4904b4ae cleanup bytes with Into<Vec<u8>> 2020-01-13 11:20:42 +09:00
Jeong YunWon
a11ccc462a refactor byteinner cmp 2020-01-13 11:20:42 +09:00
Jeong YunWon
1077744ed2 cleanup memoryview 2020-01-13 11:20:42 +09:00
Jeong YunWon
36ebb048ef cleanup bytes 2020-01-13 11:20:42 +09:00
Jeong YunWon
c6e148efcf cleanup bytearray 2020-01-13 11:20:42 +09:00
Jeong YunWon
86c098b2a8 Merge pull request #1674 from youknowone/unbound-method
PyBuiltinMethod for built-in method using bulitin function
2020-01-13 11:18:50 +09:00
Noah
1e467a6a8b Merge pull request #1681 from davidbrochart/update_readme
conda install
2020-01-12 13:46:04 -06:00
David Brochart
a6eeb8018f conda install 2020-01-12 19:17:29 +01:00
Dong-hee Na
1de9b1a41d math: Implement math.nextafter 2020-01-13 02:03:02 +09:00
Jeong YunWon
947c4fe703 Merge pull request #1608 from cclauss/patch-2
Travis CI: Matrix -> jobs and Python 3.6 to 3.8
2020-01-12 23:58:55 +09:00
Jeong YunWon
b74d5e01ee Add PyBuiltinMethod 2020-01-12 18:39:48 +09:00
Jeong YunWon
70b63eb758 new_rustfunc -> new_function & new_method to distinguish bindable functions 2020-01-12 18:39:16 +09:00
Jeong YunWon
78b268ae0b Remove unbound methods from modules 2020-01-12 18:34:44 +09:00
Jeong YunWon
5c87571863 Remove public field from PyBuiltinFunction 2020-01-12 18:34:44 +09:00
Jeong YunWon
24289964d3 Merge pull request #1649 from youknowone/func-vm
Allow to skip VM param for IntoPyNativeFunc functions
2020-01-12 18:24:01 +09:00
coolreader18
9fdf54f965 quickfix Lib/test bool test_sane_len 2020-01-12 00:08:01 -06:00
coolreader18
8f036b3269 quickfix Lib/test list test_extend 2020-01-12 00:06:51 -06:00
Noah
bb456963e4 Merge pull request #1668 from RustPython/coolreader18/exc-ser
Make PyBaseExceptionRef serializable and use it to improve WASM errors
2020-01-11 17:14:43 -06:00
coolreader18
c5264c942d Update wasm-bindgen, export PyError to JS 2020-01-11 12:43:06 -06:00
Noah
bc0baa484a Merge pull request #1669 from RustPython/coolreader18/no-proc-macro-hack
Don't use proc-macro-hack; use our own slightly-less-hacky hack
2020-01-10 14:14:20 -06:00
Noah
896f3c4428 Merge pull request #1666 from RustPython/coolreader18/length_hint
Add __length_hint__ support for iterators
2020-01-10 12:25:36 -06:00
coolreader18
a26e5f23f8 Add dict iterator __length_hint__ 2020-01-10 18:24:23 +00:00
coolreader18
098393d4d6 Add __length_hint__ to a bunch of iterators 2020-01-10 18:24:23 +00:00
coolreader18
c65dc336f5 Add _operator module 2020-01-10 18:24:22 +00:00
coolreader18
fc3ac169d0 Add length_hint functionality 2020-01-10 18:24:22 +00:00
coolreader18
6b537f15e5 Add objsequence::{opt_,}len 2020-01-10 18:24:22 +00:00