Abe
4c72a3c853
Implement format code e & E for floats and ints
2020-03-06 18:12:48 -07:00
coolreader18
43713c41e4
Add gi_ and cr_ attributes to generators and coroutines
2020-03-01 23:11:28 -06:00
Idan Dor
6ea5d58f24
Fix previous merge of objtype.rs.
...
Moved the tests to their more correct place of `tests/snippets/class.py`.
2020-02-29 16:34:14 +02:00
Idan Dor
23e0467876
Merge remote-tracking branch 'remotes/upstream/master' into feature/mro_resolution
...
# Conflicts:
# vm/src/obj/objsuper.rs
# vm/src/obj/objtype.rs
2020-02-29 13:17:33 +02:00
Noah
7be93a96da
Merge pull request #1766 from RustPython/coolreader18/stdlib-typing
...
Add the typing standard library module, rework tp_new
2020-02-28 22:50:07 -06:00
Idan Dor
8b80707cf8
Fixes according to PR review and added tests:
...
Moved mro creation from super getattribute to super constructor.
Removed optional VM argument in new class construction and changed the function to return String which is later "unwrapped" if a vm is available.
Added the relevant tests to `types_snippet.py`.
2020-02-22 16:10:49 +02:00
Noah
15163acdaa
Merge pull request #1769 from RustPython/coolreader18/struct-class
...
Reorganize struct module, add struct.Struct
2020-02-21 13:05:02 -06:00
Windel Bouwman
90b862258b
Merge pull request #1765 from youknowone/allow-star-exp
...
Allow star expression for list elements
2020-02-21 10:07:21 +01:00
Noah
e1b63bdd4a
Add struct.Struct test
2020-02-20 22:33:33 -06:00
Noah
bad4c40904
Fix tests
2020-02-16 17:49:56 -06:00
Noah
c5e856a34d
Rework super()
2020-02-16 16:28:28 -06:00
Jeong YunWon
1abe7e3313
Allow star expression for list elements
2020-02-16 17:32:51 +09:00
Do Nhat Minh
0c731e8a9b
Add as_integer_ratio to PyInt
2020-02-11 16:01:22 -05:00
Do Nhat Minh
914454e4ba
Add __pos__ to PyComplex
2020-02-10 11:23:50 -05:00
Jeong YunWon
8d7be94b03
PyBool
2020-02-07 11:56:31 +09:00
Aviv Palivoda
2633f9f844
Add struct.calcsize
2020-02-06 21:21:44 +02:00
Jeong YunWon
844b6395ce
Fix SyntaxError initial value
2020-02-06 10:39:52 +09:00
Jeong YunWon
23381b9937
compatiibility for CPytthon descr_check
2020-02-06 03:42:01 +09:00
Noah
c435ba05ab
Merge pull request #1731 from RustPython/feature/implement-random
...
Implement _random.Random
2020-02-05 07:39:27 -06:00
Noah
3595f4e1a4
Merge pull request #1730 from youknowone/type-error
...
Fix type() error message and BaseException.__str__
2020-02-03 19:28:25 -06:00
malkoG
908abef5da
Apply code review for test snippet
2020-02-03 18:21:42 -06:00
malkoG
8a3fb408dc
Implement random module
2020-02-03 18:21:37 -06:00
Aviv Palivoda
9c12b95cf4
Support timeout in Popen.communicate
2020-02-01 09:54:05 +02:00
Jeong YunWon
c366c2074c
Fix type() error message and BaseException.__str__
2020-02-01 13:23:32 +09:00
Aviv Palivoda
19ce0c6d7f
Add missing assert
2020-01-31 10:08:11 +02:00
coolreader18
ff97ac5133
Fix subprocess test and byte{s,array}.{,l,r}strip
2020-01-28 11:33:11 -06:00
coolreader18
3a8f2aa25b
Only build the necessary rust target for test_snippets
2020-01-28 11:33:10 -06:00
Noah
bc121d791a
Merge pull request #1682 from RustPython/coolreader18/compare_digest
...
Add _operator._compare_digest
2020-01-25 12:20:08 -06:00
Aviv Palivoda
32d544d41a
Merge pull request #1699 from palaviv/splitlines-keepends
...
Support keepends in Str.splitlines
2020-01-25 17:06:43 +02:00
Aviv Palivoda
8bf0d93bb2
Refactor string.splitlines
2020-01-24 22:53:44 +02:00
Aviv Palivoda
ad4beab6f6
fix line continuation parsing
2020-01-24 21:50:19 +02:00
Aviv Palivoda
4a9e87b80d
Support keepends in Str.splitlines
2020-01-24 12:58:51 +02:00
Noah
5b02a96192
Merge pull request #1696 from alvinlindstam/string-performance
...
String performance
2020-01-20 13:06:39 -06:00
Alvin Lindstam
59666f7e0f
Make string iterator test include non-ascii
2020-01-19 15:48:43 +01:00
Jeong YunWon
655834d578
Merge pull request #1678 from youknowone/object-cmp
...
__eq__ and __ne__ compatibility
2020-01-18 19:26:45 +09:00
Alvin Lindstam
7c57085281
Improve test check for windows platform
...
`'win' in sys.platform` returns true on MacOS, since it's platform string
is `"darwin"`. This was likely not intended, since the check seems to be testing for
a windows platform, and was the only test error on a clean master build for me.
2020-01-15 21:59:27 +01:00
Jeong YunWon
c4d1ad346b
Merge pull request #1679 from corona10/math_nextafter
...
math: Implement math.nextafter
2020-01-13 20:18:16 +09:00
coolreader18
0418cc7790
Add _operator._compare_digest
2020-01-12 22:57:19 -06:00
Dong-hee Na
1de9b1a41d
math: Implement math.nextafter
2020-01-13 02:03:02 +09:00
Jeong YunWon
947c4fe703
Merge pull request #1608 from cclauss/patch-2
...
Travis CI: Matrix -> jobs and Python 3.6 to 3.8
2020-01-12 23:58:55 +09:00
Jeong YunWon
81d36a1f1d
__eq__ and __ne__ compatibility
2020-01-12 18:33:58 +09:00
coolreader18
a26e5f23f8
Add dict iterator __length_hint__
2020-01-10 18:24:23 +00:00
Noah
7d40f45ff5
Add list iter __length_hint__ tests
2020-01-10 11:38:12 -06:00
Jeong YunWon
5389ab02ba
more types for whats_left.sh
2020-01-08 21:21:40 +09:00
Jeong YunWon
a47defc8cb
whats_left prints inherited but unimplemented attrs
2020-01-08 20:55:35 +09:00
Jeong YunWon
bb9d09baaf
bad int test snippet
2020-01-08 11:54:30 +09:00
Jeong YunWon
5a3937fd15
Refactor deque and fix comparison bug
2020-01-08 02:20:41 +09:00
Aviv Palivoda
a3293a7f21
Merge pull request #1662 from doyshinda/impl_percent_format_for_int
...
Implement the '%' string format code for integers
2020-01-05 19:08:08 +02:00
coolreader18
7d3f34144d
Add tests
2020-01-05 00:20:00 -06:00
Abe
6a1580141b
Implement the '%' string format code for integers
2020-01-04 19:54:54 -07:00