Jeong YunWon
92ba35d1b1
Allow to skip VM param for IntoPyNativeFunc functions
2020-01-03 02:18:56 +09:00
Noah
31d3fc6e6f
Merge pull request #1651 from doyshinda/impl_format_for_float
...
Add support for string formatting of floats with ":f" format code
2019-12-31 22:47:01 -06:00
Abe
30473d3058
Add support for string formatting of floats with ":f" format code
...
Also adds automatic conversion of int -> float when the ":f"
format code is specified.
Fixes a f-string formatting style regression introduced in #1625 .
2019-12-31 18:52:46 -07:00
Noah
deee1f7df7
Merge pull request #1644 from RustPython/coolreader18/exc-cleanup
...
Use PyBaseExceptionRef in places where we expect exceptions
2019-12-29 17:17:26 -05:00
coolreader18
181dff867f
Fix setting attributes on errors
2019-12-28 20:59:25 -06:00
Noah
bd13671eee
Merge pull request #1641 from youknowone/refactor-float
...
Refactor float, complex cmp/op , str, None
2019-12-28 21:07:33 -05:00
Noah
ddb61e2c84
Merge pull request #1625 from palaviv/f-string-nesting
...
Support expression in f-strings spec
2019-12-28 15:43:01 -05:00
coolreader18
777542f7ec
Directly instantiate exceptions in the vm.new_*_error functions
2019-12-28 01:31:24 -06:00
coolreader18
42a3523f9f
Add ExceptionCtor type, use for exception-creation-related code
2019-12-28 00:34:36 -06:00
coolreader18
41c8dd84b3
Remove frame::get_exception, use exceptions::normalize instead
2019-12-28 00:02:45 -06:00
coolreader18
ec3e402970
Move and improve normalize_exception
2019-12-27 22:13:23 -06:00
coolreader18
d4261cafa3
Add new test for cause
2019-12-27 11:22:53 -06:00
coolreader18
1773025368
Convert to new PyResult in rustpython_wasm
2019-12-27 11:22:53 -06:00
Noah
420f5c3490
Add vm.normalize_exception()
2019-12-27 11:22:53 -06:00
Noah
97c8d11092
Make PyResult<T> = Result<T, PyBaseExceptionRef>
2019-12-27 11:22:52 -06:00
Noah
cd726a2818
Cleanup exceptions a bit
2019-12-27 11:17:26 -06:00
Aviv Palivoda
6a4c3da822
Fix clippy warning
2019-12-27 10:27:51 +02:00
Aviv Palivoda
6698fdee12
Add TODO for spec validation
2019-12-27 10:19:07 +02:00
Aviv Palivoda
b394ad4e05
Parse FormattedValue spec in symboltable
2019-12-27 10:19:07 +02:00
Aviv Palivoda
8e84a85b0c
Add more tests for nested f-string spec
2019-12-27 10:19:07 +02:00
Aviv Palivoda
c3703f08d7
Support expression in f-strings spec
2019-12-27 10:19:07 +02:00
Jeong YunWon
f22a12d555
Merge pull request #1647 from youknowone/property-setter
...
Allow empty return type for property setter
2019-12-27 14:32:25 +09:00
Jeong YunWon
a54c98de3f
property setter return PyResult<()> instead of PyResult
2019-12-27 02:09:58 +09:00
Jeong YunWon
278f0fffca
Allow empty return type for property setter
2019-12-27 00:42:43 +09:00
Jeong YunWon
266bdceb8d
impl PyNoneRef -> impl PyNone
2019-12-26 22:17:29 +09:00
Jeong YunWon
b7eeba24db
Refactor PyString
2019-12-26 22:17:29 +09:00
Jeong YunWon
cbbacbaa47
Refactor PyComplex
2019-12-26 22:17:29 +09:00
Jeong YunWon
801d01161c
Refactor PyFloat cmp/op
2019-12-26 22:17:24 +09:00
Windel Bouwman
3aa09dda9f
Merge pull request #1646 from dralley/itertools
...
Add itertools.combinations_with_replacement()
2019-12-26 12:23:47 +01:00
Daniel Alley
4bbca2bed2
Add itertools.combinations_with_replacement()
2019-12-26 00:21:53 -05:00
Noah
920ef52592
Merge pull request #1645 from dralley/itertools
...
Add itertools.cycle() and itertools.chain.from_iterable()
2019-12-25 13:05:45 -05:00
Daniel Alley
bf82caed4b
Implement itertools.chain.from_iterable()
2019-12-25 10:33:23 -05:00
Jeong YunWon
34bab04861
Refactor objint
2019-12-25 21:29:09 +09:00
Jeong YunWon
57b6bf3e64
Merge pull request #1634 from youknowone/payload-if-subclass
...
PyObject::payload_if_subclass to reduce common pattern
2019-12-25 19:59:12 +09:00
Jeong YunWon
00b0a8abfe
PyObject::payload_if_subclass
2019-12-25 19:11:07 +09:00
Daniel Alley
7be477a091
Add itertools.cycle()
2019-12-24 20:13:50 -05:00
Noah
e75d667ade
Merge pull request #1636 from dralley/itertools
...
Itertools.permutations implementation & combinations fixes
2019-12-24 12:32:57 -05:00
Jeong YunWon
a4b2f293d8
Merge pull request #1643 from RustPython/coolreader18/http
...
Add the http module
2019-12-24 16:41:08 +09:00
Daniel Alley
5ae7e99cde
Add permutations implementation
2019-12-24 00:55:46 -05:00
Daniel Alley
f32fe9dcb8
Fix combinations implementation
2019-12-24 00:23:37 -05:00
Noah
39ad03c7fb
Merge pull request #1639 from doyshinda/impl_str_format_map
...
Add str.format_map method
2019-12-23 19:16:55 -05:00
Abe
325fb4c3a3
Add str.format_map method
2019-12-23 16:29:24 -07:00
coolreader18
a48afdd087
Add compilation on windows
2019-12-22 22:11:45 -06:00
coolreader18
32d1016a7f
Add a TryFromObject impl for std::time::Duration
2019-12-21 14:51:12 -06:00
coolreader18
5f14238737
Add BytesIO.truncate
2019-12-21 14:51:12 -06:00
coolreader18
dcbf1a7ac4
Add socket.setsockopt
2019-12-21 14:51:11 -06:00
coolreader18
bd4a492a53
Add fast path for new byte inner of bytes or bytearray
2019-12-21 14:51:11 -06:00
coolreader18
abb190ce50
Some small fixes for http to work
2019-12-21 14:51:11 -06:00
coolreader18
5856b85f74
Add stdlib modules necessary for http from CPython 3.6.0
2019-12-21 14:51:11 -06:00
coolreader18
e8d51a8f4b
Fix remaining clippy errors to get master green
2019-12-21 14:51:00 -06:00