[Python-ideas] JavaScript-Style Object Creation in Python (using a constructor function instead of a class to create objects)
Guido van Rossum
gvanrossum at gmail.com
Tue May 16 17:04:36 EDT 2017
Stephen,
What features of attrs specifically solve your use cases?
--Guido
On Tue, May 16, 2017 at 12:18 PM, Stephan Houben <stephanh42 at gmail.com>
wrote:
> 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/
> >
>
--
--Guido van Rossum (python.org/~guido)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20170516/f952010d/attachment.html>
More information about the Python-ideas
mailing list