Hopper and Backus (was Re: @property simultaneous setter and getter)

2013-12-21 Thread Terry Reedy
On 12/21/2013 11:59 AM, Dennis Lee Bieber wrote: On 21 Dec 2013 11:31:22 GMT, Steven D'Aprano I don't know. What is it? I'm sure your code is the most fabulous, awesome and brilliant thing since Grace Hopper came up with FORmula TRANslation back in the 1950s, As I recall, Grace Hopper was i

Re: @property simultaneous setter and getter

2013-12-21 Thread Mark Lawrence
On 21/12/2013 11:31, Steven D'Aprano wrote: On Fri, 20 Dec 2013 15:26:10 -0600, Brian Bruggeman wrote: Is this something that would be pep-able? I don't know. What is it? I'm sure your code is the most fabulous, awesome and brilliant thing since Grace Hopper came up with FORmula TRANslation b

Re: @property simultaneous setter and getter

2013-12-21 Thread Devin Jeanpierre
On Sat, Dec 21, 2013 at 2:14 AM, Peter Otten <__pete...@web.de> wrote: > If I were to implement something like this I'd probably use the old trick > with nested functions: > > def getset(f): > funcs = f() > return property(funcs.get("get"), funcs.get("set")) > > class A(object): > @gets

Re: @property simultaneous setter and getter

2013-12-21 Thread Steven D'Aprano
On Fri, 20 Dec 2013 15:26:10 -0600, Brian Bruggeman wrote: > Is this something that would be pep-able? I don't know. What is it? I'm sure your code is the most fabulous, awesome and brilliant thing since Grace Hopper came up with FORmula TRANslation back in the 1950s, but my browser has over ei

Re: @property simultaneous setter and getter

2013-12-21 Thread Peter Otten
Brian Bruggeman wrote: > Is this something that would be pep-able? > > https://gist.github.com/brianbruggeman/8061774 There's no need to put such a small piece of code into an external repository. > class someAwesomeClass(object): > """ an example """ > > @property > def some_

@property simultaneous setter and getter

2013-12-21 Thread Brian Bruggeman
Is this something that would be pep-able? https://gist.github.com/brianbruggeman/8061774 Thanks in advance. -- https://mail.python.org/mailman/listinfo/python-list