GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Document the correct default value of slice step. Closes https://gith… · python/cpython@d0d5d0a

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • Doc/library
    • functions.rst
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎Doc/library/functions.rst‎

Copy file name to clipboardExpand all lines: Doc/library/functions.rst
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1631,7 +1631,7 @@ are always available. They are listed here in alphabetical order.
16311631

16321632

16331633
.. class:: slice(stop)
1634-
slice(start, stop, step=1)
1634+
slice(start, stop, step=None)
16351635

16361636
Return a :term:`slice` object representing the set of indices specified by
16371637
``range(start, stop, step)``. The *start* and *step* arguments default to

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.