On Tue, Sep 27, 2011 at 2:20 PM, Ethan Furman <et...@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. _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com