286 Commits

Author SHA1 Message Date
Nikita Sobolev
b33f72eb4d Adds __qualname__ to PyBoundMethod 2021-08-10 05:32:02 +09:00
Jeong YunWon
49ff438278 Merge pull request #2820 from sobolevn/issue-2779
Fixes infinite recursion on `raise e from e`
2021-08-10 04:54:52 +09:00
sobolevn
83914a9f54 Fixes infinite recursion on raise e from e, refs #2779 2021-08-09 20:58:36 +03:00
sobolevn
c0f38e2263 Adds __subclasshook__ to type, refs #2794 2021-08-09 16:33:57 +03:00
sobolevn
e939346850 Adds class field to PyGetSet to fix __qualname__ and (in future) repr, refs #2790 2021-08-08 18:53:57 +03:00
sobolevn
e5e20a53b2 Makes type.__prepare__ a classmethod, also first arg is any (not str), refs #2762 2021-08-08 12:49:41 +03:00
sobolevn
af63e83e13 Makes args of type.__prepare__ optional, refs #2762 2021-08-08 12:05:31 +03:00
Nikita Sobolev
8f2679a97a Adds __qualname__ to PyBuiltinFunction 2021-08-04 13:59:40 +09:00
Nikita Sobolev
8009697498 Adds correct __repr__ to PyBuiltinMethod 2021-08-02 19:07:16 +09:00
Nikita Sobolev
73ae7a6116 Adds __qualname__ to PyBuiltinMethod 2021-08-01 09:16:27 +09:00
Nikita Sobolev
4890f09c57 Fixes type.__module__ issue, refs #2310 (#2763)
* Fixes `type.__module__` issue, refs #2310
2021-07-30 19:09:48 +03:00
James Webber
b0e5675cb6 allow rustpython to move things 2021-07-29 13:11:01 -04:00
James Webber
7ad07bcbf5 use getmodule to prevent redundant output 2021-07-29 10:52:35 -04:00
Peter Ye
8bfff805a9 Fix builtins.__name__ 2021-07-28 13:20:32 +09:00
James Webber
ac53b418af added comment 2021-07-10 23:40:38 -04:00
James Webber
f14daaaff7 removed deprecated modules from PEP 594 from whats_left.sh 2021-07-10 19:40:44 -04:00
Noah
94fee16ff7 Don't have test_snippets.py rebuild with cargo 2021-05-15 12:21:40 -05:00
Noah
5155f5b15c Re-enable tracing test 2021-05-14 19:06:56 -05:00
Noah
4279adb5bf Disable stdlib_sys test 2021-05-13 19:46:17 -05:00
Noah
f8e5be9351 Merge pull request #2572 from RustPython/fix-codecov
Fix remaining code coverage collection issues
2021-04-21 22:58:29 -05:00
dependabot[bot]
4c65d2622b Bump py from 1.8.0 to 1.10.0 in /extra_tests
Bumps [py](https://github.com/pytest-dev/py) from 1.8.0 to 1.10.0.
- [Release notes](https://github.com/pytest-dev/py/releases)
- [Changelog](https://github.com/pytest-dev/py/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/py/compare/1.8.0...1.10.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-20 21:31:33 +00:00
Noah
c88d935ca0 Fix remaining code coverage issues, hopefully 2021-04-19 23:03:16 -05:00
Kangzhi Shi
8522d120e5 fix array from bytes 2021-04-16 09:17:13 +02:00
Boris Verkhovskiy
3592c74b5f remove noise from importing modules in whats_left
some modules will print something to stdout when imported
2021-03-26 15:51:58 -04:00
Noah
491c4e775b Fix json.scanstring unicode handling 2021-02-20 21:04:30 -06:00
Noah
afefd163a6 Merge pull request #2438 from RustPython/coolreader18/compile_call-classdef
Handle splat args in bases/kwargs for __build_class__
2021-02-16 17:57:26 -06:00
Noah
8f68959a98 Add snippet test 2021-02-15 21:39:43 -06:00
boris
cc2c46b1b7 don't check builtin signatures 2021-02-11 04:08:20 -05:00
Noah
39ff807763 Merge pull request #2431 from merkrafter/fix/decimal-powers-formatting
Fix formatting of decimal powers below 1 million
2021-01-31 22:29:35 -06:00
Noah
81176852c6 Merge pull request #2411 from verhovsky/detect-incompat-fn-signatures
Detect incompatible function signatures in whats_left
2021-01-31 18:41:43 -06:00
Mark Umnus
6d663f4157 Fix formatting of decimal powers below 1 million
The previous implementation truncated even 10.0 to 1, because it cut away any
combination of trailing 0's and .'s.
2021-02-01 01:25:58 +01:00
boris
646242d5a9 report exception when couldn't import 2021-01-29 15:32:41 -05:00
boris
68e86b8f61 get attribute when comparing it 2021-01-29 15:25:24 -05:00
boris
eda93e1001 pass attribute to extra_info
not its name
2021-01-29 13:08:44 -05:00
boris
b3b9196b9e remove comment 2021-01-29 12:43:08 -05:00
boris
f258df5fc2 convert filter to list exp 2021-01-29 12:27:45 -05:00
boris
f03277068e return string representation of inspect.signature exceptions 2021-01-29 12:24:41 -05:00
boris
2ebc300ed5 update comments 2021-01-29 11:58:47 -05:00
boris
6e948d7982 create a dictionary instead of printing
so that we can print this stuff out as json later
2021-01-29 11:55:29 -05:00
Noah
869e4a7012 Implement modular inverse 2021-01-25 22:38:12 -06:00
Noah
97e5c2c890 Merge pull request #2352 from qingshi163/_sre-wip
[WIP] _sre
2021-01-25 14:43:22 -06:00
Noah
19f9ca6390 Merge pull request #2399 from RustPython/coolreader18/asdl
Generate rustpython-ast based off of Python.asdl
2021-01-25 11:09:31 -06:00
boris
13d6754b1d Detect incompatible function signatures in whats_left 2021-01-24 01:07:00 -05:00
boris
5c424857f4 Detect modules that aren't in sys.path in whats_left 2021-01-22 22:30:59 -05:00
boris
d58b89d5c6 Fix whats_new.sh not finding libraries that are directories 2021-01-22 20:23:23 -05:00
Kangzhi Shi
5794c46adf fix multiple bugs; pass tests 2021-01-22 16:40:33 +02:00
Kangzhi Shi
5232a3db3e fix back_peek_char 2021-01-21 19:24:10 +02:00
Kangzhi Shi
df42fd913f fix at_beginning 2021-01-21 16:14:23 +02:00
Kangzhi Shi
81d791b04b fix op branch 2021-01-21 12:48:32 +02:00
Kangzhi Shi
ef7c296001 impl Match.groupdict 2021-01-20 08:29:57 +02:00