Closed wetor closed 1 year ago
Patch coverage: 83.13
% and project coverage change: +0.10
:tada:
Comparison is base (
acd458b
) 74.42% compared to head (04a9c5b
) 74.52%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
Of course, I will split commit later
I found that the basic types (int, string, etc.) did not run Ready()
correctly, resulting some attribute was not registered correctly and was fixed by the way
https://github.com/go-python/gpython/pull/222/commits/b4b7ef221456e742947a8e369bd8892828e75485
all: support filter builtin feature and fix iterable object
Python-3.4.9/Doc/c-api/iterator.rst
Python-3.4.9/Lib/test/test_builtin.py
In CPython,
Squares (5)
is an iterable object, and to support this type of iterable object, I made modifications toIterator. go
Iterator. go
Corresponding CPython code
Python-3.4.9/Objects/iterobject.c
and
Iter()
Corresponding CPython code
Python-3.4.9/Objects/abstract.c
Finally,
filter
andmap
methods were fully implementedpy/tests/filter.py
is a copy ofPython-3.4.9/Lib/test/test_builtin.py:BuiltinTest.test_filter()
andpy/tests/map.py
is a copy ofPython-3.4.9/Lib/test/test_builtin.py:BuiltinTest.test_map()
builtin: Implement oct and optimise hex
Through benchmark testing, the speed of
hex
has indeed been improvedMy English is not very good, so forgive me for not providing sufficient explanations. Welcome to ask questions here