Skip to content

Conversation

BenLewis-Seequent
Copy link

Also made the following changes:

  • Allowed slice to contain arbitrary objects
  • Implemented calling __index__ if slice property isn't an int

@codecov-io
Copy link

codecov-io commented Mar 30, 2019

Codecov Report

Merging #767 into master will increase coverage by 0.02%.
The diff coverage is 61.72%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #767      +/-   ##
==========================================
+ Coverage   63.12%   63.14%   +0.02%     
==========================================
  Files          87       87              
  Lines       14344    14374      +30     
  Branches     3248     3257       +9     
==========================================
+ Hits         9055     9077      +22     
- Misses       3154     3162       +8     
  Partials     2135     2135
Impacted Files Coverage Δ
vm/src/obj/objrange.rs 62.22% <0%> (-1.13%) ⬇️
vm/src/obj/objlist.rs 72.21% <0%> (-0.98%) ⬇️
vm/src/obj/objsequence.rs 53.62% <33.33%> (-0.79%) ⬇️
vm/src/obj/objslice.rs 78.66% <72.54%> (+15.92%) ⬆️
vm/src/function.rs 51.21% <75%> (+0.72%) ⬆️
vm/src/frame.rs 67.67% <80%> (-0.04%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d7275c7...9b71424. Read the comment docs.

@OddCoincidence
Copy link
Contributor

It looks like rustfmt is the only thing failing, after that is fixed we can merge this

@windelbouwman
Copy link
Contributor

@Skinny121 @OddCoincidence could we merge this PR? It looks like all review comments were dealed with?

# Conflicts:
#	tests/snippets/builtin_slice.py
#	vm/src/frame.rs
#	vm/src/obj/objrange.rs
#	vm/src/obj/objslice.rs
@windelbouwman windelbouwman merged commit 75e8f81 into RustPython:master Apr 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants