Aviv Palivoda
f1af6b1f40
Include _bootstrap.py as str
2019-06-10 19:18:32 +03:00
Aviv Palivoda
7ff59b27d7
Add _bootsrap.py as frozen module
2019-06-10 19:18:32 +03:00
Aviv Palivoda
a38f205f0e
Add support for frozen modules
2019-05-25 11:13:25 +03:00
coolreader18
15d2a3d318
Merge pull request #973 from sanxiyn/remove-extern-crate
...
Remove extern crate unneeded for Rust 2018
2019-05-13 23:51:37 -05:00
Seo Sanghyeon
189bf171ab
Remove extern crate unneeded for Rust 2018
2019-05-14 12:24:44 +09:00
Jeong YunWon
2c77dc208f
Add float.__hash__
2019-05-13 01:09:51 +09:00
coolreader18
08babef619
Remove the __inside_vm hack for procedural macros
2019-04-15 20:24:16 -05:00
Windel Bouwman
b1a95f669f
Initial version of symbol table builder.
2019-04-08 17:02:27 +02:00
Adam Kelly
b943f4a4bb
Historic real proper dictionary support.
2019-04-05 09:50:31 +01:00
coolreader18
f11f04da70
Split rustpython_derive into multiple files
2019-03-30 18:43:31 -05:00
coolreader18
ff85838556
Add #[py_class] attribute proc macro
2019-03-29 00:16:34 -05:00
coolreader18
33b99b203f
Some minor things
2019-03-19 20:34:35 -05:00
coolreader18
f78f558404
Fix clippy lints
2019-03-19 10:52:39 -05:00
Joey
18b57188ba
Add a custom derive for FromArgs
2019-03-16 17:13:23 -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
Joey Hain
3478251d40
Merge remote-tracking branch 'origin/master' into joey/fun-with-functions
...
Conflicts:
vm/src/lib.rs
vm/src/pyobject.rs
wasm/lib/src/vm_class.rs
2019-03-02 04:04:22 -08:00
Windel Bouwman
c8afeae0f7
Merge pull request #577 from RustPython/kill_scope_variant
...
Remove Scope variant from PyObject.
2019-03-02 10:30:41 +01:00
coolreader18
f364ea5943
Fix a bunch of clippy lints
2019-03-01 18:41:45 -06:00
Adam Kelly
9d6e9ac889
Move Scope from pyobject to frame.
2019-03-01 20:49:17 +00: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
coolreader18
a86069d9f2
Store the WASM id in the VirtualMachine, add a (broken) fetch builtin
2019-02-16 23:41:41 -06:00
holygits
4453c3e561
Create error types for parser and compiler
...
Pass through locations and tokens in ParseError
2019-02-14 10:21:21 +13:00
Joey Hain
38c0ea06e5
Support float(<str>) and float(<bytes>)
2019-02-11 19:40:55 -08:00
ben
5b637385ea
Fixed #191 , fixes recursive repr() for the standard collections
2019-02-10 13:22:03 +13:00
Joey Hain
b0a2f6f87d
Add range.index
2019-02-05 13:34:54 -08:00
Gitea
b726e675ff
Add format builtin and String formatting stuff.
...
This includes everything needed to call str.format with integers
as positional and keyword parameters.
2018-12-15 19:46:09 -05:00
yodalee
04548db1e0
add implementation of special math function
...
function include: erf, erfc, gamma, lgamma
use package statrs' implementation
2018-11-25 20:10:34 +08:00
Windel Bouwman
b7a0b0f2f3
Removal of ToRust trait to prevent incorrect str representation
2018-11-02 20:27:05 +01:00
Windel Bouwman
f6cced5d65
Change integer type into bigint
2018-10-30 21:01:31 +01:00
Windel Bouwman
1e3b45ee0d
Add complex basic type
2018-10-29 21:55:58 +01:00
Windel Bouwman
ce91a25106
Added -m option to main program.
2018-10-13 11:17:09 +02:00
Almar Klein
22a961075b
Improve behavior wrt errors during import
2018-10-10 13:32:47 +02:00
Windel Bouwman
2d7b0e0d4b
Moved objbool into obj folder
2018-09-29 09:38:07 +02:00
Windel Bouwman
40cf7f4579
Move more objects to obj folder
2018-09-01 10:00:55 +02:00
Windel Bouwman
f453c749ec
Move builtin types to own directory
2018-08-31 20:31:25 +02:00
Windel Bouwman
072a5182e5
Some style issues and add __len__ to str
2018-08-29 20:17:44 +02:00
Windel Bouwman
2f3947808e
Change print to use __str__ and add __str__ to object
2018-08-29 19:25:12 +02:00
Daniel Watkins
2cecd362fe
Add support for defaults to bytecode, compiler and VM
2018-08-29 08:58:20 -04:00
Windel Bouwman
819b88efb6
Move to more usage of type checking by typ
2018-08-27 22:40:29 +02:00
Daniel Watkins
113f9be403
Move arg_check macro to a shared module
...
This allows it to be used by more than just the builtins module.
2018-08-26 21:55:35 -04:00
Daniel Watkins
7a80c04725
Basic json module implementation in rust
2018-08-26 15:10:39 -04:00
Windel Bouwman
f76472c00b
Add some base exceptions
2018-08-24 23:36:26 +02:00
Windel Bouwman
583818378b
Add BaseException class
2018-08-22 20:29:47 +02:00
Adam Kelly
29133dd299
Rename objclass -> objobject.
2018-08-20 19:54:19 +01:00
Adam Kelly
cb3bd23cb1
Add modules for class and function objects.
2018-08-12 18:27:03 +01:00
Daniel Watkins
2a90df80c8
Run cargo fmt to format the entire project
2018-08-10 20:23:15 -04:00
Daniel Watkins
225f296018
Refactor objlist and objtuple get_item in to objsequence
2018-08-08 09:19:04 -04:00
Daniel Watkins
da55a6addb
Refactor shared list/tuple functions to objsequence.rs
2018-08-06 15:08:45 -04:00
Windel Bouwman
f7aa1dd822
Remove executor trait since we can have mutual includes
2018-08-01 22:22:19 +02:00