[Python-Dev] decorator module patch

2006-03-13 Thread Jim Jewett
Raymond Hettinger wrote: > In contrast, a name like "functional" suggests that > some of these tools don't quite fit. The original intent was that the functional module become the home of typical utilities for functional style programming. partial was there were patches (such as 1412451) providi

Re: [Python-Dev] decorator module patch

2006-03-12 Thread Georg Brandl
Raymond Hettinger wrote: >> In PEP 356, there is even a suggestion to "add builtin @deprecated >> decorator?". > > Restraint please. Well, that sentence wasn't meant in the sense of "we should add it" but in the sense of "why shouldn't we put it in functools _if_ we add it, when it's even sugges

Re: [Python-Dev] decorator module patch

2006-03-12 Thread Steven Bethard
On 3/12/06, Raymond Hettinger <[EMAIL PROTECTED]> wrote: > [Nick Coghlan] > > I agree it makes sense to have "decorator", "memoize", "deprecated" and > > "partial" all being members of the same module, whether the name be > > "functools" or "functional" (although I have a slight preference for > >

Re: [Python-Dev] decorator module patch

2006-03-12 Thread Raymond Hettinger
> In PEP 356, there is even a suggestion to "add builtin @deprecated > decorator?". Restraint please. Go easy on the decorator additions. Raymond ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev U

Re: [Python-Dev] decorator module patch

2006-03-12 Thread Georg Brandl
Nick Coghlan wrote: > Alex Martelli wrote: >> On Mar 12, 2006, at 11:16 AM, Ian Bicking wrote: >> ... >>> memoize seems to fit into functools fairly well, though deprecated not >>> so much. functools is similarly named to itertools, another module >>> that >>> is kind of vague in scope (thou

Re: [Python-Dev] decorator module patch

2006-03-12 Thread Raymond Hettinger
[Nick Coghlan] > I agree it makes sense to have "decorator", "memoize", "deprecated" and > "partial" all being members of the same module, whether the name be > "functools" or "functional" (although I have a slight preference for > "functools" due to the parallel with "itertools"). I like "functoo

Re: [Python-Dev] decorator module patch

2006-03-12 Thread Nick Coghlan
Alex Martelli wrote: > On Mar 12, 2006, at 11:16 AM, Ian Bicking wrote: > ... >> memoize seems to fit into functools fairly well, though deprecated not >> so much. functools is similarly named to itertools, another module >> that >> is kind of vague in scope (though functools is much more va

Re: [Python-Dev] decorator module patch

2006-03-12 Thread Raymond Hettinger
[Ian Bicking] >> memoize seems to fit into functools fairly well, though deprecated not >> so much. functools is similarly named to itertools, another module >> that >> is kind of vague in scope (though functools is much more vague). >> partial would make just as much sense in functools as in func

Re: [Python-Dev] decorator module patch

2006-03-12 Thread Alex Martelli
On Mar 12, 2006, at 11:16 AM, Ian Bicking wrote: ... > memoize seems to fit into functools fairly well, though deprecated not > so much. functools is similarly named to itertools, another module > that > is kind of vague in scope (though functools is much more vague). > partial would make j

Re: [Python-Dev] decorator module patch

2006-03-12 Thread Ian Bicking
Georg Brandl wrote: >> Also, I thought we were trying to move away from modules that shared a name >> with one of their public functions or classes. As it is, I'm not even sure >> that a name like "decorator" gives the right emphasis. > > I thought about "decorators" too, that would make "decora

Re: [Python-Dev] decorator module patch

2006-03-12 Thread Georg Brandl
Nick Coghlan wrote: > Georg Brandl wrote: >> Hi, >> >> to underlay my proposals with facts, I've written a simple decorator >> module containing at the moment only the "decorator" decorator. >> >> http://python.org/sf/1448297 >> >> It is implemented as a C extension module _decorator which conta

Re: [Python-Dev] decorator module patch

2006-03-12 Thread Nick Coghlan
Nick Coghlan wrote: > Georg Brandl wrote: >> Hi, >> >> to underlay my proposals with facts, I've written a simple decorator >> module containing at the moment only the "decorator" decorator. Sorry, I forgot the initial comment which was meant to be "Thanks for moving this proposal forward" :) It

Re: [Python-Dev] decorator module patch

2006-03-12 Thread Nick Coghlan
Georg Brandl wrote: > Hi, > > to underlay my proposals with facts, I've written a simple decorator > module containing at the moment only the "decorator" decorator. > > http://python.org/sf/1448297 > > It is implemented as a C extension module _decorator which contains the > decorator object (mo

[Python-Dev] decorator module patch

2006-03-12 Thread Georg Brandl
Hi, to underlay my proposals with facts, I've written a simple decorator module containing at the moment only the "decorator" decorator. http://python.org/sf/1448297 It is implemented as a C extension module _decorator which contains the decorator object (modelled after the functional.partial ob