Marty Moradian
93e2eec2da
Made requested changes. (Combined short and long versions of hton and ntoh with generics, simplified their return values, replaced a chunk of code with from_be.)
2020-01-07 15:42:49 -06:00
Marty Moradian
2912d799d8
Add htons, ntohl, and ntohs to socket.rs
2020-01-07 04:11:58 -06: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
Jeong YunWon
3a0f6a055d
Merge pull request #1663 from jhyeom26/add-chroot
...
Add os.chroot
2020-01-06 01:15:56 +09:00
Jeong YunWon
22b1692f21
Merge pull request #1642 from youknowone/pyreturn
...
Suggestion: PyReturn to keep result type when it can be a special type like NotImplemented
2020-01-06 01:13:31 +09:00
joonho
baeed516a7
Add os.chroot
2020-01-05 18:26:33 +09:00
Noah
f93d9763eb
Merge pull request #1658 from RustPython/coolreader18/unicode-stuff
...
Update unicodedata with ucd_3_2_0
2020-01-05 01:53:30 -06:00
coolreader18
7d3f34144d
Add tests
2020-01-05 00:20:00 -06:00
coolreader18
98211a34de
Try to cut down on the # of unicode crates we use
2020-01-05 00:19:56 -06:00
coolreader18
8494979a02
Reorganize unicodedata and add unicodedata.ucd_3_2_0
2020-01-05 00:19:48 -06:00
Abe
6a1580141b
Implement the '%' string format code for integers
2020-01-04 19:54:54 -07:00
Jeong YunWon
6bba9ff446
PyComparisonValue
2020-01-05 03:01:06 +09:00
Jeong YunWon
b1e582e138
Adapt PyReturn to PyFloat
2020-01-05 03:00:29 +09:00
Jeong YunWon
44bd0b6d63
introduce PyArithmaticValue
2020-01-05 03:00:29 +09:00
Noah
cdba57dbcb
Merge pull request #1650 from palaviv/run-unittests
...
Run unittests
2020-01-03 19:41:54 -06:00
Noah
b3d887fb55
Merge pull request #1657 from doyshinda/impl_percent_format
...
Add support for the `%` format code for floats.
2020-01-03 19:32:47 -06:00
Abe
765089d560
Add support for the % format code for floats.
...
Contributes to #1656
2020-01-03 16:14:24 -07:00
Noah
73f1b1194b
Merge pull request #1648 from yanganto/wasm-exec-mode
...
Support eval and exec mode in wasm
2020-01-03 09:58:52 -06:00
yanganto
1913f033be
Support eval and exec mode in wasm
...
- Expose `pyEval`, `pyExec`, `pyExecSingle` in wasm module
2020-01-03 23:18:09 +08:00
Noah
102b91a118
Merge pull request #1653 from youknowone/fix-modpow
...
bump up num-bigint to 0.2.4 to fix modpow
2020-01-02 12:09:12 -06:00
Jeong YunWon
e84ecafecd
bump up num-bigint to 0.2.4 to fix modpow
2020-01-02 17:00:09 +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
Aviv Palivoda
88c477fb6c
Fix CR comments
2019-12-30 21:31:36 +02:00
Aviv Palivoda
e1942541ab
Add expectedFailure on failing test_bool tests
2019-12-30 21:31:36 +02:00
Aviv Palivoda
4c7c5fd225
Change test code to allow running
2019-12-30 21:31:36 +02:00
Aviv Palivoda
4aa032d299
Add time.perf_counter
2019-12-30 21:31:36 +02:00
Aviv Palivoda
7518faa2ea
Add mode parameter to mkdir
2019-12-30 21:31:36 +02:00
Aviv Palivoda
e46b1b39c1
Add empty abiflags to sys
2019-12-30 21:31:36 +02:00
Aviv Palivoda
d13a25b763
Add stub function to faulthanlder
2019-12-30 21:31:36 +02:00
Aviv Palivoda
4caf46c635
Add faulthandler.dump_traceback
2019-12-30 21:31:36 +02:00
Aviv Palivoda
a157dc1230
Add regrtest from CPython
2019-12-30 21:31:36 +02: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