Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #108921

Re: How do I subclass the @property setter method?

From Christopher Reimer <christopher_reimer@icloud.com>
Newsgroups comp.lang.python
Subject Re: How do I subclass the @property setter method?
Date 2016-05-21 08:59 -0700
Message-ID <mailman.83.1463846389.27390.python-list@python.org> (permalink)
References <2200dfd0-7470-0c86-c015-a6a14a2f51f2@icloud.com> <574021B5.1010408@gmx.de> <859deecb-8630-a2b2-4976-bde4d4788910@icloud.com>

Show all headers | View raw



On 5/21/2016 1:52 AM, Dirk Bächle wrote:
> Hi Christopher,
>
> On 20.05.2016 20:50, Christopher Reimer wrote:
>> Greetings,
>>
>> My chess engine has a Piece class with the following methods that use
>> the @property decorator to read and write the position value.
>>
>
> slightly off topic: is your chess engine available in a public repo
> somewhere? I think I've started to implement something similar (display
> of chess boards and wrapping different chess engines), so I'd like to
> have a look. ;)

Not at this time. I'll send a post to the list when I make the code 
available. My chess engine doesn't do much beyond displaying a text-only 
board. Since a chess engine presents an unlimited number of programming 
challenges, I'm using it to learn the finer points of Python.

Thank you,

Chris R.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: How do I subclass the @property setter method? Christopher Reimer <christopher_reimer@icloud.com> - 2016-05-21 08:59 -0700

csiph-web