Feature Requests item #1719222, was opened at 2007-05-15 06:42
Message generated for change (Comment added) made by rhettinger
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=355470&aid=1719222&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: None
Status: Open
>Resolution: Rejected
Priority: 5
Private: No
Submitted By: Aaron Brady (ascription)
Assigned to: Nobody/Anonymous (nobody)
Summary: new functool: "defaults" decorator

Initial Comment:
Python feature

Functools gains a new decorator.

`Defaults' allows its caller to placehold non-None defaults; it becomes 
unnecessary to know the value a place defaults to.

It might be useful in cases where you want the calling signature to look alike 
for a group of dispatched functions and the added overhead the decorator adds 
isn't a problem.  But you probably wouldn't want that overhead all the time, so 
having it as an optional decorator would be good. -Ron Adam


----------------------------------------------------------------------

>Comment By: Raymond Hettinger (rhettinger)
Date: 2007-05-27 23:51

Message:
Logged In: YES 
user_id=80475
Originator: NO

Rejecting due to lack of support.



----------------------------------------------------------------------

Comment By: Georg Brandl (gbrandl)
Date: 2007-05-15 09:47

Message:
Logged In: YES 
user_id=849994
Originator: NO

Moving to Feature Requests, adapting summary.

----------------------------------------------------------------------

Comment By: Josiah Carlson (josiahcarlson)
Date: 2007-05-15 09:25

Message:
Logged In: YES 
user_id=341410
Originator: NO

This is not a bug.  Should move to Feature Requests at minimum, patches if
the text file is an actual patch.

Generally the poster desires that a catch-all default argument be allowed
to be passed to any function with default arguments to signal that the
original defaults should be used; like foo(123, default, 456) rather than
foo(123, arg3=456).

This proposal received no support in python-ideas.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=355470&aid=1719222&group_id=5470
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to