A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2018-March/152492.html below:

[Python-Dev] descriptor __set_name__ and dataclasses

[Python-Dev] descriptor __set_name__ and dataclasses [Python-Dev] descriptor __set_name__ and dataclassesNick Coghlan ncoghlan at gmail.com
Tue Mar 27 10:20:39 EDT 2018
On 27 March 2018 at 01:17, Eric V. Smith <eric at trueblade.com> wrote:
> On 3/26/18 11:10 AM, Eric V. Smith wrote:
>>
>> On 3/26/18 11:08 AM, Nick Coghlan wrote:
>>>
>>> On 27 March 2018 at 00:40, Eric V. Smith <eric at trueblade.com> wrote:
>
>
>>> Would it be feasible to define `Field.__set_name__`, and have that
>>> call `default.__set_name__` when the latter exists, and be a no-op
>>> otherwise?
>>
>>
>> A clever idea! I'll look in to it.
>
> It looks like that does work. Thank, Nick!

Cool!

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
More information about the Python-Dev mailing list

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