Commit Graph

1706 Commits

Author SHA1 Message Date
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
f3791a3867 Fix test script for python3.6 2019-03-06 11:25:16 +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
6f61e5847e Merge pull request #603 from RustPython/joey/set-dict-payload
Convert set and dict to Any payload
2019-03-05 20:45:11 -07:00
Joey
c5fca1bb0f Merge pull request #609 from coolreader18/fix-cargo-versions
Fix Cargo.toml versions
2019-03-05 19:41:19 -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
coolreader18
b5248fbd82 Fix Cargo.toml versions 2019-03-05 17:27:56 -06: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
Windel Bouwman
cb1b9d368f Merge pull request #602 from coolreader18/prep-wasm-npm
Prepare the wasm crate for publishing on npm
2019-03-05 07:25:10 +01:00
Windel Bouwman
81a85cc0bf Merge pull request #599 from palaviv/Fix-locals
Fix locals
2019-03-05 07:23:46 +01:00
Windel Bouwman
458ead0cbc Merge pull request #600 from adrian17/as_ratio
Add float.as_integer_ratio()
2019-03-05 07:22:38 +01:00
Windel Bouwman
883a4944c8 Merge pull request #598 from palaviv/dir-module
Fix module dir
2019-03-05 07:20:12 +01:00
Windel Bouwman
05929b3d7b Add ellipsis type, test and do rustfmt. 2019-03-05 07:19:00 +01:00
holygits
f4ba94a397 Fix formatting 2019-03-05 19:03:25 +13:00
Joey Hain
d9c35f94c2 Convert dict payload 2019-03-04 21:46:21 -08:00
Joey Hain
bf1fe9e5f2 Convert set payload 2019-03-04 21:46:17 -08:00
coolreader18
eefde87594 Cargo.lock update 2019-03-04 21:17:29 -06:00
Joey
006e975bc5 Update wasm/lib/README.md
Co-Authored-By: coolreader18 <33094578+coolreader18@users.noreply.github.com>
2019-03-04 17:16:02 -06:00
coolreader18
55cc653d9b Prepare the wasm crate for publishing on npm 2019-03-04 16:50:30 -06:00
holygits
0584b85d86 Bytearray hex formatting 2019-03-05 10:59:10 +13:00
Windel Bouwman
a26401707f Minor lexer simplifications. 2019-03-04 21:25:35 +01:00
Aviv Palivoda
a545e4392a Test locals indside a function 2019-03-04 22:17:41 +02:00
Windel Bouwman
e25742f184 Add ellipsis syntax. 2019-03-04 21:09:03 +01:00
Windel Bouwman
b50f0be910 Merge pull request #596 from RustPython/joey/complex-to-any
Convert complex to Any payload
2019-03-04 20:55:51 +01:00
Adrian Wielgosik
eed0b3ca45 Add float.as_integer_ratio() 2019-03-04 20:52:56 +01:00
Aviv Palivoda
da57730692 Fix get_locals 2019-03-04 21:52:20 +02:00
Aviv Palivoda
2d31e35844 Add test dir 2019-03-04 21:31:20 +02:00
Windel Bouwman
f7a22254a6 Add return annotation and fix tests in parser. 2019-03-04 20:29:34 +01:00
Aviv Palivoda
d24f79b17d dir show module content 2019-03-04 21:27:03 +02:00
Windel Bouwman
6544f60d9b Add type annotations to parser. 2019-03-04 19:24:34 +01:00
Adam
a7c3f85da7 Merge pull request #595 from palaviv/socket-user-macros
Use py_class and py_module macros in socket
2019-03-04 17:11:08 +00:00
Joey Hain
f820aeb1ea Convert complex payload 2019-03-04 09:04:24 -08:00
Aviv Palivoda
933c8dc792 Use py_module macro 2019-03-04 18:30:37 +02:00
Aviv Palivoda
d2061004a3 Use py_class macro 2019-03-04 18:27:33 +02:00
Windel Bouwman
38c43e0465 Merge pull request #590 from RustPython/exec
Proper construction of scope for exec/eval.
2019-03-04 16:57:12 +01:00
Adam
839f906927 Merge pull request #592 from RustPython/joey/improved-arg-errors
Improve error messages and add docs for new native function machinery
2019-03-04 14:42:18 +00:00
Adam
4ce0a7c216 Merge pull request #586 from RustPython/joey/float-range-any-payload
Convert more objects to `Any` payload
2019-03-04 14:40:06 +00:00
Adam Kelly
c4953ee9ec Remove new macro and inline check into make_scope. 2019-03-04 14:33:53 +00:00
Adam Kelly
0d4887abe6 Fix missing asserts and add (disabled) tests for things that don't work yet. 2019-03-04 14:32:52 +00:00
Adam Kelly
6548c365cb Use check_but_allow_none for exec/eval. 2019-03-04 14:32:52 +00:00