Windel Bouwman
|
a9bc374fc0
|
Implement dir on object
|
2018-09-02 20:44:46 +02:00 |
|
Daniel Watkins
|
91a6989515
|
Remove completed TODO
|
2018-09-02 14:13:02 -04:00 |
|
Daniel Watkins
|
0e33aa397a
|
Create objects with correct types in json.rs
Fixes #120.
|
2018-09-02 14:13:02 -04:00 |
|
Daniel Watkins
|
a4a91f14d4
|
Convert PyObjectSerializer to store a PyContext
We don't actually need anything from the VirtualMachine other than the
context, so just use that directly.
|
2018-09-02 14:13:02 -04:00 |
|
Daniel Watkins
|
82226bfea3
|
Merge pull request #127 from RustPython/objtyp
Objtyp
|
2018-09-02 14:11:03 -04:00 |
|
Windel Bouwman
|
1a2a4adcef
|
Lets delete some clones
|
2018-09-02 19:41:37 +02:00 |
|
Windel Bouwman
|
3bf48b1c2a
|
Merge branch 'master' of https://github.com/RustPython/RustPython into objtyp
|
2018-09-02 19:34:58 +02:00 |
|
Windel Bouwman
|
f7cae1e9db
|
Change signature of isinstance to take a reference to a python reference
|
2018-09-02 19:34:54 +02:00 |
|
Windel Bouwman
|
ab6c517091
|
Merge pull request #123 from RustPython/repr
Implement Repr
|
2018-09-02 19:33:49 +02:00 |
|
Adam Kelly
|
a7af78be54
|
Merge branch 'master' into repr
|
2018-09-02 18:11:37 +01:00 |
|
Windel Bouwman
|
f8016dc38e
|
Merge pull request #124 from RustPython/bools_are_ints
Bool is a subclass of int, so doesn't need a special kind.
|
2018-09-02 18:38:04 +02:00 |
|
Adam Kelly
|
04b73d4628
|
Bool is a subclass of int, so doesn't need a special kind.
|
2018-09-02 14:10:36 +01:00 |
|
Adam Kelly
|
8816e5d362
|
Implement more complete version of str_repr.
|
2018-09-02 13:05:03 +01:00 |
|
Adam Kelly
|
993634269e
|
PrintExpr should print the repr.
|
2018-09-02 12:09:57 +01:00 |
|
Adam Kelly
|
7c3cd319b2
|
objbytes: str -> repr
|
2018-09-02 12:09:57 +01:00 |
|
Adam Kelly
|
7277e63a53
|
Add vm.to_repr and call for formatting list/tuple/dict elements.
|
2018-09-02 12:09:57 +01:00 |
|
Adam Kelly
|
70f6d73001
|
Add __repr__ to objstr.
|
2018-09-02 12:09:57 +01:00 |
|
Adam Kelly
|
c8d8528bff
|
object.__str__ delegates to __repr__.
|
2018-09-02 12:09:57 +01:00 |
|
cthulahoops
|
f42b8b114e
|
Merge pull request #121 from RustPython/objtyp
Improve traceback of exception
|
2018-09-02 12:01:24 +01:00 |
|
Windel Bouwman
|
972b77aefa
|
Merge pull request #122 from RustPython/int_new
Int new
|
2018-09-02 12:21:15 +02:00 |
|
Windel Bouwman
|
fd805cb2ce
|
Fix unittest
|
2018-09-02 12:18:03 +02:00 |
|
Adam Kelly
|
ec0eb47fc6
|
Add snippet to check that int.__init__ doesn't mutate int.
|
2018-09-02 10:59:42 +01:00 |
|
Adam Kelly
|
76344e5023
|
Add object.__init__
|
2018-09-02 10:57:30 +01:00 |
|
Windel Bouwman
|
8b3a95c562
|
Add code object name to traceback
|
2018-09-02 11:54:52 +02:00 |
|
Adam Kelly
|
e611533d02
|
Let getattribute fall through and attribute error on types with dicts.
|
2018-09-02 10:51:05 +01:00 |
|
Adam Kelly
|
e68dbf6705
|
Ints aren't mutable, change int.__init__ to int.__new__
|
2018-09-02 10:50:03 +01:00 |
|
Windel Bouwman
|
608a8eadee
|
Improve traceback of exception
|
2018-09-02 11:19:46 +02:00 |
|
Windel Bouwman
|
514fea8d3f
|
Merge pull request #119 from RustPython/equality
Equality
|
2018-09-02 10:12:09 +02:00 |
|
Adam Kelly
|
dd24727c0e
|
Use __eq__ methods inequality too.
|
2018-09-01 22:29:20 +01:00 |
|
Adam Kelly
|
dc021fd1f2
|
Json library produces invalid objects - commenting broken tests.
|
2018-09-01 21:54:19 +01:00 |
|
Adam Kelly
|
8d8816ce04
|
Merge branch 'master' into equality
|
2018-09-01 20:46:22 +01:00 |
|
Windel Bouwman
|
304c410412
|
Merge pull request #117 from RustPython/objtyp
Add bytes object class
|
2018-09-01 19:50:47 +02:00 |
|
Adam Kelly
|
811fc2e9c8
|
Fix objsequence bug - returns the wrong type when slicing.
|
2018-09-01 17:35:33 +01:00 |
|
Adam Kelly
|
86ea663317
|
Bug-fix - False formats as True.
|
2018-09-01 17:10:18 +01:00 |
|
Adam Kelly
|
8780d58857
|
Define __eq__ for lists and tuples.
|
2018-09-01 17:10:00 +01:00 |
|
Adam Kelly
|
28f8cdbda9
|
Define __eq__ for basic types.
|
2018-09-01 17:09:20 +01:00 |
|
Adam Kelly
|
c06c3efbd5
|
Switch vm _eq to use __eq__.
|
2018-09-01 17:08:05 +01:00 |
|
Adam Kelly
|
8c28e1e051
|
Call method needs &str not &String.
|
2018-09-01 15:02:39 +01:00 |
|
Windel Bouwman
|
bcf5e8acc9
|
Repair tuple get elements
|
2018-09-01 10:37:25 +02:00 |
|
Windel Bouwman
|
f563856dc4
|
Add some tuple class methods
|
2018-09-01 10:19:51 +02:00 |
|
Windel Bouwman
|
40cf7f4579
|
Move more objects to obj folder
|
2018-09-01 10:00:55 +02:00 |
|
Windel Bouwman
|
5cdd0ab7b8
|
Check list elements on int type
|
2018-09-01 09:54:58 +02:00 |
|
Windel Bouwman
|
999c6258e6
|
Merge branch 'master' of https://github.com/RustPython/RustPython into objtyp
|
2018-09-01 09:26:08 +02:00 |
|
Windel Bouwman
|
4132f3371e
|
Merge pull request #115 from OddBloke/kwargs
Implement kwargs in function calls
|
2018-09-01 08:45:44 +02:00 |
|
Windel Bouwman
|
e98b89aa07
|
Merge pull request #118 from OddBloke/none
Implement None == None
|
2018-09-01 08:42:49 +02:00 |
|
Daniel Watkins
|
bd12982b06
|
Implement None == None
Fixes #111
|
2018-08-31 18:35:00 -04:00 |
|
Daniel Watkins
|
4333ce07ef
|
kwarg_names should explicitly be strings so unwrap them directly
|
2018-08-31 16:52:04 -04:00 |
|
Daniel Watkins
|
e69d4542da
|
Convert PyFuncArgs.kwargs to a Vec
Instead of an Option<Vec>
|
2018-08-31 16:42:02 -04:00 |
|
Daniel Watkins
|
ad0d03b7cf
|
Fix and expand function parsing Rust tests
|
2018-08-31 16:23:25 -04:00 |
|
Windel Bouwman
|
f9538af3f2
|
Add bytes object class
|
2018-08-31 22:10:10 +02:00 |
|