coolreader18
946103bca8
Merge branch 'master' into coolreader18/wasm-browser-dom
2019-03-23 20:12:26 -05:00
ben
6fa059fd6c
Make PyObject.typ a PyClassRef
2019-03-24 10:51:52 +13:00
Joey
18ed00a653
Range cleanups
2019-03-23 12:48:37 -07:00
coolreader18
9050799cc4
Merge branch 'master' into coolreader18/wasm-browser-dom
2019-03-23 13:22:07 -05:00
coolreader18
a830d8e131
Add PyDocument and PyElement
2019-03-23 09:36:15 -05:00
ben
c1d5ce715f
Change isinstance/issubclass to accept PyClassRef instead of PyCObject.
...
Also changed PyValue::class to return a PyClassRef.
2019-03-23 19:32:31 +13:00
Adam Kelly
66adc25201
objtype - replace AttributeProtocol access with class_get_attr.
2019-03-22 19:47:51 +00:00
coolreader18
a9051ab462
Convert all &mut VirtualMachine to &VirtualMachine
2019-03-22 01:48:14 -05:00
coolreader18
f78f558404
Fix clippy lints
2019-03-19 10:52:39 -05:00
Joey
7cb889d42c
Rebase against #693 and simplify
2019-03-16 16:38:28 -07:00
Joey
e83686cf3c
Add clarifying note to KwArgs docs
2019-03-16 16:29:09 -07:00
Joey
d3b9714754
Convert print() builtin to new args style
2019-03-16 16:29:09 -07:00
Joey
7be5b8dafe
FromArgs: use PyFuncArgs instead of iterator
2019-03-16 16:07:59 -07:00
Joey
60ed1bd0a7
Handle unexpected positional argument in KwArgs
2019-03-16 10:18:46 -07:00
Joey
7bfd2e6e84
Move function items out of pyobject module
2019-03-15 21:27:11 -07:00
Joey Hain
45bc8c8f7a
Move PyRef to pyobject module
2019-03-10 13:01:46 -07:00
ben
7d01323e09
Merge branch 'master' into property_refactor
...
# Conflicts:
# vm/src/function.rs
2019-03-10 09:06:21 +13:00
ben
0ec034df51
Change property.__new__ to use new style function and construct
...
PyProperty
2019-03-09 14:07:42 +13:00
Adrian Wielgosik
10531191bb
Convert most tuple/list methods to new args style
2019-03-08 20:43:20 +01:00
Adrian Wielgosik
1601da0692
Migrate PyFloat to new method style
2019-03-07 19:47:16 +01:00
Adrian Wielgosik
e4e8b135ef
Convert a bunch of string methods to new-args-style.
...
Mostly skipped the ones dealing with ints.
2019-03-05 20:41:02 +01:00
Joey Hain
4e822ed6cd
Improve error messages and add docs for new native function machinery
2019-03-03 12:52:51 -08:00
Joey Hain
7f75e3ee8a
Significant improvements to new function definition style
...
- PyRef<T> type for accepting references to payloads.
- Args<T> type for consuming remaining positional args
(mirrors python `*args`).
- KwArgs<T> type for consuming remaining keyword args
(mirrors python `*kwargs`).
- OptArg<T> type for consuming remaining keyword args
(no python code equivalent, only possible in native functions like in cpython).
- PyIterable<T> for accepting an iterator over a sequence of Ts.
- Arity checking (but TypeError messages need work)
2019-02-27 19:53:20 -08:00