This is a multi-part message in MIME format. ------=_NextPart_000_0074_01C2C677.4E939D60 Content-Type: text/plain; charset="windows-1250" Content-Transfer-Encoding: quoted-printable > > What happened to Guido's proposal? > >=20 > > class Foo(object): > > property myprop: > > """A computed property on Foo objects.""" > >=20 > > def __get__(self): > > return ... > > def __set__(self): > > ... > > def __delete__(self): > > ... >=20 > I'd be satisfied with that, I think. If Guido likes it too, > that's great, and I'll happily give it a +1. >But the problem is that it makes proprty a keyword, which is a Big >Change. class Foo(object): def __init__(self): self.v =3D [] self.myprop: """A computed property on Foo objects.""" def __get__(self): return ... def __set__(self): ... def __delete__(self): ... w.s ------=_NextPart_000_0074_01C2C677.4E939D60 Content-Type: text/html; charset="windows-1250" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Dwindows-1250"> <META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV>> > What happened to Guido's proposal?<BR>> > <BR>> = >=20 class Foo(object):<BR>> > property=20 myprop:<BR>> = > """A=20 computed property on Foo objects."""<BR>> > <BR>>=20 > def=20 __get__(self):<BR>>=20 > &nb= sp; =20 return ...<BR>> = > =20 def __set__(self):<BR>>=20 > &nb= sp; =20 ...<BR>> > = def=20 __delete__(self):<BR>>=20 > &nb= sp; =20 ...<BR>> <BR>> I'd be satisfied with that, I think. If Guido likes = it=20 too,<BR>> that's great, and I'll happily give it a +1.<BR><BR>>But = the=20 problem is that it makes proprty a keyword, which is a = Big<BR>>Change.</DIV> <DIV> </DIV> <DIV><FONT face=3D"Times New Roman">class Foo(object):<BR></FONT><FONT=20 face=3D"Times New Roman"> def=20 __init__(self):<BR> = =20 self.v =3D=20 []<BR> = self.myprop:<BR> &nb= sp; =20 """A computed property on Foo=20 objects."""<BR> &nbs= p; =20 def=20 __get__(self):<BR> &= nbsp; &n= bsp; =20 return=20 ...<BR> = def=20 __set__(self):<BR> &= nbsp; &n= bsp; =20 ...<BR> = =20 def __delete__(self):</FONT><FONT=20 face=3D"Times New = Roman"> = =20 ...<BR></FONT></DIV> <DIV><FONT face=3D"Times New Roman">w.s</FONT><BR></DIV></BODY></HTML> ------=_NextPart_000_0074_01C2C677.4E939D60--
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