On Tue, Sep 27, 2011 at 2:20 PM, Ethan Furman <ethan at stoneleaf.us> wrote: .. > Good points. So how about: > > some_name_here(start, stop, *, step=None, count=None) > +1 The unusual optional first arguments is one of the things I dislike about range(). Shouldn't step default to 1.0? Also, when count is given, stop can be elided. This will make for a nice symmetry: between stop, step and count any two can be provided but stop+step may be problematic and we can warn about this choice in the docs.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4