Commit Graph

1181 Commits

Author SHA1 Message Date
Aviv Palivoda
3fae8ccfbc Handle unknown socket kind 2019-03-08 16:19:26 +02:00
Aviv Palivoda
40c10ab70a Handle unknown address family 2019-03-08 16:16:59 +02:00
Adam
50de0856ff Merge pull request #627 from RustPython/joey/list-tuple-any
Convert list and tuple to Any payload
2019-03-08 07:22:42 +00:00
Adam
d44129c53c Merge pull request #629 from coolreader18/anyrustvalue-debug
Have AnyRustValue actually format with its own Debug impl
2019-03-08 06:50:55 +00:00
Adam
9b317af586 Merge pull request #628 from coolreader18/objcode-any
Convert CodeObject payload to AnyRustValue
2019-03-08 06:50:26 +00:00
Adam
406ec46ce8 Merge pull request #619 from skinny121/class_property
Fix __class__
2019-03-08 06:47:55 +00:00
Adam
62a2344ba5 Merge pull request #621 from RustPython/pynone
Pynone
2019-03-08 06:47:27 +00:00
Joey
1bcbb28715 Convert list and tuple to Any payload 2019-03-07 21:10:43 -08:00
coolreader18
87a58786af Have AnyRustValue actually format with its own Debug impl 2019-03-07 22:20:10 -06:00
coolreader18
231ab682b9 Convert CodeObject payload to AnyRustValue 2019-03-07 22:18:23 -06:00
ben
4b1cd72355 Add todo for using PyClassRef when that lands 2019-03-08 17:04:32 +13:00
Joey
3495b04e1a Merge pull request #624 from adrian17/string
Convert most remaining string methods to implicit args
2019-03-07 18:33:12 -08:00
Adrian Wielgosik
b81a0a16d8 Convert most remaining string methods to implicit args
Also support out-of-range start/end params for some functions.
2019-03-07 20:39:57 +01:00
Adrian Wielgosik
1601da0692 Migrate PyFloat to new method style 2019-03-07 19:47:16 +01:00
Adam Kelly
488d9a5922 Merge branch 'master' into joey/int-any 2019-03-07 18:00:59 +00:00
Adam Kelly
adf473faf4 Use macro for NoneType. 2019-03-07 17:06:34 +00:00
Adam Kelly
289c86de67 Add extend_class! macro to neaten definitions of builtins types. 2019-03-07 17:06:11 +00:00
ben
f2f0f1d742 Remove debug statements 2019-03-08 06:03:13 +13:00
Adam Kelly
22811c0d56 Add PyNone and new style definition for NoneType methods. 2019-03-07 17:00:24 +00:00
Adam
ac6521564f Merge pull request #618 from RustPython/joey/optional-arg-2
Improvements to OptionalArg extractor
2019-03-07 08:22:21 +00:00
Adam
cae87f6384 Merge pull request #604 from RustPython/unit-payload
Unit payload
2019-03-07 08:17:43 +00:00
ben
720bec2f4f Convert __class__ descriptor to use new style functions 2019-03-07 20:47:31 +13:00
ben
9d03abf652 Move __class__ attribute to object to make it work in more situations 2019-03-07 20:47:31 +13:00
Joey
f9ab27296a Add conversions for all primitive ints 2019-03-06 20:38:52 -08:00
Joey
4a000c424c Improvements to OptionalArg extractor 2019-03-06 19:53:03 -08:00
Joey
ecc92ffe33 Convert int to Any payload 2019-03-06 19:25:54 -08:00
Windel Bouwman
d7f8961a12 Simplify some PyFuncArgs occurences. 2019-03-06 22:30:11 +01:00
Windel Bouwman
eacf2fecc9 Merge pull request #614 from RustPython/__dir__
Dir
2019-03-06 22:14:16 +01:00
Adam Kelly
e0c398cbd5 Eliminate NoPayload and just use a boxed (). 2019-03-06 20:57:03 +00:00
Adam Kelly
d769fa9317 Remove unused function. 2019-03-06 19:08:37 +00:00
Adam Kelly
10bbfc6a34 Implement dir via __dir__. 2019-03-06 19:05:18 +00:00
Adam Kelly
2a593aa100 Add objmodule. 2019-03-06 18:11:52 +00:00
Windel Bouwman
507a5b698f Merge pull request #611 from RustPython/pyargs
Less explicit PyFuncArgs is better.
2019-03-06 17:10:13 +01:00
Adam Kelly
a72af4d967 Remove None and NotImplemented payloads and replace with NoPayload 2019-03-06 16:04:26 +00:00
Adam Kelly
5afbfafa8b Remove special case for None payload from boolval. 2019-03-06 16:04:26 +00:00
Adam
03b419917e Merge pull request #591 from RustPython/re_module
Re module
2019-03-06 15:57:33 +00:00
Adam
11d0de24c3 Merge pull request #610 from RustPython/joey/impl-on-pyref
Improve readability of methods on PyRef<PyString>
2019-03-06 15:44:55 +00:00
Windel Bouwman
6d84b4d4e9 Less explicit PyFuncArgs is better. implemented a From trait for PyFuncArgs 2019-03-06 12:02:01 +01:00
Ryan Liddle
0000551c0e Merge pull request #608 from palaviv/dict-methods
Add dict.{keys,values,items}
2019-03-06 18:30:30 +11:00
Joey Hain
c68dbcc1ab Improve readability of methods on PyRef<PyString>
- Introduce PyStringRef type alias
- Impl python methods on PyStringRef to allow receiver to just be `self`
2019-03-05 19:56:25 -08:00
Joey
06e17af6cc Merge pull request #607 from adrian17/strings
Convert a bunch of string methods to new-args-style.
2019-03-05 20:50:36 -07:00
Joey Hain
894fa591d0 Merge remote-tracking branch 'origin/master' into joey/set-dict-payload
Conflicts:
      vm/src/pyobject.rs
2019-03-05 18:39:51 -08:00
Aviv Palivoda
24dcc06c24 add dict.keys 2019-03-05 22:46:13 +02:00
Aviv Palivoda
475476df71 Add dict.items 2019-03-05 22:41:42 +02:00
Aviv Palivoda
37118c7d75 Add dict.values 2019-03-05 22:34:45 +02: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
Windel Bouwman
c1a5e31c3c Extend re module. 2019-03-05 20:24:48 +01:00
Windel Bouwman
6ba25ef1c8 Merge pull request #575 from holygits/fix/bytearray-as-hex
Bytearray hex formatting
2019-03-05 19:58:32 +01:00
Adam
d278fb841c Merge pull request #597 from RustPython/type_hints
Add type annotations to parser.
2019-03-05 14:43:30 +00:00
Ryan Liddle
b7c03b4be5 Merge pull request #601 from RustPython/ellipsis
Add ellipsis syntax.
2019-03-05 18:30:44 +11:00