Skip to content

Note about removal of xrange in Python3 #665

@hckrtst

Description

@hckrtst

docs/writing/style.rst currently has an example of using xrange:

four_lists = [[] for __ in xrange(4)]

This does not work for Python3 as xrange functionality is now implemented by range()
as per https://docs.python.org/3/whatsnew/3.0.html

A note can be added to this section to indicate this.

Metadata

Metadata

Assignees

No one assigned

    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