Duration 21:38
16+
Play
Talk video

Easier Classes: Python Classes Without All The Cruft

Trey Hunner
Python Trainer at Truthful Technology, LLC
  • Video
  • Video
DjangoCon US 2018
October 14 2018, San Diego, USA
DjangoCon US 2018
Video
Easier Classes: Python Classes Without All The Cruft
Purchased
In cart
Free
Free
Free
Free
Free
Free
Add to favorites
1.31 K
I like 0
I dislike 0
Purchased
In cart
Free
Free
Free
Free
Free
Free
  • Description
  • Discussion

About speaker

  • Trey Hunner
    Python Trainer at Truthful Technology, LLC
Trey Hunner helps Python and Django teams on-board new developers through on-site team training and sends Python exercises to learners every week through Python Morsels. Trey is a director at the Python Software Foundation, a member of the Django Software Foundation, and is heavily involved with his local Python meetup group in San Diego.

About talk

Topic: IT

When bundling up data, sometimes tuples and dictionaries don’t quite cut it. Python’s classes are powerful tools for data storage and manipulation, but it can take quite a bit of boilerplate code to make a well-behaved Python class. In this talk we’re going to discuss how a well-behaved class should work and take a look at a number of helper libraries for creating well-behaved classes.

We’ll first see how to make classes with proper string representations, comparability, iterability, and immutability. Then we’ll dive into helper tools built-in to the standard library and available in third-party libraries and briefly discuss which of these tools makes sense to use with Django’s classes.

We’ll look at namedtuple, NamedTuple (not a typo), attrs, and the new Python 3.7 dataclasses.

Most of the libraries discussed in this talk are only available in Python 3, so if you’re not using Python 3, hopefully this talk will encourage you to upgrade.

Share

Cackle comments for the website

Buy this talk

Access to the talk «Easier Classes: Python Classes Without All The Cruft»
Purchased
In cart
Free
Free
Free
Free
Free
Free

Video

Get access to all videos “DjangoCon US 2018”
Purchased
In cart
Free
Free
Free
Free
Free
Free
Ticket

Interested in topic «IT»?

You might be interested in videos from this event

September 28 2018
Moscow
16
83
app store, apps, development, google play, mobile, soft

Similar talks

Matt Chapman
Manager, Data Engineering at mPulse Mobile
Ryan Sullivan
Web Team Lead at Wharton Research Data Services
Mariatta Wijaya
Platform Engineer at Zapier
Purchased
In cart
Free
Free
Free
Free
Free
Free
Chloe Condon
Developer Evangelist at Sentry
Purchased
In cart
Free
Free
Free
Free
Free
Free
Patrick Arminio
Backend Engineer at Verve
Purchased
In cart
Free
Free
Free
Free
Free
Free

Buy this video

Video

Access to the talk 'Easier Classes: Python Classes Without All The Cruft'
Purchased
In cart
Free
Free
Free
Free
Free
Free

Conference Cast

With ConferenceCast.tv you get access to our library of the world's best conference talks.

Conference Cast
154 conferences
6352 speakers
2110 hours of content