Skip to content

slice_to_unit() #208

Description

@flexatone

Implement a CPython function that takes a slice and determines if that slice describes a unit (i.e., slice(3,4) or slice(0,1)). If so, return the integer that can be used instead of the slice. If not, return None.

Metadata

Metadata

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions