Commit Graph

920 Commits

Author SHA1 Message Date
Jeong YunWon
7fb98c91d2 PyFloat uses #[pyclass] #[pyimpl] #[pymethod] 2019-04-28 05:47:29 +09:00
Windel Bouwman
88e52ef842 Merge pull request #884 from adrian17/imul
Support list.__imul__
2019-04-27 21:08:39 +02:00
Jeong YunWon
d87468a1cb Add type.__name__ 2019-04-28 03:21:26 +09:00
Adrian Wielgosik
9d40a4c9d8 Support list.__imul__ 2019-04-27 17:44:21 +02:00
Windel Bouwman
3145d2a8fd Merge pull request #870 from RustPython/dict_fromkeys
Dict fromkeys
2019-04-25 20:35:57 +02:00
Seo Sanghyeon
f38f263d93 Implement stripping with arguments 2019-04-25 20:33:30 +09:00
Adam Kelly
d3f4c8f6e1 Use unwrap_or_else for OptionalArg in dictionary. 2019-04-25 09:07:17 +01:00
Adam Kelly
4f0b17e84f Add dict.fromkeys. 2019-04-25 09:07:17 +01:00
Adam
6f04bebae5 Merge pull request #866 from RustPython/dict_popitem
dict.popitem & dict.setdefault
2019-04-25 09:06:28 +01:00
Adam Kelly
1c43a6bfbe Add dict.setdefault. 2019-04-25 08:04:54 +01:00
Adam Kelly
ceac014a6c Add dict.popitem. 2019-04-25 08:04:24 +01: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
Jeong YunWon
1d5adc4353 Add built-in dict.pop 2019-04-23 10:34:06 +09:00
Aviv Palivoda
3986e2f87d Add set.isdisjoint 2019-04-21 16:41:36 +03:00
Joey
ae8ea1d060 Merge remote-tracking branch 'origin/master' into joey/proper-titlecase 2019-04-19 09:27:00 -07:00
ben
9b71424d4e Use slice.xxx_index() methods in setslice and delslice 2019-04-17 20:02:08 +12:00
ben
f2873a519d Merge branch 'master' into slice_new
# Conflicts:
#	tests/snippets/builtin_slice.py
#	vm/src/frame.rs
#	vm/src/obj/objrange.rs
#	vm/src/obj/objslice.rs
2019-04-17 19:44:46 +12:00
coolreader18
08babef619 Remove the __inside_vm hack for procedural macros 2019-04-15 20:24:16 -05:00
Windel Bouwman
78db5ea311 Merge pull request #835 from RustPython/coolreader18/weakproxy
Add weakproxy
2019-04-15 17:35:04 +02:00
Adam Kelly
dfbaf3cdf0 Remove pub from PyDict.entries (easy TODO) 2019-04-15 13:25:04 +01:00
Adam Kelly
c9b479c43b Guard for changes in dictionary size during iteration. 2019-04-15 13:25:04 +01:00
coolreader18
cc76bf7a1f Add weakproxy class 2019-04-14 20:09:43 -05:00
Darren Kaste
a8e064b1c0 Import TypeProtocol before use in type_check! 2019-04-14 17:19:44 -04:00
Joey
79623f4e7a str: proper titlecase support 2019-04-14 12:23:09 -07:00
Windel Bouwman
51aa817a81 Merge pull request #829 from skinny121/unittest_rustpython
RustPython changes for #824
2019-04-14 10:49:21 +02: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
ben
d24dd170e9 Changes to RustPython to support importing and running unittest 2019-04-14 12:09:54 +12:00
ben
6650ad895a Fix a bunch of clippy warnings 2019-04-14 10:07:50 +12:00
ben
1f8181b561 Update formatting to be consistent with rustfmt included in 1.34 2019-04-14 09:40:59 +12: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
jgirardet
bd78f7e12b add capitalize 2019-04-13 08:21:37 +02:00
coolreader18
2c887905a1 Merge pull request #766 from jgirardet/seq
Fix #746: invalid slice with start or stop =-1 when step<0
2019-04-12 16:41:36 -05:00
Windel Bouwman
76659fd985 Merge pull request #820 from skinny121/gen_throw
Implement generator.throw
2019-04-12 19:38:54 +02:00
Adam Kelly
80ec464d84 Use dict.update to combine class and object attrs in object_dir. 2019-04-12 12:25:19 +01:00
ben
63643e1fdb Implement generator.throw 2019-04-12 20:30:37 +12:00
Adam Kelly
664554bc5e Fix dir bug - not including object attributes correctly. 2019-04-11 15:35:01 +01:00
Adam Kelly
b70f989952 dict equality - objects always equal themselves. 2019-04-11 08:39:03 +01:00
Adam Kelly
bd5772d914 Implement dict.__eq__ 2019-04-11 08:31:13 +01:00
Adam Kelly
aeb84936ff Merge branch 'master' into dict_into_iter 2019-04-11 08:28:12 +01:00
Windel Bouwman
58a393f047 Merge pull request #804 from jgirardet/refactore_bytes
refactor bytes
2019-04-11 08:20:01 +02:00
coolreader18
6a190e39f3 Fix __radd__ and __rmul__ 2019-04-10 20:41:06 -05:00
coolreader18
dd4539b1a6 Change to use PyClassImpl::extend_class 2019-04-10 18:02:30 -05:00
coolreader18
c5f4eab142 Change objint to impl style with properties 2019-04-10 17:55:24 -05:00
jgirardet
9d25a216de fix some tests, run clippy 2019-04-10 21:39:16 +02:00
jgirardet
751c3d52e2 use vec! for int arg in bytes new 2019-04-10 13:24:31 +02:00
Adam Kelly
8f840d5376 Pick code review nits. 2019-04-10 09:28:54 +01:00
Adam Kelly
9a92159413 Remove unneeded Cell on DictIter. 2019-04-10 09:26:03 +01:00