zer0
|
268cb8d217
|
fix str.maketrans 2 and 3 arguments cases
|
2019-05-11 23:58:42 +03:00 |
|
zer0
|
6e05795521
|
added str.maketrans
|
2019-05-11 01:03:22 +03:00 |
|
zer0
|
b15a584168
|
added small test to snippets
|
2019-05-10 23:47:11 +03:00 |
|
zer0
|
2f253ca054
|
cargo fmt
|
2019-05-10 23:31:11 +03:00 |
|
zer0
|
59ae590771
|
formatting
|
2019-05-09 17:09:38 +03:00 |
|
zer0
|
3196b6be73
|
added str.translate
|
2019-05-09 16:59:40 +03:00 |
|
Seo Sanghyeon
|
f38f263d93
|
Implement stripping with arguments
|
2019-04-25 20:33:30 +09:00 |
|
ben
|
d84b8b52a5
|
Fix the tuple from rpartition being in wrong order when sub isn't
contained within the string
|
2019-04-25 10:37:59 +12:00 |
|
Joey
|
ae8ea1d060
|
Merge remote-tracking branch 'origin/master' into joey/proper-titlecase
|
2019-04-19 09:27:00 -07:00 |
|
coolreader18
|
08babef619
|
Remove the __inside_vm hack for procedural macros
|
2019-04-15 20:24:16 -05:00 |
|
Joey
|
79623f4e7a
|
str: proper titlecase support
|
2019-04-14 12:23:09 -07:00 |
|
coolreader18
|
8f3319e01d
|
Merge pull request #827 from RustPython/joey/titlecase
str: improve {is,}title impl and add tests
|
2019-04-13 22:59:04 -04:00 |
|
Joey
|
762c281dd4
|
address feedback
|
2019-04-13 19:07:15 -07:00 |
|
Joey
|
8839461028
|
str: improve {is,}title impl and add tests
|
2019-04-13 12:45:09 -07:00 |
|
Windel Bouwman
|
be4e3170af
|
Merge pull request #822 from jgirardet/addbytesm
add capitalize bytes.center + fix str.center
|
2019-04-13 12:41:35 +02:00 |
|
jgirardet
|
73dbcfbe01
|
Add bytes.center
fix str.center
add some tests
introduce is_byte
|
2019-04-13 08:23:40 +02:00 |
|
Joey Hain
|
e70f174eb6
|
str: take self by ref
|
2019-04-07 10:07:36 -07:00 |
|
Adam Kelly
|
c8eda3733d
|
Eliminate ctx.set_attr.
|
2019-04-05 09:50:31 +01:00 |
|
Adam Kelly
|
bce4f1e483
|
Simplify/shrink the dict interface.
|
2019-04-05 09:39:59 +01:00 |
|
Joey
|
1c958c93b1
|
Merge pull request #774 from RustPython/joey/match-class
Add match_class! macro
|
2019-04-04 07:13:31 -07:00 |
|
Joey Hain
|
8549ea22a3
|
Use match_class! in objint::to_int
|
2019-04-01 20:22:11 -07:00 |
|
coolreader18
|
53b46a7b32
|
Split some of #[pyclass] off into #[pyimpl]
|
2019-03-31 17:23:33 -05:00 |
|
coolreader18
|
15cffc4d2b
|
Clean up a bit
|
2019-03-30 22:30:14 -05:00 |
|
coolreader18
|
d9efe4ea37
|
Require a #[pymethod] for a method to be recognized
|
2019-03-29 16:16:31 -05:00 |
|
coolreader18
|
8376ec2d98
|
Use doc comments for python __doc__
|
2019-03-29 15:17:58 -05:00 |
|
coolreader18
|
ab6031871c
|
impl PyStringRef using py_class
|
2019-03-29 14:51:42 -05:00 |
|
coolreader18
|
ff85838556
|
Add #[py_class] attribute proc macro
|
2019-03-29 00:16:34 -05:00 |
|
Joey Hain
|
cc4f3fdb40
|
Clean up TypeProtocol
|
2019-03-25 19:18:01 -07:00 |
|
Adam Kelly
|
9ebbde8126
|
Replace special cases in boolval with __bool__ method on types.
|
2019-03-23 09:31:42 +00: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 |
|
Windel Bouwman
|
68ba050030
|
Use the extend class macro more.
|
2019-03-22 20:45:34 +01:00 |
|
coolreader18
|
a9051ab462
|
Convert all &mut VirtualMachine to &VirtualMachine
|
2019-03-22 01:48:14 -05:00 |
|
Joey
|
90db9812e5
|
Merge pull request #707 from RustPython/joey/proper-pyref-display
Fix the Display impl for PyRef
|
2019-03-21 09:32:02 -07:00 |
|
Adam Kelly
|
e66b5078a8
|
Introduce TryIntoRef<T> to make vm.get_attribute more usable.
|
2019-03-21 10:58:32 +00:00 |
|
Joey Hain
|
0b1b6682c1
|
Fix Display impl for PyRef
|
2019-03-20 18:32:25 -07:00 |
|
Adam Kelly
|
6b3f61f3ca
|
Merge branch 'master' into objdict_refactor
|
2019-03-19 10:19:03 +00:00 |
|
Joey
|
d3b9714754
|
Convert print() builtin to new args style
|
2019-03-16 16:29:09 -07:00 |
|
Joey
|
9de7285d23
|
Merge remote-tracking branch 'origin/master' into joey/pyobject-function-split
Conflicts:
vm/src/frame.rs
vm/src/obj/objbytearray.rs
vm/src/obj/objbytes.rs
vm/src/obj/objcomplex.rs
|
2019-03-16 08:37:18 -07:00 |
|
Adam Kelly
|
9eeeeeae48
|
Change return type of vm.to_repr and vm.to_str to PyStringRef.
|
2019-03-16 09:42:54 +00:00 |
|
Joey
|
7bfd2e6e84
|
Move function items out of pyobject module
|
2019-03-15 21:27:11 -07:00 |
|
Adam
|
0e6e8b617d
|
Merge branch 'master' into prefer_pyvalue_into_ref
|
2019-03-15 22:11:51 +00:00 |
|
Adam Kelly
|
111208b46f
|
Remove PyRef::new/new_with_type.
|
2019-03-15 11:36:25 +00:00 |
|
Joey
|
fa9e48a5b3
|
Take &mut VirtualMachine insteadof &PyContext
|
2019-03-14 21:43:19 -07:00 |
|
Joey
|
737ec12fa5
|
Rename PyValue::{required_type => class}
|
2019-03-14 20:08:41 -07:00 |
|
Adam Kelly
|
5b41cc4b0d
|
Fix subclasses of string. (Fixes #130)
|
2019-03-14 09:06:29 +00:00 |
|
Joey Hain
|
5971fc3bd4
|
rename PyObjectPayload2 to PyValue
|
2019-03-10 13:48:51 -07:00 |
|
Joey Hain
|
45bc8c8f7a
|
Move PyRef to pyobject module
|
2019-03-10 13:01:46 -07:00 |
|
Chylli
|
e38a82e540
|
add __doc__ to str
|
2019-03-10 22:39:22 +08:00 |
|
Joey Hain
|
e1d728e81f
|
slice
|
2019-03-09 15:10:44 -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 |
|