[Python-ideas] JavaScript-Style Object Creation in Python (using a constructor function instead of a class to create objects)

Stephan Houben stephanh42 at gmail.com
Tue May 16 15:18:21 EDT 2017


Hi all,

Thanks to this thread I learned about the "attrs" library. I am a
heavy namedtuple (ab)user but I think
I will be using attrs going forward.

If something like attrs would made it in the standard library it would
be awesome.

Thanks,

Stephan

2017-05-16 20:08 GMT+02:00 Brett Cannon <brett at python.org>:
> Maybe we can bring this up as a lightning talk at the language summit to see
> who in the room has the appropriate background knowledge? And obviously
> someone can talk to Hynek to see if he wants to provide input based on
> community feedback for attrs and lessons learned.
>
> On Tue, 16 May 2017 at 08:11 Guido van Rossum <gvanrossum at gmail.com> wrote:
>>
>> Maybe Lukasz is interested?
>>
>> On May 16, 2017 8:00 AM, "Chris Angelico" <rosuav at gmail.com> wrote:
>>>
>>> On Wed, May 17, 2017 at 12:53 AM, Guido van Rossum <guido at python.org>
>>> wrote:
>>> > I could also try this myself in my spare time at PyCon (surprisingly, I
>>> > have
>>> > some!). It sounds kind of interesting. However I've never used the
>>> > 'attrs'
>>> > package...
>>>
>>> Me neither, so I'm not really an ideal person to head this up. Is
>>> there anyone who (a) knows what is and isn't Pythonic, (b) has used
>>> 'attrs', and (c) has spare time? It's not an easy trifecta but we can
>>> hope!
>>>
>>> ChrisA
>>> _______________________________________________
>>> Python-ideas mailing list
>>> Python-ideas at python.org
>>> https://mail.python.org/mailman/listinfo/python-ideas
>>> Code of Conduct: http://python.org/psf/codeofconduct/
>>
>> _______________________________________________
>> Python-ideas mailing list
>> Python-ideas at python.org
>> https://mail.python.org/mailman/listinfo/python-ideas
>> Code of Conduct: http://python.org/psf/codeofconduct/
>
>
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>


More information about the Python-ideas mailing list